blob: 2ed5a47ea671233ae60e80802947ae9b7754666a [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/Target/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/Sparc/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/X86/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/Transforms/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/Hello/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/IPO/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/Instrumentation/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/ProfilePaths/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/Scalar/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/Utils/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/VMCore/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001621
1622
John Criswell0c38eaf2003-09-10 15:17:25 +00001623 ac_config_commands="$ac_config_commands runtime/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/GCCLibraries/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/crtend/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/libc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001633
1634
John Criswell613758d2003-09-11 18:03:50 +00001635 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libcurses/Makefile"
1636
1637
John Criswell0c38eaf2003-09-10 15:17:25 +00001638 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libg/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001639
1640
John Criswell0c38eaf2003-09-10 15:17:25 +00001641 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libgcc/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/libm/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/libmalloc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001648
1649
John Criswell613758d2003-09-11 18:03:50 +00001650 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libtermcap/Makefile"
1651
1652
John Criswell0c38eaf2003-09-10 15:17:25 +00001653 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libucb/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001654
1655
John Criswell613758d2003-09-11 18:03:50 +00001656 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libutempter/Makefile"
1657
1658
1659 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libutil/Makefile"
1660
1661
John Criswell0c38eaf2003-09-10 15:17:25 +00001662 ac_config_commands="$ac_config_commands runtime/libdummy/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001663
1664
John Criswell0c38eaf2003-09-10 15:17:25 +00001665 ac_config_commands="$ac_config_commands runtime/libtrace/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001666
1667
John Criswell0c38eaf2003-09-10 15:17:25 +00001668 ac_config_commands="$ac_config_commands test/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.tests"
John Criswellc764fbc2003-09-06 15:17:13 +00001672
1673
John Criswell08acb9b2003-09-16 02:12:45 +00001674 ac_config_commands="$ac_config_commands test/QMTestDB/QMTest/llvm.py"
1675
1676
John Criswell0c38eaf2003-09-10 15:17:25 +00001677 ac_config_commands="$ac_config_commands test/Programs/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001678
1679
John Criswell0c38eaf2003-09-10 15:17:25 +00001680 ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
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/TEST.aa.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001684
1685
John Criswell0c38eaf2003-09-10 15:17:25 +00001686 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report"
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.micro.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.aa.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.example.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001696
1697
John Criswell0c38eaf2003-09-10 15:17:25 +00001698 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.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.buildrepo.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.jit.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.nightly.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001708
1709
John Criswell0c38eaf2003-09-10 15:17:25 +00001710 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile"
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.jit.report"
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.typesafe.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001717
1718
John Criswell0c38eaf2003-09-10 15:17:25 +00001719 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
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.micro.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001723
1724
John Criswell0c38eaf2003-09-10 15:17:25 +00001725 ac_config_commands="$ac_config_commands test/Programs/External/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/SPEC/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001729
1730
John Criswell613758d2003-09-11 18:03:50 +00001731 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1732
1733
John Criswell0c38eaf2003-09-10 15:17:25 +00001734 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001735
1736
John Criswell0c38eaf2003-09-10 15:17:25 +00001737 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/179.art/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/183.equake/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/188.ammp/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/CINT2000/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/164.gzip/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/175.vpr/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/176.gcc/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/181.mcf/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/186.crafty/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/197.parser/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/254.gap/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/255.vortex/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/256.bzip2/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/300.twolf/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/LLVMSource/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/MultiSource/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.multisrc"
John Criswellc764fbc2003-09-06 15:17:13 +00001786
1787
John Criswell48e3cb92003-09-12 16:31:43 +00001788 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/Makefile"
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/Burg/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001792
1793
John Criswell39e83892003-09-12 16:36:17 +00001794 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/aha/Makefile"
1795
1796
1797 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/sgefa/Makefile"
1798
1799
John Criswell48e3cb92003-09-12 16:31:43 +00001800 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001801
1802
John Criswell48e3cb92003-09-12 16:31:43 +00001803 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Fhourstones/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/McCat/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/01-qbsort/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/03-testtrie/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/04-bisect/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/05-eks/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/08-main/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/09-vor/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/12-IOtest/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/15-trie/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/17-bintr/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/18-imp/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/Olden/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/bh/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/bisort/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/em3d/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/health/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/mst/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/perimeter/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/power/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/treeadd/Makefile"
1864
1865
1866 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile"
1867
1868
1869 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001870
1871
John Criswell39e83892003-09-12 16:36:17 +00001872 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001873
1874
John Criswell48e3cb92003-09-12 16:31:43 +00001875 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/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/anagram/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/bc/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/ft/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/ks/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/yacr2/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/llubenchmark/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/sim/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001897
1898
John Criswell0c38eaf2003-09-10 15:17:25 +00001899 ac_config_commands="$ac_config_commands test/Programs/NoSource/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/Flex/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/Larn/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/Moria-5.5.2/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/Povray31/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/m4/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/SingleSource/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.singlesrc"
John Criswellc764fbc2003-09-06 15:17:13 +00001921
1922
John Criswellffaaf3b2003-09-10 18:38:44 +00001923 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Gizmos/Makefile"
1924
1925
1926 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Makefile"
1927
1928
1929 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile"
1930
1931
1932 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Shootout/Makefile"
1933
1934
1935 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Stanford/Makefile"
1936
1937
1938 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Misc/Makefile"
1939
1940
John Criswell0c38eaf2003-09-10 15:17:25 +00001941 ac_config_commands="$ac_config_commands test/Programs/SingleSource/CustomChecked/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001942
1943
John Criswell0c38eaf2003-09-10 15:17:25 +00001944 ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001945
1946
John Criswell0afe8252003-09-11 20:53:48 +00001947 ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile"
1948
1949
John Criswell67181ca2003-09-26 14:53:17 +00001950 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/Makefile"
1951
1952
John Criswell68886d42003-09-26 19:51:42 +00001953 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C/Makefile"
1954
1955
1956 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C++/Makefile"
1957
1958
John Criswell0c38eaf2003-09-10 15:17:25 +00001959 ac_config_commands="$ac_config_commands tools/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/analyze/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/bugpoint/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/extract/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/gccas/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/gccld/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/llc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001978
1979
John Criswell0c38eaf2003-09-10 15:17:25 +00001980 ac_config_commands="$ac_config_commands tools/llee/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001981
1982
John Criswellddb7b4e2003-09-16 15:54:19 +00001983 ac_config_commands="$ac_config_commands tools/lli/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001984
1985
Chris Lattnerebd70302003-09-13 03:29:53 +00001986 ac_config_commands="$ac_config_commands tools/llvm-ar/Makefile"
1987
1988
John Criswellddb7b4e2003-09-16 15:54:19 +00001989 ac_config_commands="$ac_config_commands tools/llvm-as/Makefile"
1990
1991
John Criswell0c38eaf2003-09-10 15:17:25 +00001992 ac_config_commands="$ac_config_commands tools/llvm-dis/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001993
1994
John Criswellddb7b4e2003-09-16 15:54:19 +00001995 ac_config_commands="$ac_config_commands tools/llvm-link/Makefile"
1996
1997
1998 ac_config_commands="$ac_config_commands tools/opt/Makefile"
1999
2000
John Criswell0c38eaf2003-09-10 15:17:25 +00002001 ac_config_commands="$ac_config_commands utils/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002002
2003
John Criswell0c38eaf2003-09-10 15:17:25 +00002004 ac_config_commands="$ac_config_commands www/docs/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002005
2006
John Criswell0c38eaf2003-09-10 15:17:25 +00002007 ac_config_commands="$ac_config_commands projects/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002008
2009
John Criswell0c38eaf2003-09-10 15:17:25 +00002010 ac_config_commands="$ac_config_commands projects/sample/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/sample/Makefile.common"
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.config"
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/lib/Makefile"
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/lib/sample/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002023
2024
John Criswell0c38eaf2003-09-10 15:17:25 +00002025 ac_config_commands="$ac_config_commands projects/sample/tools/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/tools/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/ModuleMaker/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/ModuleMaker/Makefile.common"
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/tools/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/tools/ModuleMaker/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002041
2042
John Criswell4e079782003-09-29 14:52:28 +00002043 ac_config_commands="$ac_config_commands support/Makefile"
2044
2045
2046 ac_config_commands="$ac_config_commands support/lib/Makefile"
2047
2048
2049 ac_config_commands="$ac_config_commands support/lib/Support/Makefile"
2050
2051
2052 ac_config_commands="$ac_config_commands support/tools/Makefile"
2053
2054
2055 ac_config_commands="$ac_config_commands support/tools/Burg/Makefile"
2056
2057
2058 ac_config_commands="$ac_config_commands support/tools/Burg/Doc/Makefile"
2059
2060
2061 ac_config_commands="$ac_config_commands support/tools/TableGen/Makefile"
2062
2063
John Criswell392aaa32003-07-22 19:18:09 +00002064
2065
John Criswell7a73b802003-06-30 21:59:07 +00002066# Find a good install program. We prefer a C program (faster),
2067# so one script is as good as another. But avoid the broken or
2068# incompatible versions:
2069# SysV /etc/install, /usr/sbin/install
2070# SunOS /usr/etc/install
2071# IRIX /sbin/install
2072# AIX /bin/install
2073# AmigaOS /C/install, which installs bootblocks on floppy discs
2074# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2075# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2076# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2077# ./install, which can be erroneously created by make from ./install.sh.
2078echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2079echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2080if test -z "$INSTALL"; then
2081if test "${ac_cv_path_install+set}" = set; then
2082 echo $ECHO_N "(cached) $ECHO_C" >&6
2083else
2084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2085for as_dir in $PATH
2086do
2087 IFS=$as_save_IFS
2088 test -z "$as_dir" && as_dir=.
2089 # Account for people who put trailing slashes in PATH elements.
2090case $as_dir/ in
2091 ./ | .// | /cC/* | \
2092 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2093 /usr/ucb/* ) ;;
2094 *)
2095 # OSF1 and SCO ODT 3.0 have their own names for install.
2096 # Don't use installbsd from OSF since it installs stuff as root
2097 # by default.
2098 for ac_prog in ginstall scoinst install; do
2099 for ac_exec_ext in '' $ac_executable_extensions; do
2100 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2101 if test $ac_prog = install &&
2102 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2103 # AIX install. It has an incompatible calling convention.
2104 :
2105 elif test $ac_prog = install &&
2106 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2107 # program-specific install script used by HP pwplus--don't use.
2108 :
2109 else
2110 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2111 break 3
2112 fi
2113 fi
2114 done
2115 done
2116 ;;
2117esac
2118done
2119
2120
2121fi
2122 if test "${ac_cv_path_install+set}" = set; then
2123 INSTALL=$ac_cv_path_install
2124 else
2125 # As a last resort, use the slow shell script. We don't cache a
2126 # path for INSTALL within a source directory, because that will
2127 # break other packages using the cache if that directory is
2128 # removed, or if the path is relative.
2129 INSTALL=$ac_install_sh
2130 fi
2131fi
2132echo "$as_me:$LINENO: result: $INSTALL" >&5
2133echo "${ECHO_T}$INSTALL" >&6
2134
2135# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2136# It thinks the first close brace ends the variable substitution.
2137test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2138
2139test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2140
2141test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2142
2143
2144# Make sure we can run config.sub.
2145$ac_config_sub sun4 >/dev/null 2>&1 ||
2146 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2147echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2148 { (exit 1); exit 1; }; }
2149
2150echo "$as_me:$LINENO: checking build system type" >&5
2151echo $ECHO_N "checking build system type... $ECHO_C" >&6
2152if test "${ac_cv_build+set}" = set; then
2153 echo $ECHO_N "(cached) $ECHO_C" >&6
2154else
2155 ac_cv_build_alias=$build_alias
2156test -z "$ac_cv_build_alias" &&
2157 ac_cv_build_alias=`$ac_config_guess`
2158test -z "$ac_cv_build_alias" &&
2159 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2160echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2161 { (exit 1); exit 1; }; }
2162ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2163 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2164echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2165 { (exit 1); exit 1; }; }
2166
2167fi
2168echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2169echo "${ECHO_T}$ac_cv_build" >&6
2170build=$ac_cv_build
2171build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2172build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2173build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2174
2175
2176echo "$as_me:$LINENO: checking host system type" >&5
2177echo $ECHO_N "checking host system type... $ECHO_C" >&6
2178if test "${ac_cv_host+set}" = set; then
2179 echo $ECHO_N "(cached) $ECHO_C" >&6
2180else
2181 ac_cv_host_alias=$host_alias
2182test -z "$ac_cv_host_alias" &&
2183 ac_cv_host_alias=$ac_cv_build_alias
2184ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2185 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2186echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2187 { (exit 1); exit 1; }; }
2188
2189fi
2190echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2191echo "${ECHO_T}$ac_cv_host" >&6
2192host=$ac_cv_host
2193host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2194host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2195host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2196
2197
2198echo "$as_me:$LINENO: checking target system type" >&5
2199echo $ECHO_N "checking target system type... $ECHO_C" >&6
2200if test "${ac_cv_target+set}" = set; then
2201 echo $ECHO_N "(cached) $ECHO_C" >&6
2202else
2203 ac_cv_target_alias=$target_alias
2204test "x$ac_cv_target_alias" = "x" &&
2205 ac_cv_target_alias=$ac_cv_host_alias
2206ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2207 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2208echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2209 { (exit 1); exit 1; }; }
2210
2211fi
2212echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2213echo "${ECHO_T}$ac_cv_target" >&6
2214target=$ac_cv_target
2215target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2216target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2217target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2218
2219
2220# The aliases save the names the user supplied, while $host etc.
2221# will get canonicalized.
2222test -n "$target_alias" &&
2223 test "$program_prefix$program_suffix$program_transform_name" = \
2224 NONENONEs,x,x, &&
2225 program_prefix=${target_alias}-
2226
2227case $build in
2228 *i*86*) OS=Linux
2229
John Criswellf02dbf02003-07-22 20:07:49 +00002230 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
John Criswell7a73b802003-06-30 21:59:07 +00002231
2232 ;;
2233
2234 *sparc*) OS=SunOS
2235
2236 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
2237
2238 ;;
2239
2240 *) OS=Unknown
2241
2242 ;;
2243esac
2244
2245case $target in
2246 *sparc*solaris*) target=sparcv9-sun-solaris2.8
2247
2248 ;;
2249esac
2250
John Criswell76595452003-07-01 22:07:39 +00002251case $target in
2252 *i*86*) ARCH=x86
2253
2254 ;;
2255 *sparc*solaris*) ARCH=Sparc
2256
2257 ;;
2258esac
2259
John Criswell7a73b802003-06-30 21:59:07 +00002260
2261ac_ext=cc
2262ac_cpp='$CXXCPP $CPPFLAGS'
2263ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2264ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2265ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2266if test -n "$ac_tool_prefix"; then
2267 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2268 do
2269 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2270set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2271echo "$as_me:$LINENO: checking for $ac_word" >&5
2272echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2273if test "${ac_cv_prog_CXX+set}" = set; then
2274 echo $ECHO_N "(cached) $ECHO_C" >&6
2275else
2276 if test -n "$CXX"; then
2277 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2278else
2279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2280for as_dir in $PATH
2281do
2282 IFS=$as_save_IFS
2283 test -z "$as_dir" && as_dir=.
2284 for ac_exec_ext in '' $ac_executable_extensions; do
2285 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2286 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2288 break 2
2289 fi
2290done
2291done
2292
2293fi
2294fi
2295CXX=$ac_cv_prog_CXX
2296if test -n "$CXX"; then
2297 echo "$as_me:$LINENO: result: $CXX" >&5
2298echo "${ECHO_T}$CXX" >&6
2299else
2300 echo "$as_me:$LINENO: result: no" >&5
2301echo "${ECHO_T}no" >&6
2302fi
2303
2304 test -n "$CXX" && break
2305 done
2306fi
2307if test -z "$CXX"; then
2308 ac_ct_CXX=$CXX
2309 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2310do
2311 # Extract the first word of "$ac_prog", so it can be a program name with args.
2312set dummy $ac_prog; ac_word=$2
2313echo "$as_me:$LINENO: checking for $ac_word" >&5
2314echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2315if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2316 echo $ECHO_N "(cached) $ECHO_C" >&6
2317else
2318 if test -n "$ac_ct_CXX"; then
2319 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2320else
2321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2322for as_dir in $PATH
2323do
2324 IFS=$as_save_IFS
2325 test -z "$as_dir" && as_dir=.
2326 for ac_exec_ext in '' $ac_executable_extensions; do
2327 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2328 ac_cv_prog_ac_ct_CXX="$ac_prog"
2329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2330 break 2
2331 fi
2332done
2333done
2334
2335fi
2336fi
2337ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2338if test -n "$ac_ct_CXX"; then
2339 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2340echo "${ECHO_T}$ac_ct_CXX" >&6
2341else
2342 echo "$as_me:$LINENO: result: no" >&5
2343echo "${ECHO_T}no" >&6
2344fi
2345
2346 test -n "$ac_ct_CXX" && break
2347done
2348test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2349
2350 CXX=$ac_ct_CXX
2351fi
2352
2353
2354# Provide some information about the compiler.
2355echo "$as_me:$LINENO:" \
2356 "checking for C++ compiler version" >&5
2357ac_compiler=`set X $ac_compile; echo $2`
2358{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2359 (eval $ac_compiler --version </dev/null >&5) 2>&5
2360 ac_status=$?
2361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362 (exit $ac_status); }
2363{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2364 (eval $ac_compiler -v </dev/null >&5) 2>&5
2365 ac_status=$?
2366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367 (exit $ac_status); }
2368{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2369 (eval $ac_compiler -V </dev/null >&5) 2>&5
2370 ac_status=$?
2371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372 (exit $ac_status); }
2373
2374cat >conftest.$ac_ext <<_ACEOF
2375#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002376/* confdefs.h. */
2377_ACEOF
2378cat confdefs.h >>conftest.$ac_ext
2379cat >>conftest.$ac_ext <<_ACEOF
2380/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002381
John Criswell7a73b802003-06-30 21:59:07 +00002382int
2383main ()
2384{
2385
2386 ;
2387 return 0;
2388}
2389_ACEOF
2390ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002391ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002392# Try to create an executable without -o first, disregard a.out.
2393# It will help us diagnose broken compilers, and finding out an intuition
2394# of exeext.
2395echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2396echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2397ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2398if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2399 (eval $ac_link_default) 2>&5
2400 ac_status=$?
2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); }; then
2403 # Find the output, starting from the most likely. This scheme is
2404# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2405# resort.
2406
2407# Be careful to initialize this variable, since it used to be cached.
2408# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2409ac_cv_exeext=
John Criswell0c38eaf2003-09-10 15:17:25 +00002410# b.out is created by i960 compilers.
2411for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2412do
2413 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002414 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002415 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2416 ;;
2417 conftest.$ac_ext )
2418 # This is the source file.
2419 ;;
2420 [ab].out )
2421 # We found the default executable, but exeext='' is most
2422 # certainly right.
2423 break;;
2424 *.* )
2425 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2426 # FIXME: I believe we export ac_cv_exeext for Libtool,
2427 # but it would be cool to find out if it's true. Does anybody
2428 # maintain Libtool? --akim.
2429 export ac_cv_exeext
2430 break;;
2431 * )
2432 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002433 esac
2434done
2435else
2436 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002437sed 's/^/| /' conftest.$ac_ext >&5
2438
2439{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2440See \`config.log' for more details." >&5
2441echo "$as_me: error: C++ compiler cannot create executables
2442See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002443 { (exit 77); exit 77; }; }
2444fi
2445
2446ac_exeext=$ac_cv_exeext
2447echo "$as_me:$LINENO: result: $ac_file" >&5
2448echo "${ECHO_T}$ac_file" >&6
2449
2450# Check the compiler produces executables we can run. If not, either
2451# the compiler is broken, or we cross compile.
2452echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2453echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2454# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2455# If not cross compiling, check that we can run a simple program.
2456if test "$cross_compiling" != yes; then
2457 if { ac_try='./$ac_file'
2458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2459 (eval $ac_try) 2>&5
2460 ac_status=$?
2461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462 (exit $ac_status); }; }; then
2463 cross_compiling=no
2464 else
2465 if test "$cross_compiling" = maybe; then
2466 cross_compiling=yes
2467 else
2468 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002469If you meant to cross compile, use \`--host'.
2470See \`config.log' for more details." >&5
John Criswell7a73b802003-06-30 21:59:07 +00002471echo "$as_me: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002472If you meant to cross compile, use \`--host'.
2473See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002474 { (exit 1); exit 1; }; }
2475 fi
2476 fi
2477fi
2478echo "$as_me:$LINENO: result: yes" >&5
2479echo "${ECHO_T}yes" >&6
2480
John Criswell0c38eaf2003-09-10 15:17:25 +00002481rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002482ac_clean_files=$ac_clean_files_save
2483# Check the compiler produces executables we can run. If not, either
2484# the compiler is broken, or we cross compile.
2485echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2486echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2487echo "$as_me:$LINENO: result: $cross_compiling" >&5
2488echo "${ECHO_T}$cross_compiling" >&6
2489
2490echo "$as_me:$LINENO: checking for suffix of executables" >&5
2491echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2492if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2493 (eval $ac_link) 2>&5
2494 ac_status=$?
2495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496 (exit $ac_status); }; then
2497 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2498# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2499# work properly (i.e., refer to `conftest.exe'), while it won't with
2500# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002501for ac_file in conftest.exe conftest conftest.*; do
2502 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002503 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002504 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002505 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2506 export ac_cv_exeext
2507 break;;
2508 * ) break;;
2509 esac
2510done
2511else
John Criswell0c38eaf2003-09-10 15:17:25 +00002512 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2513See \`config.log' for more details." >&5
2514echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2515See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002516 { (exit 1); exit 1; }; }
2517fi
2518
2519rm -f conftest$ac_cv_exeext
2520echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2521echo "${ECHO_T}$ac_cv_exeext" >&6
2522
2523rm -f conftest.$ac_ext
2524EXEEXT=$ac_cv_exeext
2525ac_exeext=$EXEEXT
2526echo "$as_me:$LINENO: checking for suffix of object files" >&5
2527echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2528if test "${ac_cv_objext+set}" = set; then
2529 echo $ECHO_N "(cached) $ECHO_C" >&6
2530else
2531 cat >conftest.$ac_ext <<_ACEOF
2532#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002533/* confdefs.h. */
2534_ACEOF
2535cat confdefs.h >>conftest.$ac_ext
2536cat >>conftest.$ac_ext <<_ACEOF
2537/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002538
John Criswell7a73b802003-06-30 21:59:07 +00002539int
2540main ()
2541{
2542
2543 ;
2544 return 0;
2545}
2546_ACEOF
2547rm -f conftest.o conftest.obj
2548if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2549 (eval $ac_compile) 2>&5
2550 ac_status=$?
2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552 (exit $ac_status); }; then
2553 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2554 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002555 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002556 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2557 break;;
2558 esac
2559done
2560else
2561 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002562sed 's/^/| /' conftest.$ac_ext >&5
2563
2564{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2565See \`config.log' for more details." >&5
2566echo "$as_me: error: cannot compute suffix of object files: cannot compile
2567See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002568 { (exit 1); exit 1; }; }
2569fi
2570
2571rm -f conftest.$ac_cv_objext conftest.$ac_ext
2572fi
2573echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2574echo "${ECHO_T}$ac_cv_objext" >&6
2575OBJEXT=$ac_cv_objext
2576ac_objext=$OBJEXT
2577echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2578echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2579if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2580 echo $ECHO_N "(cached) $ECHO_C" >&6
2581else
2582 cat >conftest.$ac_ext <<_ACEOF
2583#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002584/* confdefs.h. */
2585_ACEOF
2586cat confdefs.h >>conftest.$ac_ext
2587cat >>conftest.$ac_ext <<_ACEOF
2588/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002589
John Criswell7a73b802003-06-30 21:59:07 +00002590int
2591main ()
2592{
2593#ifndef __GNUC__
2594 choke me
2595#endif
2596
2597 ;
2598 return 0;
2599}
2600_ACEOF
2601rm -f conftest.$ac_objext
2602if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2603 (eval $ac_compile) 2>&5
2604 ac_status=$?
2605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606 (exit $ac_status); } &&
2607 { ac_try='test -s conftest.$ac_objext'
2608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2609 (eval $ac_try) 2>&5
2610 ac_status=$?
2611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612 (exit $ac_status); }; }; then
2613 ac_compiler_gnu=yes
2614else
2615 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002616sed 's/^/| /' conftest.$ac_ext >&5
2617
John Criswell7a73b802003-06-30 21:59:07 +00002618ac_compiler_gnu=no
2619fi
2620rm -f conftest.$ac_objext conftest.$ac_ext
2621ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2622
2623fi
2624echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2625echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2626GXX=`test $ac_compiler_gnu = yes && echo yes`
2627ac_test_CXXFLAGS=${CXXFLAGS+set}
2628ac_save_CXXFLAGS=$CXXFLAGS
2629CXXFLAGS="-g"
2630echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2631echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2632if test "${ac_cv_prog_cxx_g+set}" = set; then
2633 echo $ECHO_N "(cached) $ECHO_C" >&6
2634else
2635 cat >conftest.$ac_ext <<_ACEOF
2636#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002637/* confdefs.h. */
2638_ACEOF
2639cat confdefs.h >>conftest.$ac_ext
2640cat >>conftest.$ac_ext <<_ACEOF
2641/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002642
John Criswell7a73b802003-06-30 21:59:07 +00002643int
2644main ()
2645{
2646
2647 ;
2648 return 0;
2649}
2650_ACEOF
2651rm -f conftest.$ac_objext
2652if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2653 (eval $ac_compile) 2>&5
2654 ac_status=$?
2655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656 (exit $ac_status); } &&
2657 { ac_try='test -s conftest.$ac_objext'
2658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2659 (eval $ac_try) 2>&5
2660 ac_status=$?
2661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662 (exit $ac_status); }; }; then
2663 ac_cv_prog_cxx_g=yes
2664else
2665 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002666sed 's/^/| /' conftest.$ac_ext >&5
2667
John Criswell7a73b802003-06-30 21:59:07 +00002668ac_cv_prog_cxx_g=no
2669fi
2670rm -f conftest.$ac_objext conftest.$ac_ext
2671fi
2672echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2673echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2674if test "$ac_test_CXXFLAGS" = set; then
2675 CXXFLAGS=$ac_save_CXXFLAGS
2676elif test $ac_cv_prog_cxx_g = yes; then
2677 if test "$GXX" = yes; then
2678 CXXFLAGS="-g -O2"
2679 else
2680 CXXFLAGS="-g"
2681 fi
2682else
2683 if test "$GXX" = yes; then
2684 CXXFLAGS="-O2"
2685 else
2686 CXXFLAGS=
2687 fi
2688fi
2689for ac_declaration in \
2690 ''\
2691 '#include <stdlib.h>' \
2692 'extern "C" void std::exit (int) throw (); using std::exit;' \
2693 'extern "C" void std::exit (int); using std::exit;' \
2694 'extern "C" void exit (int) throw ();' \
2695 'extern "C" void exit (int);' \
2696 'void exit (int);'
2697do
2698 cat >conftest.$ac_ext <<_ACEOF
2699#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002700/* confdefs.h. */
2701_ACEOF
2702cat confdefs.h >>conftest.$ac_ext
2703cat >>conftest.$ac_ext <<_ACEOF
2704/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002705#include <stdlib.h>
2706$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002707int
2708main ()
2709{
2710exit (42);
2711 ;
2712 return 0;
2713}
2714_ACEOF
2715rm -f conftest.$ac_objext
2716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2717 (eval $ac_compile) 2>&5
2718 ac_status=$?
2719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720 (exit $ac_status); } &&
2721 { ac_try='test -s conftest.$ac_objext'
2722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2723 (eval $ac_try) 2>&5
2724 ac_status=$?
2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726 (exit $ac_status); }; }; then
2727 :
2728else
2729 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002730sed 's/^/| /' conftest.$ac_ext >&5
2731
John Criswell7a73b802003-06-30 21:59:07 +00002732continue
2733fi
2734rm -f conftest.$ac_objext conftest.$ac_ext
2735 cat >conftest.$ac_ext <<_ACEOF
2736#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002737/* confdefs.h. */
2738_ACEOF
2739cat confdefs.h >>conftest.$ac_ext
2740cat >>conftest.$ac_ext <<_ACEOF
2741/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002742$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002743int
2744main ()
2745{
2746exit (42);
2747 ;
2748 return 0;
2749}
2750_ACEOF
2751rm -f conftest.$ac_objext
2752if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2753 (eval $ac_compile) 2>&5
2754 ac_status=$?
2755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756 (exit $ac_status); } &&
2757 { ac_try='test -s conftest.$ac_objext'
2758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2759 (eval $ac_try) 2>&5
2760 ac_status=$?
2761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762 (exit $ac_status); }; }; then
2763 break
2764else
2765 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002766sed 's/^/| /' conftest.$ac_ext >&5
2767
John Criswell7a73b802003-06-30 21:59:07 +00002768fi
2769rm -f conftest.$ac_objext conftest.$ac_ext
2770done
2771rm -f conftest*
2772if test -n "$ac_declaration"; then
2773 echo '#ifdef __cplusplus' >>confdefs.h
2774 echo $ac_declaration >>confdefs.h
2775 echo '#endif' >>confdefs.h
2776fi
2777
2778ac_ext=c
2779ac_cpp='$CPP $CPPFLAGS'
2780ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2781ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2782ac_compiler_gnu=$ac_cv_c_compiler_gnu
2783
2784ac_ext=c
2785ac_cpp='$CPP $CPPFLAGS'
2786ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2787ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2788ac_compiler_gnu=$ac_cv_c_compiler_gnu
2789if test -n "$ac_tool_prefix"; then
2790 for ac_prog in gcc
2791 do
2792 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2793set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2794echo "$as_me:$LINENO: checking for $ac_word" >&5
2795echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2796if test "${ac_cv_prog_CC+set}" = set; then
2797 echo $ECHO_N "(cached) $ECHO_C" >&6
2798else
2799 if test -n "$CC"; then
2800 ac_cv_prog_CC="$CC" # Let the user override the test.
2801else
2802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2803for as_dir in $PATH
2804do
2805 IFS=$as_save_IFS
2806 test -z "$as_dir" && as_dir=.
2807 for ac_exec_ext in '' $ac_executable_extensions; do
2808 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2809 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2811 break 2
2812 fi
2813done
2814done
2815
2816fi
2817fi
2818CC=$ac_cv_prog_CC
2819if test -n "$CC"; then
2820 echo "$as_me:$LINENO: result: $CC" >&5
2821echo "${ECHO_T}$CC" >&6
2822else
2823 echo "$as_me:$LINENO: result: no" >&5
2824echo "${ECHO_T}no" >&6
2825fi
2826
2827 test -n "$CC" && break
2828 done
2829fi
2830if test -z "$CC"; then
2831 ac_ct_CC=$CC
2832 for ac_prog in gcc
2833do
2834 # Extract the first word of "$ac_prog", so it can be a program name with args.
2835set dummy $ac_prog; ac_word=$2
2836echo "$as_me:$LINENO: checking for $ac_word" >&5
2837echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2838if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2839 echo $ECHO_N "(cached) $ECHO_C" >&6
2840else
2841 if test -n "$ac_ct_CC"; then
2842 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2843else
2844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2845for as_dir in $PATH
2846do
2847 IFS=$as_save_IFS
2848 test -z "$as_dir" && as_dir=.
2849 for ac_exec_ext in '' $ac_executable_extensions; do
2850 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2851 ac_cv_prog_ac_ct_CC="$ac_prog"
2852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2853 break 2
2854 fi
2855done
2856done
2857
2858fi
2859fi
2860ac_ct_CC=$ac_cv_prog_ac_ct_CC
2861if test -n "$ac_ct_CC"; then
2862 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2863echo "${ECHO_T}$ac_ct_CC" >&6
2864else
2865 echo "$as_me:$LINENO: result: no" >&5
2866echo "${ECHO_T}no" >&6
2867fi
2868
2869 test -n "$ac_ct_CC" && break
2870done
2871
2872 CC=$ac_ct_CC
2873fi
2874
2875
John Criswell0c38eaf2003-09-10 15:17:25 +00002876test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2877See \`config.log' for more details." >&5
2878echo "$as_me: error: no acceptable C compiler found in \$PATH
2879See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002880 { (exit 1); exit 1; }; }
2881
2882# Provide some information about the compiler.
2883echo "$as_me:$LINENO:" \
2884 "checking for C compiler version" >&5
2885ac_compiler=`set X $ac_compile; echo $2`
2886{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2887 (eval $ac_compiler --version </dev/null >&5) 2>&5
2888 ac_status=$?
2889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890 (exit $ac_status); }
2891{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2892 (eval $ac_compiler -v </dev/null >&5) 2>&5
2893 ac_status=$?
2894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895 (exit $ac_status); }
2896{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2897 (eval $ac_compiler -V </dev/null >&5) 2>&5
2898 ac_status=$?
2899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900 (exit $ac_status); }
2901
2902echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2903echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2904if test "${ac_cv_c_compiler_gnu+set}" = set; then
2905 echo $ECHO_N "(cached) $ECHO_C" >&6
2906else
2907 cat >conftest.$ac_ext <<_ACEOF
2908#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002909/* confdefs.h. */
2910_ACEOF
2911cat confdefs.h >>conftest.$ac_ext
2912cat >>conftest.$ac_ext <<_ACEOF
2913/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002914
John Criswell7a73b802003-06-30 21:59:07 +00002915int
2916main ()
2917{
2918#ifndef __GNUC__
2919 choke me
2920#endif
2921
2922 ;
2923 return 0;
2924}
2925_ACEOF
2926rm -f conftest.$ac_objext
2927if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2928 (eval $ac_compile) 2>&5
2929 ac_status=$?
2930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931 (exit $ac_status); } &&
2932 { ac_try='test -s conftest.$ac_objext'
2933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2934 (eval $ac_try) 2>&5
2935 ac_status=$?
2936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937 (exit $ac_status); }; }; then
2938 ac_compiler_gnu=yes
2939else
2940 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002941sed 's/^/| /' conftest.$ac_ext >&5
2942
John Criswell7a73b802003-06-30 21:59:07 +00002943ac_compiler_gnu=no
2944fi
2945rm -f conftest.$ac_objext conftest.$ac_ext
2946ac_cv_c_compiler_gnu=$ac_compiler_gnu
2947
2948fi
2949echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2950echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2951GCC=`test $ac_compiler_gnu = yes && echo yes`
2952ac_test_CFLAGS=${CFLAGS+set}
2953ac_save_CFLAGS=$CFLAGS
2954CFLAGS="-g"
2955echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2956echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2957if test "${ac_cv_prog_cc_g+set}" = set; then
2958 echo $ECHO_N "(cached) $ECHO_C" >&6
2959else
2960 cat >conftest.$ac_ext <<_ACEOF
2961#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002962/* confdefs.h. */
2963_ACEOF
2964cat confdefs.h >>conftest.$ac_ext
2965cat >>conftest.$ac_ext <<_ACEOF
2966/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002967
John Criswell7a73b802003-06-30 21:59:07 +00002968int
2969main ()
2970{
2971
2972 ;
2973 return 0;
2974}
2975_ACEOF
2976rm -f conftest.$ac_objext
2977if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2978 (eval $ac_compile) 2>&5
2979 ac_status=$?
2980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981 (exit $ac_status); } &&
2982 { ac_try='test -s conftest.$ac_objext'
2983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2984 (eval $ac_try) 2>&5
2985 ac_status=$?
2986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987 (exit $ac_status); }; }; then
2988 ac_cv_prog_cc_g=yes
2989else
2990 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002991sed 's/^/| /' conftest.$ac_ext >&5
2992
John Criswell7a73b802003-06-30 21:59:07 +00002993ac_cv_prog_cc_g=no
2994fi
2995rm -f conftest.$ac_objext conftest.$ac_ext
2996fi
2997echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2998echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2999if test "$ac_test_CFLAGS" = set; then
3000 CFLAGS=$ac_save_CFLAGS
3001elif test $ac_cv_prog_cc_g = yes; then
3002 if test "$GCC" = yes; then
3003 CFLAGS="-g -O2"
3004 else
3005 CFLAGS="-g"
3006 fi
3007else
3008 if test "$GCC" = yes; then
3009 CFLAGS="-O2"
3010 else
3011 CFLAGS=
3012 fi
3013fi
John Criswell0c38eaf2003-09-10 15:17:25 +00003014echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3015echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3016if test "${ac_cv_prog_cc_stdc+set}" = set; then
3017 echo $ECHO_N "(cached) $ECHO_C" >&6
3018else
3019 ac_cv_prog_cc_stdc=no
3020ac_save_CC=$CC
3021cat >conftest.$ac_ext <<_ACEOF
3022#line $LINENO "configure"
3023/* confdefs.h. */
3024_ACEOF
3025cat confdefs.h >>conftest.$ac_ext
3026cat >>conftest.$ac_ext <<_ACEOF
3027/* end confdefs.h. */
3028#include <stdarg.h>
3029#include <stdio.h>
3030#include <sys/types.h>
3031#include <sys/stat.h>
3032/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3033struct buf { int x; };
3034FILE * (*rcsopen) (struct buf *, struct stat *, int);
3035static char *e (p, i)
3036 char **p;
3037 int i;
3038{
3039 return p[i];
3040}
3041static char *f (char * (*g) (char **, int), char **p, ...)
3042{
3043 char *s;
3044 va_list v;
3045 va_start (v,p);
3046 s = g (p, va_arg (v,int));
3047 va_end (v);
3048 return s;
3049}
3050int test (int i, double x);
3051struct s1 {int (*f) (int a);};
3052struct s2 {int (*f) (double a);};
3053int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3054int argc;
3055char **argv;
3056int
3057main ()
3058{
3059return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3060 ;
3061 return 0;
3062}
3063_ACEOF
3064# Don't try gcc -ansi; that turns off useful extensions and
3065# breaks some systems' header files.
3066# AIX -qlanglvl=ansi
3067# Ultrix and OSF/1 -std1
3068# HP-UX 10.20 and later -Ae
3069# HP-UX older versions -Aa -D_HPUX_SOURCE
3070# SVR4 -Xc -D__EXTENSIONS__
3071for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3072do
3073 CC="$ac_save_CC $ac_arg"
3074 rm -f conftest.$ac_objext
3075if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3076 (eval $ac_compile) 2>&5
3077 ac_status=$?
3078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079 (exit $ac_status); } &&
3080 { ac_try='test -s conftest.$ac_objext'
3081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3082 (eval $ac_try) 2>&5
3083 ac_status=$?
3084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085 (exit $ac_status); }; }; then
3086 ac_cv_prog_cc_stdc=$ac_arg
3087break
3088else
3089 echo "$as_me: failed program was:" >&5
3090sed 's/^/| /' conftest.$ac_ext >&5
3091
3092fi
3093rm -f conftest.$ac_objext
3094done
3095rm -f conftest.$ac_ext conftest.$ac_objext
3096CC=$ac_save_CC
3097
3098fi
3099
3100case "x$ac_cv_prog_cc_stdc" in
3101 x|xno)
3102 echo "$as_me:$LINENO: result: none needed" >&5
3103echo "${ECHO_T}none needed" >&6 ;;
3104 *)
3105 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3106echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3107 CC="$CC $ac_cv_prog_cc_stdc" ;;
3108esac
3109
John Criswell7a73b802003-06-30 21:59:07 +00003110# Some people use a C++ compiler to compile C. Since we use `exit',
3111# in C++ we need to declare it. In case someone uses the same compiler
3112# for both compiling C and C++ we need to have the C++ compiler decide
3113# the declaration of exit, since it's the most demanding environment.
3114cat >conftest.$ac_ext <<_ACEOF
3115#ifndef __cplusplus
3116 choke me
3117#endif
3118_ACEOF
3119rm -f conftest.$ac_objext
3120if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3121 (eval $ac_compile) 2>&5
3122 ac_status=$?
3123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124 (exit $ac_status); } &&
3125 { ac_try='test -s conftest.$ac_objext'
3126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3127 (eval $ac_try) 2>&5
3128 ac_status=$?
3129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3130 (exit $ac_status); }; }; then
3131 for ac_declaration in \
3132 ''\
3133 '#include <stdlib.h>' \
3134 'extern "C" void std::exit (int) throw (); using std::exit;' \
3135 'extern "C" void std::exit (int); using std::exit;' \
3136 'extern "C" void exit (int) throw ();' \
3137 'extern "C" void exit (int);' \
3138 'void exit (int);'
3139do
3140 cat >conftest.$ac_ext <<_ACEOF
3141#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003142/* confdefs.h. */
3143_ACEOF
3144cat confdefs.h >>conftest.$ac_ext
3145cat >>conftest.$ac_ext <<_ACEOF
3146/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003147#include <stdlib.h>
3148$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00003149int
3150main ()
3151{
3152exit (42);
3153 ;
3154 return 0;
3155}
3156_ACEOF
3157rm -f conftest.$ac_objext
3158if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3159 (eval $ac_compile) 2>&5
3160 ac_status=$?
3161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162 (exit $ac_status); } &&
3163 { ac_try='test -s conftest.$ac_objext'
3164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3165 (eval $ac_try) 2>&5
3166 ac_status=$?
3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168 (exit $ac_status); }; }; then
3169 :
3170else
3171 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003172sed 's/^/| /' conftest.$ac_ext >&5
3173
John Criswell7a73b802003-06-30 21:59:07 +00003174continue
3175fi
3176rm -f conftest.$ac_objext conftest.$ac_ext
3177 cat >conftest.$ac_ext <<_ACEOF
3178#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003179/* confdefs.h. */
3180_ACEOF
3181cat confdefs.h >>conftest.$ac_ext
3182cat >>conftest.$ac_ext <<_ACEOF
3183/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003184$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00003185int
3186main ()
3187{
3188exit (42);
3189 ;
3190 return 0;
3191}
3192_ACEOF
3193rm -f conftest.$ac_objext
3194if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3195 (eval $ac_compile) 2>&5
3196 ac_status=$?
3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198 (exit $ac_status); } &&
3199 { ac_try='test -s conftest.$ac_objext'
3200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3201 (eval $ac_try) 2>&5
3202 ac_status=$?
3203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204 (exit $ac_status); }; }; then
3205 break
3206else
3207 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003208sed 's/^/| /' conftest.$ac_ext >&5
3209
John Criswell7a73b802003-06-30 21:59:07 +00003210fi
3211rm -f conftest.$ac_objext conftest.$ac_ext
3212done
3213rm -f conftest*
3214if test -n "$ac_declaration"; then
3215 echo '#ifdef __cplusplus' >>confdefs.h
3216 echo $ac_declaration >>confdefs.h
3217 echo '#endif' >>confdefs.h
3218fi
3219
3220else
3221 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003222sed 's/^/| /' conftest.$ac_ext >&5
3223
John Criswell7a73b802003-06-30 21:59:07 +00003224fi
3225rm -f conftest.$ac_objext conftest.$ac_ext
3226ac_ext=c
3227ac_cpp='$CPP $CPPFLAGS'
3228ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3229ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3230ac_compiler_gnu=$ac_cv_c_compiler_gnu
3231
3232ac_ext=c
3233ac_cpp='$CPP $CPPFLAGS'
3234ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3235ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3236ac_compiler_gnu=$ac_cv_c_compiler_gnu
3237echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3238echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3239# On Suns, sometimes $CPP names a directory.
3240if test -n "$CPP" && test -d "$CPP"; then
3241 CPP=
3242fi
3243if test -z "$CPP"; then
3244 if test "${ac_cv_prog_CPP+set}" = set; then
3245 echo $ECHO_N "(cached) $ECHO_C" >&6
3246else
3247 # Double quotes because CPP needs to be expanded
3248 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3249 do
3250 ac_preproc_ok=false
3251for ac_c_preproc_warn_flag in '' yes
3252do
3253 # Use a header file that comes with gcc, so configuring glibc
3254 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00003255 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3256 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00003257 # On the NeXT, cc -E runs the code through the compiler's parser,
3258 # not just through cpp. "Syntax error" is here to catch this case.
3259 cat >conftest.$ac_ext <<_ACEOF
3260#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003261/* confdefs.h. */
3262_ACEOF
3263cat confdefs.h >>conftest.$ac_ext
3264cat >>conftest.$ac_ext <<_ACEOF
3265/* end confdefs.h. */
3266#ifdef __STDC__
3267# include <limits.h>
3268#else
3269# include <assert.h>
3270#endif
John Criswell7a73b802003-06-30 21:59:07 +00003271 Syntax error
3272_ACEOF
3273if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3274 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3275 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003276 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003277 rm -f conftest.er1
3278 cat conftest.err >&5
3279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3280 (exit $ac_status); } >/dev/null; then
3281 if test -s conftest.err; then
3282 ac_cpp_err=$ac_c_preproc_warn_flag
3283 else
3284 ac_cpp_err=
3285 fi
3286else
3287 ac_cpp_err=yes
3288fi
3289if test -z "$ac_cpp_err"; then
3290 :
3291else
3292 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003293sed 's/^/| /' conftest.$ac_ext >&5
3294
John Criswell7a73b802003-06-30 21:59:07 +00003295 # Broken: fails on valid input.
3296continue
3297fi
3298rm -f conftest.err conftest.$ac_ext
3299
3300 # OK, works on sane cases. Now check whether non-existent headers
3301 # can be detected and how.
3302 cat >conftest.$ac_ext <<_ACEOF
3303#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003304/* confdefs.h. */
3305_ACEOF
3306cat confdefs.h >>conftest.$ac_ext
3307cat >>conftest.$ac_ext <<_ACEOF
3308/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003309#include <ac_nonexistent.h>
3310_ACEOF
3311if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3312 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3313 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003314 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003315 rm -f conftest.er1
3316 cat conftest.err >&5
3317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318 (exit $ac_status); } >/dev/null; then
3319 if test -s conftest.err; then
3320 ac_cpp_err=$ac_c_preproc_warn_flag
3321 else
3322 ac_cpp_err=
3323 fi
3324else
3325 ac_cpp_err=yes
3326fi
3327if test -z "$ac_cpp_err"; then
3328 # Broken: success on invalid input.
3329continue
3330else
3331 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003332sed 's/^/| /' conftest.$ac_ext >&5
3333
John Criswell7a73b802003-06-30 21:59:07 +00003334 # Passes both tests.
3335ac_preproc_ok=:
3336break
3337fi
3338rm -f conftest.err conftest.$ac_ext
3339
3340done
3341# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3342rm -f conftest.err conftest.$ac_ext
3343if $ac_preproc_ok; then
3344 break
3345fi
3346
3347 done
3348 ac_cv_prog_CPP=$CPP
3349
3350fi
3351 CPP=$ac_cv_prog_CPP
3352else
3353 ac_cv_prog_CPP=$CPP
3354fi
3355echo "$as_me:$LINENO: result: $CPP" >&5
3356echo "${ECHO_T}$CPP" >&6
3357ac_preproc_ok=false
3358for ac_c_preproc_warn_flag in '' yes
3359do
3360 # Use a header file that comes with gcc, so configuring glibc
3361 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00003362 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3363 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00003364 # On the NeXT, cc -E runs the code through the compiler's parser,
3365 # not just through cpp. "Syntax error" is here to catch this case.
3366 cat >conftest.$ac_ext <<_ACEOF
3367#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003368/* confdefs.h. */
3369_ACEOF
3370cat confdefs.h >>conftest.$ac_ext
3371cat >>conftest.$ac_ext <<_ACEOF
3372/* end confdefs.h. */
3373#ifdef __STDC__
3374# include <limits.h>
3375#else
3376# include <assert.h>
3377#endif
John Criswell7a73b802003-06-30 21:59:07 +00003378 Syntax error
3379_ACEOF
3380if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3381 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3382 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003383 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003384 rm -f conftest.er1
3385 cat conftest.err >&5
3386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387 (exit $ac_status); } >/dev/null; then
3388 if test -s conftest.err; then
3389 ac_cpp_err=$ac_c_preproc_warn_flag
3390 else
3391 ac_cpp_err=
3392 fi
3393else
3394 ac_cpp_err=yes
3395fi
3396if test -z "$ac_cpp_err"; then
3397 :
3398else
3399 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003400sed 's/^/| /' conftest.$ac_ext >&5
3401
John Criswell7a73b802003-06-30 21:59:07 +00003402 # Broken: fails on valid input.
3403continue
3404fi
3405rm -f conftest.err conftest.$ac_ext
3406
3407 # OK, works on sane cases. Now check whether non-existent headers
3408 # can be detected and how.
3409 cat >conftest.$ac_ext <<_ACEOF
3410#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003411/* confdefs.h. */
3412_ACEOF
3413cat confdefs.h >>conftest.$ac_ext
3414cat >>conftest.$ac_ext <<_ACEOF
3415/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003416#include <ac_nonexistent.h>
3417_ACEOF
3418if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3419 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3420 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003421 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003422 rm -f conftest.er1
3423 cat conftest.err >&5
3424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425 (exit $ac_status); } >/dev/null; then
3426 if test -s conftest.err; then
3427 ac_cpp_err=$ac_c_preproc_warn_flag
3428 else
3429 ac_cpp_err=
3430 fi
3431else
3432 ac_cpp_err=yes
3433fi
3434if test -z "$ac_cpp_err"; then
3435 # Broken: success on invalid input.
3436continue
3437else
3438 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003439sed 's/^/| /' conftest.$ac_ext >&5
3440
John Criswell7a73b802003-06-30 21:59:07 +00003441 # Passes both tests.
3442ac_preproc_ok=:
3443break
3444fi
3445rm -f conftest.err conftest.$ac_ext
3446
3447done
3448# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3449rm -f conftest.err conftest.$ac_ext
3450if $ac_preproc_ok; then
3451 :
3452else
John Criswell0c38eaf2003-09-10 15:17:25 +00003453 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3454See \`config.log' for more details." >&5
3455echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3456See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003457 { (exit 1); exit 1; }; }
3458fi
3459
3460ac_ext=c
3461ac_cpp='$CPP $CPPFLAGS'
3462ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3463ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3464ac_compiler_gnu=$ac_cv_c_compiler_gnu
3465
3466
3467if test "$GCC" != "yes"
3468then
3469 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3470echo "$as_me: error: gcc required but not found" >&2;}
3471 { (exit 1); exit 1; }; }
3472fi
3473
3474if test "$GXX" != "yes"
3475then
3476 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3477echo "$as_me: error: g++ required but not found" >&2;}
3478 { (exit 1); exit 1; }; }
3479fi
3480
John Criswellde00db22003-08-25 16:49:54 +00003481gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3482if test "$gccmajor" -lt "3"
3483then
3484 { { echo "$as_me:$LINENO: error: gcc 3.x required" >&5
3485echo "$as_me: error: gcc 3.x required" >&2;}
3486 { (exit 1); exit 1; }; }
3487fi
3488
John Criswell7a73b802003-06-30 21:59:07 +00003489 echo "$as_me:$LINENO: checking for GNU make" >&5
3490echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3491if test "${_cv_gnu_make_command+set}" = set; then
3492 echo $ECHO_N "(cached) $ECHO_C" >&6
3493else
3494 _cv_gnu_make_command='' ;
3495 for a in "$MAKE" make gmake gnumake ; do
3496 if test -z "$a" ; then continue ; fi ;
3497 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
3498 _cv_gnu_make_command=$a ;
3499 break;
3500 fi
3501 done ;
3502
3503fi
3504echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3505echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3506 if test "x$_cv_gnu_make_command" != "x" ; then
3507 ifGNUmake='' ;
3508 else
3509 ifGNUmake='#' ;
3510 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3511echo "${ECHO_T}\"Not found\"" >&6;
3512 fi
3513
3514
3515if test -z "$_cv_gnu_make_command"
3516then
3517 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3518echo "$as_me: error: GNU Make required but not found" >&2;}
3519 { (exit 1); exit 1; }; }
3520fi
3521
3522
3523echo "$as_me:$LINENO: checking " >&5
3524echo $ECHO_N "checking ... $ECHO_C" >&6
3525if test "${ac_cv_has_flex+set}" = set; then
3526 echo $ECHO_N "(cached) $ECHO_C" >&6
3527else
3528 for ac_prog in flex lex
3529do
3530 # Extract the first word of "$ac_prog", so it can be a program name with args.
3531set dummy $ac_prog; ac_word=$2
3532echo "$as_me:$LINENO: checking for $ac_word" >&5
3533echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3534if test "${ac_cv_prog_LEX+set}" = set; then
3535 echo $ECHO_N "(cached) $ECHO_C" >&6
3536else
3537 if test -n "$LEX"; then
3538 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3539else
3540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3541for as_dir in $PATH
3542do
3543 IFS=$as_save_IFS
3544 test -z "$as_dir" && as_dir=.
3545 for ac_exec_ext in '' $ac_executable_extensions; do
3546 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3547 ac_cv_prog_LEX="$ac_prog"
3548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3549 break 2
3550 fi
3551done
3552done
3553
3554fi
3555fi
3556LEX=$ac_cv_prog_LEX
3557if test -n "$LEX"; then
3558 echo "$as_me:$LINENO: result: $LEX" >&5
3559echo "${ECHO_T}$LEX" >&6
3560else
3561 echo "$as_me:$LINENO: result: no" >&5
3562echo "${ECHO_T}no" >&6
3563fi
3564
3565 test -n "$LEX" && break
3566done
3567test -n "$LEX" || LEX=":"
3568
3569if test -z "$LEXLIB"
3570then
3571 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3572echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3573if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3574 echo $ECHO_N "(cached) $ECHO_C" >&6
3575else
3576 ac_check_lib_save_LIBS=$LIBS
3577LIBS="-lfl $LIBS"
3578cat >conftest.$ac_ext <<_ACEOF
3579#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003580/* confdefs.h. */
3581_ACEOF
3582cat confdefs.h >>conftest.$ac_ext
3583cat >>conftest.$ac_ext <<_ACEOF
3584/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003585
3586/* Override any gcc2 internal prototype to avoid an error. */
3587#ifdef __cplusplus
3588extern "C"
3589#endif
3590/* We use char because int might match the return type of a gcc2
3591 builtin and then its argument prototype would still apply. */
3592char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003593int
3594main ()
3595{
3596yywrap ();
3597 ;
3598 return 0;
3599}
3600_ACEOF
3601rm -f conftest.$ac_objext conftest$ac_exeext
3602if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3603 (eval $ac_link) 2>&5
3604 ac_status=$?
3605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606 (exit $ac_status); } &&
3607 { ac_try='test -s conftest$ac_exeext'
3608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3609 (eval $ac_try) 2>&5
3610 ac_status=$?
3611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612 (exit $ac_status); }; }; then
3613 ac_cv_lib_fl_yywrap=yes
3614else
3615 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003616sed 's/^/| /' conftest.$ac_ext >&5
3617
John Criswell7a73b802003-06-30 21:59:07 +00003618ac_cv_lib_fl_yywrap=no
3619fi
3620rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3621LIBS=$ac_check_lib_save_LIBS
3622fi
3623echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3624echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3625if test $ac_cv_lib_fl_yywrap = yes; then
3626 LEXLIB="-lfl"
3627else
3628 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3629echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3630if test "${ac_cv_lib_l_yywrap+set}" = set; then
3631 echo $ECHO_N "(cached) $ECHO_C" >&6
3632else
3633 ac_check_lib_save_LIBS=$LIBS
3634LIBS="-ll $LIBS"
3635cat >conftest.$ac_ext <<_ACEOF
3636#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003637/* confdefs.h. */
3638_ACEOF
3639cat confdefs.h >>conftest.$ac_ext
3640cat >>conftest.$ac_ext <<_ACEOF
3641/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003642
3643/* Override any gcc2 internal prototype to avoid an error. */
3644#ifdef __cplusplus
3645extern "C"
3646#endif
3647/* We use char because int might match the return type of a gcc2
3648 builtin and then its argument prototype would still apply. */
3649char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003650int
3651main ()
3652{
3653yywrap ();
3654 ;
3655 return 0;
3656}
3657_ACEOF
3658rm -f conftest.$ac_objext conftest$ac_exeext
3659if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3660 (eval $ac_link) 2>&5
3661 ac_status=$?
3662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663 (exit $ac_status); } &&
3664 { ac_try='test -s conftest$ac_exeext'
3665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3666 (eval $ac_try) 2>&5
3667 ac_status=$?
3668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669 (exit $ac_status); }; }; then
3670 ac_cv_lib_l_yywrap=yes
3671else
3672 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003673sed 's/^/| /' conftest.$ac_ext >&5
3674
John Criswell7a73b802003-06-30 21:59:07 +00003675ac_cv_lib_l_yywrap=no
3676fi
3677rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3678LIBS=$ac_check_lib_save_LIBS
3679fi
3680echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3681echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3682if test $ac_cv_lib_l_yywrap = yes; then
3683 LEXLIB="-ll"
3684fi
3685
3686fi
3687
3688fi
3689
3690if test "x$LEX" != "x:"; then
3691 echo "$as_me:$LINENO: checking lex output file root" >&5
3692echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3693if test "${ac_cv_prog_lex_root+set}" = set; then
3694 echo $ECHO_N "(cached) $ECHO_C" >&6
3695else
3696 # The minimal lex program is just a single line: %%. But some broken lexes
3697# (Solaris, I think it was) want two %% lines, so accommodate them.
3698cat >conftest.l <<_ACEOF
3699%%
3700%%
3701_ACEOF
3702{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3703 (eval $LEX conftest.l) 2>&5
3704 ac_status=$?
3705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706 (exit $ac_status); }
3707if test -f lex.yy.c; then
3708 ac_cv_prog_lex_root=lex.yy
3709elif test -f lexyy.c; then
3710 ac_cv_prog_lex_root=lexyy
3711else
3712 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3713echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3714 { (exit 1); exit 1; }; }
3715fi
3716fi
3717echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3718echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3719rm -f conftest.l
3720LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3721
3722echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3723echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3724if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3725 echo $ECHO_N "(cached) $ECHO_C" >&6
3726else
3727 # POSIX says lex can declare yytext either as a pointer or an array; the
3728# default is implementation-dependent. Figure out which it is, since
3729# not all implementations provide the %pointer and %array declarations.
3730ac_cv_prog_lex_yytext_pointer=no
3731echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3732ac_save_LIBS=$LIBS
3733LIBS="$LIBS $LEXLIB"
3734cat >conftest.$ac_ext <<_ACEOF
3735`cat $LEX_OUTPUT_ROOT.c`
3736_ACEOF
3737rm -f conftest.$ac_objext conftest$ac_exeext
3738if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3739 (eval $ac_link) 2>&5
3740 ac_status=$?
3741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742 (exit $ac_status); } &&
3743 { ac_try='test -s conftest$ac_exeext'
3744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3745 (eval $ac_try) 2>&5
3746 ac_status=$?
3747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748 (exit $ac_status); }; }; then
3749 ac_cv_prog_lex_yytext_pointer=yes
3750else
3751 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003752sed 's/^/| /' conftest.$ac_ext >&5
3753
John Criswell7a73b802003-06-30 21:59:07 +00003754fi
3755rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3756LIBS=$ac_save_LIBS
3757rm -f "${LEX_OUTPUT_ROOT}.c"
3758
3759fi
3760echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3761echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3762if test $ac_cv_prog_lex_yytext_pointer = yes; then
3763
3764cat >>confdefs.h <<\_ACEOF
3765#define YYTEXT_POINTER 1
3766_ACEOF
3767
3768fi
3769
3770fi
3771
3772fi
3773echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3774echo "${ECHO_T}$ac_cv_has_flex" >&6
3775if test "$LEX" != "flex"; then
3776 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3777echo "$as_me: error: flex not found but required" >&2;}
3778 { (exit 1); exit 1; }; }
3779fi
3780
3781echo "$as_me:$LINENO: checking " >&5
3782echo $ECHO_N "checking ... $ECHO_C" >&6
3783if test "${ac_cv_has_bison+set}" = set; then
3784 echo $ECHO_N "(cached) $ECHO_C" >&6
3785else
3786 for ac_prog in 'bison -y' byacc
3787do
3788 # Extract the first word of "$ac_prog", so it can be a program name with args.
3789set dummy $ac_prog; ac_word=$2
3790echo "$as_me:$LINENO: checking for $ac_word" >&5
3791echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3792if test "${ac_cv_prog_YACC+set}" = set; then
3793 echo $ECHO_N "(cached) $ECHO_C" >&6
3794else
3795 if test -n "$YACC"; then
3796 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3797else
3798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3799for as_dir in $PATH
3800do
3801 IFS=$as_save_IFS
3802 test -z "$as_dir" && as_dir=.
3803 for ac_exec_ext in '' $ac_executable_extensions; do
3804 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3805 ac_cv_prog_YACC="$ac_prog"
3806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3807 break 2
3808 fi
3809done
3810done
3811
3812fi
3813fi
3814YACC=$ac_cv_prog_YACC
3815if test -n "$YACC"; then
3816 echo "$as_me:$LINENO: result: $YACC" >&5
3817echo "${ECHO_T}$YACC" >&6
3818else
3819 echo "$as_me:$LINENO: result: no" >&5
3820echo "${ECHO_T}no" >&6
3821fi
3822
3823 test -n "$YACC" && break
3824done
3825test -n "$YACC" || YACC="yacc"
3826
3827
3828fi
3829echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3830echo "${ECHO_T}$ac_cv_has_bison" >&6
3831if test "$YACC" != "bison -y"; then
3832 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3833echo "$as_me: error: bison not found but required" >&2;}
3834 { (exit 1); exit 1; }; }
3835else
3836 YACC=bison
3837
3838fi
3839
3840
3841# Check whether --enable-shared or --disable-shared was given.
3842if test "${enable_shared+set}" = set; then
3843 enableval="$enable_shared"
3844 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003845 case $enableval in
3846 yes) enable_shared=yes ;;
3847 no) enable_shared=no ;;
3848 *)
3849 enable_shared=no
3850 # Look at the argument we got. We use all the common list separators.
3851 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3852 for pkg in $enableval; do
3853 IFS="$lt_save_ifs"
3854 if test "X$pkg" = "X$p"; then
3855 enable_shared=yes
3856 fi
3857 done
3858 IFS="$lt_save_ifs"
3859 ;;
3860 esac
John Criswell7a73b802003-06-30 21:59:07 +00003861else
3862 enable_shared=yes
3863fi;
John Criswell47fdd832003-07-14 16:52:07 +00003864
John Criswell7a73b802003-06-30 21:59:07 +00003865# Check whether --enable-static or --disable-static was given.
3866if test "${enable_static+set}" = set; then
3867 enableval="$enable_static"
3868 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003869 case $enableval in
3870 yes) enable_static=yes ;;
3871 no) enable_static=no ;;
3872 *)
3873 enable_static=no
3874 # Look at the argument we got. We use all the common list separators.
3875 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3876 for pkg in $enableval; do
3877 IFS="$lt_save_ifs"
3878 if test "X$pkg" = "X$p"; then
3879 enable_static=yes
3880 fi
3881 done
3882 IFS="$lt_save_ifs"
3883 ;;
3884 esac
John Criswell7a73b802003-06-30 21:59:07 +00003885else
3886 enable_static=yes
3887fi;
John Criswell47fdd832003-07-14 16:52:07 +00003888
John Criswell7a73b802003-06-30 21:59:07 +00003889# Check whether --enable-fast-install or --disable-fast-install was given.
3890if test "${enable_fast_install+set}" = set; then
3891 enableval="$enable_fast_install"
3892 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003893 case $enableval in
3894 yes) enable_fast_install=yes ;;
3895 no) enable_fast_install=no ;;
3896 *)
3897 enable_fast_install=no
3898 # Look at the argument we got. We use all the common list separators.
3899 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3900 for pkg in $enableval; do
3901 IFS="$lt_save_ifs"
3902 if test "X$pkg" = "X$p"; then
3903 enable_fast_install=yes
3904 fi
3905 done
3906 IFS="$lt_save_ifs"
3907 ;;
3908 esac
John Criswell7a73b802003-06-30 21:59:07 +00003909else
3910 enable_fast_install=yes
3911fi;
John Criswell47fdd832003-07-14 16:52:07 +00003912
3913echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3914echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3915if test "${lt_cv_path_SED+set}" = set; then
3916 echo $ECHO_N "(cached) $ECHO_C" >&6
3917else
3918 # Loop through the user's path and test for sed and gsed.
3919# Then use that list of sed's as ones to test for truncation.
3920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3921for as_dir in $PATH
3922do
3923 IFS=$as_save_IFS
3924 test -z "$as_dir" && as_dir=.
3925 for lt_ac_prog in sed gsed; do
3926 for ac_exec_ext in '' $ac_executable_extensions; do
3927 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3928 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3929 fi
3930 done
3931 done
3932done
3933lt_ac_max=0
3934lt_ac_count=0
3935# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3936# along with /bin/sed that truncates output.
3937for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3938 test ! -f $lt_ac_sed && break
3939 cat /dev/null > conftest.in
3940 lt_ac_count=0
3941 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3942 # Check for GNU sed and select it if it is found.
3943 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3944 lt_cv_path_SED=$lt_ac_sed
3945 break
3946 fi
3947 while true; do
3948 cat conftest.in conftest.in >conftest.tmp
3949 mv conftest.tmp conftest.in
3950 cp conftest.in conftest.nl
3951 echo >>conftest.nl
3952 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3953 cmp -s conftest.out conftest.nl || break
3954 # 10000 chars as input seems more than enough
3955 test $lt_ac_count -gt 10 && break
3956 lt_ac_count=`expr $lt_ac_count + 1`
3957 if test $lt_ac_count -gt $lt_ac_max; then
3958 lt_ac_max=$lt_ac_count
3959 lt_cv_path_SED=$lt_ac_sed
3960 fi
3961 done
3962done
3963SED=$lt_cv_path_SED
3964
John Criswell7a73b802003-06-30 21:59:07 +00003965fi
3966
John Criswell47fdd832003-07-14 16:52:07 +00003967echo "$as_me:$LINENO: result: $SED" >&5
3968echo "${ECHO_T}$SED" >&6
3969
3970echo "$as_me:$LINENO: checking for egrep" >&5
3971echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3972if test "${ac_cv_prog_egrep+set}" = set; then
3973 echo $ECHO_N "(cached) $ECHO_C" >&6
3974else
3975 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3976 then ac_cv_prog_egrep='grep -E'
3977 else ac_cv_prog_egrep='egrep'
3978 fi
3979fi
3980echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3981echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3982 EGREP=$ac_cv_prog_egrep
3983
3984
John Criswell7a73b802003-06-30 21:59:07 +00003985
3986# Check whether --with-gnu-ld or --without-gnu-ld was given.
3987if test "${with_gnu_ld+set}" = set; then
3988 withval="$with_gnu_ld"
3989 test "$withval" = no || with_gnu_ld=yes
3990else
3991 with_gnu_ld=no
3992fi;
3993ac_prog=ld
3994if test "$GCC" = yes; then
3995 # Check if gcc -print-prog-name=ld gives a path.
John Criswell47fdd832003-07-14 16:52:07 +00003996 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3997echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003998 case $host in
3999 *-*-mingw*)
4000 # gcc leaves a trailing carriage return which upsets mingw
4001 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4002 *)
4003 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4004 esac
4005 case $ac_prog in
4006 # Accept absolute paths.
John Criswell47fdd832003-07-14 16:52:07 +00004007 [\\/]* | ?:[\\/]*)
John Criswell7a73b802003-06-30 21:59:07 +00004008 re_direlt='/[^/][^/]*/\.\./'
4009 # Canonicalize the path of ld
John Criswell47fdd832003-07-14 16:52:07 +00004010 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
John Criswell7a73b802003-06-30 21:59:07 +00004011 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
John Criswell47fdd832003-07-14 16:52:07 +00004012 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
John Criswell7a73b802003-06-30 21:59:07 +00004013 done
4014 test -z "$LD" && LD="$ac_prog"
4015 ;;
4016 "")
4017 # If it fails, then pretend we aren't using GCC.
4018 ac_prog=ld
4019 ;;
4020 *)
4021 # If it is relative, then search for the first ld in PATH.
4022 with_gnu_ld=unknown
4023 ;;
4024 esac
4025elif test "$with_gnu_ld" = yes; then
4026 echo "$as_me:$LINENO: checking for GNU ld" >&5
4027echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4028else
4029 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4030echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4031fi
4032if test "${lt_cv_path_LD+set}" = set; then
4033 echo $ECHO_N "(cached) $ECHO_C" >&6
4034else
4035 if test -z "$LD"; then
John Criswell47fdd832003-07-14 16:52:07 +00004036 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00004037 for ac_dir in $PATH; do
John Criswell47fdd832003-07-14 16:52:07 +00004038 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004039 test -z "$ac_dir" && ac_dir=.
4040 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4041 lt_cv_path_LD="$ac_dir/$ac_prog"
4042 # Check to see if the program is GNU ld. I'd rather use --version,
4043 # but apparently some GNU ld's only accept -v.
4044 # Break only if it was the GNU/non-GNU ld that we prefer.
John Criswell47fdd832003-07-14 16:52:07 +00004045 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4046 *GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00004047 test "$with_gnu_ld" != no && break
John Criswell47fdd832003-07-14 16:52:07 +00004048 ;;
4049 *)
John Criswell7a73b802003-06-30 21:59:07 +00004050 test "$with_gnu_ld" != yes && break
John Criswell47fdd832003-07-14 16:52:07 +00004051 ;;
4052 esac
John Criswell7a73b802003-06-30 21:59:07 +00004053 fi
4054 done
John Criswell47fdd832003-07-14 16:52:07 +00004055 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004056else
4057 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4058fi
4059fi
4060
4061LD="$lt_cv_path_LD"
4062if test -n "$LD"; then
4063 echo "$as_me:$LINENO: result: $LD" >&5
4064echo "${ECHO_T}$LD" >&6
4065else
4066 echo "$as_me:$LINENO: result: no" >&5
4067echo "${ECHO_T}no" >&6
4068fi
4069test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4070echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4071 { (exit 1); exit 1; }; }
4072echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4073echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4074if test "${lt_cv_prog_gnu_ld+set}" = set; then
4075 echo $ECHO_N "(cached) $ECHO_C" >&6
4076else
4077 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +00004078case `"$LD" -v 2>&1 </dev/null` in
4079*GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00004080 lt_cv_prog_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +00004081 ;;
4082*)
John Criswell7a73b802003-06-30 21:59:07 +00004083 lt_cv_prog_gnu_ld=no
John Criswell47fdd832003-07-14 16:52:07 +00004084 ;;
4085esac
John Criswell7a73b802003-06-30 21:59:07 +00004086fi
4087echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4088echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4089with_gnu_ld=$lt_cv_prog_gnu_ld
4090
4091
4092echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4093echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4094if test "${lt_cv_ld_reload_flag+set}" = set; then
4095 echo $ECHO_N "(cached) $ECHO_C" >&6
4096else
4097 lt_cv_ld_reload_flag='-r'
4098fi
4099echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4100echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4101reload_flag=$lt_cv_ld_reload_flag
John Criswell47fdd832003-07-14 16:52:07 +00004102case $reload_flag in
4103"" | " "*) ;;
4104*) reload_flag=" $reload_flag" ;;
4105esac
4106reload_cmds='$LD$reload_flag -o $output$reload_objs'
John Criswell7a73b802003-06-30 21:59:07 +00004107
4108echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4109echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4110if test "${lt_cv_path_NM+set}" = set; then
4111 echo $ECHO_N "(cached) $ECHO_C" >&6
4112else
4113 if test -n "$NM"; then
4114 # Let the user override the test.
4115 lt_cv_path_NM="$NM"
4116else
John Criswell47fdd832003-07-14 16:52:07 +00004117 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00004118 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
John Criswell47fdd832003-07-14 16:52:07 +00004119 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004120 test -z "$ac_dir" && ac_dir=.
John Criswell47fdd832003-07-14 16:52:07 +00004121 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4122 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
John Criswell7a73b802003-06-30 21:59:07 +00004123 # Check to see if the nm accepts a BSD-compat flag.
4124 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4125 # nm: unknown option "B" ignored
4126 # Tru64's nm complains that /dev/null is an invalid object file
John Criswell47fdd832003-07-14 16:52:07 +00004127 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4128 */dev/null* | *'Invalid file or object type'*)
John Criswell7a73b802003-06-30 21:59:07 +00004129 lt_cv_path_NM="$tmp_nm -B"
4130 break
John Criswell47fdd832003-07-14 16:52:07 +00004131 ;;
4132 *)
4133 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4134 */dev/null*)
4135 lt_cv_path_NM="$tmp_nm -p"
4136 break
4137 ;;
4138 *)
4139 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4140 continue # so that we can try to find one that supports BSD flags
4141 ;;
4142 esac
4143 esac
John Criswell7a73b802003-06-30 21:59:07 +00004144 fi
4145 done
John Criswell47fdd832003-07-14 16:52:07 +00004146 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004147 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4148fi
4149fi
John Criswell47fdd832003-07-14 16:52:07 +00004150echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4151echo "${ECHO_T}$lt_cv_path_NM" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004152NM="$lt_cv_path_NM"
John Criswell7a73b802003-06-30 21:59:07 +00004153
4154echo "$as_me:$LINENO: checking whether ln -s works" >&5
4155echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4156LN_S=$as_ln_s
4157if test "$LN_S" = "ln -s"; then
4158 echo "$as_me:$LINENO: result: yes" >&5
4159echo "${ECHO_T}yes" >&6
4160else
4161 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4162echo "${ECHO_T}no, using $LN_S" >&6
4163fi
4164
John Criswell47fdd832003-07-14 16:52:07 +00004165echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4166echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004167if test "${lt_cv_deplibs_check_method+set}" = set; then
4168 echo $ECHO_N "(cached) $ECHO_C" >&6
4169else
4170 lt_cv_file_magic_cmd='$MAGIC_CMD'
4171lt_cv_file_magic_test_file=
4172lt_cv_deplibs_check_method='unknown'
4173# Need to set the preceding variable on all platforms that support
4174# interlibrary dependencies.
4175# 'none' -- dependencies not supported.
4176# `unknown' -- same as none, but documents that we really don't know.
4177# 'pass_all' -- all dependencies passed with no checks.
4178# 'test_compile' -- check by making test program.
4179# 'file_magic [[regex]]' -- check by looking for files in library path
John Criswell47fdd832003-07-14 16:52:07 +00004180# which responds to the $file_magic_cmd with a given extended regex.
John Criswell7a73b802003-06-30 21:59:07 +00004181# If you have `file' or equivalent on your system and you're not sure
4182# whether `pass_all' will *always* work, you probably want this one.
4183
4184case $host_os in
4185aix4* | aix5*)
4186 lt_cv_deplibs_check_method=pass_all
4187 ;;
4188
4189beos*)
4190 lt_cv_deplibs_check_method=pass_all
4191 ;;
4192
4193bsdi4*)
4194 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4195 lt_cv_file_magic_cmd='/usr/bin/file -L'
4196 lt_cv_file_magic_test_file=/shlib/libc.so
4197 ;;
4198
4199cygwin* | mingw* | pw32*)
John Criswell47fdd832003-07-14 16:52:07 +00004200 # win32_libid is a shell function defined in ltmain.sh
4201 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4202 lt_cv_file_magic_cmd='win32_libid'
John Criswell7a73b802003-06-30 21:59:07 +00004203 ;;
4204
4205darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +00004206 # this will be overwritten by pass_all, but leave it in just in case
John Criswell7a73b802003-06-30 21:59:07 +00004207 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4208 lt_cv_file_magic_cmd='/usr/bin/file -L'
4209 case "$host_os" in
4210 rhapsody* | darwin1.[012])
John Criswell47fdd832003-07-14 16:52:07 +00004211 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
John Criswell7a73b802003-06-30 21:59:07 +00004212 ;;
4213 *) # Darwin 1.3 on
4214 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4215 ;;
4216 esac
John Criswell47fdd832003-07-14 16:52:07 +00004217 lt_cv_deplibs_check_method=pass_all
John Criswell7a73b802003-06-30 21:59:07 +00004218 ;;
4219
4220freebsd*)
4221 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4222 case $host_cpu in
4223 i*86 )
4224 # Not sure whether the presence of OpenBSD here was a mistake.
4225 # Let's accept both of them until this is cleared up.
4226 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4227 lt_cv_file_magic_cmd=/usr/bin/file
4228 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4229 ;;
4230 esac
4231 else
4232 lt_cv_deplibs_check_method=pass_all
4233 fi
4234 ;;
4235
4236gnu*)
4237 lt_cv_deplibs_check_method=pass_all
4238 ;;
4239
John Criswell47fdd832003-07-14 16:52:07 +00004240hpux10.20* | hpux11*)
John Criswell7a73b802003-06-30 21:59:07 +00004241 lt_cv_file_magic_cmd=/usr/bin/file
John Criswell47fdd832003-07-14 16:52:07 +00004242 case "$host_cpu" in
4243 ia64*)
4244 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4245 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4246 ;;
4247 hppa*64*)
4248 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]'
4249 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4250 ;;
4251 *)
4252 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4253 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4254 ;;
4255 esac
John Criswell7a73b802003-06-30 21:59:07 +00004256 ;;
4257
John Criswell47fdd832003-07-14 16:52:07 +00004258irix5* | irix6* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00004259 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00004260 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00004261 # this will be overridden with pass_all, but let us keep it just in case
4262 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4263 ;;
4264 *)
4265 case $LD in
4266 *-32|*"-32 ") libmagic=32-bit;;
4267 *-n32|*"-n32 ") libmagic=N32;;
4268 *-64|*"-64 ") libmagic=64-bit;;
4269 *) libmagic=never-match;;
4270 esac
4271 # this will be overridden with pass_all, but let us keep it just in case
4272 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4273 ;;
4274 esac
4275 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4276 lt_cv_deplibs_check_method=pass_all
4277 ;;
4278
4279# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00004280linux*)
John Criswell7a73b802003-06-30 21:59:07 +00004281 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +00004282 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
John Criswell7a73b802003-06-30 21:59:07 +00004283 lt_cv_deplibs_check_method=pass_all ;;
4284 *)
4285 # glibc up to 2.1.1 does not perform some relocations on ARM
4286 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4287 esac
4288 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4289 ;;
4290
4291netbsd*)
4292 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00004293 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004294 else
John Criswell47fdd832003-07-14 16:52:07 +00004295 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004296 fi
4297 ;;
4298
4299newos6*)
4300 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4301 lt_cv_file_magic_cmd=/usr/bin/file
4302 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4303 ;;
4304
John Criswell47fdd832003-07-14 16:52:07 +00004305nto-qnx)
4306 lt_cv_deplibs_check_method=unknown
4307 ;;
4308
John Criswell7a73b802003-06-30 21:59:07 +00004309openbsd*)
4310 lt_cv_file_magic_cmd=/usr/bin/file
4311 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4312 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4313 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4314 else
4315 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4316 fi
4317 ;;
4318
4319osf3* | osf4* | osf5*)
4320 # this will be overridden with pass_all, but let us keep it just in case
4321 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4322 lt_cv_file_magic_test_file=/shlib/libc.so
4323 lt_cv_deplibs_check_method=pass_all
4324 ;;
4325
4326sco3.2v5*)
4327 lt_cv_deplibs_check_method=pass_all
4328 ;;
4329
4330solaris*)
4331 lt_cv_deplibs_check_method=pass_all
4332 lt_cv_file_magic_test_file=/lib/libc.so
4333 ;;
4334
John Criswell7a73b802003-06-30 21:59:07 +00004335sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4336 case $host_vendor in
4337 motorola)
4338 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]'
4339 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4340 ;;
4341 ncr)
4342 lt_cv_deplibs_check_method=pass_all
4343 ;;
4344 sequent)
4345 lt_cv_file_magic_cmd='/bin/file'
4346 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4347 ;;
4348 sni)
4349 lt_cv_file_magic_cmd='/bin/file'
4350 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4351 lt_cv_file_magic_test_file=/lib/libc.so
4352 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004353 siemens)
4354 lt_cv_deplibs_check_method=pass_all
4355 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004356 esac
4357 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004358
4359sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4360 lt_cv_deplibs_check_method=pass_all
4361 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004362esac
4363
4364fi
4365echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4366echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4367file_magic_cmd=$lt_cv_file_magic_cmd
4368deplibs_check_method=$lt_cv_deplibs_check_method
John Criswell47fdd832003-07-14 16:52:07 +00004369test -z "$deplibs_check_method" && deplibs_check_method=unknown
John Criswell7a73b802003-06-30 21:59:07 +00004370
4371
4372
4373
John Criswell47fdd832003-07-14 16:52:07 +00004374# If no C compiler was specified, use CC.
4375LTCC=${LTCC-"$CC"}
John Criswell7a73b802003-06-30 21:59:07 +00004376
John Criswell47fdd832003-07-14 16:52:07 +00004377# Allow CC to be a program name with arguments.
4378compiler=$CC
John Criswell7a73b802003-06-30 21:59:07 +00004379
John Criswell47fdd832003-07-14 16:52:07 +00004380# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4381if test "${enable_libtool_lock+set}" = set; then
4382 enableval="$enable_libtool_lock"
John Criswell7a73b802003-06-30 21:59:07 +00004383
John Criswell47fdd832003-07-14 16:52:07 +00004384fi;
4385test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
John Criswell7a73b802003-06-30 21:59:07 +00004386
John Criswell47fdd832003-07-14 16:52:07 +00004387# Some flags need to be propagated to the compiler or linker for good
4388# libtool support.
4389case $host in
4390ia64-*-hpux*)
4391 # Find out which ABI we are using.
4392 echo 'int i;' > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4394 (eval $ac_compile) 2>&5
4395 ac_status=$?
4396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397 (exit $ac_status); }; then
John Criswell47fdd832003-07-14 16:52:07 +00004398 case `/usr/bin/file conftest.$ac_objext` in
4399 *ELF-32*)
4400 HPUX_IA64_MODE="32"
4401 ;;
4402 *ELF-64*)
4403 HPUX_IA64_MODE="64"
4404 ;;
4405 esac
4406 fi
4407 rm -rf conftest*
4408 ;;
4409*-*-irix6*)
4410 # Find out which ABI we are using.
John Criswell4e079782003-09-29 14:52:28 +00004411 echo '#line 4411 "configure"' > conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00004412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4413 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004414 ac_status=$?
4415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004416 (exit $ac_status); }; then
4417 if test "$lt_cv_prog_gnu_ld" = yes; then
4418 case `/usr/bin/file conftest.$ac_objext` in
4419 *32-bit*)
4420 LD="${LD-ld} -melf32bsmip"
4421 ;;
4422 *N32*)
4423 LD="${LD-ld} -melf32bmipn32"
4424 ;;
4425 *64-bit*)
4426 LD="${LD-ld} -melf64bmip"
4427 ;;
4428 esac
4429 else
4430 case `/usr/bin/file conftest.$ac_objext` in
4431 *32-bit*)
4432 LD="${LD-ld} -32"
4433 ;;
4434 *N32*)
4435 LD="${LD-ld} -n32"
4436 ;;
4437 *64-bit*)
4438 LD="${LD-ld} -64"
4439 ;;
4440 esac
4441 fi
4442 fi
4443 rm -rf conftest*
4444 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004445
John Criswell47fdd832003-07-14 16:52:07 +00004446x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4447 # Find out which ABI we are using.
4448 echo 'int i;' > conftest.$ac_ext
4449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4450 (eval $ac_compile) 2>&5
4451 ac_status=$?
4452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453 (exit $ac_status); }; then
4454 case "`/usr/bin/file conftest.o`" in
4455 *32-bit*)
4456 case $host in
4457 x86_64-*linux*)
4458 LD="${LD-ld} -m elf_i386"
4459 ;;
4460 ppc64-*linux*)
4461 LD="${LD-ld} -m elf32ppclinux"
4462 ;;
4463 s390x-*linux*)
4464 LD="${LD-ld} -m elf_s390"
4465 ;;
4466 sparc64-*linux*)
4467 LD="${LD-ld} -m elf32_sparc"
4468 ;;
4469 esac
4470 ;;
4471 *64-bit*)
4472 case $host in
4473 x86_64-*linux*)
4474 LD="${LD-ld} -m elf_x86_64"
4475 ;;
4476 ppc*-*linux*|powerpc*-*linux*)
4477 LD="${LD-ld} -m elf64ppc"
4478 ;;
4479 s390*-*linux*)
4480 LD="${LD-ld} -m elf64_s390"
4481 ;;
4482 sparc*-*linux*)
4483 LD="${LD-ld} -m elf64_sparc"
4484 ;;
4485 esac
4486 ;;
4487 esac
4488 fi
4489 rm -rf conftest*
4490 ;;
4491
4492*-*-sco3.2v5*)
4493 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4494 SAVE_CFLAGS="$CFLAGS"
4495 CFLAGS="$CFLAGS -belf"
4496 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4497echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4498if test "${lt_cv_cc_needs_belf+set}" = set; then
4499 echo $ECHO_N "(cached) $ECHO_C" >&6
4500else
4501 ac_ext=c
4502ac_cpp='$CPP $CPPFLAGS'
4503ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4504ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4505ac_compiler_gnu=$ac_cv_c_compiler_gnu
4506
4507 cat >conftest.$ac_ext <<_ACEOF
4508#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004509/* confdefs.h. */
4510_ACEOF
4511cat confdefs.h >>conftest.$ac_ext
4512cat >>conftest.$ac_ext <<_ACEOF
4513/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004514
John Criswell47fdd832003-07-14 16:52:07 +00004515int
4516main ()
John Criswell7a73b802003-06-30 21:59:07 +00004517{
John Criswell7a73b802003-06-30 21:59:07 +00004518
John Criswell47fdd832003-07-14 16:52:07 +00004519 ;
4520 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004521}
John Criswell47fdd832003-07-14 16:52:07 +00004522_ACEOF
4523rm -f conftest.$ac_objext conftest$ac_exeext
4524if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
John Criswell7a73b802003-06-30 21:59:07 +00004525 (eval $ac_link) 2>&5
4526 ac_status=$?
4527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004528 (exit $ac_status); } &&
4529 { ac_try='test -s conftest$ac_exeext'
4530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4531 (eval $ac_try) 2>&5
4532 ac_status=$?
4533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534 (exit $ac_status); }; }; then
4535 lt_cv_cc_needs_belf=yes
John Criswell7a73b802003-06-30 21:59:07 +00004536else
John Criswell47fdd832003-07-14 16:52:07 +00004537 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004538sed 's/^/| /' conftest.$ac_ext >&5
4539
John Criswell47fdd832003-07-14 16:52:07 +00004540lt_cv_cc_needs_belf=no
John Criswell7a73b802003-06-30 21:59:07 +00004541fi
John Criswell47fdd832003-07-14 16:52:07 +00004542rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4543 ac_ext=c
4544ac_cpp='$CPP $CPPFLAGS'
4545ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4546ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4547ac_compiler_gnu=$ac_cv_c_compiler_gnu
4548
John Criswell7a73b802003-06-30 21:59:07 +00004549fi
John Criswell47fdd832003-07-14 16:52:07 +00004550echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4551echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4552 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4553 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4554 CFLAGS="$SAVE_CFLAGS"
4555 fi
4556 ;;
4557
4558esac
4559
4560need_locks="$enable_libtool_lock"
4561
John Criswell7a73b802003-06-30 21:59:07 +00004562
4563
4564echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4565echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4566if test "${ac_cv_header_stdc+set}" = set; then
4567 echo $ECHO_N "(cached) $ECHO_C" >&6
4568else
4569 cat >conftest.$ac_ext <<_ACEOF
4570#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004571/* confdefs.h. */
4572_ACEOF
4573cat confdefs.h >>conftest.$ac_ext
4574cat >>conftest.$ac_ext <<_ACEOF
4575/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004576#include <stdlib.h>
4577#include <stdarg.h>
4578#include <string.h>
4579#include <float.h>
4580
John Criswell0c38eaf2003-09-10 15:17:25 +00004581int
4582main ()
4583{
4584
4585 ;
4586 return 0;
4587}
John Criswell7a73b802003-06-30 21:59:07 +00004588_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004589rm -f conftest.$ac_objext
4590if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4591 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004592 ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00004593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004594 (exit $ac_status); } &&
4595 { ac_try='test -s conftest.$ac_objext'
4596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4597 (eval $ac_try) 2>&5
4598 ac_status=$?
4599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004601 ac_cv_header_stdc=yes
4602else
4603 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004604sed 's/^/| /' conftest.$ac_ext >&5
4605
4606ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004607fi
John Criswell0c38eaf2003-09-10 15:17:25 +00004608rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004609
4610if test $ac_cv_header_stdc = yes; then
4611 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4612 cat >conftest.$ac_ext <<_ACEOF
4613#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004614/* confdefs.h. */
4615_ACEOF
4616cat confdefs.h >>conftest.$ac_ext
4617cat >>conftest.$ac_ext <<_ACEOF
4618/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004619#include <string.h>
4620
4621_ACEOF
4622if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004623 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004624 :
4625else
4626 ac_cv_header_stdc=no
4627fi
4628rm -f conftest*
4629
4630fi
4631
4632if test $ac_cv_header_stdc = yes; then
4633 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4634 cat >conftest.$ac_ext <<_ACEOF
4635#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004636/* confdefs.h. */
4637_ACEOF
4638cat confdefs.h >>conftest.$ac_ext
4639cat >>conftest.$ac_ext <<_ACEOF
4640/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004641#include <stdlib.h>
4642
4643_ACEOF
4644if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004645 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004646 :
4647else
4648 ac_cv_header_stdc=no
4649fi
4650rm -f conftest*
4651
4652fi
4653
4654if test $ac_cv_header_stdc = yes; then
4655 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4656 if test "$cross_compiling" = yes; then
4657 :
4658else
4659 cat >conftest.$ac_ext <<_ACEOF
4660#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004661/* confdefs.h. */
4662_ACEOF
4663cat confdefs.h >>conftest.$ac_ext
4664cat >>conftest.$ac_ext <<_ACEOF
4665/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004666#include <ctype.h>
4667#if ((' ' & 0x0FF) == 0x020)
4668# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4669# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4670#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004671# define ISLOWER(c) \
4672 (('a' <= (c) && (c) <= 'i') \
John Criswell7a73b802003-06-30 21:59:07 +00004673 || ('j' <= (c) && (c) <= 'r') \
4674 || ('s' <= (c) && (c) <= 'z'))
4675# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4676#endif
4677
4678#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4679int
4680main ()
4681{
4682 int i;
4683 for (i = 0; i < 256; i++)
4684 if (XOR (islower (i), ISLOWER (i))
4685 || toupper (i) != TOUPPER (i))
4686 exit(2);
4687 exit (0);
4688}
4689_ACEOF
4690rm -f conftest$ac_exeext
4691if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4692 (eval $ac_link) 2>&5
4693 ac_status=$?
4694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4697 (eval $ac_try) 2>&5
4698 ac_status=$?
4699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700 (exit $ac_status); }; }; then
4701 :
4702else
4703 echo "$as_me: program exited with status $ac_status" >&5
4704echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004705sed 's/^/| /' conftest.$ac_ext >&5
4706
John Criswell7a73b802003-06-30 21:59:07 +00004707( exit $ac_status )
4708ac_cv_header_stdc=no
4709fi
John Criswell0c38eaf2003-09-10 15:17:25 +00004710rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004711fi
4712fi
4713fi
4714echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4715echo "${ECHO_T}$ac_cv_header_stdc" >&6
4716if test $ac_cv_header_stdc = yes; then
4717
4718cat >>confdefs.h <<\_ACEOF
4719#define STDC_HEADERS 1
4720_ACEOF
4721
4722fi
4723
4724# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4735 inttypes.h stdint.h unistd.h
4736do
4737as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4738echo "$as_me:$LINENO: checking for $ac_header" >&5
4739echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4740if eval "test \"\${$as_ac_Header+set}\" = set"; then
4741 echo $ECHO_N "(cached) $ECHO_C" >&6
4742else
4743 cat >conftest.$ac_ext <<_ACEOF
4744#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004745/* confdefs.h. */
4746_ACEOF
4747cat confdefs.h >>conftest.$ac_ext
4748cat >>conftest.$ac_ext <<_ACEOF
4749/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004750$ac_includes_default
4751
4752#include <$ac_header>
4753_ACEOF
4754rm -f conftest.$ac_objext
4755if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4756 (eval $ac_compile) 2>&5
4757 ac_status=$?
4758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759 (exit $ac_status); } &&
4760 { ac_try='test -s conftest.$ac_objext'
4761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4762 (eval $ac_try) 2>&5
4763 ac_status=$?
4764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765 (exit $ac_status); }; }; then
4766 eval "$as_ac_Header=yes"
4767else
4768 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004769sed 's/^/| /' conftest.$ac_ext >&5
4770
John Criswell7a73b802003-06-30 21:59:07 +00004771eval "$as_ac_Header=no"
4772fi
4773rm -f conftest.$ac_objext conftest.$ac_ext
4774fi
4775echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4776echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4777if test `eval echo '${'$as_ac_Header'}'` = yes; then
4778 cat >>confdefs.h <<_ACEOF
4779#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4780_ACEOF
4781
4782fi
4783
4784done
4785
4786
4787
4788for ac_header in dlfcn.h
4789do
4790as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4791if eval "test \"\${$as_ac_Header+set}\" = set"; then
4792 echo "$as_me:$LINENO: checking for $ac_header" >&5
4793echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4794if eval "test \"\${$as_ac_Header+set}\" = set"; then
4795 echo $ECHO_N "(cached) $ECHO_C" >&6
4796fi
4797echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4798echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4799else
4800 # Is the header compilable?
4801echo "$as_me:$LINENO: checking $ac_header usability" >&5
4802echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4803cat >conftest.$ac_ext <<_ACEOF
4804#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004805/* confdefs.h. */
4806_ACEOF
4807cat confdefs.h >>conftest.$ac_ext
4808cat >>conftest.$ac_ext <<_ACEOF
4809/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004810$ac_includes_default
4811#include <$ac_header>
4812_ACEOF
4813rm -f conftest.$ac_objext
4814if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4815 (eval $ac_compile) 2>&5
4816 ac_status=$?
4817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818 (exit $ac_status); } &&
4819 { ac_try='test -s conftest.$ac_objext'
4820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4821 (eval $ac_try) 2>&5
4822 ac_status=$?
4823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824 (exit $ac_status); }; }; then
4825 ac_header_compiler=yes
4826else
4827 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004828sed 's/^/| /' conftest.$ac_ext >&5
4829
John Criswell7a73b802003-06-30 21:59:07 +00004830ac_header_compiler=no
4831fi
4832rm -f conftest.$ac_objext conftest.$ac_ext
4833echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4834echo "${ECHO_T}$ac_header_compiler" >&6
4835
4836# Is the header present?
4837echo "$as_me:$LINENO: checking $ac_header presence" >&5
4838echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4839cat >conftest.$ac_ext <<_ACEOF
4840#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004841/* confdefs.h. */
4842_ACEOF
4843cat confdefs.h >>conftest.$ac_ext
4844cat >>conftest.$ac_ext <<_ACEOF
4845/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004846#include <$ac_header>
4847_ACEOF
4848if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4849 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4850 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004851 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004852 rm -f conftest.er1
4853 cat conftest.err >&5
4854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4855 (exit $ac_status); } >/dev/null; then
4856 if test -s conftest.err; then
4857 ac_cpp_err=$ac_c_preproc_warn_flag
4858 else
4859 ac_cpp_err=
4860 fi
4861else
4862 ac_cpp_err=yes
4863fi
4864if test -z "$ac_cpp_err"; then
4865 ac_header_preproc=yes
4866else
4867 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004868sed 's/^/| /' conftest.$ac_ext >&5
4869
John Criswell7a73b802003-06-30 21:59:07 +00004870 ac_header_preproc=no
4871fi
4872rm -f conftest.err conftest.$ac_ext
4873echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4874echo "${ECHO_T}$ac_header_preproc" >&6
4875
4876# So? What about this header?
4877case $ac_header_compiler:$ac_header_preproc in
4878 yes:no )
4879 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4880echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4881 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004882echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4883 (
4884 cat <<\_ASBOX
4885## ------------------------------------ ##
4886## Report this to bug-autoconf@gnu.org. ##
4887## ------------------------------------ ##
4888_ASBOX
4889 ) |
4890 sed "s/^/$as_me: WARNING: /" >&2
4891 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004892 no:yes )
4893 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4894echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4895 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4896echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4897 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004898echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4899 (
4900 cat <<\_ASBOX
4901## ------------------------------------ ##
4902## Report this to bug-autoconf@gnu.org. ##
4903## ------------------------------------ ##
4904_ASBOX
4905 ) |
4906 sed "s/^/$as_me: WARNING: /" >&2
4907 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004908esac
4909echo "$as_me:$LINENO: checking for $ac_header" >&5
4910echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4911if eval "test \"\${$as_ac_Header+set}\" = set"; then
4912 echo $ECHO_N "(cached) $ECHO_C" >&6
4913else
4914 eval "$as_ac_Header=$ac_header_preproc"
4915fi
4916echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4917echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4918
4919fi
4920if test `eval echo '${'$as_ac_Header'}'` = yes; then
4921 cat >>confdefs.h <<_ACEOF
4922#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4923_ACEOF
4924
4925fi
4926
4927done
4928
John Criswell47fdd832003-07-14 16:52:07 +00004929ac_ext=cc
4930ac_cpp='$CXXCPP $CPPFLAGS'
4931ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4932ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4933ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4934echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4935echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4936if test -z "$CXXCPP"; then
4937 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004938 echo $ECHO_N "(cached) $ECHO_C" >&6
4939else
John Criswell47fdd832003-07-14 16:52:07 +00004940 # Double quotes because CXXCPP needs to be expanded
4941 for CXXCPP in "$CXX -E" "/lib/cpp"
4942 do
4943 ac_preproc_ok=false
4944for ac_cxx_preproc_warn_flag in '' yes
4945do
4946 # Use a header file that comes with gcc, so configuring glibc
4947 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00004948 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4949 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00004950 # On the NeXT, cc -E runs the code through the compiler's parser,
4951 # not just through cpp. "Syntax error" is here to catch this case.
4952 cat >conftest.$ac_ext <<_ACEOF
4953#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004954/* confdefs.h. */
4955_ACEOF
4956cat confdefs.h >>conftest.$ac_ext
4957cat >>conftest.$ac_ext <<_ACEOF
4958/* end confdefs.h. */
4959#ifdef __STDC__
4960# include <limits.h>
4961#else
4962# include <assert.h>
4963#endif
John Criswell47fdd832003-07-14 16:52:07 +00004964 Syntax error
4965_ACEOF
4966if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4967 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4968 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004969 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004970 rm -f conftest.er1
4971 cat conftest.err >&5
4972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973 (exit $ac_status); } >/dev/null; then
4974 if test -s conftest.err; then
4975 ac_cpp_err=$ac_cxx_preproc_warn_flag
John Criswell7a73b802003-06-30 21:59:07 +00004976 else
John Criswell47fdd832003-07-14 16:52:07 +00004977 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +00004978 fi
John Criswell47fdd832003-07-14 16:52:07 +00004979else
4980 ac_cpp_err=yes
4981fi
4982if test -z "$ac_cpp_err"; then
4983 :
4984else
4985 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004986sed 's/^/| /' conftest.$ac_ext >&5
4987
John Criswell47fdd832003-07-14 16:52:07 +00004988 # Broken: fails on valid input.
4989continue
4990fi
4991rm -f conftest.err conftest.$ac_ext
4992
4993 # OK, works on sane cases. Now check whether non-existent headers
4994 # can be detected and how.
4995 cat >conftest.$ac_ext <<_ACEOF
4996#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004997/* confdefs.h. */
4998_ACEOF
4999cat confdefs.h >>conftest.$ac_ext
5000cat >>conftest.$ac_ext <<_ACEOF
5001/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00005002#include <ac_nonexistent.h>
5003_ACEOF
5004if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5005 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5006 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00005007 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00005008 rm -f conftest.er1
5009 cat conftest.err >&5
5010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011 (exit $ac_status); } >/dev/null; then
5012 if test -s conftest.err; then
5013 ac_cpp_err=$ac_cxx_preproc_warn_flag
5014 else
5015 ac_cpp_err=
5016 fi
5017else
5018 ac_cpp_err=yes
5019fi
5020if test -z "$ac_cpp_err"; then
5021 # Broken: success on invalid input.
5022continue
5023else
5024 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005025sed 's/^/| /' conftest.$ac_ext >&5
5026
John Criswell47fdd832003-07-14 16:52:07 +00005027 # Passes both tests.
5028ac_preproc_ok=:
5029break
5030fi
5031rm -f conftest.err conftest.$ac_ext
5032
5033done
5034# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5035rm -f conftest.err conftest.$ac_ext
5036if $ac_preproc_ok; then
5037 break
John Criswell7a73b802003-06-30 21:59:07 +00005038fi
5039
John Criswell47fdd832003-07-14 16:52:07 +00005040 done
5041 ac_cv_prog_CXXCPP=$CXXCPP
5042
5043fi
5044 CXXCPP=$ac_cv_prog_CXXCPP
5045else
5046 ac_cv_prog_CXXCPP=$CXXCPP
5047fi
5048echo "$as_me:$LINENO: result: $CXXCPP" >&5
5049echo "${ECHO_T}$CXXCPP" >&6
5050ac_preproc_ok=false
5051for ac_cxx_preproc_warn_flag in '' yes
5052do
5053 # Use a header file that comes with gcc, so configuring glibc
5054 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00005055 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5056 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00005057 # On the NeXT, cc -E runs the code through the compiler's parser,
5058 # not just through cpp. "Syntax error" is here to catch this case.
5059 cat >conftest.$ac_ext <<_ACEOF
5060#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00005061/* confdefs.h. */
5062_ACEOF
5063cat confdefs.h >>conftest.$ac_ext
5064cat >>conftest.$ac_ext <<_ACEOF
5065/* end confdefs.h. */
5066#ifdef __STDC__
5067# include <limits.h>
5068#else
5069# include <assert.h>
5070#endif
John Criswell47fdd832003-07-14 16:52:07 +00005071 Syntax error
5072_ACEOF
5073if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5074 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5075 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00005076 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00005077 rm -f conftest.er1
5078 cat conftest.err >&5
5079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080 (exit $ac_status); } >/dev/null; then
5081 if test -s conftest.err; then
5082 ac_cpp_err=$ac_cxx_preproc_warn_flag
5083 else
5084 ac_cpp_err=
5085 fi
5086else
5087 ac_cpp_err=yes
5088fi
5089if test -z "$ac_cpp_err"; then
5090 :
5091else
5092 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005093sed 's/^/| /' conftest.$ac_ext >&5
5094
John Criswell47fdd832003-07-14 16:52:07 +00005095 # Broken: fails on valid input.
5096continue
5097fi
5098rm -f conftest.err conftest.$ac_ext
5099
5100 # OK, works on sane cases. Now check whether non-existent headers
5101 # can be detected and how.
5102 cat >conftest.$ac_ext <<_ACEOF
5103#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00005104/* confdefs.h. */
5105_ACEOF
5106cat confdefs.h >>conftest.$ac_ext
5107cat >>conftest.$ac_ext <<_ACEOF
5108/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00005109#include <ac_nonexistent.h>
5110_ACEOF
5111if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5112 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5113 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00005114 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00005115 rm -f conftest.er1
5116 cat conftest.err >&5
5117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118 (exit $ac_status); } >/dev/null; then
5119 if test -s conftest.err; then
5120 ac_cpp_err=$ac_cxx_preproc_warn_flag
5121 else
5122 ac_cpp_err=
5123 fi
5124else
5125 ac_cpp_err=yes
5126fi
5127if test -z "$ac_cpp_err"; then
5128 # Broken: success on invalid input.
5129continue
5130else
5131 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005132sed 's/^/| /' conftest.$ac_ext >&5
5133
John Criswell47fdd832003-07-14 16:52:07 +00005134 # Passes both tests.
5135ac_preproc_ok=:
5136break
5137fi
5138rm -f conftest.err conftest.$ac_ext
5139
5140done
5141# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5142rm -f conftest.err conftest.$ac_ext
5143if $ac_preproc_ok; then
5144 :
5145else
John Criswell0c38eaf2003-09-10 15:17:25 +00005146 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5147See \`config.log' for more details." >&5
5148echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5149See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +00005150 { (exit 1); exit 1; }; }
5151fi
5152
5153ac_ext=cc
5154ac_cpp='$CXXCPP $CPPFLAGS'
5155ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5156ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5157ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5158
5159
5160ac_ext=f
5161ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5162ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5163ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5164if test -n "$ac_tool_prefix"; then
John Criswell0c38eaf2003-09-10 15:17:25 +00005165 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 +00005166 do
5167 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5168set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5169echo "$as_me:$LINENO: checking for $ac_word" >&5
5170echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5171if test "${ac_cv_prog_F77+set}" = set; then
5172 echo $ECHO_N "(cached) $ECHO_C" >&6
5173else
5174 if test -n "$F77"; then
5175 ac_cv_prog_F77="$F77" # Let the user override the test.
5176else
5177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5178for as_dir in $PATH
5179do
5180 IFS=$as_save_IFS
5181 test -z "$as_dir" && as_dir=.
5182 for ac_exec_ext in '' $ac_executable_extensions; do
5183 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5184 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5186 break 2
5187 fi
5188done
5189done
5190
5191fi
5192fi
5193F77=$ac_cv_prog_F77
5194if test -n "$F77"; then
5195 echo "$as_me:$LINENO: result: $F77" >&5
5196echo "${ECHO_T}$F77" >&6
5197else
5198 echo "$as_me:$LINENO: result: no" >&5
5199echo "${ECHO_T}no" >&6
5200fi
5201
5202 test -n "$F77" && break
5203 done
5204fi
5205if test -z "$F77"; then
5206 ac_ct_F77=$F77
John Criswell0c38eaf2003-09-10 15:17:25 +00005207 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 +00005208do
5209 # Extract the first word of "$ac_prog", so it can be a program name with args.
5210set dummy $ac_prog; ac_word=$2
5211echo "$as_me:$LINENO: checking for $ac_word" >&5
5212echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5213if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5214 echo $ECHO_N "(cached) $ECHO_C" >&6
5215else
5216 if test -n "$ac_ct_F77"; then
5217 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5218else
5219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5220for as_dir in $PATH
5221do
5222 IFS=$as_save_IFS
5223 test -z "$as_dir" && as_dir=.
5224 for ac_exec_ext in '' $ac_executable_extensions; do
5225 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5226 ac_cv_prog_ac_ct_F77="$ac_prog"
5227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5228 break 2
5229 fi
5230done
5231done
5232
5233fi
5234fi
5235ac_ct_F77=$ac_cv_prog_ac_ct_F77
5236if test -n "$ac_ct_F77"; then
5237 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5238echo "${ECHO_T}$ac_ct_F77" >&6
5239else
5240 echo "$as_me:$LINENO: result: no" >&5
5241echo "${ECHO_T}no" >&6
5242fi
5243
5244 test -n "$ac_ct_F77" && break
5245done
5246
5247 F77=$ac_ct_F77
5248fi
5249
5250
5251# Provide some information about the compiler.
John Criswell4e079782003-09-29 14:52:28 +00005252echo "$as_me:5252:" \
John Criswell47fdd832003-07-14 16:52:07 +00005253 "checking for Fortran 77 compiler version" >&5
5254ac_compiler=`set X $ac_compile; echo $2`
5255{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5256 (eval $ac_compiler --version </dev/null >&5) 2>&5
5257 ac_status=$?
5258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259 (exit $ac_status); }
5260{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5261 (eval $ac_compiler -v </dev/null >&5) 2>&5
5262 ac_status=$?
5263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5264 (exit $ac_status); }
5265{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5266 (eval $ac_compiler -V </dev/null >&5) 2>&5
5267 ac_status=$?
5268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269 (exit $ac_status); }
5270
5271# If we don't use `.F' as extension, the preprocessor is not run on the
5272# input file.
5273ac_save_ext=$ac_ext
5274ac_ext=F
5275echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5276echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5277if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5278 echo $ECHO_N "(cached) $ECHO_C" >&6
5279else
5280 cat >conftest.$ac_ext <<_ACEOF
5281 program main
5282#ifndef __GNUC__
5283 choke me
5284#endif
5285
5286 end
5287_ACEOF
5288rm -f conftest.$ac_objext
5289if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5290 (eval $ac_compile) 2>&5
5291 ac_status=$?
5292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293 (exit $ac_status); } &&
5294 { ac_try='test -s conftest.$ac_objext'
5295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5296 (eval $ac_try) 2>&5
5297 ac_status=$?
5298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299 (exit $ac_status); }; }; then
5300 ac_compiler_gnu=yes
5301else
5302 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005303sed 's/^/| /' conftest.$ac_ext >&5
5304
John Criswell47fdd832003-07-14 16:52:07 +00005305ac_compiler_gnu=no
5306fi
5307rm -f conftest.$ac_objext conftest.$ac_ext
5308ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5309
5310fi
5311echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5312echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5313ac_ext=$ac_save_ext
5314G77=`test $ac_compiler_gnu = yes && echo yes`
5315ac_test_FFLAGS=${FFLAGS+set}
5316ac_save_FFLAGS=$FFLAGS
5317FFLAGS=
5318echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5319echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5320if test "${ac_cv_prog_f77_g+set}" = set; then
5321 echo $ECHO_N "(cached) $ECHO_C" >&6
5322else
5323 FFLAGS=-g
5324cat >conftest.$ac_ext <<_ACEOF
5325 program main
5326
5327 end
5328_ACEOF
5329rm -f conftest.$ac_objext
5330if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5331 (eval $ac_compile) 2>&5
5332 ac_status=$?
5333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334 (exit $ac_status); } &&
5335 { ac_try='test -s conftest.$ac_objext'
5336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5337 (eval $ac_try) 2>&5
5338 ac_status=$?
5339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340 (exit $ac_status); }; }; then
5341 ac_cv_prog_f77_g=yes
5342else
5343 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005344sed 's/^/| /' conftest.$ac_ext >&5
5345
John Criswell47fdd832003-07-14 16:52:07 +00005346ac_cv_prog_f77_g=no
5347fi
5348rm -f conftest.$ac_objext conftest.$ac_ext
5349
5350fi
5351echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5352echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5353if test "$ac_test_FFLAGS" = set; then
5354 FFLAGS=$ac_save_FFLAGS
5355elif test $ac_cv_prog_f77_g = yes; then
5356 if test "$G77" = yes; then
5357 FFLAGS="-g -O2"
5358 else
5359 FFLAGS="-g"
5360 fi
5361else
5362 if test "$G77" = yes; then
5363 FFLAGS="-O2"
5364 else
5365 FFLAGS=
5366 fi
5367fi
5368ac_ext=c
5369ac_cpp='$CPP $CPPFLAGS'
5370ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5371ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5372ac_compiler_gnu=$ac_cv_c_compiler_gnu
5373
5374
5375
5376# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5377
5378# find the maximum length of command line arguments
5379echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5380echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5381if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5382 echo $ECHO_N "(cached) $ECHO_C" >&6
5383else
5384 i=0
5385 testring="ABCD"
5386
5387 case $build_os in
5388 msdosdjgpp*)
5389 # On DJGPP, this test can blow up pretty badly due to problems in libc
5390 # (any single argument exceeding 2000 bytes causes a buffer overrun
5391 # during glob expansion). Even if it were fixed, the result of this
5392 # check would be larger than it should be.
5393 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5394 ;;
5395
5396 gnu*)
5397 # Under GNU Hurd, this test is not required because there is
5398 # no limit to the length of command line arguments.
5399 # Libtool will interpret -1 as no limit whatsoever
5400 lt_cv_sys_max_cmd_len=-1;
5401 ;;
5402
5403 cygwin* | mingw*)
5404 # On Win9x/ME, this test blows up -- it succeeds, but takes
5405 # about 5 minutes as the teststring grows exponentially.
5406 # Worse, since 9x/ME are not pre-emptively multitasking,
5407 # you end up with a "frozen" computer, even though with patience
5408 # the test eventually succeeds (with a max line length of 256k).
5409 # Instead, let's just punt: use the minimum linelength reported by
5410 # all of the supported platforms: 8192 (on NT/2K/XP).
5411 lt_cv_sys_max_cmd_len=8192;
5412 ;;
5413
5414 *)
5415 # If test is not a shell built-in, we'll probably end up computing a
5416 # maximum length that is only half of the actual maximum length, but
5417 # we can't tell.
5418 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5419 = "XX$testring") >/dev/null 2>&1 &&
5420 new_result=`expr "X$testring" : ".*" 2>&1` &&
5421 lt_cv_sys_max_cmd_len=$new_result &&
5422 test $i != 17 # 1/2 MB should be enough
5423 do
5424 i=`expr $i + 1`
5425 testring=$testring$testring
5426 done
5427 testring=
5428 # Add a significant safety factor because C++ compilers can tack on massive
5429 # amounts of additional arguments before passing them to the linker.
5430 # It appears as though 1/2 is a usable value.
5431 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5432 ;;
5433 esac
5434
5435fi
5436
5437if test -n $lt_cv_sys_max_cmd_len ; then
5438 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5439echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5440else
5441 echo "$as_me:$LINENO: result: none" >&5
5442echo "${ECHO_T}none" >&6
5443fi
5444
5445
5446
5447
5448# Check for command to grab the raw symbol name followed by C symbol from nm.
5449echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5450echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5451if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5452 echo $ECHO_N "(cached) $ECHO_C" >&6
5453else
5454
5455# These are sane defaults that work on at least a few old systems.
5456# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5457
5458# Character class describing NM global symbol codes.
5459symcode='[BCDEGRST]'
5460
5461# Regexp to match symbols that can be accessed directly from C.
5462sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5463
5464# Transform the above into a raw symbol and a C symbol.
5465symxfrm='\1 \2\3 \3'
5466
5467# Transform an extracted symbol line into a proper C declaration
5468lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5469
5470# Transform an extracted symbol line into symbol name and symbol address
5471lt_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
5473# Define system-specific variables.
5474case $host_os in
5475aix*)
5476 symcode='[BCDT]'
5477 ;;
5478cygwin* | mingw* | pw32*)
5479 symcode='[ABCDGISTW]'
5480 ;;
5481hpux*) # Its linker distinguishes data from code symbols
5482 if test "$host_cpu" = ia64; then
5483 symcode='[ABCDEGRST]'
5484 fi
5485 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5486 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'"
5487 ;;
5488irix* | nonstopux*)
5489 symcode='[BCDEGRST]'
5490 ;;
5491osf*)
5492 symcode='[BCDEGQRST]'
5493 ;;
5494solaris* | sysv5*)
5495 symcode='[BDT]'
5496 ;;
5497sysv4)
5498 symcode='[DFNSTU]'
5499 ;;
5500esac
5501
5502# Handle CRLF in mingw tool chain
5503opt_cr=
5504case $build_os in
5505mingw*)
5506 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5507 ;;
5508esac
5509
5510# If we're using GNU nm, then use its standard symbol codes.
5511case `$NM -V 2>&1` in
5512*GNU* | *'with BFD'*)
5513 symcode='[ABCDGISTW]' ;;
5514esac
5515
5516# Try without a prefix undercore, then with it.
5517for ac_symprfx in "" "_"; do
5518
5519 # Write the raw and C identifiers.
5520 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5521
5522 # Check to see that the pipe works correctly.
5523 pipe_works=no
5524
5525 rm -f conftest*
5526 cat > conftest.$ac_ext <<EOF
5527#ifdef __cplusplus
5528extern "C" {
5529#endif
5530char nm_test_var;
5531void nm_test_func(){}
5532#ifdef __cplusplus
5533}
5534#endif
5535int main(){nm_test_var='a';nm_test_func();return(0);}
5536EOF
5537
5538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5539 (eval $ac_compile) 2>&5
5540 ac_status=$?
5541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542 (exit $ac_status); }; then
5543 # Now try to grab the symbols.
5544 nlist=conftest.nm
5545 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5546 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5547 ac_status=$?
5548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549 (exit $ac_status); } && test -s "$nlist"; then
5550 # Try sorting and uniquifying the output.
5551 if sort "$nlist" | uniq > "$nlist"T; then
5552 mv -f "$nlist"T "$nlist"
5553 else
5554 rm -f "$nlist"T
5555 fi
5556
5557 # Make sure that we snagged all the symbols we need.
5558 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5559 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5560 cat <<EOF > conftest.$ac_ext
5561#ifdef __cplusplus
5562extern "C" {
5563#endif
5564
5565EOF
5566 # Now generate the symbol file.
5567 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5568
5569 cat <<EOF >> conftest.$ac_ext
5570#if defined (__STDC__) && __STDC__
5571# define lt_ptr_t void *
5572#else
5573# define lt_ptr_t char *
5574# define const
5575#endif
5576
5577/* The mapping between symbol names and symbols. */
5578const struct {
5579 const char *name;
5580 lt_ptr_t address;
5581}
5582lt_preloaded_symbols[] =
5583{
5584EOF
5585 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5586 cat <<\EOF >> conftest.$ac_ext
5587 {0, (lt_ptr_t) 0}
5588};
5589
5590#ifdef __cplusplus
5591}
5592#endif
5593EOF
5594 # Now try linking the two files.
5595 mv conftest.$ac_objext conftstm.$ac_objext
5596 lt_save_LIBS="$LIBS"
5597 lt_save_CFLAGS="$CFLAGS"
5598 LIBS="conftstm.$ac_objext"
5599 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5601 (eval $ac_link) 2>&5
5602 ac_status=$?
5603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5605 pipe_works=yes
5606 fi
5607 LIBS="$lt_save_LIBS"
5608 CFLAGS="$lt_save_CFLAGS"
5609 else
5610 echo "cannot find nm_test_func in $nlist" >&5
5611 fi
5612 else
5613 echo "cannot find nm_test_var in $nlist" >&5
5614 fi
5615 else
5616 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5617 fi
5618 else
5619 echo "$progname: failed program was:" >&5
5620 cat conftest.$ac_ext >&5
5621 fi
5622 rm -f conftest* conftst*
5623
5624 # Do not use the global_symbol_pipe unless it works.
5625 if test "$pipe_works" = yes; then
5626 break
5627 else
5628 lt_cv_sys_global_symbol_pipe=
5629 fi
5630done
5631
5632fi
5633
5634if test -z "$lt_cv_sys_global_symbol_pipe"; then
5635 lt_cv_sys_global_symbol_to_cdecl=
5636fi
5637if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5638 echo "$as_me:$LINENO: result: failed" >&5
5639echo "${ECHO_T}failed" >&6
5640else
5641 echo "$as_me:$LINENO: result: ok" >&5
5642echo "${ECHO_T}ok" >&6
5643fi
5644
5645echo "$as_me:$LINENO: checking for objdir" >&5
5646echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5647if test "${lt_cv_objdir+set}" = set; then
5648 echo $ECHO_N "(cached) $ECHO_C" >&6
5649else
5650 rm -f .libs 2>/dev/null
5651mkdir .libs 2>/dev/null
5652if test -d .libs; then
5653 lt_cv_objdir=.libs
5654else
5655 # MS-DOS does not allow filenames that begin with a dot.
5656 lt_cv_objdir=_libs
5657fi
5658rmdir .libs 2>/dev/null
5659fi
5660echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5661echo "${ECHO_T}$lt_cv_objdir" >&6
5662objdir=$lt_cv_objdir
5663
5664
5665
5666
5667
5668case $host_os in
5669aix3*)
5670 # AIX sometimes has problems with the GCC collect2 program. For some
5671 # reason, if we set the COLLECT_NAMES environment variable, the problems
5672 # vanish in a puff of smoke.
5673 if test "X${COLLECT_NAMES+set}" != Xset; then
5674 COLLECT_NAMES=
5675 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +00005676 fi
5677 ;;
5678esac
5679
John Criswell47fdd832003-07-14 16:52:07 +00005680# Sed substitution that helps us do robust quoting. It backslashifies
5681# metacharacters that are still active within double-quoted strings.
5682Xsed='sed -e s/^X//'
5683sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5684
5685# Same as above, but do not quote variable references.
5686double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5687
5688# Sed substitution to delay expansion of an escaped shell variable in a
5689# double_quote_subst'ed string.
5690delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5691
5692# Sed substitution to avoid accidental globbing in evaled expressions
5693no_glob_subst='s/\*/\\\*/g'
5694
5695# Constants:
5696rm="rm -f"
5697
5698# Global variables:
John Criswell8d4221e2003-07-23 16:52:50 +00005699default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +00005700can_build_shared=yes
5701
5702# All known linkers require a `.a' archive for static linking (except M$VC,
5703# which needs '.lib').
5704libext=a
5705ltmain="$ac_aux_dir/ltmain.sh"
5706ofile="$default_ofile"
5707with_gnu_ld="$lt_cv_prog_gnu_ld"
5708
5709if test -n "$ac_tool_prefix"; then
5710 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5711set dummy ${ac_tool_prefix}ar; ac_word=$2
5712echo "$as_me:$LINENO: checking for $ac_word" >&5
5713echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5714if test "${ac_cv_prog_AR+set}" = set; then
5715 echo $ECHO_N "(cached) $ECHO_C" >&6
5716else
5717 if test -n "$AR"; then
5718 ac_cv_prog_AR="$AR" # Let the user override the test.
5719else
5720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5721for as_dir in $PATH
5722do
5723 IFS=$as_save_IFS
5724 test -z "$as_dir" && as_dir=.
5725 for ac_exec_ext in '' $ac_executable_extensions; do
5726 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5727 ac_cv_prog_AR="${ac_tool_prefix}ar"
5728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5729 break 2
5730 fi
5731done
5732done
5733
5734fi
5735fi
5736AR=$ac_cv_prog_AR
5737if test -n "$AR"; then
5738 echo "$as_me:$LINENO: result: $AR" >&5
5739echo "${ECHO_T}$AR" >&6
5740else
5741 echo "$as_me:$LINENO: result: no" >&5
5742echo "${ECHO_T}no" >&6
5743fi
5744
5745fi
5746if test -z "$ac_cv_prog_AR"; then
5747 ac_ct_AR=$AR
5748 # Extract the first word of "ar", so it can be a program name with args.
5749set dummy ar; ac_word=$2
5750echo "$as_me:$LINENO: checking for $ac_word" >&5
5751echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5752if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5753 echo $ECHO_N "(cached) $ECHO_C" >&6
5754else
5755 if test -n "$ac_ct_AR"; then
5756 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5757else
5758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5759for as_dir in $PATH
5760do
5761 IFS=$as_save_IFS
5762 test -z "$as_dir" && as_dir=.
5763 for ac_exec_ext in '' $ac_executable_extensions; do
5764 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5765 ac_cv_prog_ac_ct_AR="ar"
5766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5767 break 2
5768 fi
5769done
5770done
5771
5772 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5773fi
5774fi
5775ac_ct_AR=$ac_cv_prog_ac_ct_AR
5776if test -n "$ac_ct_AR"; then
5777 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5778echo "${ECHO_T}$ac_ct_AR" >&6
5779else
5780 echo "$as_me:$LINENO: result: no" >&5
5781echo "${ECHO_T}no" >&6
5782fi
5783
5784 AR=$ac_ct_AR
5785else
5786 AR="$ac_cv_prog_AR"
5787fi
5788
John Criswell7a73b802003-06-30 21:59:07 +00005789if test -n "$ac_tool_prefix"; then
5790 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5791set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5792echo "$as_me:$LINENO: checking for $ac_word" >&5
5793echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5794if test "${ac_cv_prog_RANLIB+set}" = set; then
5795 echo $ECHO_N "(cached) $ECHO_C" >&6
5796else
5797 if test -n "$RANLIB"; then
5798 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5799else
5800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5801for as_dir in $PATH
5802do
5803 IFS=$as_save_IFS
5804 test -z "$as_dir" && as_dir=.
5805 for ac_exec_ext in '' $ac_executable_extensions; do
5806 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5807 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5809 break 2
5810 fi
5811done
5812done
5813
5814fi
5815fi
5816RANLIB=$ac_cv_prog_RANLIB
5817if test -n "$RANLIB"; then
5818 echo "$as_me:$LINENO: result: $RANLIB" >&5
5819echo "${ECHO_T}$RANLIB" >&6
5820else
5821 echo "$as_me:$LINENO: result: no" >&5
5822echo "${ECHO_T}no" >&6
5823fi
5824
5825fi
5826if test -z "$ac_cv_prog_RANLIB"; then
5827 ac_ct_RANLIB=$RANLIB
5828 # Extract the first word of "ranlib", so it can be a program name with args.
5829set dummy ranlib; ac_word=$2
5830echo "$as_me:$LINENO: checking for $ac_word" >&5
5831echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5832if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5833 echo $ECHO_N "(cached) $ECHO_C" >&6
5834else
5835 if test -n "$ac_ct_RANLIB"; then
5836 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5837else
5838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5839for as_dir in $PATH
5840do
5841 IFS=$as_save_IFS
5842 test -z "$as_dir" && as_dir=.
5843 for ac_exec_ext in '' $ac_executable_extensions; do
5844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5845 ac_cv_prog_ac_ct_RANLIB="ranlib"
5846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5847 break 2
5848 fi
5849done
5850done
5851
5852 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5853fi
5854fi
5855ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5856if test -n "$ac_ct_RANLIB"; then
5857 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5858echo "${ECHO_T}$ac_ct_RANLIB" >&6
5859else
5860 echo "$as_me:$LINENO: result: no" >&5
5861echo "${ECHO_T}no" >&6
5862fi
5863
5864 RANLIB=$ac_ct_RANLIB
5865else
5866 RANLIB="$ac_cv_prog_RANLIB"
5867fi
5868
5869if test -n "$ac_tool_prefix"; then
5870 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5871set dummy ${ac_tool_prefix}strip; ac_word=$2
5872echo "$as_me:$LINENO: checking for $ac_word" >&5
5873echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5874if test "${ac_cv_prog_STRIP+set}" = set; then
5875 echo $ECHO_N "(cached) $ECHO_C" >&6
5876else
5877 if test -n "$STRIP"; then
5878 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5879else
5880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5881for as_dir in $PATH
5882do
5883 IFS=$as_save_IFS
5884 test -z "$as_dir" && as_dir=.
5885 for ac_exec_ext in '' $ac_executable_extensions; do
5886 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5887 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5889 break 2
5890 fi
5891done
5892done
5893
5894fi
5895fi
5896STRIP=$ac_cv_prog_STRIP
5897if test -n "$STRIP"; then
5898 echo "$as_me:$LINENO: result: $STRIP" >&5
5899echo "${ECHO_T}$STRIP" >&6
5900else
5901 echo "$as_me:$LINENO: result: no" >&5
5902echo "${ECHO_T}no" >&6
5903fi
5904
5905fi
5906if test -z "$ac_cv_prog_STRIP"; then
5907 ac_ct_STRIP=$STRIP
5908 # Extract the first word of "strip", so it can be a program name with args.
5909set dummy strip; ac_word=$2
5910echo "$as_me:$LINENO: checking for $ac_word" >&5
5911echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5912if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5913 echo $ECHO_N "(cached) $ECHO_C" >&6
5914else
5915 if test -n "$ac_ct_STRIP"; then
5916 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5917else
5918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5919for as_dir in $PATH
5920do
5921 IFS=$as_save_IFS
5922 test -z "$as_dir" && as_dir=.
5923 for ac_exec_ext in '' $ac_executable_extensions; do
5924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5925 ac_cv_prog_ac_ct_STRIP="strip"
5926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5927 break 2
5928 fi
5929done
5930done
5931
5932 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5933fi
5934fi
5935ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5936if test -n "$ac_ct_STRIP"; then
5937 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5938echo "${ECHO_T}$ac_ct_STRIP" >&6
5939else
5940 echo "$as_me:$LINENO: result: no" >&5
5941echo "${ECHO_T}no" >&6
5942fi
5943
5944 STRIP=$ac_ct_STRIP
5945else
5946 STRIP="$ac_cv_prog_STRIP"
5947fi
5948
5949
John Criswell7a73b802003-06-30 21:59:07 +00005950old_CC="$CC"
5951old_CFLAGS="$CFLAGS"
5952
5953# Set sane defaults for various variables
5954test -z "$AR" && AR=ar
5955test -z "$AR_FLAGS" && AR_FLAGS=cru
5956test -z "$AS" && AS=as
5957test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +00005958test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +00005959test -z "$DLLTOOL" && DLLTOOL=dlltool
5960test -z "$LD" && LD=ld
5961test -z "$LN_S" && LN_S="ln -s"
5962test -z "$MAGIC_CMD" && MAGIC_CMD=file
5963test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +00005964test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +00005965test -z "$OBJDUMP" && OBJDUMP=objdump
5966test -z "$RANLIB" && RANLIB=:
5967test -z "$STRIP" && STRIP=:
5968test -z "$ac_objext" && ac_objext=o
5969
John Criswell7a73b802003-06-30 21:59:07 +00005970# Determine commands to create old-style static archives.
5971old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5972old_postinstall_cmds='chmod 644 $oldlib'
5973old_postuninstall_cmds=
5974
5975if test -n "$RANLIB"; then
5976 case $host_os in
5977 openbsd*)
5978 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5979 ;;
5980 *)
5981 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5982 ;;
5983 esac
5984 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5985fi
5986
John Criswell47fdd832003-07-14 16:52:07 +00005987# Only perform the check for file, if the check method requires it
5988case $deplibs_check_method in
5989file_magic*)
5990 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5991 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5992echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5993if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5994 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00005995else
John Criswell47fdd832003-07-14 16:52:07 +00005996 case $MAGIC_CMD in
5997[\\/*] | ?:[\\/]*)
5998 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5999 ;;
6000*)
6001 lt_save_MAGIC_CMD="$MAGIC_CMD"
6002 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6003 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6004 for ac_dir in $ac_dummy; do
6005 IFS="$lt_save_ifs"
6006 test -z "$ac_dir" && ac_dir=.
6007 if test -f $ac_dir/${ac_tool_prefix}file; then
6008 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6009 if test -n "$file_magic_test_file"; then
6010 case $deplibs_check_method in
6011 "file_magic "*)
6012 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6013 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6014 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6015 $EGREP "$file_magic_regex" > /dev/null; then
6016 :
6017 else
6018 cat <<EOF 1>&2
6019
6020*** Warning: the command libtool uses to detect shared libraries,
6021*** $file_magic_cmd, produces output that libtool cannot recognize.
6022*** The result is that libtool may fail to recognize shared libraries
6023*** as such. This will affect the creation of libtool libraries that
6024*** depend on shared libraries, but programs linked with such libtool
6025*** libraries will work regardless of this problem. Nevertheless, you
6026*** may want to report the problem to your system manager and/or to
6027*** bug-libtool@gnu.org
6028
6029EOF
6030 fi ;;
6031 esac
6032 fi
6033 break
6034 fi
6035 done
6036 IFS="$lt_save_ifs"
6037 MAGIC_CMD="$lt_save_MAGIC_CMD"
6038 ;;
6039esac
John Criswell7a73b802003-06-30 21:59:07 +00006040fi
John Criswell7a73b802003-06-30 21:59:07 +00006041
John Criswell47fdd832003-07-14 16:52:07 +00006042MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6043if test -n "$MAGIC_CMD"; then
6044 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6045echo "${ECHO_T}$MAGIC_CMD" >&6
6046else
6047 echo "$as_me:$LINENO: result: no" >&5
6048echo "${ECHO_T}no" >&6
6049fi
John Criswell7a73b802003-06-30 21:59:07 +00006050
John Criswell47fdd832003-07-14 16:52:07 +00006051if test -z "$lt_cv_path_MAGIC_CMD"; then
6052 if test -n "$ac_tool_prefix"; then
6053 echo "$as_me:$LINENO: checking for file" >&5
6054echo $ECHO_N "checking for file... $ECHO_C" >&6
6055if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6056 echo $ECHO_N "(cached) $ECHO_C" >&6
6057else
6058 case $MAGIC_CMD in
6059[\\/*] | ?:[\\/]*)
6060 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6061 ;;
6062*)
6063 lt_save_MAGIC_CMD="$MAGIC_CMD"
6064 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6065 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6066 for ac_dir in $ac_dummy; do
6067 IFS="$lt_save_ifs"
6068 test -z "$ac_dir" && ac_dir=.
6069 if test -f $ac_dir/file; then
6070 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6071 if test -n "$file_magic_test_file"; then
6072 case $deplibs_check_method in
6073 "file_magic "*)
6074 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6075 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6076 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6077 $EGREP "$file_magic_regex" > /dev/null; then
6078 :
6079 else
6080 cat <<EOF 1>&2
6081
6082*** Warning: the command libtool uses to detect shared libraries,
6083*** $file_magic_cmd, produces output that libtool cannot recognize.
6084*** The result is that libtool may fail to recognize shared libraries
6085*** as such. This will affect the creation of libtool libraries that
6086*** depend on shared libraries, but programs linked with such libtool
6087*** libraries will work regardless of this problem. Nevertheless, you
6088*** may want to report the problem to your system manager and/or to
6089*** bug-libtool@gnu.org
6090
6091EOF
6092 fi ;;
6093 esac
6094 fi
6095 break
6096 fi
6097 done
6098 IFS="$lt_save_ifs"
6099 MAGIC_CMD="$lt_save_MAGIC_CMD"
6100 ;;
6101esac
6102fi
6103
6104MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6105if test -n "$MAGIC_CMD"; then
6106 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6107echo "${ECHO_T}$MAGIC_CMD" >&6
6108else
6109 echo "$as_me:$LINENO: result: no" >&5
6110echo "${ECHO_T}no" >&6
6111fi
6112
6113 else
6114 MAGIC_CMD=:
6115 fi
6116fi
6117
6118 fi
6119 ;;
6120esac
6121
6122enable_dlopen=no
6123enable_win32_dll=no
6124
6125# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6126if test "${enable_libtool_lock+set}" = set; then
6127 enableval="$enable_libtool_lock"
6128
6129fi;
6130test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6131
John Criswell7a73b802003-06-30 21:59:07 +00006132
6133# Check whether --with-pic or --without-pic was given.
6134if test "${with_pic+set}" = set; then
6135 withval="$with_pic"
6136 pic_mode="$withval"
6137else
6138 pic_mode=default
6139fi;
6140test -z "$pic_mode" && pic_mode=default
6141
John Criswell47fdd832003-07-14 16:52:07 +00006142# Use C for the default configuration in the libtool script
6143tagname=
6144lt_save_CC="$CC"
6145ac_ext=c
6146ac_cpp='$CPP $CPPFLAGS'
6147ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6148ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6149ac_compiler_gnu=$ac_cv_c_compiler_gnu
6150
6151
6152# Source file extension for C test sources.
6153ac_ext=c
6154
6155# Object file extension for compiled C test sources.
6156objext=o
6157objext=$objext
6158
6159# Code to be used in simple compile tests
6160lt_simple_compile_test_code="int some_variable = 0;\n"
6161
6162# Code to be used in simple link tests
6163lt_simple_link_test_code='int main(){return(0);}\n'
6164
6165
6166# If no C compiler was specified, use CC.
6167LTCC=${LTCC-"$CC"}
6168
6169# Allow CC to be a program name with arguments.
6170compiler=$CC
6171
6172
6173#
6174# Check for any special shared library compilation flags.
6175#
6176lt_prog_cc_shlib=
6177if test "$GCC" = no; then
6178 case $host_os in
6179 sco3.2v5*)
6180 lt_prog_cc_shlib='-belf'
6181 ;;
6182 esac
6183fi
6184if test -n "$lt_prog_cc_shlib"; then
6185 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6186echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6187 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6188 else
6189 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6190echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6191 lt_cv_prog_cc_can_build_shared=no
6192 fi
6193fi
6194
6195
6196#
6197# Check to make sure the static flag actually works.
6198#
6199echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6200echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6201if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006202 echo $ECHO_N "(cached) $ECHO_C" >&6
6203else
John Criswell47fdd832003-07-14 16:52:07 +00006204 lt_prog_compiler_static_works=no
6205 save_LDFLAGS="$LDFLAGS"
6206 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6207 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6208 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6209 # The compiler can only warn and ignore the option if not recognized
6210 # So say no if there are warnings
6211 if test -s conftest.err; then
6212 # Append any errors to the config.log.
6213 cat conftest.err 1>&5
6214 else
6215 lt_prog_compiler_static_works=yes
6216 fi
6217 fi
6218 $rm conftest*
6219 LDFLAGS="$save_LDFLAGS"
6220
6221fi
6222echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6223echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6224
6225if test x"$lt_prog_compiler_static_works" = xyes; then
6226 :
6227else
6228 lt_prog_compiler_static=
6229fi
6230
6231
6232
6233## CAVEAT EMPTOR:
6234## There is no encapsulation within the following macros, do not change
6235## the running order or otherwise move them around unless you know exactly
6236## what you are doing...
6237
6238lt_prog_compiler_no_builtin_flag=
6239
6240if test "$GCC" = yes; then
6241 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6242
6243 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6244echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6245if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6246 echo $ECHO_N "(cached) $ECHO_C" >&6
6247else
6248 lt_cv_prog_compiler_rtti_exceptions=no
6249 ac_outfile=conftest.$ac_objext
6250 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6251 lt_compiler_flag="-fno-rtti -fno-exceptions"
6252 # Insert the option either (1) after the last *FLAGS variable, or
6253 # (2) before a word containing "conftest.", or (3) at the end.
6254 # Note that $ac_compile itself does not contain backslashes and begins
6255 # with a dollar sign (not a hyphen), so the echo should work correctly.
6256 # The option is referenced via a variable to avoid confusing sed.
6257 lt_compile=`echo "$ac_compile" | $SED \
6258 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6259 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6260 -e 's:$: $lt_compiler_flag:'`
John Criswell4e079782003-09-29 14:52:28 +00006261 (eval echo "\"\$as_me:6261: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006262 (eval "$lt_compile" 2>conftest.err)
6263 ac_status=$?
6264 cat conftest.err >&5
John Criswell4e079782003-09-29 14:52:28 +00006265 echo "$as_me:6265: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006266 if (exit $ac_status) && test -s "$ac_outfile"; then
6267 # The compiler can only warn and ignore the option if not recognized
6268 # So say no if there are warnings
6269 if test ! -s conftest.err; then
6270 lt_cv_prog_compiler_rtti_exceptions=yes
6271 fi
6272 fi
6273 $rm conftest*
6274
6275fi
6276echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6277echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6278
6279if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6280 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6281else
6282 :
6283fi
6284
6285fi
6286
6287lt_prog_compiler_wl=
6288lt_prog_compiler_pic=
6289lt_prog_compiler_static=
6290
6291echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6292echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006293
6294 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +00006295 lt_prog_compiler_wl='-Wl,'
6296 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +00006297
6298 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006299 aix*)
6300 # All AIX code is PIC.
6301 if test "$host_cpu" = ia64; then
6302 # AIX 5 now supports IA64 processor
6303 lt_prog_compiler_static='-Bstatic'
6304 fi
John Criswell7a73b802003-06-30 21:59:07 +00006305 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006306
John Criswell7a73b802003-06-30 21:59:07 +00006307 amigaos*)
6308 # FIXME: we need at least 68020 code to build shared libraries, but
6309 # adding the `-m68020' flag to GCC prevents building anything better,
6310 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +00006311 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +00006312 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006313
6314 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +00006315 # PIC is the default for these OSes.
6316 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006317
6318 mingw* | pw32* | os2*)
6319 # This hack is so that the source file can tell whether it is being
6320 # built for inclusion in a dll (and should export symbols for example).
6321 lt_prog_compiler_pic='-DDLL_EXPORT'
6322 ;;
6323
John Criswell7a73b802003-06-30 21:59:07 +00006324 darwin* | rhapsody*)
6325 # PIC is the default on this platform
6326 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +00006327 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +00006328 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006329
6330 msdosdjgpp*)
6331 # Just because we use GCC doesn't mean we suddenly get shared libraries
6332 # on systems that don't support them.
6333 lt_prog_compiler_can_build_shared=no
6334 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006335 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006336
John Criswell7a73b802003-06-30 21:59:07 +00006337 sysv4*MP*)
6338 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +00006339 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +00006340 fi
6341 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006342
6343 hpux*)
6344 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6345 # not for PA HP-UX.
6346 case "$host_cpu" in
6347 hppa*64*|ia64*)
6348 # +Z the default
6349 ;;
6350 *)
6351 lt_prog_compiler_pic='-fPIC'
6352 ;;
6353 esac
6354 ;;
6355
John Criswell7a73b802003-06-30 21:59:07 +00006356 *)
John Criswell47fdd832003-07-14 16:52:07 +00006357 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +00006358 ;;
6359 esac
6360 else
John Criswell47fdd832003-07-14 16:52:07 +00006361 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +00006362 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006363 aix*)
6364 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006365 if test "$host_cpu" = ia64; then
6366 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +00006367 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006368 else
John Criswell47fdd832003-07-14 16:52:07 +00006369 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +00006370 fi
6371 ;;
6372
John Criswell47fdd832003-07-14 16:52:07 +00006373 mingw* | pw32* | os2*)
6374 # This hack is so that the source file can tell whether it is being
6375 # built for inclusion in a dll (and should export symbols for example).
6376 lt_prog_compiler_pic='-DDLL_EXPORT'
6377 ;;
6378
John Criswell7a73b802003-06-30 21:59:07 +00006379 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +00006380 lt_prog_compiler_wl='-Wl,'
6381 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6382 # not for PA HP-UX.
6383 case "$host_cpu" in
6384 hppa*64*|ia64*)
6385 # +Z the default
6386 ;;
6387 *)
6388 lt_prog_compiler_pic='+Z'
6389 ;;
6390 esac
6391 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6392 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +00006393 ;;
6394
John Criswell47fdd832003-07-14 16:52:07 +00006395 irix5* | irix6* | nonstopux*)
6396 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006397 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +00006398 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006399 ;;
6400
6401 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +00006402 lt_prog_compiler_pic='-KPIC'
6403 lt_prog_compiler_static='-Bstatic'
6404 ;;
6405
6406 linux*)
6407 case $CC in
6408 icc|ecc)
6409 lt_prog_compiler_wl='-Wl,'
6410 lt_prog_compiler_pic='-KPIC'
6411 lt_prog_compiler_static='-static'
6412 ;;
6413 ccc)
6414 lt_prog_compiler_wl='-Wl,'
6415 # All Alpha code is PIC.
6416 lt_prog_compiler_static='-non_shared'
6417 ;;
6418 esac
John Criswell7a73b802003-06-30 21:59:07 +00006419 ;;
6420
6421 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +00006422 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006423 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +00006424 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006425 ;;
6426
6427 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +00006428 lt_prog_compiler_pic='-Kpic'
6429 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +00006430 ;;
6431
6432 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +00006433 lt_prog_compiler_wl='-Wl,'
6434 lt_prog_compiler_pic='-KPIC'
6435 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006436 ;;
6437
6438 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +00006439 lt_prog_compiler_wl='-Qoption ld '
6440 lt_prog_compiler_pic='-PIC'
6441 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006442 ;;
6443
6444 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +00006445 lt_prog_compiler_wl='-Wl,'
6446 lt_prog_compiler_pic='-KPIC'
6447 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006448 ;;
6449
6450 sysv4*MP*)
6451 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +00006452 lt_prog_compiler_pic='-Kconform_pic'
6453 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006454 fi
6455 ;;
6456
John Criswell47fdd832003-07-14 16:52:07 +00006457 uts4*)
6458 lt_prog_compiler_pic='-pic'
6459 lt_prog_compiler_static='-Bstatic'
6460 ;;
6461
John Criswell7a73b802003-06-30 21:59:07 +00006462 *)
John Criswell47fdd832003-07-14 16:52:07 +00006463 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006464 ;;
6465 esac
6466 fi
6467
John Criswell47fdd832003-07-14 16:52:07 +00006468echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6469echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006470
John Criswell47fdd832003-07-14 16:52:07 +00006471#
6472# Check to make sure the PIC flag actually works.
6473#
6474if test -n "$lt_prog_compiler_pic"; then
6475 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6476echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6477if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006478 echo $ECHO_N "(cached) $ECHO_C" >&6
6479else
John Criswell47fdd832003-07-14 16:52:07 +00006480 lt_prog_compiler_pic_works=no
6481 ac_outfile=conftest.$ac_objext
6482 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6483 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6484 # Insert the option either (1) after the last *FLAGS variable, or
6485 # (2) before a word containing "conftest.", or (3) at the end.
6486 # Note that $ac_compile itself does not contain backslashes and begins
6487 # with a dollar sign (not a hyphen), so the echo should work correctly.
6488 # The option is referenced via a variable to avoid confusing sed.
6489 lt_compile=`echo "$ac_compile" | $SED \
6490 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6491 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6492 -e 's:$: $lt_compiler_flag:'`
John Criswell4e079782003-09-29 14:52:28 +00006493 (eval echo "\"\$as_me:6493: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006494 (eval "$lt_compile" 2>conftest.err)
6495 ac_status=$?
6496 cat conftest.err >&5
John Criswell4e079782003-09-29 14:52:28 +00006497 echo "$as_me:6497: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006498 if (exit $ac_status) && test -s "$ac_outfile"; then
6499 # The compiler can only warn and ignore the option if not recognized
6500 # So say no if there are warnings
6501 if test ! -s conftest.err; then
6502 lt_prog_compiler_pic_works=yes
6503 fi
6504 fi
6505 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006506
John Criswell47fdd832003-07-14 16:52:07 +00006507fi
6508echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6509echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006510
John Criswell47fdd832003-07-14 16:52:07 +00006511if test x"$lt_prog_compiler_pic_works" = xyes; then
6512 case $lt_prog_compiler_pic in
6513 "" | " "*) ;;
6514 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6515 esac
John Criswell7a73b802003-06-30 21:59:07 +00006516else
John Criswell47fdd832003-07-14 16:52:07 +00006517 lt_prog_compiler_pic=
6518 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006519fi
6520
John Criswell7a73b802003-06-30 21:59:07 +00006521fi
John Criswell47fdd832003-07-14 16:52:07 +00006522case "$host_os" in
6523 # For platforms which do not support PIC, -DPIC is meaningless:
6524 *djgpp*)
6525 lt_prog_compiler_pic=
6526 ;;
6527 *)
6528 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6529 ;;
6530esac
John Criswell7a73b802003-06-30 21:59:07 +00006531
John Criswell7a73b802003-06-30 21:59:07 +00006532echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6533echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +00006534if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006535 echo $ECHO_N "(cached) $ECHO_C" >&6
6536else
John Criswell47fdd832003-07-14 16:52:07 +00006537 lt_cv_prog_compiler_c_o=no
6538 $rm -r conftest 2>/dev/null
6539 mkdir conftest
6540 cd conftest
6541 mkdir out
6542 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006543
John Criswell47fdd832003-07-14 16:52:07 +00006544 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6545 # that will create temporary files in the current directory regardless of
6546 # the output directory. Thus, making CWD read-only will cause this test
6547 # to fail, enabling locking or at least warning the user not to do parallel
6548 # builds.
6549 chmod -w .
6550
6551 lt_compiler_flag="-o out/conftest2.$ac_objext"
6552 # Insert the option either (1) after the last *FLAGS variable, or
6553 # (2) before a word containing "conftest.", or (3) at the end.
6554 # Note that $ac_compile itself does not contain backslashes and begins
6555 # with a dollar sign (not a hyphen), so the echo should work correctly.
6556 lt_compile=`echo "$ac_compile" | $SED \
6557 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6558 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6559 -e 's:$: $lt_compiler_flag:'`
John Criswell4e079782003-09-29 14:52:28 +00006560 (eval echo "\"\$as_me:6560: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006561 (eval "$lt_compile" 2>out/conftest.err)
6562 ac_status=$?
6563 cat out/conftest.err >&5
John Criswell4e079782003-09-29 14:52:28 +00006564 echo "$as_me:6564: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006565 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6566 then
6567 # The compiler can only warn and ignore the option if not recognized
6568 # So say no if there are warnings
6569 if test ! -s out/conftest.err; then
6570 lt_cv_prog_compiler_c_o=yes
6571 fi
6572 fi
6573 chmod u+w .
6574 $rm conftest* out/*
6575 rmdir out
6576 cd ..
6577 rmdir conftest
6578 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006579
6580fi
John Criswell47fdd832003-07-14 16:52:07 +00006581echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6582echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006583
John Criswell7a73b802003-06-30 21:59:07 +00006584
John Criswell7a73b802003-06-30 21:59:07 +00006585hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +00006586if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +00006587 # do not overwrite the value of need_locks provided by the user
6588 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6589echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6590 hard_links=yes
6591 $rm conftest*
6592 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6593 touch conftest.a
6594 ln conftest.a conftest.b 2>&5 || hard_links=no
6595 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6596 echo "$as_me:$LINENO: result: $hard_links" >&5
6597echo "${ECHO_T}$hard_links" >&6
6598 if test "$hard_links" = no; then
6599 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6600echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6601 need_locks=warn
6602 fi
6603else
6604 need_locks=no
6605fi
John Criswell7a73b802003-06-30 21:59:07 +00006606
John Criswell47fdd832003-07-14 16:52:07 +00006607echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6608echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6609
6610 runpath_var=
6611 allow_undefined_flag=
6612 enable_shared_with_static_runtimes=no
6613 archive_cmds=
6614 archive_expsym_cmds=
6615 old_archive_From_new_cmds=
6616 old_archive_from_expsyms_cmds=
6617 export_dynamic_flag_spec=
6618 whole_archive_flag_spec=
6619 thread_safe_flag_spec=
6620 hardcode_libdir_flag_spec=
6621 hardcode_libdir_flag_spec_ld=
6622 hardcode_libdir_separator=
6623 hardcode_direct=no
6624 hardcode_minus_L=no
6625 hardcode_shlibpath_var=unsupported
6626 link_all_deplibs=unknown
6627 hardcode_automatic=no
6628 module_cmds=
6629 module_expsym_cmds=
6630 always_export_symbols=no
6631 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6632 # include_expsyms should be a list of space-separated symbols to be *always*
6633 # included in the symbol list
6634 include_expsyms=
6635 # exclude_expsyms can be an extended regexp of symbols to exclude
6636 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6637 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6638 # as well as any symbol that contains `d'.
6639 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6640 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6641 # platforms (ab)use it in PIC code, but their linkers get confused if
6642 # the symbol is explicitly referenced. Since portable code cannot
6643 # rely on this symbol name, it's probably fine to never include it in
6644 # preloaded symbol tables.
6645 extract_expsyms_cmds=
6646
6647 case $host_os in
6648 cygwin* | mingw* | pw32*)
6649 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6650 # When not using gcc, we currently assume that we are using
6651 # Microsoft Visual C++.
6652 if test "$GCC" != yes; then
6653 with_gnu_ld=no
6654 fi
6655 ;;
6656 openbsd*)
6657 with_gnu_ld=no
6658 ;;
6659 esac
6660
6661 ld_shlibs=yes
6662 if test "$with_gnu_ld" = yes; then
6663 # If archive_cmds runs LD, not CC, wlarc should be empty
6664 wlarc='${wl}'
6665
6666 # See if GNU ld supports shared libraries.
6667 case $host_os in
6668 aix3* | aix4* | aix5*)
6669 # On AIX/PPC, the GNU linker is very broken
6670 if test "$host_cpu" != ia64; then
6671 ld_shlibs=no
6672 cat <<EOF 1>&2
6673
6674*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6675*** to be unable to reliably create shared libraries on AIX.
6676*** Therefore, libtool is disabling shared libraries support. If you
6677*** really care for shared libraries, you may want to modify your PATH
6678*** so that a non-GNU linker is found, and then restart.
6679
6680EOF
6681 fi
6682 ;;
6683
6684 amigaos*)
6685 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)'
6686 hardcode_libdir_flag_spec='-L$libdir'
6687 hardcode_minus_L=yes
6688
6689 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6690 # that the semantics of dynamic libraries on AmigaOS, at least up
6691 # to version 4, is to share data among multiple programs linked
6692 # with the same dynamic library. Since this doesn't match the
6693 # behavior of shared libraries on other platforms, we can't use
6694 # them.
6695 ld_shlibs=no
6696 ;;
6697
6698 beos*)
6699 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6700 allow_undefined_flag=unsupported
6701 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6702 # support --undefined. This deserves some investigation. FIXME
6703 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6704 else
6705 ld_shlibs=no
6706 fi
6707 ;;
6708
6709 cygwin* | mingw* | pw32*)
6710 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6711 # as there is no search path for DLLs.
6712 hardcode_libdir_flag_spec='-L$libdir'
6713 allow_undefined_flag=unsupported
6714 always_export_symbols=no
6715 enable_shared_with_static_runtimes=yes
6716 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6717
6718 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6719 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6720 # If the export-symbols file already is a .def file (1st line
6721 # is EXPORTS), use it as is; otherwise, prepend...
6722 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6723 cp $export_symbols $output_objdir/$soname.def;
6724 else
6725 echo EXPORTS > $output_objdir/$soname.def;
6726 cat $export_symbols >> $output_objdir/$soname.def;
6727 fi~
6728 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6729 else
6730 ld_shlibs=no
6731 fi
6732 ;;
6733
6734 netbsd*)
6735 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6736 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6737 wlarc=
6738 else
6739 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6740 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6741 fi
6742 ;;
6743
6744 solaris* | sysv5*)
6745 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6746 ld_shlibs=no
6747 cat <<EOF 1>&2
6748
6749*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6750*** create shared libraries on Solaris systems. Therefore, libtool
6751*** is disabling shared libraries support. We urge you to upgrade GNU
6752*** binutils to release 2.9.1 or newer. Another option is to modify
6753*** your PATH or compiler configuration so that the native linker is
6754*** used, and then restart.
6755
6756EOF
6757 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6758 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6759 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6760 else
6761 ld_shlibs=no
6762 fi
6763 ;;
6764
6765 sunos4*)
6766 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6767 wlarc=
6768 hardcode_direct=yes
6769 hardcode_shlibpath_var=no
6770 ;;
6771
6772 *)
6773 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6774 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6775 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6776 else
6777 ld_shlibs=no
6778 fi
6779 ;;
6780 esac
6781
6782 if test "$ld_shlibs" = yes; then
6783 runpath_var=LD_RUN_PATH
6784 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6785 export_dynamic_flag_spec='${wl}--export-dynamic'
6786 # ancient GNU ld didn't support --whole-archive et. al.
6787 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6788 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6789 else
6790 whole_archive_flag_spec=
6791 fi
6792 fi
6793 else
6794 # PORTME fill in a description of your system's linker (not GNU ld)
6795 case $host_os in
6796 aix3*)
6797 allow_undefined_flag=unsupported
6798 always_export_symbols=yes
6799 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'
6800 # Note: this linker hardcodes the directories in LIBPATH if there
6801 # are no directories specified by -L.
6802 hardcode_minus_L=yes
6803 if test "$GCC" = yes && test -z "$link_static_flag"; then
6804 # Neither direct hardcoding nor static linking is supported with a
6805 # broken collect2.
6806 hardcode_direct=unsupported
6807 fi
6808 ;;
6809
6810 aix4* | aix5*)
6811 if test "$host_cpu" = ia64; then
6812 # On IA64, the linker does run time linking by default, so we don't
6813 # have to do anything special.
6814 aix_use_runtimelinking=no
6815 exp_sym_flag='-Bexport'
6816 no_entry_flag=""
6817 else
6818 # If we're using GNU nm, then we don't want the "-C" option.
6819 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6820 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6821 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'
6822 else
6823 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'
6824 fi
6825 aix_use_runtimelinking=no
6826
6827 # Test if we are trying to use run time linking or normal
6828 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6829 # need to do runtime linking.
6830 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6831 for ld_flag in $LDFLAGS; do
6832 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6833 aix_use_runtimelinking=yes
6834 break
6835 fi
6836 done
6837 esac
6838
6839 exp_sym_flag='-bexport'
6840 no_entry_flag='-bnoentry'
6841 fi
6842
6843 # When large executables or shared objects are built, AIX ld can
6844 # have problems creating the table of contents. If linking a library
6845 # or program results in "error TOC overflow" add -mminimal-toc to
6846 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6847 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6848
6849 archive_cmds=''
6850 hardcode_direct=yes
6851 hardcode_libdir_separator=':'
6852 link_all_deplibs=yes
6853
6854 if test "$GCC" = yes; then
6855 case $host_os in aix4.012|aix4.012.*)
6856 # We only want to do this on AIX 4.2 and lower, the check
6857 # below for broken collect2 doesn't work under 4.3+
6858 collect2name=`${CC} -print-prog-name=collect2`
6859 if test -f "$collect2name" && \
6860 strings "$collect2name" | grep resolve_lib_name >/dev/null
6861 then
6862 # We have reworked collect2
6863 hardcode_direct=yes
6864 else
6865 # We have old collect2
6866 hardcode_direct=unsupported
6867 # It fails to find uninstalled libraries when the uninstalled
6868 # path is not listed in the libpath. Setting hardcode_minus_L
6869 # to unsupported forces relinking
6870 hardcode_minus_L=yes
6871 hardcode_libdir_flag_spec='-L$libdir'
6872 hardcode_libdir_separator=
6873 fi
6874 esac
6875 shared_flag='-shared'
6876 else
6877 # not using gcc
6878 if test "$host_cpu" = ia64; then
6879 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6880 # chokes on -Wl,-G. The following line is correct:
6881 shared_flag='-G'
6882 else
6883 if test "$aix_use_runtimelinking" = yes; then
6884 shared_flag='${wl}-G'
6885 else
6886 shared_flag='${wl}-bM:SRE'
6887 fi
6888 fi
6889 fi
6890
6891 # It seems that -bexpall does not export symbols beginning with
6892 # underscore (_), so it is better to generate a list of symbols to export.
6893 always_export_symbols=yes
6894 if test "$aix_use_runtimelinking" = yes; then
6895 # Warning - without using the other runtime loading flags (-brtl),
6896 # -berok will link without error, but may produce a broken library.
6897 allow_undefined_flag='-berok'
6898 # Determine the default libpath from the value encoded in an empty executable.
6899 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00006900#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00006901/* confdefs.h. */
6902_ACEOF
6903cat confdefs.h >>conftest.$ac_ext
6904cat >>conftest.$ac_ext <<_ACEOF
6905/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006906
John Criswell7a73b802003-06-30 21:59:07 +00006907int
6908main ()
6909{
John Criswell47fdd832003-07-14 16:52:07 +00006910
John Criswell7a73b802003-06-30 21:59:07 +00006911 ;
6912 return 0;
6913}
6914_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +00006915rm -f conftest.$ac_objext conftest$ac_exeext
6916if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6917 (eval $ac_link) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00006918 ac_status=$?
6919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920 (exit $ac_status); } &&
John Criswell47fdd832003-07-14 16:52:07 +00006921 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00006922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6923 (eval $ac_try) 2>&5
6924 ac_status=$?
6925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6926 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006927
John Criswell47fdd832003-07-14 16:52:07 +00006928aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6929}'`
6930# Check for a 64-bit object if we didn't find anything.
6931if 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; }
6932}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006933else
6934 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006935sed 's/^/| /' conftest.$ac_ext >&5
6936
John Criswell7a73b802003-06-30 21:59:07 +00006937fi
John Criswell47fdd832003-07-14 16:52:07 +00006938rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6939if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006940
John Criswell47fdd832003-07-14 16:52:07 +00006941 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6942 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"
6943 else
6944 if test "$host_cpu" = ia64; then
6945 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6946 allow_undefined_flag="-z nodefs"
6947 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"
6948 else
6949 # Determine the default libpath from the value encoded in an empty executable.
6950 cat >conftest.$ac_ext <<_ACEOF
6951#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00006952/* confdefs.h. */
6953_ACEOF
6954cat confdefs.h >>conftest.$ac_ext
6955cat >>conftest.$ac_ext <<_ACEOF
6956/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006957
John Criswell47fdd832003-07-14 16:52:07 +00006958int
6959main ()
6960{
John Criswell7a73b802003-06-30 21:59:07 +00006961
John Criswell47fdd832003-07-14 16:52:07 +00006962 ;
6963 return 0;
6964}
6965_ACEOF
6966rm -f conftest.$ac_objext conftest$ac_exeext
6967if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6968 (eval $ac_link) 2>&5
6969 ac_status=$?
6970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6971 (exit $ac_status); } &&
6972 { ac_try='test -s conftest$ac_exeext'
6973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6974 (eval $ac_try) 2>&5
6975 ac_status=$?
6976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006978
John Criswell47fdd832003-07-14 16:52:07 +00006979aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6980}'`
6981# Check for a 64-bit object if we didn't find anything.
6982if 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; }
6983}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006984else
John Criswell47fdd832003-07-14 16:52:07 +00006985 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006986sed 's/^/| /' conftest.$ac_ext >&5
6987
John Criswell47fdd832003-07-14 16:52:07 +00006988fi
6989rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6990if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006991
John Criswell47fdd832003-07-14 16:52:07 +00006992 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6993 # Warning - without using the other run time loading flags,
6994 # -berok will link without error, but may produce a broken library.
6995 no_undefined_flag=' ${wl}-bernotok'
6996 allow_undefined_flag=' ${wl}-berok'
6997 # -bexpall does not export symbols beginning with underscore (_)
6998 always_export_symbols=yes
6999 # Exported symbols can be pulled into shared objects from archives
7000 whole_archive_flag_spec=' '
7001 archive_cmds_need_lc=yes
7002 # This is similar to how AIX traditionally builds it's shared libraries.
7003 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 +00007004 fi
7005 fi
John Criswell7a73b802003-06-30 21:59:07 +00007006 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007007
7008 amigaos*)
7009 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)'
7010 hardcode_libdir_flag_spec='-L$libdir'
7011 hardcode_minus_L=yes
7012 # see comment about different semantics on the GNU ld section
7013 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +00007014 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007015
John Criswell47fdd832003-07-14 16:52:07 +00007016 bsdi4*)
7017 export_dynamic_flag_spec=-rdynamic
7018 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007019
John Criswell47fdd832003-07-14 16:52:07 +00007020 cygwin* | mingw* | pw32*)
7021 # When not using gcc, we currently assume that we are using
7022 # Microsoft Visual C++.
7023 # hardcode_libdir_flag_spec is actually meaningless, as there is
7024 # no search path for DLLs.
7025 hardcode_libdir_flag_spec=' '
7026 allow_undefined_flag=unsupported
7027 # Tell ltmain to make .lib files, not .a files.
7028 libext=lib
7029 # Tell ltmain to make .dll files, not .so files.
7030 shrext=".dll"
7031 # FIXME: Setting linknames here is a bad hack.
7032 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7033 # The linker will automatically build a .lib file if we build a DLL.
7034 old_archive_From_new_cmds='true'
7035 # FIXME: Should let the user specify the lib program.
7036 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7037 fix_srcfile_path='`cygpath -w "$srcfile"`'
7038 enable_shared_with_static_runtimes=yes
7039 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007040
John Criswell47fdd832003-07-14 16:52:07 +00007041 darwin* | rhapsody*)
7042 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7043 archive_cmds_need_lc=no
John Criswell7a73b802003-06-30 21:59:07 +00007044 case "$host_os" in
John Criswell47fdd832003-07-14 16:52:07 +00007045 rhapsody* | darwin1.[012])
7046 allow_undefined_flag='-undefined suppress'
7047 ;;
7048 *) # Darwin 1.3 on
7049 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
John Criswell7a73b802003-06-30 21:59:07 +00007050 ;;
7051 esac
John Criswell47fdd832003-07-14 16:52:07 +00007052 # FIXME: Relying on posixy $() will cause problems for
7053 # cross-compilation, but unfortunately the echo tests do not
7054 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
7055 # `"' quotes if we put them in here... so don't!
7056 lt_int_apple_cc_single_mod=no
7057 output_verbose_link_cmd='echo'
7058 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7059 lt_int_apple_cc_single_mod=yes
7060 fi
7061 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7062 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7063 else
7064 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'
7065 fi
7066 module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
7067 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7068 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7069 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}'
7070 else
7071 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}'
7072 fi
7073 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}'
7074 hardcode_direct=no
7075 hardcode_automatic=yes
7076 hardcode_shlibpath_var=unsupported
7077 whole_archive_flag_spec='-all_load $convenience'
7078 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007079 fi
John Criswell47fdd832003-07-14 16:52:07 +00007080 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007081
John Criswell47fdd832003-07-14 16:52:07 +00007082 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +00007083 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +00007084 hardcode_libdir_flag_spec='-L$libdir'
7085 hardcode_shlibpath_var=no
7086 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007087
John Criswell47fdd832003-07-14 16:52:07 +00007088 freebsd1*)
7089 ld_shlibs=no
7090 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007091
John Criswell47fdd832003-07-14 16:52:07 +00007092 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7093 # support. Future versions do this automatically, but an explicit c++rt0.o
7094 # does not break anything, and helps significantly (at the cost of a little
7095 # extra space).
7096 freebsd2.2*)
7097 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7098 hardcode_libdir_flag_spec='-R$libdir'
7099 hardcode_direct=yes
7100 hardcode_shlibpath_var=no
7101 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007102
John Criswell47fdd832003-07-14 16:52:07 +00007103 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7104 freebsd2*)
7105 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7106 hardcode_direct=yes
7107 hardcode_minus_L=yes
7108 hardcode_shlibpath_var=no
7109 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007110
John Criswell47fdd832003-07-14 16:52:07 +00007111 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7112 freebsd*)
7113 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7114 hardcode_libdir_flag_spec='-R$libdir'
7115 hardcode_direct=yes
7116 hardcode_shlibpath_var=no
7117 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007118
John Criswell47fdd832003-07-14 16:52:07 +00007119 hpux9*)
7120 if test "$GCC" = yes; then
7121 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'
7122 else
7123 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'
7124 fi
7125 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7126 hardcode_libdir_separator=:
7127 hardcode_direct=yes
7128
7129 # hardcode_minus_L: Not really in the search PATH,
7130 # but as the default location of the library.
7131 hardcode_minus_L=yes
7132 export_dynamic_flag_spec='${wl}-E'
7133 ;;
7134
7135 hpux10* | hpux11*)
7136 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7137 case "$host_cpu" in
7138 hppa*64*|ia64*)
7139 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7140 ;;
7141 *)
7142 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7143 ;;
7144 esac
7145 else
7146 case "$host_cpu" in
7147 hppa*64*|ia64*)
7148 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7149 ;;
7150 *)
7151 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7152 ;;
7153 esac
7154 fi
7155 if test "$with_gnu_ld" = no; then
7156 case "$host_cpu" in
7157 hppa*64*)
7158 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7159 hardcode_libdir_flag_spec_ld='+b $libdir'
7160 hardcode_libdir_separator=:
7161 hardcode_direct=no
7162 hardcode_shlibpath_var=no
7163 ;;
7164 ia64*)
7165 hardcode_libdir_flag_spec='-L$libdir'
7166 hardcode_direct=no
7167 hardcode_shlibpath_var=no
7168
7169 # hardcode_minus_L: Not really in the search PATH,
7170 # but as the default location of the library.
7171 hardcode_minus_L=yes
7172 ;;
7173 *)
7174 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7175 hardcode_libdir_separator=:
7176 hardcode_direct=yes
7177 export_dynamic_flag_spec='${wl}-E'
7178
7179 # hardcode_minus_L: Not really in the search PATH,
7180 # but as the default location of the library.
7181 hardcode_minus_L=yes
7182 ;;
7183 esac
7184 fi
7185 ;;
7186
7187 irix5* | irix6* | nonstopux*)
7188 if test "$GCC" = yes; then
7189 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'
7190 else
7191 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'
7192 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7193 fi
7194 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7195 hardcode_libdir_separator=:
7196 link_all_deplibs=yes
7197 ;;
7198
7199 netbsd*)
7200 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7201 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7202 else
7203 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7204 fi
7205 hardcode_libdir_flag_spec='-R$libdir'
7206 hardcode_direct=yes
7207 hardcode_shlibpath_var=no
7208 ;;
7209
7210 newsos6)
7211 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7212 hardcode_direct=yes
7213 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7214 hardcode_libdir_separator=:
7215 hardcode_shlibpath_var=no
7216 ;;
7217
7218 openbsd*)
7219 hardcode_direct=yes
7220 hardcode_shlibpath_var=no
7221 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7222 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7223 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7224 export_dynamic_flag_spec='${wl}-E'
7225 else
7226 case $host_os in
7227 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7228 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7229 hardcode_libdir_flag_spec='-R$libdir'
7230 ;;
7231 *)
7232 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7233 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7234 ;;
7235 esac
7236 fi
7237 ;;
7238
7239 os2*)
7240 hardcode_libdir_flag_spec='-L$libdir'
7241 hardcode_minus_L=yes
7242 allow_undefined_flag=unsupported
7243 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'
7244 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7245 ;;
7246
7247 osf3*)
7248 if test "$GCC" = yes; then
7249 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7250 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'
7251 else
7252 allow_undefined_flag=' -expect_unresolved \*'
7253 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'
7254 fi
7255 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7256 hardcode_libdir_separator=:
7257 ;;
7258
7259 osf4* | osf5*) # as osf3* with the addition of -msym flag
7260 if test "$GCC" = yes; then
7261 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7262 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7263 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7264 else
7265 allow_undefined_flag=' -expect_unresolved \*'
7266 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'
7267 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7268 $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'
7269
7270 # Both c and cxx compiler support -rpath directly
7271 hardcode_libdir_flag_spec='-rpath $libdir'
7272 fi
7273 hardcode_libdir_separator=:
7274 ;;
7275
7276 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +00007277 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7278 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +00007279 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +00007280 runpath_var=LD_RUN_PATH
7281 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +00007282 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007283
John Criswell47fdd832003-07-14 16:52:07 +00007284 solaris*)
7285 no_undefined_flag=' -z text'
7286 if test "$GCC" = yes; then
7287 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7288 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7289 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7290 else
7291 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7292 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7293 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7294 fi
7295 hardcode_libdir_flag_spec='-R$libdir'
7296 hardcode_shlibpath_var=no
7297 case $host_os in
7298 solaris2.[0-5] | solaris2.[0-5].*) ;;
7299 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7300 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7301 esac
7302 link_all_deplibs=yes
7303 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007304
John Criswell47fdd832003-07-14 16:52:07 +00007305 sunos4*)
7306 if test "x$host_vendor" = xsequent; then
7307 # Use $CC to link under sequent, because it throws in some extra .o
7308 # files that make .init and .fini sections work.
7309 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7310 else
7311 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7312 fi
7313 hardcode_libdir_flag_spec='-L$libdir'
7314 hardcode_direct=yes
7315 hardcode_minus_L=yes
7316 hardcode_shlibpath_var=no
7317 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007318
John Criswell47fdd832003-07-14 16:52:07 +00007319 sysv4)
7320 case $host_vendor in
7321 sni)
7322 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7323 hardcode_direct=yes # is this really true???
7324 ;;
7325 siemens)
7326 ## LD is ld it makes a PLAMLIB
7327 ## CC just makes a GrossModule.
7328 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7329 reload_cmds='$CC -r -o $output$reload_objs'
7330 hardcode_direct=no
7331 ;;
7332 motorola)
7333 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7334 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7335 ;;
7336 esac
7337 runpath_var='LD_RUN_PATH'
7338 hardcode_shlibpath_var=no
7339 ;;
7340
7341 sysv4.3*)
7342 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7343 hardcode_shlibpath_var=no
7344 export_dynamic_flag_spec='-Bexport'
7345 ;;
7346
7347 sysv4*MP*)
7348 if test -d /usr/nec; then
7349 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7350 hardcode_shlibpath_var=no
7351 runpath_var=LD_RUN_PATH
7352 hardcode_runpath_var=yes
7353 ld_shlibs=yes
7354 fi
7355 ;;
7356
7357 sysv4.2uw2*)
7358 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7359 hardcode_direct=yes
7360 hardcode_minus_L=no
7361 hardcode_shlibpath_var=no
7362 hardcode_runpath_var=yes
7363 runpath_var=LD_RUN_PATH
7364 ;;
7365
7366 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7367 no_undefined_flag='${wl}-z ${wl}text'
7368 if test "$GCC" = yes; then
7369 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7370 else
7371 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7372 fi
7373 runpath_var='LD_RUN_PATH'
7374 hardcode_shlibpath_var=no
7375 ;;
7376
7377 sysv5*)
7378 no_undefined_flag=' -z text'
7379 # $CC -shared without GNU ld will not create a library from C++
7380 # object files and a static libstdc++, better avoid it by now
7381 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7382 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7383 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7384 hardcode_libdir_flag_spec=
7385 hardcode_shlibpath_var=no
7386 runpath_var='LD_RUN_PATH'
7387 ;;
7388
7389 uts4*)
7390 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7391 hardcode_libdir_flag_spec='-L$libdir'
7392 hardcode_shlibpath_var=no
7393 ;;
7394
7395 *)
7396 ld_shlibs=no
7397 ;;
7398 esac
7399 fi
7400
John Criswell7a73b802003-06-30 21:59:07 +00007401echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7402echo "${ECHO_T}$ld_shlibs" >&6
7403test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00007404
John Criswell47fdd832003-07-14 16:52:07 +00007405variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7406if test "$GCC" = yes; then
7407 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7408fi
7409
7410#
7411# Do we need to explicitly link libc?
7412#
7413case "x$archive_cmds_need_lc" in
7414x|xyes)
7415 # Assume -lc should be added
7416 archive_cmds_need_lc=yes
7417
7418 if test "$enable_shared" = yes && test "$GCC" = yes; then
7419 case $archive_cmds in
7420 *'~'*)
7421 # FIXME: we may have to deal with multi-command sequences.
7422 ;;
7423 '$CC '*)
7424 # Test whether the compiler implicitly links with -lc since on some
7425 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7426 # to ld, don't add -lc before -lgcc.
7427 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7428echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7429 $rm conftest*
7430 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7431
7432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7433 (eval $ac_compile) 2>&5
7434 ac_status=$?
7435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7436 (exit $ac_status); } 2>conftest.err; then
7437 soname=conftest
7438 lib=conftest
7439 libobjs=conftest.$ac_objext
7440 deplibs=
7441 wl=$lt_prog_compiler_wl
7442 compiler_flags=-v
7443 linker_flags=-v
7444 verstring=
7445 output_objdir=.
7446 libname=conftest
7447 lt_save_allow_undefined_flag=$allow_undefined_flag
7448 allow_undefined_flag=
7449 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7450 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7451 ac_status=$?
7452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7453 (exit $ac_status); }
7454 then
7455 archive_cmds_need_lc=no
7456 else
7457 archive_cmds_need_lc=yes
7458 fi
7459 allow_undefined_flag=$lt_save_allow_undefined_flag
7460 else
7461 cat conftest.err 1>&5
7462 fi
7463 $rm conftest*
7464 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7465echo "${ECHO_T}$archive_cmds_need_lc" >&6
7466 ;;
7467 esac
7468 fi
7469 ;;
7470esac
7471
John Criswell7a73b802003-06-30 21:59:07 +00007472echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7473echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7474hardcode_action=
7475if test -n "$hardcode_libdir_flag_spec" || \
John Criswell47fdd832003-07-14 16:52:07 +00007476 test -n "$runpath_var " || \
7477 test "X$hardcode_automatic"="Xyes" ; then
John Criswell7a73b802003-06-30 21:59:07 +00007478
7479 # We can hardcode non-existant directories.
7480 if test "$hardcode_direct" != no &&
7481 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7482 # have to relink, otherwise we might link with an installed library
7483 # when we should be linking with a yet-to-be-installed one
John Criswell47fdd832003-07-14 16:52:07 +00007484 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
John Criswell7a73b802003-06-30 21:59:07 +00007485 test "$hardcode_minus_L" != no; then
7486 # Linking always hardcodes the temporary library directory.
7487 hardcode_action=relink
7488 else
7489 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7490 hardcode_action=immediate
7491 fi
7492else
7493 # We cannot hardcode anything, or else we can only hardcode existing
7494 # directories.
7495 hardcode_action=unsupported
7496fi
7497echo "$as_me:$LINENO: result: $hardcode_action" >&5
7498echo "${ECHO_T}$hardcode_action" >&6
John Criswell7a73b802003-06-30 21:59:07 +00007499
John Criswell47fdd832003-07-14 16:52:07 +00007500if test "$hardcode_action" = relink; then
7501 # Fast installation is not supported
7502 enable_fast_install=no
7503elif test "$shlibpath_overrides_runpath" = yes ||
7504 test "$enable_shared" = no; then
7505 # Fast installation is not necessary
7506 enable_fast_install=needless
7507fi
7508
John Criswell7a73b802003-06-30 21:59:07 +00007509striplib=
7510old_striplib=
7511echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7512echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7513if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7514 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7515 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7516 echo "$as_me:$LINENO: result: yes" >&5
7517echo "${ECHO_T}yes" >&6
7518else
John Criswell47fdd832003-07-14 16:52:07 +00007519# FIXME - insert some real tests, host_os isn't really good enough
7520 case $host_os in
7521 darwin*)
7522 if test -n "$STRIP" ; then
7523 striplib="$STRIP -x"
7524 echo "$as_me:$LINENO: result: yes" >&5
7525echo "${ECHO_T}yes" >&6
7526 else
John Criswell7a73b802003-06-30 21:59:07 +00007527 echo "$as_me:$LINENO: result: no" >&5
7528echo "${ECHO_T}no" >&6
7529fi
John Criswell47fdd832003-07-14 16:52:07 +00007530 ;;
7531 *)
7532 echo "$as_me:$LINENO: result: no" >&5
7533echo "${ECHO_T}no" >&6
7534 ;;
7535 esac
7536fi
John Criswell7a73b802003-06-30 21:59:07 +00007537
John Criswell7a73b802003-06-30 21:59:07 +00007538echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7539echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7540library_names_spec=
7541libname_spec='lib$name'
7542soname_spec=
John Criswell47fdd832003-07-14 16:52:07 +00007543shrext=".so"
John Criswell7a73b802003-06-30 21:59:07 +00007544postinstall_cmds=
7545postuninstall_cmds=
7546finish_cmds=
7547finish_eval=
7548shlibpath_var=
7549shlibpath_overrides_runpath=unknown
7550version_type=none
7551dynamic_linker="$host_os ld.so"
7552sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +00007553if test "$GCC" = yes; then
7554 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7555 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7556 # if the path contains ";" then we assume it to be the separator
7557 # otherwise default to the standard path separator (i.e. ":") - it is
7558 # assumed that no part of a normal pathname contains ";" but that should
7559 # okay in the real world where ";" in dirpaths is itself problematic.
7560 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7561 else
7562 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7563 fi
7564else
7565 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7566fi
7567need_lib_prefix=unknown
7568hardcode_into_libs=no
7569
7570# when you set need_version to no, make sure it does not cause -set_version
7571# flags to be left without arguments
7572need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +00007573
7574case $host_os in
7575aix3*)
7576 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007577 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007578 shlibpath_var=LIBPATH
7579
John Criswell47fdd832003-07-14 16:52:07 +00007580 # AIX 3 has no versioning support, so we append a major version to the name.
7581 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007582 ;;
7583
7584aix4* | aix5*)
7585 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007586 need_lib_prefix=no
7587 need_version=no
7588 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007589 if test "$host_cpu" = ia64; then
7590 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +00007591 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007592 shlibpath_var=LD_LIBRARY_PATH
7593 else
7594 # With GCC up to 2.95.x, collect2 would create an import file
7595 # for dependence libraries. The import file would start with
7596 # the line `#! .'. This would cause the generated library to
7597 # depend on `.', always an invalid library. This was fixed in
7598 # development snapshots of GCC prior to 3.0.
7599 case $host_os in
7600 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +00007601 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7602 echo ' yes '
7603 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7604 :
7605 else
7606 can_build_shared=no
7607 fi
7608 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007609 esac
John Criswell47fdd832003-07-14 16:52:07 +00007610 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7611 # soname into executable. Probably we can add versioning support to
7612 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +00007613 if test "$aix_use_runtimelinking" = yes; then
7614 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7615 # instead of lib<name>.a to let people know that these are not
7616 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00007617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007618 else
7619 # We preserve .a as extension for shared libraries through AIX4.2
7620 # and later when we are not doing run time linking.
7621 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +00007622 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007623 fi
7624 shlibpath_var=LIBPATH
7625 fi
7626 ;;
7627
7628amigaos*)
7629 library_names_spec='$libname.ixlibrary $libname.a'
7630 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7631 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'
7632 ;;
7633
7634beos*)
John Criswell47fdd832003-07-14 16:52:07 +00007635 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007636 dynamic_linker="$host_os ld.so"
7637 shlibpath_var=LIBRARY_PATH
7638 ;;
7639
7640bsdi4*)
7641 version_type=linux
7642 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7644 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007645 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7646 shlibpath_var=LD_LIBRARY_PATH
7647 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7648 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +00007649 # the default ld.so.conf also contains /usr/contrib/lib and
7650 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7651 # libtool to hard-code these into programs
7652 ;;
7653
7654cygwin* | mingw* | pw32*)
7655 version_type=windows
John Criswell47fdd832003-07-14 16:52:07 +00007656 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007657 need_version=no
7658 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007659
John Criswell7a73b802003-06-30 21:59:07 +00007660 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007661 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00007662 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +00007663 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7664 postinstall_cmds='base_file=`basename \${file}`~
7665 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007666 dldir=$destdir/`dirname \$dlpath`~
7667 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +00007668 $install_prog $dir/$dlname \$dldir/$dlname'
7669 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007670 dlpath=$dir/\$dldll~
7671 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +00007672 shlibpath_overrides_runpath=yes
7673
7674 case $host_os in
7675 cygwin*)
7676 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7677 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7678 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7679 ;;
7680 mingw*)
7681 # MinGW DLLs use traditional 'lib' prefix
7682 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7683 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7684 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7685 # It is most probably a Windows format PATH printed by
7686 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7687 # path with ; separators, and with drive letters. We can handle the
7688 # drive letters (cygwin fileutils understands them), so leave them,
7689 # especially as we might pass files found there to a mingw objdump,
7690 # which wouldn't understand a cygwinified path. Ahh.
7691 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7692 else
7693 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7694 fi
7695 ;;
7696 pw32*)
7697 # pw32 DLLs use 'pw' prefix rather than 'lib'
7698 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7699 ;;
7700 esac
John Criswell7a73b802003-06-30 21:59:07 +00007701 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007702
John Criswell7a73b802003-06-30 21:59:07 +00007703 *)
John Criswell47fdd832003-07-14 16:52:07 +00007704 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +00007705 ;;
7706 esac
7707 dynamic_linker='Win32 ld.exe'
7708 # FIXME: first we should search . and the directory the executable is in
7709 shlibpath_var=PATH
7710 ;;
7711
7712darwin* | rhapsody*)
7713 dynamic_linker="$host_os dyld"
7714 version_type=darwin
7715 need_lib_prefix=no
7716 need_version=no
7717 # FIXME: Relying on posixy $() will cause problems for
7718 # cross-compilation, but unfortunately the echo tests do not
7719 # yet detect zsh echo's removal of \ escapes.
John Criswell47fdd832003-07-14 16:52:07 +00007720 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7721 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +00007722 shlibpath_overrides_runpath=yes
7723 shlibpath_var=DYLD_LIBRARY_PATH
John Criswell47fdd832003-07-14 16:52:07 +00007724 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7725 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7726 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7727 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"`
7728 fi
7729 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7730 ;;
7731
7732dgux*)
7733 version_type=linux
7734 need_lib_prefix=no
7735 need_version=no
7736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7737 soname_spec='${libname}${release}${shared_ext}$major'
7738 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007739 ;;
7740
7741freebsd1*)
7742 dynamic_linker=no
7743 ;;
7744
7745freebsd*)
7746 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7747 version_type=freebsd-$objformat
7748 case $version_type in
7749 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +00007750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007751 need_version=no
7752 need_lib_prefix=no
7753 ;;
7754 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +00007755 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007756 need_version=yes
7757 ;;
7758 esac
7759 shlibpath_var=LD_LIBRARY_PATH
7760 case $host_os in
7761 freebsd2*)
7762 shlibpath_overrides_runpath=yes
7763 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007764 freebsd3.01* | freebsdelf3.01*)
7765 shlibpath_overrides_runpath=yes
7766 hardcode_into_libs=yes
7767 ;;
7768 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +00007769 shlibpath_overrides_runpath=no
7770 hardcode_into_libs=yes
7771 ;;
7772 esac
7773 ;;
7774
7775gnu*)
7776 version_type=linux
7777 need_lib_prefix=no
7778 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7780 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007781 shlibpath_var=LD_LIBRARY_PATH
7782 hardcode_into_libs=yes
7783 ;;
7784
7785hpux9* | hpux10* | hpux11*)
7786 # Give a soname corresponding to the major version so that dld.sl refuses to
7787 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +00007788 version_type=sunos
7789 need_lib_prefix=no
7790 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007791 case "$host_cpu" in
7792 ia64*)
7793 shrext='.so'
7794 hardcode_into_libs=yes
7795 dynamic_linker="$host_os dld.so"
7796 shlibpath_var=LD_LIBRARY_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 if test "X$HPUX_IA64_MODE" = X32; then
7801 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7802 else
7803 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7804 fi
7805 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7806 ;;
7807 hppa*64*)
7808 shrext='.sl'
7809 hardcode_into_libs=yes
7810 dynamic_linker="$host_os dld.sl"
7811 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7812 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7814 soname_spec='${libname}${release}${shared_ext}$major'
7815 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7816 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7817 ;;
7818 *)
7819 shrext='.sl'
7820 dynamic_linker="$host_os dld.sl"
7821 shlibpath_var=SHLIB_PATH
7822 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7824 soname_spec='${libname}${release}${shared_ext}$major'
7825 ;;
7826 esac
John Criswell7a73b802003-06-30 21:59:07 +00007827 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7828 postinstall_cmds='chmod 555 $lib'
7829 ;;
7830
John Criswell47fdd832003-07-14 16:52:07 +00007831irix5* | irix6* | nonstopux*)
7832 case $host_os in
7833 nonstopux*) version_type=nonstopux ;;
7834 *)
7835 if test "$lt_cv_prog_gnu_ld" = yes; then
7836 version_type=linux
7837 else
7838 version_type=irix
7839 fi ;;
7840 esac
John Criswell7a73b802003-06-30 21:59:07 +00007841 need_lib_prefix=no
7842 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007843 soname_spec='${libname}${release}${shared_ext}$major'
7844 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 +00007845 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007846 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00007847 libsuff= shlibsuff=
7848 ;;
7849 *)
7850 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +00007851 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7852 libsuff= shlibsuff= libmagic=32-bit;;
7853 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7854 libsuff=32 shlibsuff=N32 libmagic=N32;;
7855 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7856 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +00007857 *) libsuff= shlibsuff= libmagic=never-match;;
7858 esac
7859 ;;
7860 esac
7861 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7862 shlibpath_overrides_runpath=no
7863 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7864 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +00007865 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007866 ;;
7867
7868# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +00007869linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +00007870 dynamic_linker=no
7871 ;;
7872
7873# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00007874linux*)
John Criswell7a73b802003-06-30 21:59:07 +00007875 version_type=linux
7876 need_lib_prefix=no
7877 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7879 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007880 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7881 shlibpath_var=LD_LIBRARY_PATH
7882 shlibpath_overrides_runpath=no
7883 # This implies no fast_install, which is unacceptable.
7884 # Some rework will be needed to allow for fast_install
7885 # before this can be enabled.
7886 hardcode_into_libs=yes
7887
7888 # We used to test for /lib/ld.so.1 and disable shared libraries on
7889 # powerpc, because MkLinux only supported shared libraries with the
7890 # GNU dynamic linker. Since this was broken with cross compilers,
7891 # most powerpc-linux boxes support dynamic linking these days and
7892 # people can always --disable-shared, the test was removed, and we
7893 # assume the GNU/Linux dynamic linker is in use.
7894 dynamic_linker='GNU/Linux ld.so'
7895 ;;
7896
7897netbsd*)
7898 version_type=sunos
7899 need_lib_prefix=no
7900 need_version=no
7901 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00007902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007903 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7904 dynamic_linker='NetBSD (a.out) ld.so'
7905 else
John Criswell47fdd832003-07-14 16:52:07 +00007906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7907 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007908 dynamic_linker='NetBSD ld.elf_so'
7909 fi
7910 shlibpath_var=LD_LIBRARY_PATH
7911 shlibpath_overrides_runpath=yes
7912 hardcode_into_libs=yes
7913 ;;
7914
7915newsos6)
7916 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7918 shlibpath_var=LD_LIBRARY_PATH
7919 shlibpath_overrides_runpath=yes
7920 ;;
7921
7922nto-qnx)
7923 version_type=linux
7924 need_lib_prefix=no
7925 need_version=no
7926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7927 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007928 shlibpath_var=LD_LIBRARY_PATH
7929 shlibpath_overrides_runpath=yes
7930 ;;
7931
7932openbsd*)
7933 version_type=sunos
7934 need_lib_prefix=no
7935 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7937 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7938 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007939 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 +00007940 case $host_os in
7941 openbsd2.[89] | openbsd2.[89].*)
7942 shlibpath_overrides_runpath=no
7943 ;;
7944 *)
7945 shlibpath_overrides_runpath=yes
7946 ;;
7947 esac
John Criswell7a73b802003-06-30 21:59:07 +00007948 else
7949 shlibpath_overrides_runpath=yes
7950 fi
John Criswell7a73b802003-06-30 21:59:07 +00007951 ;;
7952
7953os2*)
7954 libname_spec='$name'
John Criswell47fdd832003-07-14 16:52:07 +00007955 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007956 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007957 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007958 dynamic_linker='OS/2 ld.exe'
7959 shlibpath_var=LIBPATH
7960 ;;
7961
7962osf3* | osf4* | osf5*)
7963 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007964 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00007965 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007966 soname_spec='${libname}${release}${shared_ext}$major'
7967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007968 shlibpath_var=LD_LIBRARY_PATH
7969 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7970 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7971 ;;
7972
7973sco3.2v5*)
7974 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007975 soname_spec='${libname}${release}${shared_ext}$major'
7976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007977 shlibpath_var=LD_LIBRARY_PATH
7978 ;;
7979
7980solaris*)
7981 version_type=linux
7982 need_lib_prefix=no
7983 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7985 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007986 shlibpath_var=LD_LIBRARY_PATH
7987 shlibpath_overrides_runpath=yes
7988 hardcode_into_libs=yes
7989 # ldd complains unless libraries are executable
7990 postinstall_cmds='chmod +x $lib'
7991 ;;
7992
7993sunos4*)
7994 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +00007995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007996 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7997 shlibpath_var=LD_LIBRARY_PATH
7998 shlibpath_overrides_runpath=yes
7999 if test "$with_gnu_ld" = yes; then
8000 need_lib_prefix=no
8001 fi
8002 need_version=yes
8003 ;;
8004
8005sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8006 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00008007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8008 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00008009 shlibpath_var=LD_LIBRARY_PATH
8010 case $host_vendor in
8011 sni)
8012 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +00008013 need_lib_prefix=no
8014 export_dynamic_flag_spec='${wl}-Blargedynsym'
8015 runpath_var=LD_RUN_PATH
8016 ;;
8017 siemens)
8018 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00008019 ;;
8020 motorola)
8021 need_lib_prefix=no
8022 need_version=no
8023 shlibpath_overrides_runpath=no
8024 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8025 ;;
8026 esac
8027 ;;
8028
John Criswell7a73b802003-06-30 21:59:07 +00008029sysv4*MP*)
8030 if test -d /usr/nec ;then
8031 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00008032 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8033 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +00008034 shlibpath_var=LD_LIBRARY_PATH
8035 fi
8036 ;;
8037
John Criswell47fdd832003-07-14 16:52:07 +00008038uts4*)
8039 version_type=linux
8040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8041 soname_spec='${libname}${release}${shared_ext}$major'
8042 shlibpath_var=LD_LIBRARY_PATH
8043 ;;
8044
John Criswell7a73b802003-06-30 21:59:07 +00008045*)
8046 dynamic_linker=no
8047 ;;
8048esac
8049echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8050echo "${ECHO_T}$dynamic_linker" >&6
8051test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00008052
8053if test "x$enable_dlopen" != xyes; then
8054 enable_dlopen=unknown
8055 enable_dlopen_self=unknown
8056 enable_dlopen_self_static=unknown
8057else
8058 lt_cv_dlopen=no
8059 lt_cv_dlopen_libs=
8060
8061 case $host_os in
8062 beos*)
8063 lt_cv_dlopen="load_add_on"
8064 lt_cv_dlopen_libs=
8065 lt_cv_dlopen_self=yes
8066 ;;
8067
John Criswell47fdd832003-07-14 16:52:07 +00008068 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00008069 lt_cv_dlopen="LoadLibrary"
8070 lt_cv_dlopen_libs=
8071 ;;
8072
John Criswell47fdd832003-07-14 16:52:07 +00008073 cygwin*)
8074 lt_cv_dlopen="dlopen"
8075 lt_cv_dlopen_libs=
8076 ;;
8077
8078 darwin*)
8079 # if libdl is installed we need to link against it
8080 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8081echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8082if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8083 echo $ECHO_N "(cached) $ECHO_C" >&6
8084else
8085 ac_check_lib_save_LIBS=$LIBS
8086LIBS="-ldl $LIBS"
8087cat >conftest.$ac_ext <<_ACEOF
8088#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008089/* confdefs.h. */
8090_ACEOF
8091cat confdefs.h >>conftest.$ac_ext
8092cat >>conftest.$ac_ext <<_ACEOF
8093/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00008094
8095/* Override any gcc2 internal prototype to avoid an error. */
8096#ifdef __cplusplus
8097extern "C"
8098#endif
8099/* We use char because int might match the return type of a gcc2
8100 builtin and then its argument prototype would still apply. */
8101char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +00008102int
8103main ()
8104{
8105dlopen ();
8106 ;
8107 return 0;
8108}
8109_ACEOF
8110rm -f conftest.$ac_objext conftest$ac_exeext
8111if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8112 (eval $ac_link) 2>&5
8113 ac_status=$?
8114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8115 (exit $ac_status); } &&
8116 { ac_try='test -s conftest$ac_exeext'
8117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8118 (eval $ac_try) 2>&5
8119 ac_status=$?
8120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121 (exit $ac_status); }; }; then
8122 ac_cv_lib_dl_dlopen=yes
8123else
8124 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008125sed 's/^/| /' conftest.$ac_ext >&5
8126
John Criswell47fdd832003-07-14 16:52:07 +00008127ac_cv_lib_dl_dlopen=no
8128fi
8129rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8130LIBS=$ac_check_lib_save_LIBS
8131fi
8132echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8133echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8134if test $ac_cv_lib_dl_dlopen = yes; then
8135 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8136else
8137
8138 lt_cv_dlopen="dyld"
8139 lt_cv_dlopen_libs=
8140 lt_cv_dlopen_self=yes
8141
8142fi
8143
8144 ;;
8145
John Criswell7a73b802003-06-30 21:59:07 +00008146 *)
8147 echo "$as_me:$LINENO: checking for shl_load" >&5
8148echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8149if test "${ac_cv_func_shl_load+set}" = set; then
8150 echo $ECHO_N "(cached) $ECHO_C" >&6
8151else
8152 cat >conftest.$ac_ext <<_ACEOF
8153#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008154/* confdefs.h. */
8155_ACEOF
8156cat confdefs.h >>conftest.$ac_ext
8157cat >>conftest.$ac_ext <<_ACEOF
8158/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008159/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00008160 which can conflict with char shl_load (); below.
8161 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8162 <limits.h> exists even on freestanding compilers. */
8163#ifdef __STDC__
8164# include <limits.h>
8165#else
8166# include <assert.h>
8167#endif
John Criswell7a73b802003-06-30 21:59:07 +00008168/* Override any gcc2 internal prototype to avoid an error. */
8169#ifdef __cplusplus
8170extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00008171{
John Criswell7a73b802003-06-30 21:59:07 +00008172#endif
8173/* We use char because int might match the return type of a gcc2
8174 builtin and then its argument prototype would still apply. */
8175char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00008176/* The GNU C library defines this for functions which it implements
8177 to always fail with ENOSYS. Some functions are actually named
8178 something starting with __ and the normal name is an alias. */
8179#if defined (__stub_shl_load) || defined (__stub___shl_load)
8180choke me
8181#else
John Criswell0c38eaf2003-09-10 15:17:25 +00008182char (*f) () = shl_load;
8183#endif
8184#ifdef __cplusplus
8185}
John Criswell7a73b802003-06-30 21:59:07 +00008186#endif
8187
John Criswell0c38eaf2003-09-10 15:17:25 +00008188int
8189main ()
8190{
8191return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +00008192 ;
8193 return 0;
8194}
8195_ACEOF
8196rm -f conftest.$ac_objext conftest$ac_exeext
8197if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8198 (eval $ac_link) 2>&5
8199 ac_status=$?
8200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8201 (exit $ac_status); } &&
8202 { ac_try='test -s conftest$ac_exeext'
8203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8204 (eval $ac_try) 2>&5
8205 ac_status=$?
8206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207 (exit $ac_status); }; }; then
8208 ac_cv_func_shl_load=yes
8209else
8210 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008211sed 's/^/| /' conftest.$ac_ext >&5
8212
John Criswell7a73b802003-06-30 21:59:07 +00008213ac_cv_func_shl_load=no
8214fi
8215rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8216fi
8217echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8218echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8219if test $ac_cv_func_shl_load = yes; then
8220 lt_cv_dlopen="shl_load"
8221else
8222 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8223echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8224if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8225 echo $ECHO_N "(cached) $ECHO_C" >&6
8226else
8227 ac_check_lib_save_LIBS=$LIBS
8228LIBS="-ldld $LIBS"
8229cat >conftest.$ac_ext <<_ACEOF
8230#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008231/* confdefs.h. */
8232_ACEOF
8233cat confdefs.h >>conftest.$ac_ext
8234cat >>conftest.$ac_ext <<_ACEOF
8235/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008236
8237/* Override any gcc2 internal prototype to avoid an error. */
8238#ifdef __cplusplus
8239extern "C"
8240#endif
8241/* We use char because int might match the return type of a gcc2
8242 builtin and then its argument prototype would still apply. */
8243char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00008244int
8245main ()
8246{
8247shl_load ();
8248 ;
8249 return 0;
8250}
8251_ACEOF
8252rm -f conftest.$ac_objext conftest$ac_exeext
8253if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8254 (eval $ac_link) 2>&5
8255 ac_status=$?
8256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 (exit $ac_status); } &&
8258 { ac_try='test -s conftest$ac_exeext'
8259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8260 (eval $ac_try) 2>&5
8261 ac_status=$?
8262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263 (exit $ac_status); }; }; then
8264 ac_cv_lib_dld_shl_load=yes
8265else
8266 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008267sed 's/^/| /' conftest.$ac_ext >&5
8268
John Criswell7a73b802003-06-30 21:59:07 +00008269ac_cv_lib_dld_shl_load=no
8270fi
8271rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8272LIBS=$ac_check_lib_save_LIBS
8273fi
8274echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8275echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8276if test $ac_cv_lib_dld_shl_load = yes; then
8277 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8278else
8279 echo "$as_me:$LINENO: checking for dlopen" >&5
8280echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8281if test "${ac_cv_func_dlopen+set}" = set; then
8282 echo $ECHO_N "(cached) $ECHO_C" >&6
8283else
8284 cat >conftest.$ac_ext <<_ACEOF
8285#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008286/* confdefs.h. */
8287_ACEOF
8288cat confdefs.h >>conftest.$ac_ext
8289cat >>conftest.$ac_ext <<_ACEOF
8290/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008291/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00008292 which can conflict with char dlopen (); below.
8293 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8294 <limits.h> exists even on freestanding compilers. */
8295#ifdef __STDC__
8296# include <limits.h>
8297#else
8298# include <assert.h>
8299#endif
John Criswell7a73b802003-06-30 21:59:07 +00008300/* Override any gcc2 internal prototype to avoid an error. */
8301#ifdef __cplusplus
8302extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00008303{
John Criswell7a73b802003-06-30 21:59:07 +00008304#endif
8305/* We use char because int might match the return type of a gcc2
8306 builtin and then its argument prototype would still apply. */
8307char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008308/* The GNU C library defines this for functions which it implements
8309 to always fail with ENOSYS. Some functions are actually named
8310 something starting with __ and the normal name is an alias. */
8311#if defined (__stub_dlopen) || defined (__stub___dlopen)
8312choke me
8313#else
John Criswell0c38eaf2003-09-10 15:17:25 +00008314char (*f) () = dlopen;
8315#endif
8316#ifdef __cplusplus
8317}
John Criswell7a73b802003-06-30 21:59:07 +00008318#endif
8319
John Criswell0c38eaf2003-09-10 15:17:25 +00008320int
8321main ()
8322{
8323return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +00008324 ;
8325 return 0;
8326}
8327_ACEOF
8328rm -f conftest.$ac_objext conftest$ac_exeext
8329if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8330 (eval $ac_link) 2>&5
8331 ac_status=$?
8332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333 (exit $ac_status); } &&
8334 { ac_try='test -s conftest$ac_exeext'
8335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8336 (eval $ac_try) 2>&5
8337 ac_status=$?
8338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339 (exit $ac_status); }; }; then
8340 ac_cv_func_dlopen=yes
8341else
8342 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008343sed 's/^/| /' conftest.$ac_ext >&5
8344
John Criswell7a73b802003-06-30 21:59:07 +00008345ac_cv_func_dlopen=no
8346fi
8347rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8348fi
8349echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8350echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8351if test $ac_cv_func_dlopen = yes; then
8352 lt_cv_dlopen="dlopen"
8353else
8354 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8355echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8356if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8357 echo $ECHO_N "(cached) $ECHO_C" >&6
8358else
8359 ac_check_lib_save_LIBS=$LIBS
8360LIBS="-ldl $LIBS"
8361cat >conftest.$ac_ext <<_ACEOF
8362#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008363/* confdefs.h. */
8364_ACEOF
8365cat confdefs.h >>conftest.$ac_ext
8366cat >>conftest.$ac_ext <<_ACEOF
8367/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008368
8369/* Override any gcc2 internal prototype to avoid an error. */
8370#ifdef __cplusplus
8371extern "C"
8372#endif
8373/* We use char because int might match the return type of a gcc2
8374 builtin and then its argument prototype would still apply. */
8375char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008376int
8377main ()
8378{
8379dlopen ();
8380 ;
8381 return 0;
8382}
8383_ACEOF
8384rm -f conftest.$ac_objext conftest$ac_exeext
8385if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8386 (eval $ac_link) 2>&5
8387 ac_status=$?
8388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8389 (exit $ac_status); } &&
8390 { ac_try='test -s conftest$ac_exeext'
8391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8392 (eval $ac_try) 2>&5
8393 ac_status=$?
8394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8395 (exit $ac_status); }; }; then
8396 ac_cv_lib_dl_dlopen=yes
8397else
8398 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008399sed 's/^/| /' conftest.$ac_ext >&5
8400
John Criswell7a73b802003-06-30 21:59:07 +00008401ac_cv_lib_dl_dlopen=no
8402fi
8403rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8404LIBS=$ac_check_lib_save_LIBS
8405fi
8406echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8407echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8408if test $ac_cv_lib_dl_dlopen = yes; then
8409 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8410else
8411 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8412echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8413if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8414 echo $ECHO_N "(cached) $ECHO_C" >&6
8415else
8416 ac_check_lib_save_LIBS=$LIBS
8417LIBS="-lsvld $LIBS"
8418cat >conftest.$ac_ext <<_ACEOF
8419#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008420/* confdefs.h. */
8421_ACEOF
8422cat confdefs.h >>conftest.$ac_ext
8423cat >>conftest.$ac_ext <<_ACEOF
8424/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008425
8426/* Override any gcc2 internal prototype to avoid an error. */
8427#ifdef __cplusplus
8428extern "C"
8429#endif
8430/* We use char because int might match the return type of a gcc2
8431 builtin and then its argument prototype would still apply. */
8432char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008433int
8434main ()
8435{
8436dlopen ();
8437 ;
8438 return 0;
8439}
8440_ACEOF
8441rm -f conftest.$ac_objext conftest$ac_exeext
8442if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8443 (eval $ac_link) 2>&5
8444 ac_status=$?
8445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446 (exit $ac_status); } &&
8447 { ac_try='test -s conftest$ac_exeext'
8448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8449 (eval $ac_try) 2>&5
8450 ac_status=$?
8451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452 (exit $ac_status); }; }; then
8453 ac_cv_lib_svld_dlopen=yes
8454else
8455 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008456sed 's/^/| /' conftest.$ac_ext >&5
8457
John Criswell7a73b802003-06-30 21:59:07 +00008458ac_cv_lib_svld_dlopen=no
8459fi
8460rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8461LIBS=$ac_check_lib_save_LIBS
8462fi
8463echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8464echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8465if test $ac_cv_lib_svld_dlopen = yes; then
8466 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8467else
8468 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8469echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8470if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8471 echo $ECHO_N "(cached) $ECHO_C" >&6
8472else
8473 ac_check_lib_save_LIBS=$LIBS
8474LIBS="-ldld $LIBS"
8475cat >conftest.$ac_ext <<_ACEOF
8476#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008477/* confdefs.h. */
8478_ACEOF
8479cat confdefs.h >>conftest.$ac_ext
8480cat >>conftest.$ac_ext <<_ACEOF
8481/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008482
8483/* Override any gcc2 internal prototype to avoid an error. */
8484#ifdef __cplusplus
8485extern "C"
8486#endif
8487/* We use char because int might match the return type of a gcc2
8488 builtin and then its argument prototype would still apply. */
8489char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +00008490int
8491main ()
8492{
8493dld_link ();
8494 ;
8495 return 0;
8496}
8497_ACEOF
8498rm -f conftest.$ac_objext conftest$ac_exeext
8499if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8500 (eval $ac_link) 2>&5
8501 ac_status=$?
8502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503 (exit $ac_status); } &&
8504 { ac_try='test -s conftest$ac_exeext'
8505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8506 (eval $ac_try) 2>&5
8507 ac_status=$?
8508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509 (exit $ac_status); }; }; then
8510 ac_cv_lib_dld_dld_link=yes
8511else
8512 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008513sed 's/^/| /' conftest.$ac_ext >&5
8514
John Criswell7a73b802003-06-30 21:59:07 +00008515ac_cv_lib_dld_dld_link=no
8516fi
8517rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8518LIBS=$ac_check_lib_save_LIBS
8519fi
8520echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8521echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8522if test $ac_cv_lib_dld_dld_link = yes; then
8523 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8524fi
8525
8526
8527fi
8528
8529
8530fi
8531
8532
8533fi
8534
8535
8536fi
8537
8538
8539fi
8540
8541 ;;
8542 esac
8543
8544 if test "x$lt_cv_dlopen" != xno; then
8545 enable_dlopen=yes
8546 else
8547 enable_dlopen=no
8548 fi
8549
8550 case $lt_cv_dlopen in
8551 dlopen)
8552 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +00008553 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +00008554
8555 save_LDFLAGS="$LDFLAGS"
8556 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8557
8558 save_LIBS="$LIBS"
8559 LIBS="$lt_cv_dlopen_libs $LIBS"
8560
8561 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8562echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8563if test "${lt_cv_dlopen_self+set}" = set; then
8564 echo $ECHO_N "(cached) $ECHO_C" >&6
8565else
8566 if test "$cross_compiling" = yes; then :
8567 lt_cv_dlopen_self=cross
8568else
John Criswell47fdd832003-07-14 16:52:07 +00008569 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008570 lt_status=$lt_dlunknown
8571 cat > conftest.$ac_ext <<EOF
John Criswell4e079782003-09-29 14:52:28 +00008572#line 8572 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008573#include "confdefs.h"
8574
8575#if HAVE_DLFCN_H
8576#include <dlfcn.h>
8577#endif
8578
8579#include <stdio.h>
8580
8581#ifdef RTLD_GLOBAL
8582# define LT_DLGLOBAL RTLD_GLOBAL
8583#else
8584# ifdef DL_GLOBAL
8585# define LT_DLGLOBAL DL_GLOBAL
8586# else
8587# define LT_DLGLOBAL 0
8588# endif
8589#endif
8590
8591/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8592 find out it does not work in some platform. */
8593#ifndef LT_DLLAZY_OR_NOW
8594# ifdef RTLD_LAZY
8595# define LT_DLLAZY_OR_NOW RTLD_LAZY
8596# else
8597# ifdef DL_LAZY
8598# define LT_DLLAZY_OR_NOW DL_LAZY
8599# else
8600# ifdef RTLD_NOW
8601# define LT_DLLAZY_OR_NOW RTLD_NOW
8602# else
8603# ifdef DL_NOW
8604# define LT_DLLAZY_OR_NOW DL_NOW
8605# else
8606# define LT_DLLAZY_OR_NOW 0
8607# endif
8608# endif
8609# endif
8610# endif
8611#endif
8612
8613#ifdef __cplusplus
8614extern "C" void exit (int);
8615#endif
8616
8617void fnord() { int i=42;}
8618int main ()
8619{
8620 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8621 int status = $lt_dlunknown;
8622
8623 if (self)
8624 {
8625 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8626 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8627 /* dlclose (self); */
8628 }
8629
8630 exit (status);
8631}
8632EOF
8633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8634 (eval $ac_link) 2>&5
8635 ac_status=$?
8636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8638 (./conftest; exit; ) 2>/dev/null
8639 lt_status=$?
8640 case x$lt_status in
8641 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8642 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8643 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8644 esac
8645 else :
8646 # compilation failed
8647 lt_cv_dlopen_self=no
8648 fi
8649fi
8650rm -fr conftest*
8651
8652
8653fi
8654echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8655echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8656
8657 if test "x$lt_cv_dlopen_self" = xyes; then
8658 LDFLAGS="$LDFLAGS $link_static_flag"
8659 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8660echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8661if test "${lt_cv_dlopen_self_static+set}" = set; then
8662 echo $ECHO_N "(cached) $ECHO_C" >&6
8663else
8664 if test "$cross_compiling" = yes; then :
8665 lt_cv_dlopen_self_static=cross
8666else
John Criswell47fdd832003-07-14 16:52:07 +00008667 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008668 lt_status=$lt_dlunknown
8669 cat > conftest.$ac_ext <<EOF
John Criswell4e079782003-09-29 14:52:28 +00008670#line 8670 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008671#include "confdefs.h"
8672
8673#if HAVE_DLFCN_H
8674#include <dlfcn.h>
8675#endif
8676
8677#include <stdio.h>
8678
8679#ifdef RTLD_GLOBAL
8680# define LT_DLGLOBAL RTLD_GLOBAL
8681#else
8682# ifdef DL_GLOBAL
8683# define LT_DLGLOBAL DL_GLOBAL
8684# else
8685# define LT_DLGLOBAL 0
8686# endif
8687#endif
8688
8689/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8690 find out it does not work in some platform. */
8691#ifndef LT_DLLAZY_OR_NOW
8692# ifdef RTLD_LAZY
8693# define LT_DLLAZY_OR_NOW RTLD_LAZY
8694# else
8695# ifdef DL_LAZY
8696# define LT_DLLAZY_OR_NOW DL_LAZY
8697# else
8698# ifdef RTLD_NOW
8699# define LT_DLLAZY_OR_NOW RTLD_NOW
8700# else
8701# ifdef DL_NOW
8702# define LT_DLLAZY_OR_NOW DL_NOW
8703# else
8704# define LT_DLLAZY_OR_NOW 0
8705# endif
8706# endif
8707# endif
8708# endif
8709#endif
8710
8711#ifdef __cplusplus
8712extern "C" void exit (int);
8713#endif
8714
8715void fnord() { int i=42;}
8716int main ()
8717{
8718 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8719 int status = $lt_dlunknown;
8720
8721 if (self)
8722 {
8723 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8724 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8725 /* dlclose (self); */
8726 }
8727
8728 exit (status);
8729}
8730EOF
8731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8732 (eval $ac_link) 2>&5
8733 ac_status=$?
8734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8736 (./conftest; exit; ) 2>/dev/null
8737 lt_status=$?
8738 case x$lt_status in
8739 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8740 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8741 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8742 esac
8743 else :
8744 # compilation failed
8745 lt_cv_dlopen_self_static=no
8746 fi
8747fi
8748rm -fr conftest*
8749
8750
8751fi
8752echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8753echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8754 fi
8755
8756 CPPFLAGS="$save_CPPFLAGS"
8757 LDFLAGS="$save_LDFLAGS"
8758 LIBS="$save_LIBS"
8759 ;;
8760 esac
8761
8762 case $lt_cv_dlopen_self in
8763 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8764 *) enable_dlopen_self=unknown ;;
8765 esac
8766
8767 case $lt_cv_dlopen_self_static in
8768 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8769 *) enable_dlopen_self_static=unknown ;;
8770 esac
8771fi
8772
8773
John Criswell47fdd832003-07-14 16:52:07 +00008774# Report which librarie types wil actually be built
8775echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8776echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8777echo "$as_me:$LINENO: result: $can_build_shared" >&5
8778echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008779
John Criswell47fdd832003-07-14 16:52:07 +00008780echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8781echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8782test "$can_build_shared" = "no" && enable_shared=no
8783
8784# On AIX, shared libraries and static libraries use the same namespace, and
8785# are all built from PIC.
8786case "$host_os" in
8787aix3*)
8788 test "$enable_shared" = yes && enable_static=no
8789 if test -n "$RANLIB"; then
8790 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8791 postinstall_cmds='$RANLIB $lib'
8792 fi
8793 ;;
8794
8795aix4*)
8796 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8797 test "$enable_shared" = yes && enable_static=no
8798 fi
8799 ;;
8800 darwin* | rhapsody*)
8801 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8802 archive_cmds_need_lc=no
8803 case "$host_os" in
8804 rhapsody* | darwin1.[012])
8805 allow_undefined_flag='-undefined suppress'
8806 ;;
8807 *) # Darwin 1.3 on
8808 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8809 ;;
8810 esac
8811 # FIXME: Relying on posixy $() will cause problems for
8812 # cross-compilation, but unfortunately the echo tests do not
8813 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
8814 # `"' quotes if we put them in here... so don't!
8815 output_verbose_link_cmd='echo'
8816 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8817 module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8818 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8819 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}'
8820 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}'
8821 hardcode_direct=no
8822 hardcode_automatic=yes
8823 hardcode_shlibpath_var=unsupported
8824 whole_archive_flag_spec='-all_load $convenience'
8825 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00008826 fi
John Criswell7a73b802003-06-30 21:59:07 +00008827 ;;
John Criswell47fdd832003-07-14 16:52:07 +00008828esac
8829echo "$as_me:$LINENO: result: $enable_shared" >&5
8830echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008831
John Criswell47fdd832003-07-14 16:52:07 +00008832echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8833echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8834# Make sure either enable_shared or enable_static is yes.
8835test "$enable_shared" = yes || enable_static=yes
8836echo "$as_me:$LINENO: result: $enable_static" >&5
8837echo "${ECHO_T}$enable_static" >&6
8838
8839# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +00008840# libtool distribution, otherwise you forgot to ship ltmain.sh
8841# with your package, and you will get complaints that there are
8842# no rules to generate ltmain.sh.
8843if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +00008844 # See if we are running on zsh, and set the options which allow our commands through
8845 # without removal of \ escapes.
8846 if test -n "${ZSH_VERSION+set}" ; then
8847 setopt NO_GLOB_SUBST
8848 fi
John Criswell7a73b802003-06-30 21:59:07 +00008849 # Now quote all the things that may contain metacharacters while being
8850 # careful not to overquote the AC_SUBSTed values. We take copies of the
8851 # variables and quote the copies for generation of the libtool script.
John Criswell47fdd832003-07-14 16:52:07 +00008852 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8853 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8854 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8855 deplibs_check_method reload_flag reload_cmds need_locks \
8856 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8857 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +00008858 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +00008859 old_postinstall_cmds old_postuninstall_cmds \
8860 compiler \
8861 CC \
8862 LD \
8863 lt_prog_compiler_wl \
8864 lt_prog_compiler_pic \
8865 lt_prog_compiler_static \
8866 lt_prog_compiler_no_builtin_flag \
8867 export_dynamic_flag_spec \
8868 thread_safe_flag_spec \
8869 whole_archive_flag_spec \
8870 enable_shared_with_static_runtimes \
8871 old_archive_cmds \
8872 old_archive_from_new_cmds \
8873 predep_objects \
8874 postdep_objects \
8875 predeps \
8876 postdeps \
8877 compiler_lib_search_path \
8878 archive_cmds \
8879 archive_expsym_cmds \
8880 postinstall_cmds \
8881 postuninstall_cmds \
8882 old_archive_from_expsyms_cmds \
8883 allow_undefined_flag \
8884 no_undefined_flag \
8885 export_symbols_cmds \
8886 hardcode_libdir_flag_spec \
8887 hardcode_libdir_flag_spec_ld \
8888 hardcode_libdir_separator \
8889 hardcode_automatic \
8890 module_cmds \
8891 module_expsym_cmds \
8892 lt_cv_prog_compiler_c_o \
8893 exclude_expsyms \
8894 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +00008895
8896 case $var in
John Criswell47fdd832003-07-14 16:52:07 +00008897 old_archive_cmds | \
8898 old_archive_from_new_cmds | \
8899 archive_cmds | \
8900 archive_expsym_cmds | \
8901 module_cmds | \
8902 module_expsym_cmds | \
8903 old_archive_from_expsyms_cmds | \
8904 export_symbols_cmds | \
8905 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +00008906 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +00008907 old_postinstall_cmds | old_postuninstall_cmds | \
8908 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +00008909 # Double-quote double-evaled strings.
8910 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8911 ;;
8912 *)
8913 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8914 ;;
8915 esac
8916 done
8917
John Criswell47fdd832003-07-14 16:52:07 +00008918 case $lt_echo in
8919 *'\$0 --fallback-echo"')
8920 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8921 ;;
8922 esac
8923
8924cfgfile="${ofile}T"
8925 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8926 $rm -f "$cfgfile"
8927 { echo "$as_me:$LINENO: creating $ofile" >&5
8928echo "$as_me: creating $ofile" >&6;}
8929
8930 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00008931#! $SHELL
8932
John Criswell47fdd832003-07-14 16:52:07 +00008933# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +00008934# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8935# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8936#
John Criswell47fdd832003-07-14 16:52:07 +00008937# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8938# Free Software Foundation, Inc.
8939#
8940# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +00008941# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8942#
8943# This program is free software; you can redistribute it and/or modify
8944# it under the terms of the GNU General Public License as published by
8945# the Free Software Foundation; either version 2 of the License, or
8946# (at your option) any later version.
8947#
8948# This program is distributed in the hope that it will be useful, but
8949# WITHOUT ANY WARRANTY; without even the implied warranty of
8950# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8951# General Public License for more details.
8952#
8953# You should have received a copy of the GNU General Public License
8954# along with this program; if not, write to the Free Software
8955# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8956#
8957# As a special exception to the GNU General Public License, if you
8958# distribute this file as part of a program that contains a
8959# configuration script generated by Autoconf, you may include it under
8960# the same distribution terms that you use for the rest of that program.
8961
John Criswell47fdd832003-07-14 16:52:07 +00008962# A sed program that does not truncate output.
8963SED=$lt_SED
8964
John Criswell7a73b802003-06-30 21:59:07 +00008965# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +00008966Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +00008967
8968# The HP-UX ksh and POSIX shell print the target directory to stdout
8969# if CDPATH is set.
8970if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8971
John Criswell47fdd832003-07-14 16:52:07 +00008972# The names of the tagged configurations supported by this script.
8973available_tags=
8974
John Criswell7a73b802003-06-30 21:59:07 +00008975# ### BEGIN LIBTOOL CONFIG
8976
8977# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8978
8979# Shell to use when invoking shell scripts.
8980SHELL=$lt_SHELL
8981
8982# Whether or not to build shared libraries.
8983build_libtool_libs=$enable_shared
8984
8985# Whether or not to build static libraries.
8986build_old_libs=$enable_static
8987
8988# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00008989build_libtool_need_lc=$archive_cmds_need_lc
8990
8991# Whether or not to disallow shared libs when runtime libs are static
8992allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +00008993
8994# Whether or not to optimize for fast installation.
8995fast_install=$enable_fast_install
8996
8997# The host system.
8998host_alias=$host_alias
8999host=$host
9000
9001# An echo program that does not interpret backslashes.
9002echo=$lt_echo
9003
9004# The archiver.
9005AR=$lt_AR
9006AR_FLAGS=$lt_AR_FLAGS
9007
John Criswell47fdd832003-07-14 16:52:07 +00009008# A C compiler.
9009LTCC=$lt_LTCC
9010
9011# A language-specific compiler.
9012CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +00009013
9014# Is the compiler the GNU C compiler?
9015with_gcc=$GCC
9016
John Criswell47fdd832003-07-14 16:52:07 +00009017# An ERE matcher.
9018EGREP=$lt_EGREP
9019
John Criswell7a73b802003-06-30 21:59:07 +00009020# The linker used to build libraries.
9021LD=$lt_LD
9022
9023# Whether we need hard or soft links.
9024LN_S=$lt_LN_S
9025
9026# A BSD-compatible nm program.
9027NM=$lt_NM
9028
9029# A symbol stripping program
9030STRIP=$STRIP
9031
9032# Used to examine libraries when file_magic_cmd begins "file"
9033MAGIC_CMD=$MAGIC_CMD
9034
9035# Used on cygwin: DLL creation program.
9036DLLTOOL="$DLLTOOL"
9037
9038# Used on cygwin: object dumper.
9039OBJDUMP="$OBJDUMP"
9040
9041# Used on cygwin: assembler.
9042AS="$AS"
9043
9044# The name of the directory that contains temporary libtool files.
9045objdir=$objdir
9046
9047# How to create reloadable object files.
9048reload_flag=$lt_reload_flag
9049reload_cmds=$lt_reload_cmds
9050
9051# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +00009052wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +00009053
9054# Object file suffix (normally "o").
9055objext="$ac_objext"
9056
9057# Old archive suffix (normally "a").
9058libext="$libext"
9059
John Criswell47fdd832003-07-14 16:52:07 +00009060# Shared library suffix (normally ".so").
9061shrext='$shrext'
9062
John Criswell7a73b802003-06-30 21:59:07 +00009063# Executable file suffix (normally "").
9064exeext="$exeext"
9065
9066# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +00009067pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +00009068pic_mode=$pic_mode
9069
John Criswell47fdd832003-07-14 16:52:07 +00009070# What is the maximum length of a command?
9071max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +00009072
John Criswell47fdd832003-07-14 16:52:07 +00009073# Does compiler simultaneously support -c and -o options?
9074compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +00009075
9076# Must we lock files when doing compilation ?
9077need_locks=$lt_need_locks
9078
9079# Do we need the lib prefix for modules?
9080need_lib_prefix=$need_lib_prefix
9081
9082# Do we need a version for libraries?
9083need_version=$need_version
9084
9085# Whether dlopen is supported.
9086dlopen_support=$enable_dlopen
9087
9088# Whether dlopen of programs is supported.
9089dlopen_self=$enable_dlopen_self
9090
9091# Whether dlopen of statically linked programs is supported.
9092dlopen_self_static=$enable_dlopen_self_static
9093
9094# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +00009095link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +00009096
9097# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +00009098no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +00009099
9100# Compiler flag to allow reflexive dlopens.
9101export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9102
9103# Compiler flag to generate shared objects directly from archives.
9104whole_archive_flag_spec=$lt_whole_archive_flag_spec
9105
9106# Compiler flag to generate thread-safe objects.
9107thread_safe_flag_spec=$lt_thread_safe_flag_spec
9108
9109# Library versioning type.
9110version_type=$version_type
9111
9112# Format of library name prefix.
9113libname_spec=$lt_libname_spec
9114
9115# List of archive names. First name is the real one, the rest are links.
9116# The last name is the one that the linker finds with -lNAME.
9117library_names_spec=$lt_library_names_spec
9118
9119# The coded name of the library, if different from the real name.
9120soname_spec=$lt_soname_spec
9121
9122# Commands used to build and install an old-style archive.
9123RANLIB=$lt_RANLIB
9124old_archive_cmds=$lt_old_archive_cmds
9125old_postinstall_cmds=$lt_old_postinstall_cmds
9126old_postuninstall_cmds=$lt_old_postuninstall_cmds
9127
9128# Create an old-style archive from a shared archive.
9129old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9130
9131# Create a temporary old-style archive to link instead of a shared archive.
9132old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9133
9134# Commands used to build and install a shared archive.
9135archive_cmds=$lt_archive_cmds
9136archive_expsym_cmds=$lt_archive_expsym_cmds
9137postinstall_cmds=$lt_postinstall_cmds
9138postuninstall_cmds=$lt_postuninstall_cmds
9139
John Criswell47fdd832003-07-14 16:52:07 +00009140# Commands used to build a loadable module (assumed same as above if empty)
9141module_cmds=$lt_module_cmds
9142module_expsym_cmds=$lt_module_expsym_cmds
9143
John Criswell7a73b802003-06-30 21:59:07 +00009144# Commands to strip libraries.
9145old_striplib=$lt_old_striplib
9146striplib=$lt_striplib
9147
John Criswell47fdd832003-07-14 16:52:07 +00009148# Dependencies to place before the objects being linked to create a
9149# shared library.
9150predep_objects=$lt_predep_objects
9151
9152# Dependencies to place after the objects being linked to create a
9153# shared library.
9154postdep_objects=$lt_postdep_objects
9155
9156# Dependencies to place before the objects being linked to create a
9157# shared library.
9158predeps=$lt_predeps
9159
9160# Dependencies to place after the objects being linked to create a
9161# shared library.
9162postdeps=$lt_postdeps
9163
9164# The library search path used internally by the compiler when linking
9165# a shared library.
9166compiler_lib_search_path=$lt_compiler_lib_search_path
9167
John Criswell7a73b802003-06-30 21:59:07 +00009168# Method to check whether dependent libraries are shared objects.
9169deplibs_check_method=$lt_deplibs_check_method
9170
9171# Command to use when deplibs_check_method == file_magic.
9172file_magic_cmd=$lt_file_magic_cmd
9173
9174# Flag that allows shared libraries with undefined symbols to be built.
9175allow_undefined_flag=$lt_allow_undefined_flag
9176
9177# Flag that forces no undefined symbols.
9178no_undefined_flag=$lt_no_undefined_flag
9179
9180# Commands used to finish a libtool library installation in a directory.
9181finish_cmds=$lt_finish_cmds
9182
9183# Same as above, but a single script fragment to be evaled but not shown.
9184finish_eval=$lt_finish_eval
9185
9186# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +00009187global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +00009188
9189# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +00009190global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +00009191
9192# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +00009193global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +00009194
9195# This is the shared library runtime path variable.
9196runpath_var=$runpath_var
9197
9198# This is the shared library path variable.
9199shlibpath_var=$shlibpath_var
9200
9201# Is shlibpath searched before the hard-coded library search path?
9202shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9203
9204# How to hardcode a shared library path into an executable.
9205hardcode_action=$hardcode_action
9206
9207# Whether we should hardcode library paths into libraries.
9208hardcode_into_libs=$hardcode_into_libs
9209
9210# Flag to hardcode \$libdir into a binary during linking.
9211# This must work even if \$libdir does not exist.
9212hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9213
John Criswell47fdd832003-07-14 16:52:07 +00009214# If ld is used when linking, flag to hardcode \$libdir into
9215# a binary during linking. This must work even if \$libdir does
9216# not exist.
9217hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9218
John Criswell7a73b802003-06-30 21:59:07 +00009219# Whether we need a single -rpath flag with a separated argument.
9220hardcode_libdir_separator=$lt_hardcode_libdir_separator
9221
John Criswell47fdd832003-07-14 16:52:07 +00009222# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +00009223# resulting binary.
9224hardcode_direct=$hardcode_direct
9225
9226# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9227# resulting binary.
9228hardcode_minus_L=$hardcode_minus_L
9229
9230# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9231# the resulting binary.
9232hardcode_shlibpath_var=$hardcode_shlibpath_var
9233
John Criswell47fdd832003-07-14 16:52:07 +00009234# Set to yes if building a shared library automatically hardcodes DIR into the library
9235# and all subsequent libraries and executables linked against it.
9236hardcode_automatic=$hardcode_automatic
9237
John Criswell7a73b802003-06-30 21:59:07 +00009238# Variables whose values should be saved in libtool wrapper scripts and
9239# restored at relink time.
9240variables_saved_for_relink="$variables_saved_for_relink"
9241
9242# Whether libtool must link a program against all its dependency libraries.
9243link_all_deplibs=$link_all_deplibs
9244
9245# Compile-time system search path for libraries
9246sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9247
9248# Run-time system search path for libraries
9249sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9250
9251# Fix the shell variable \$srcfile for the compiler.
9252fix_srcfile_path="$fix_srcfile_path"
9253
9254# Set to yes if exported symbols are required.
9255always_export_symbols=$always_export_symbols
9256
9257# The commands to list exported symbols.
9258export_symbols_cmds=$lt_export_symbols_cmds
9259
9260# The commands to extract the exported symbol list from a shared archive.
9261extract_expsyms_cmds=$lt_extract_expsyms_cmds
9262
9263# Symbols that should not be listed in the preloaded symbols.
9264exclude_expsyms=$lt_exclude_expsyms
9265
9266# Symbols that must always be exported.
9267include_expsyms=$lt_include_expsyms
9268
9269# ### END LIBTOOL CONFIG
9270
9271__EOF__
9272
John Criswell47fdd832003-07-14 16:52:07 +00009273
John Criswell7a73b802003-06-30 21:59:07 +00009274 case $host_os in
9275 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +00009276 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00009277
9278# AIX sometimes has problems with the GCC collect2 program. For some
9279# reason, if we set the COLLECT_NAMES environment variable, the problems
9280# vanish in a puff of smoke.
9281if test "X${COLLECT_NAMES+set}" != Xset; then
9282 COLLECT_NAMES=
9283 export COLLECT_NAMES
9284fi
9285EOF
9286 ;;
9287 esac
9288
John Criswell7a73b802003-06-30 21:59:07 +00009289 # We use sed instead of cat because bash on DJGPP gets confused if
9290 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9291 # text mode, it properly converts lines to CR/LF. This bash problem
9292 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +00009293 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +00009294
John Criswell47fdd832003-07-14 16:52:07 +00009295 mv -f "$cfgfile" "$ofile" || \
9296 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +00009297 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +00009298
9299else
9300 # If there is no Makefile yet, we rely on a make rule to execute
9301 # `config.status --recheck' to rerun these tests and create the
9302 # libtool script then.
9303 test -f Makefile && make "$ltmain"
John Criswell7a73b802003-06-30 21:59:07 +00009304fi
John Criswell7a73b802003-06-30 21:59:07 +00009305
9306
John Criswell47fdd832003-07-14 16:52:07 +00009307ac_ext=c
9308ac_cpp='$CPP $CPPFLAGS'
9309ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9310ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9311ac_compiler_gnu=$ac_cv_c_compiler_gnu
9312
9313CC="$lt_save_CC"
9314
9315
9316# Check whether --with-tags or --without-tags was given.
9317if test "${with_tags+set}" = set; then
9318 withval="$with_tags"
9319 tagnames="$withval"
9320fi;
9321
9322if test -f "$ltmain" && test -n "$tagnames"; then
9323 if test ! -f "${ofile}"; then
9324 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9325echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9326 fi
9327
9328 if test -z "$LTCC"; then
9329 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9330 if test -z "$LTCC"; then
9331 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9332echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9333 else
9334 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9335echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9336 fi
9337 fi
9338
9339 # Extract list of available tagged configurations in $ofile.
9340 # Note that this assumes the entire list is on one line.
9341 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9342
9343 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9344 for tagname in $tagnames; do
9345 IFS="$lt_save_ifs"
9346 # Check whether tagname contains only valid characters
9347 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9348 "") ;;
9349 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9350echo "$as_me: error: invalid tag name: $tagname" >&2;}
9351 { (exit 1); exit 1; }; }
9352 ;;
9353 esac
9354
9355 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9356 then
9357 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9358echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9359 { (exit 1); exit 1; }; }
9360 fi
9361
9362 # Update the list of available tags.
9363 if test -n "$tagname"; then
9364 echo appending configuration tag \"$tagname\" to $ofile
9365
9366 case $tagname in
9367 CXX)
9368 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9369 ac_ext=cc
9370ac_cpp='$CXXCPP $CPPFLAGS'
9371ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9372ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9373ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9374
9375
9376
9377
9378archive_cmds_need_lc_CXX=no
9379allow_undefined_flag_CXX=
9380always_export_symbols_CXX=no
9381archive_expsym_cmds_CXX=
9382export_dynamic_flag_spec_CXX=
9383hardcode_direct_CXX=no
9384hardcode_libdir_flag_spec_CXX=
9385hardcode_libdir_flag_spec_ld_CXX=
9386hardcode_libdir_separator_CXX=
9387hardcode_minus_L_CXX=no
9388hardcode_automatic_CXX=no
9389module_cmds_CXX=
9390module_expsym_cmds_CXX=
9391link_all_deplibs_CXX=unknown
9392old_archive_cmds_CXX=$old_archive_cmds
9393no_undefined_flag_CXX=
9394whole_archive_flag_spec_CXX=
9395enable_shared_with_static_runtimes_CXX=no
9396
9397# Dependencies to place before and after the object being linked:
9398predep_objects_CXX=
9399postdep_objects_CXX=
9400predeps_CXX=
9401postdeps_CXX=
9402compiler_lib_search_path_CXX=
9403
9404# Source file extension for C++ test sources.
9405ac_ext=cc
9406
9407# Object file extension for compiled C++ test sources.
9408objext=o
9409objext_CXX=$objext
9410
9411# Code to be used in simple compile tests
9412lt_simple_compile_test_code="int some_variable = 0;\n"
9413
9414# Code to be used in simple link tests
9415lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9416
9417# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9418
9419# If no C compiler was specified, use CC.
9420LTCC=${LTCC-"$CC"}
9421
9422# Allow CC to be a program name with arguments.
9423compiler=$CC
9424
9425
9426# Allow CC to be a program name with arguments.
9427lt_save_CC=$CC
9428lt_save_LD=$LD
9429lt_save_GCC=$GCC
9430GCC=$GXX
9431lt_save_with_gnu_ld=$with_gnu_ld
9432lt_save_path_LD=$lt_cv_path_LD
9433if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9434 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9435else
9436 unset lt_cv_prog_gnu_ld
9437fi
9438if test -n "${lt_cv_path_LDCXX+set}"; then
9439 lt_cv_path_LD=$lt_cv_path_LDCXX
9440else
9441 unset lt_cv_path_LD
9442fi
9443test -z "${LDCXX+set}" || LD=$LDCXX
9444CC=${CXX-"c++"}
9445compiler=$CC
9446compiler_CXX=$CC
9447cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9448
9449# We don't want -fno-exception wen compiling C++ code, so set the
9450# no_builtin_flag separately
9451if test "$GXX" = yes; then
9452 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9453else
9454 lt_prog_compiler_no_builtin_flag_CXX=
9455fi
9456
9457if test "$GXX" = yes; then
9458 # Set up default GNU C++ configuration
9459
9460
9461# Check whether --with-gnu-ld or --without-gnu-ld was given.
9462if test "${with_gnu_ld+set}" = set; then
9463 withval="$with_gnu_ld"
9464 test "$withval" = no || with_gnu_ld=yes
9465else
9466 with_gnu_ld=no
9467fi;
9468ac_prog=ld
9469if test "$GCC" = yes; then
9470 # Check if gcc -print-prog-name=ld gives a path.
9471 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9472echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9473 case $host in
9474 *-*-mingw*)
9475 # gcc leaves a trailing carriage return which upsets mingw
9476 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9477 *)
9478 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9479 esac
9480 case $ac_prog in
9481 # Accept absolute paths.
9482 [\\/]* | ?:[\\/]*)
9483 re_direlt='/[^/][^/]*/\.\./'
9484 # Canonicalize the path of ld
9485 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9486 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9487 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9488 done
9489 test -z "$LD" && LD="$ac_prog"
9490 ;;
9491 "")
9492 # If it fails, then pretend we aren't using GCC.
9493 ac_prog=ld
9494 ;;
9495 *)
9496 # If it is relative, then search for the first ld in PATH.
9497 with_gnu_ld=unknown
9498 ;;
9499 esac
9500elif test "$with_gnu_ld" = yes; then
9501 echo "$as_me:$LINENO: checking for GNU ld" >&5
9502echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9503else
9504 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9505echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9506fi
9507if test "${lt_cv_path_LD+set}" = set; then
9508 echo $ECHO_N "(cached) $ECHO_C" >&6
9509else
9510 if test -z "$LD"; then
9511 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9512 for ac_dir in $PATH; do
9513 IFS="$lt_save_ifs"
9514 test -z "$ac_dir" && ac_dir=.
9515 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9516 lt_cv_path_LD="$ac_dir/$ac_prog"
9517 # Check to see if the program is GNU ld. I'd rather use --version,
9518 # but apparently some GNU ld's only accept -v.
9519 # Break only if it was the GNU/non-GNU ld that we prefer.
9520 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9521 *GNU* | *'with BFD'*)
9522 test "$with_gnu_ld" != no && break
9523 ;;
9524 *)
9525 test "$with_gnu_ld" != yes && break
9526 ;;
9527 esac
9528 fi
9529 done
9530 IFS="$lt_save_ifs"
9531else
9532 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9533fi
9534fi
9535
9536LD="$lt_cv_path_LD"
9537if test -n "$LD"; then
9538 echo "$as_me:$LINENO: result: $LD" >&5
9539echo "${ECHO_T}$LD" >&6
9540else
9541 echo "$as_me:$LINENO: result: no" >&5
9542echo "${ECHO_T}no" >&6
9543fi
9544test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9545echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9546 { (exit 1); exit 1; }; }
9547echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9548echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9549if test "${lt_cv_prog_gnu_ld+set}" = set; then
9550 echo $ECHO_N "(cached) $ECHO_C" >&6
9551else
9552 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9553case `"$LD" -v 2>&1 </dev/null` in
9554*GNU* | *'with BFD'*)
9555 lt_cv_prog_gnu_ld=yes
9556 ;;
9557*)
9558 lt_cv_prog_gnu_ld=no
9559 ;;
9560esac
9561fi
9562echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9563echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9564with_gnu_ld=$lt_cv_prog_gnu_ld
9565
9566
9567
9568 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9569 # archiving commands below assume that GNU ld is being used.
9570 if test "$with_gnu_ld" = yes; then
9571 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9572 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'
9573
9574 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9575 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9576
9577 # If archive_cmds runs LD, not CC, wlarc should be empty
9578 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9579 # investigate it a little bit more. (MM)
9580 wlarc='${wl}'
9581
9582 # ancient GNU ld didn't support --whole-archive et. al.
9583 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9584 grep 'no-whole-archive' > /dev/null; then
9585 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9586 else
9587 whole_archive_flag_spec_CXX=
9588 fi
9589 else
9590 with_gnu_ld=no
9591 wlarc=
9592
9593 # A generic and very simple default shared library creation
9594 # command for GNU C++ for the case where it uses the native
9595 # linker, instead of GNU ld. If possible, this setting should
9596 # overridden to take advantage of the native linker features on
9597 # the platform it is being used on.
9598 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9599 fi
9600
9601 # Commands to make compiler produce verbose output that lists
9602 # what "hidden" libraries, object files and flags are used when
9603 # linking a shared library.
9604 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9605
9606else
9607 GXX=no
9608 with_gnu_ld=no
9609 wlarc=
9610fi
9611
9612# PORTME: fill in a description of your system's C++ link characteristics
9613echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9614echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9615ld_shlibs_CXX=yes
9616case $host_os in
9617 aix3*)
9618 # FIXME: insert proper C++ library support
9619 ld_shlibs_CXX=no
9620 ;;
9621 aix4* | aix5*)
9622 if test "$host_cpu" = ia64; then
9623 # On IA64, the linker does run time linking by default, so we don't
9624 # have to do anything special.
9625 aix_use_runtimelinking=no
9626 exp_sym_flag='-Bexport'
9627 no_entry_flag=""
9628 else
9629 aix_use_runtimelinking=no
9630
9631 # Test if we are trying to use run time linking or normal
9632 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9633 # need to do runtime linking.
9634 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9635 for ld_flag in $LDFLAGS; do
9636 case $ld_flag in
9637 *-brtl*)
9638 aix_use_runtimelinking=yes
9639 break
9640 ;;
9641 esac
9642 done
9643 esac
9644
9645 exp_sym_flag='-bexport'
9646 no_entry_flag='-bnoentry'
9647 fi
9648
9649 # When large executables or shared objects are built, AIX ld can
9650 # have problems creating the table of contents. If linking a library
9651 # or program results in "error TOC overflow" add -mminimal-toc to
9652 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9653 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9654
9655 archive_cmds_CXX=''
9656 hardcode_direct_CXX=yes
9657 hardcode_libdir_separator_CXX=':'
9658 link_all_deplibs_CXX=yes
9659
9660 if test "$GXX" = yes; then
9661 case $host_os in aix4.012|aix4.012.*)
9662 # We only want to do this on AIX 4.2 and lower, the check
9663 # below for broken collect2 doesn't work under 4.3+
9664 collect2name=`${CC} -print-prog-name=collect2`
9665 if test -f "$collect2name" && \
9666 strings "$collect2name" | grep resolve_lib_name >/dev/null
9667 then
9668 # We have reworked collect2
9669 hardcode_direct_CXX=yes
9670 else
9671 # We have old collect2
9672 hardcode_direct_CXX=unsupported
9673 # It fails to find uninstalled libraries when the uninstalled
9674 # path is not listed in the libpath. Setting hardcode_minus_L
9675 # to unsupported forces relinking
9676 hardcode_minus_L_CXX=yes
9677 hardcode_libdir_flag_spec_CXX='-L$libdir'
9678 hardcode_libdir_separator_CXX=
9679 fi
9680 esac
9681 shared_flag='-shared'
9682 else
9683 # not using gcc
9684 if test "$host_cpu" = ia64; then
9685 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9686 # chokes on -Wl,-G. The following line is correct:
9687 shared_flag='-G'
9688 else
9689 if test "$aix_use_runtimelinking" = yes; then
9690 shared_flag='${wl}-G'
9691 else
9692 shared_flag='${wl}-bM:SRE'
9693 fi
9694 fi
9695 fi
9696
9697 # It seems that -bexpall does not export symbols beginning with
9698 # underscore (_), so it is better to generate a list of symbols to export.
9699 always_export_symbols_CXX=yes
9700 if test "$aix_use_runtimelinking" = yes; then
9701 # Warning - without using the other runtime loading flags (-brtl),
9702 # -berok will link without error, but may produce a broken library.
9703 allow_undefined_flag_CXX='-berok'
9704 # Determine the default libpath from the value encoded in an empty executable.
9705 cat >conftest.$ac_ext <<_ACEOF
9706#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00009707/* confdefs.h. */
9708_ACEOF
9709cat confdefs.h >>conftest.$ac_ext
9710cat >>conftest.$ac_ext <<_ACEOF
9711/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009712
John Criswell47fdd832003-07-14 16:52:07 +00009713int
9714main ()
9715{
9716
9717 ;
9718 return 0;
9719}
9720_ACEOF
9721rm -f conftest.$ac_objext conftest$ac_exeext
9722if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9723 (eval $ac_link) 2>&5
9724 ac_status=$?
9725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726 (exit $ac_status); } &&
9727 { ac_try='test -s conftest$ac_exeext'
9728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9729 (eval $ac_try) 2>&5
9730 ac_status=$?
9731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732 (exit $ac_status); }; }; then
9733
9734aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9735}'`
9736# Check for a 64-bit object if we didn't find anything.
9737if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9738}'`; fi
9739else
9740 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009741sed 's/^/| /' conftest.$ac_ext >&5
9742
John Criswell47fdd832003-07-14 16:52:07 +00009743fi
9744rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9745if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9746
9747 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9748
9749 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"
9750 else
9751 if test "$host_cpu" = ia64; then
9752 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9753 allow_undefined_flag_CXX="-z nodefs"
9754 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"
9755 else
9756 # Determine the default libpath from the value encoded in an empty executable.
9757 cat >conftest.$ac_ext <<_ACEOF
9758#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00009759/* confdefs.h. */
9760_ACEOF
9761cat confdefs.h >>conftest.$ac_ext
9762cat >>conftest.$ac_ext <<_ACEOF
9763/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009764
John Criswell47fdd832003-07-14 16:52:07 +00009765int
9766main ()
9767{
9768
9769 ;
9770 return 0;
9771}
9772_ACEOF
9773rm -f conftest.$ac_objext conftest$ac_exeext
9774if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9775 (eval $ac_link) 2>&5
9776 ac_status=$?
9777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9778 (exit $ac_status); } &&
9779 { ac_try='test -s conftest$ac_exeext'
9780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9781 (eval $ac_try) 2>&5
9782 ac_status=$?
9783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9784 (exit $ac_status); }; }; then
9785
9786aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9787}'`
9788# Check for a 64-bit object if we didn't find anything.
9789if 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; }
9790}'`; fi
9791else
9792 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009793sed 's/^/| /' conftest.$ac_ext >&5
9794
John Criswell47fdd832003-07-14 16:52:07 +00009795fi
9796rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9797if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9798
9799 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9800 # Warning - without using the other run time loading flags,
9801 # -berok will link without error, but may produce a broken library.
9802 no_undefined_flag_CXX=' ${wl}-bernotok'
9803 allow_undefined_flag_CXX=' ${wl}-berok'
9804 # -bexpall does not export symbols beginning with underscore (_)
9805 always_export_symbols_CXX=yes
9806 # Exported symbols can be pulled into shared objects from archives
9807 whole_archive_flag_spec_CXX=' '
9808 archive_cmds_need_lc_CXX=yes
9809 # This is similar to how AIX traditionally builds it's shared libraries.
9810 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'
9811 fi
9812 fi
9813 ;;
9814 chorus*)
9815 case $cc_basename in
9816 *)
9817 # FIXME: insert proper C++ library support
9818 ld_shlibs_CXX=no
9819 ;;
9820 esac
9821 ;;
9822
9823 cygwin* | mingw* | pw32*)
9824 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9825 # as there is no search path for DLLs.
9826 hardcode_libdir_flag_spec_CXX='-L$libdir'
9827 allow_undefined_flag_CXX=unsupported
9828 always_export_symbols_CXX=no
9829 enable_shared_with_static_runtimes_CXX=yes
9830
9831 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9832 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'
9833 # If the export-symbols file already is a .def file (1st line
9834 # is EXPORTS), use it as is; otherwise, prepend...
9835 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9836 cp $export_symbols $output_objdir/$soname.def;
9837 else
9838 echo EXPORTS > $output_objdir/$soname.def;
9839 cat $export_symbols >> $output_objdir/$soname.def;
9840 fi~
9841 $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'
9842 else
9843 ld_shlibs_CXX=no
9844 fi
9845 ;;
9846
9847 darwin* | rhapsody*)
9848 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9849 archive_cmds_need_lc_CXX=no
9850 case "$host_os" in
9851 rhapsody* | darwin1.[012])
9852 allow_undefined_flag_CXX='-undefined suppress'
9853 ;;
9854 *) # Darwin 1.3 on
9855 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9856 ;;
9857 esac
9858 lt_int_apple_cc_single_mod=no
9859 output_verbose_link_cmd='echo'
9860 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9861 lt_int_apple_cc_single_mod=yes
9862 fi
9863 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9864 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9865 else
9866 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'
9867 fi
9868 module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9869
9870 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9871 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9872 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}'
9873 else
9874 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}'
9875 fi
9876 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}'
9877 hardcode_direct_CXX=no
9878 hardcode_automatic_CXX=yes
9879 hardcode_shlibpath_var_CXX=unsupported
9880 whole_archive_flag_spec_CXX='-all_load $convenience'
9881 link_all_deplibs_CXX=yes
9882 fi
9883 ;;
9884
9885 dgux*)
9886 case $cc_basename in
9887 ec++)
9888 # FIXME: insert proper C++ library support
9889 ld_shlibs_CXX=no
9890 ;;
9891 ghcx)
9892 # Green Hills C++ Compiler
9893 # FIXME: insert proper C++ library support
9894 ld_shlibs_CXX=no
9895 ;;
9896 *)
9897 # FIXME: insert proper C++ library support
9898 ld_shlibs_CXX=no
9899 ;;
9900 esac
9901 ;;
9902 freebsd12*)
9903 # C++ shared libraries reported to be fairly broken before switch to ELF
9904 ld_shlibs_CXX=no
9905 ;;
9906 freebsd-elf*)
9907 archive_cmds_need_lc_CXX=no
9908 ;;
9909 freebsd*)
9910 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9911 # conventions
9912 ld_shlibs_CXX=yes
9913 ;;
9914 gnu*)
9915 ;;
9916 hpux9*)
9917 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9918 hardcode_libdir_separator_CXX=:
9919 export_dynamic_flag_spec_CXX='${wl}-E'
9920 hardcode_direct_CXX=yes
9921 hardcode_minus_L_CXX=yes # Not in the search PATH,
9922 # but as the default
9923 # location of the library.
9924
9925 case $cc_basename in
9926 CC)
9927 # FIXME: insert proper C++ library support
9928 ld_shlibs_CXX=no
9929 ;;
9930 aCC)
9931 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'
9932 # Commands to make compiler produce verbose output that lists
9933 # what "hidden" libraries, object files and flags are used when
9934 # linking a shared library.
9935 #
9936 # There doesn't appear to be a way to prevent this compiler from
9937 # explicitly linking system object files so we need to strip them
9938 # from the output so that they don't get included in the library
9939 # dependencies.
9940 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'
9941 ;;
9942 *)
9943 if test "$GXX" = yes; then
9944 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'
9945 else
9946 # FIXME: insert proper C++ library support
9947 ld_shlibs_CXX=no
9948 fi
9949 ;;
9950 esac
9951 ;;
9952 hpux10*|hpux11*)
9953 if test $with_gnu_ld = no; then
9954 case "$host_cpu" in
9955 hppa*64*)
9956 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9957 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9958 hardcode_libdir_separator_CXX=:
9959 ;;
9960 ia64*)
9961 hardcode_libdir_flag_spec_CXX='-L$libdir'
9962 ;;
9963 *)
9964 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9965 hardcode_libdir_separator_CXX=:
9966 export_dynamic_flag_spec_CXX='${wl}-E'
9967 ;;
9968 esac
9969 fi
9970 case "$host_cpu" in
9971 hppa*64*)
9972 hardcode_direct_CXX=no
9973 hardcode_shlibpath_var_CXX=no
9974 ;;
9975 ia64*)
9976 hardcode_direct_CXX=no
9977 hardcode_shlibpath_var_CXX=no
9978 hardcode_minus_L_CXX=yes # Not in the search PATH,
9979 # but as the default
9980 # location of the library.
9981 ;;
9982 *)
9983 hardcode_direct_CXX=yes
9984 hardcode_minus_L_CXX=yes # Not in the search PATH,
9985 # but as the default
9986 # location of the library.
9987 ;;
9988 esac
9989
9990 case $cc_basename in
9991 CC)
9992 # FIXME: insert proper C++ library support
9993 ld_shlibs_CXX=no
9994 ;;
9995 aCC)
9996 case "$host_cpu" in
9997 hppa*64*|ia64*)
9998 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9999 ;;
10000 *)
10001 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10002 ;;
10003 esac
10004 # Commands to make compiler produce verbose output that lists
10005 # what "hidden" libraries, object files and flags are used when
10006 # linking a shared library.
10007 #
10008 # There doesn't appear to be a way to prevent this compiler from
10009 # explicitly linking system object files so we need to strip them
10010 # from the output so that they don't get included in the library
10011 # dependencies.
10012 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'
10013 ;;
10014 *)
10015 if test "$GXX" = yes; then
10016 if test $with_gnu_ld = no; then
10017 case "$host_cpu" in
10018 ia64*|hppa*64*)
10019 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10020 ;;
10021 *)
10022 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'
10023 ;;
10024 esac
10025 fi
10026 else
10027 # FIXME: insert proper C++ library support
10028 ld_shlibs_CXX=no
10029 fi
10030 ;;
10031 esac
10032 ;;
10033 irix5* | irix6*)
10034 case $cc_basename in
10035 CC)
10036 # SGI C++
10037 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'
10038
10039 # Archives containing C++ object files must be created using
10040 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10041 # necessary to make sure instantiated templates are included
10042 # in the archive.
10043 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10044 ;;
10045 *)
10046 if test "$GXX" = yes; then
10047 if test "$with_gnu_ld" = no; then
10048 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'
10049 else
10050 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'
10051 fi
10052 fi
10053 link_all_deplibs_CXX=yes
10054 ;;
10055 esac
10056 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10057 hardcode_libdir_separator_CXX=:
10058 ;;
10059 linux*)
10060 case $cc_basename in
10061 KCC)
10062 # Kuck and Associates, Inc. (KAI) C++ Compiler
10063
10064 # KCC will only create a shared library if the output file
10065 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10066 # to its proper name (with version) after linking.
10067 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'
10068 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'
10069 # Commands to make compiler produce verbose output that lists
10070 # what "hidden" libraries, object files and flags are used when
10071 # linking a shared library.
10072 #
10073 # There doesn't appear to be a way to prevent this compiler from
10074 # explicitly linking system object files so we need to strip them
10075 # from the output so that they don't get included in the library
10076 # dependencies.
10077 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'
10078
10079 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10080 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10081
10082 # Archives containing C++ object files must be created using
10083 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10084 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10085 ;;
10086 icpc)
10087 # Intel C++
10088 with_gnu_ld=yes
10089 archive_cmds_need_lc_CXX=no
10090 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10091 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'
10092 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10093 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10094 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10095 ;;
10096 cxx)
10097 # Compaq C++
10098 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10099 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'
10100
10101 runpath_var=LD_RUN_PATH
10102 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10103 hardcode_libdir_separator_CXX=:
10104
10105 # Commands to make compiler produce verbose output that lists
10106 # what "hidden" libraries, object files and flags are used when
10107 # linking a shared library.
10108 #
10109 # There doesn't appear to be a way to prevent this compiler from
10110 # explicitly linking system object files so we need to strip them
10111 # from the output so that they don't get included in the library
10112 # dependencies.
10113 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'
10114 ;;
10115 esac
10116 ;;
10117 lynxos*)
10118 # FIXME: insert proper C++ library support
10119 ld_shlibs_CXX=no
10120 ;;
10121 m88k*)
10122 # FIXME: insert proper C++ library support
10123 ld_shlibs_CXX=no
10124 ;;
10125 mvs*)
10126 case $cc_basename in
10127 cxx)
10128 # FIXME: insert proper C++ library support
10129 ld_shlibs_CXX=no
10130 ;;
10131 *)
10132 # FIXME: insert proper C++ library support
10133 ld_shlibs_CXX=no
10134 ;;
10135 esac
10136 ;;
10137 netbsd*)
10138 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10139 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10140 wlarc=
10141 hardcode_libdir_flag_spec_CXX='-R$libdir'
10142 hardcode_direct_CXX=yes
10143 hardcode_shlibpath_var_CXX=no
10144 fi
10145 # Workaround some broken pre-1.5 toolchains
10146 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10147 ;;
10148 osf3*)
10149 case $cc_basename in
10150 KCC)
10151 # Kuck and Associates, Inc. (KAI) C++ Compiler
10152
10153 # KCC will only create a shared library if the output file
10154 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10155 # to its proper name (with version) after linking.
10156 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'
10157
10158 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10159 hardcode_libdir_separator_CXX=:
10160
10161 # Archives containing C++ object files must be created using
10162 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10163 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10164
10165 ;;
10166 RCC)
10167 # Rational C++ 2.4.1
10168 # FIXME: insert proper C++ library support
10169 ld_shlibs_CXX=no
10170 ;;
10171 cxx)
10172 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10173 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'
10174
10175 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10176 hardcode_libdir_separator_CXX=:
10177
10178 # Commands to make compiler produce verbose output that lists
10179 # what "hidden" libraries, object files and flags are used when
10180 # linking a shared library.
10181 #
10182 # There doesn't appear to be a way to prevent this compiler from
10183 # explicitly linking system object files so we need to strip them
10184 # from the output so that they don't get included in the library
10185 # dependencies.
10186 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'
10187 ;;
10188 *)
10189 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10190 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10191 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'
10192
10193 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10194 hardcode_libdir_separator_CXX=:
10195
10196 # Commands to make compiler produce verbose output that lists
10197 # what "hidden" libraries, object files and flags are used when
10198 # linking a shared library.
10199 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10200
10201 else
10202 # FIXME: insert proper C++ library support
10203 ld_shlibs_CXX=no
10204 fi
10205 ;;
10206 esac
10207 ;;
10208 osf4* | osf5*)
10209 case $cc_basename in
10210 KCC)
10211 # Kuck and Associates, Inc. (KAI) C++ Compiler
10212
10213 # KCC will only create a shared library if the output file
10214 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10215 # to its proper name (with version) after linking.
10216 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'
10217
10218 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10219 hardcode_libdir_separator_CXX=:
10220
10221 # Archives containing C++ object files must be created using
10222 # the KAI C++ compiler.
10223 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10224 ;;
10225 RCC)
10226 # Rational C++ 2.4.1
10227 # FIXME: insert proper C++ library support
10228 ld_shlibs_CXX=no
10229 ;;
10230 cxx)
10231 allow_undefined_flag_CXX=' -expect_unresolved \*'
10232 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'
10233 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10234 echo "-hidden">> $lib.exp~
10235 $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~
10236 $rm $lib.exp'
10237
10238 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10239 hardcode_libdir_separator_CXX=:
10240
10241 # Commands to make compiler produce verbose output that lists
10242 # what "hidden" libraries, object files and flags are used when
10243 # linking a shared library.
10244 #
10245 # There doesn't appear to be a way to prevent this compiler from
10246 # explicitly linking system object files so we need to strip them
10247 # from the output so that they don't get included in the library
10248 # dependencies.
10249 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'
10250 ;;
10251 *)
10252 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10253 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10254 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'
10255
10256 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10257 hardcode_libdir_separator_CXX=:
10258
10259 # Commands to make compiler produce verbose output that lists
10260 # what "hidden" libraries, object files and flags are used when
10261 # linking a shared library.
10262 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10263
10264 else
10265 # FIXME: insert proper C++ library support
10266 ld_shlibs_CXX=no
10267 fi
10268 ;;
10269 esac
10270 ;;
10271 psos*)
10272 # FIXME: insert proper C++ library support
10273 ld_shlibs_CXX=no
10274 ;;
10275 sco*)
10276 archive_cmds_need_lc_CXX=no
10277 case $cc_basename in
10278 CC)
10279 # FIXME: insert proper C++ library support
10280 ld_shlibs_CXX=no
10281 ;;
10282 *)
10283 # FIXME: insert proper C++ library support
10284 ld_shlibs_CXX=no
10285 ;;
10286 esac
10287 ;;
10288 sunos4*)
10289 case $cc_basename in
10290 CC)
10291 # Sun C++ 4.x
10292 # FIXME: insert proper C++ library support
10293 ld_shlibs_CXX=no
10294 ;;
10295 lcc)
10296 # Lucid
10297 # FIXME: insert proper C++ library support
10298 ld_shlibs_CXX=no
10299 ;;
10300 *)
10301 # FIXME: insert proper C++ library support
10302 ld_shlibs_CXX=no
10303 ;;
10304 esac
10305 ;;
10306 solaris*)
10307 case $cc_basename in
10308 CC)
10309 # Sun C++ 4.2, 5.x and Centerline C++
10310 no_undefined_flag_CXX=' -zdefs'
10311 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10312 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10313 $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'
10314
10315 hardcode_libdir_flag_spec_CXX='-R$libdir'
10316 hardcode_shlibpath_var_CXX=no
10317 case $host_os in
10318 solaris2.0-5 | solaris2.0-5.*) ;;
10319 *)
10320 # The C++ compiler is used as linker so we must use $wl
10321 # flag to pass the commands to the underlying system
10322 # linker.
10323 # Supported since Solaris 2.6 (maybe 2.5.1?)
10324 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10325 ;;
10326 esac
10327 link_all_deplibs_CXX=yes
10328
10329 # Commands to make compiler produce verbose output that lists
10330 # what "hidden" libraries, object files and flags are used when
10331 # linking a shared library.
10332 #
10333 # There doesn't appear to be a way to prevent this compiler from
10334 # explicitly linking system object files so we need to strip them
10335 # from the output so that they don't get included in the library
10336 # dependencies.
10337 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'
10338
10339 # Archives containing C++ object files must be created using
10340 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10341 # necessary to make sure instantiated templates are included
10342 # in the archive.
10343 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10344 ;;
10345 gcx)
10346 # Green Hills C++ Compiler
10347 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10348
10349 # The C++ compiler must be used to create the archive.
10350 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10351 ;;
10352 *)
10353 # GNU C++ compiler with Solaris linker
10354 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10355 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10356 if $CC --version | grep -v '^2\.7' > /dev/null; then
10357 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10358 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10359 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10360
10361 # Commands to make compiler produce verbose output that lists
10362 # what "hidden" libraries, object files and flags are used when
10363 # linking a shared library.
10364 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10365 else
10366 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10367 # platform.
10368 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10369 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10370 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10371
10372 # Commands to make compiler produce verbose output that lists
10373 # what "hidden" libraries, object files and flags are used when
10374 # linking a shared library.
10375 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10376 fi
10377
10378 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10379 fi
10380 ;;
10381 esac
10382 ;;
10383 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10384 archive_cmds_need_lc_CXX=no
10385 ;;
10386 tandem*)
10387 case $cc_basename in
10388 NCC)
10389 # NonStop-UX NCC 3.20
10390 # FIXME: insert proper C++ library support
10391 ld_shlibs_CXX=no
10392 ;;
10393 *)
10394 # FIXME: insert proper C++ library support
10395 ld_shlibs_CXX=no
10396 ;;
10397 esac
10398 ;;
10399 vxworks*)
10400 # FIXME: insert proper C++ library support
10401 ld_shlibs_CXX=no
10402 ;;
10403 *)
10404 # FIXME: insert proper C++ library support
10405 ld_shlibs_CXX=no
10406 ;;
10407esac
10408echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10409echo "${ECHO_T}$ld_shlibs_CXX" >&6
10410test "$ld_shlibs_CXX" = no && can_build_shared=no
10411
10412GCC_CXX="$GXX"
10413LD_CXX="$LD"
10414
10415## CAVEAT EMPTOR:
10416## There is no encapsulation within the following macros, do not change
10417## the running order or otherwise move them around unless you know exactly
10418## what you are doing...
10419
10420cat > conftest.$ac_ext <<EOF
10421class Foo
10422{
10423public:
10424 Foo (void) { a = 0; }
10425private:
10426 int a;
10427};
10428EOF
10429
10430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10431 (eval $ac_compile) 2>&5
10432 ac_status=$?
10433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434 (exit $ac_status); }; then
10435 # Parse the compiler output and extract the necessary
10436 # objects, libraries and library flags.
10437
10438 # Sentinel used to keep track of whether or not we are before
10439 # the conftest object file.
10440 pre_test_object_deps_done=no
10441
10442 # The `*' in the case matches for architectures that use `case' in
10443 # $output_verbose_cmd can trigger glob expansion during the loop
10444 # eval without this substitution.
10445 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10446
10447 for p in `eval $output_verbose_link_cmd`; do
10448 case $p in
10449
10450 -L* | -R* | -l*)
10451 # Some compilers place space between "-{L,R}" and the path.
10452 # Remove the space.
10453 if test $p = "-L" \
10454 || test $p = "-R"; then
10455 prev=$p
10456 continue
10457 else
10458 prev=
10459 fi
10460
10461 if test "$pre_test_object_deps_done" = no; then
10462 case $p in
10463 -L* | -R*)
10464 # Internal compiler library paths should come after those
10465 # provided the user. The postdeps already come after the
10466 # user supplied libs so there is no need to process them.
10467 if test -z "$compiler_lib_search_path_CXX"; then
10468 compiler_lib_search_path_CXX="${prev}${p}"
10469 else
10470 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10471 fi
10472 ;;
10473 # The "-l" case would never come before the object being
10474 # linked, so don't bother handling this case.
10475 esac
10476 else
10477 if test -z "$postdeps_CXX"; then
10478 postdeps_CXX="${prev}${p}"
10479 else
10480 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10481 fi
10482 fi
10483 ;;
10484
10485 *.$objext)
10486 # This assumes that the test object file only shows up
10487 # once in the compiler output.
10488 if test "$p" = "conftest.$objext"; then
10489 pre_test_object_deps_done=yes
10490 continue
10491 fi
10492
10493 if test "$pre_test_object_deps_done" = no; then
10494 if test -z "$predep_objects_CXX"; then
10495 predep_objects_CXX="$p"
10496 else
10497 predep_objects_CXX="$predep_objects_CXX $p"
10498 fi
10499 else
10500 if test -z "$postdep_objects_CXX"; then
10501 postdep_objects_CXX="$p"
10502 else
10503 postdep_objects_CXX="$postdep_objects_CXX $p"
10504 fi
10505 fi
10506 ;;
10507
10508 *) ;; # Ignore the rest.
10509
10510 esac
10511 done
10512
10513 # Clean up.
10514 rm -f a.out a.exe
10515else
10516 echo "libtool.m4: error: problem compiling CXX test program"
10517fi
10518
10519$rm -f confest.$objext
10520
10521case " $postdeps_CXX " in
10522*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10523esac
10524
10525lt_prog_compiler_wl_CXX=
10526lt_prog_compiler_pic_CXX=
10527lt_prog_compiler_static_CXX=
10528
10529echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10530echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10531
10532 # C++ specific cases for pic, static, wl, etc.
10533 if test "$GXX" = yes; then
10534 lt_prog_compiler_wl_CXX='-Wl,'
10535 lt_prog_compiler_static_CXX='-static'
10536
10537 case $host_os in
10538 aix*)
10539 # All AIX code is PIC.
10540 if test "$host_cpu" = ia64; then
10541 # AIX 5 now supports IA64 processor
10542 lt_prog_compiler_static_CXX='-Bstatic'
10543 fi
10544 ;;
10545 amigaos*)
10546 # FIXME: we need at least 68020 code to build shared libraries, but
10547 # adding the `-m68020' flag to GCC prevents building anything better,
10548 # like `-m68040'.
10549 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10550 ;;
10551 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10552 # PIC is the default for these OSes.
10553 ;;
10554 mingw* | os2* | pw32*)
10555 # This hack is so that the source file can tell whether it is being
10556 # built for inclusion in a dll (and should export symbols for example).
10557 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10558 ;;
10559 darwin* | rhapsody*)
10560 # PIC is the default on this platform
10561 # Common symbols not allowed in MH_DYLIB files
10562 lt_prog_compiler_pic_CXX='-fno-common'
10563 ;;
10564 *djgpp*)
10565 # DJGPP does not support shared libraries at all
10566 lt_prog_compiler_pic_CXX=
10567 ;;
10568 sysv4*MP*)
10569 if test -d /usr/nec; then
10570 lt_prog_compiler_pic_CXX=-Kconform_pic
10571 fi
10572 ;;
10573 hpux*)
10574 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10575 # not for PA HP-UX.
10576 case "$host_cpu" in
10577 hppa*64*|ia64*)
10578 ;;
10579 *)
10580 lt_prog_compiler_pic_CXX='-fPIC'
10581 ;;
10582 esac
10583 ;;
10584 *)
10585 lt_prog_compiler_pic_CXX='-fPIC'
10586 ;;
10587 esac
10588 else
10589 case $host_os in
10590 aix4* | aix5*)
10591 # All AIX code is PIC.
10592 if test "$host_cpu" = ia64; then
10593 # AIX 5 now supports IA64 processor
10594 lt_prog_compiler_static_CXX='-Bstatic'
10595 else
10596 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10597 fi
10598 ;;
10599 chorus*)
10600 case $cc_basename in
10601 cxch68)
10602 # Green Hills C++ Compiler
10603 # _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"
10604 ;;
10605 esac
10606 ;;
10607 dgux*)
10608 case $cc_basename in
10609 ec++)
10610 lt_prog_compiler_pic_CXX='-KPIC'
10611 ;;
10612 ghcx)
10613 # Green Hills C++ Compiler
10614 lt_prog_compiler_pic_CXX='-pic'
10615 ;;
10616 *)
10617 ;;
10618 esac
10619 ;;
10620 freebsd*)
10621 # FreeBSD uses GNU C++
10622 ;;
10623 hpux9* | hpux10* | hpux11*)
10624 case $cc_basename in
10625 CC)
10626 lt_prog_compiler_wl_CXX='-Wl,'
10627 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10628 if test "$host_cpu" != ia64; then
10629 lt_prog_compiler_pic_CXX='+Z'
10630 fi
10631 ;;
10632 aCC)
10633 lt_prog_compiler_wl_CXX='-Wl,'
10634 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10635 case "$host_cpu" in
10636 hppa*64*|ia64*)
10637 # +Z the default
10638 ;;
10639 *)
10640 lt_prog_compiler_pic_CXX='+Z'
10641 ;;
10642 esac
10643 ;;
10644 *)
10645 ;;
10646 esac
10647 ;;
10648 irix5* | irix6* | nonstopux*)
10649 case $cc_basename in
10650 CC)
10651 lt_prog_compiler_wl_CXX='-Wl,'
10652 lt_prog_compiler_static_CXX='-non_shared'
10653 # CC pic flag -KPIC is the default.
10654 ;;
10655 *)
10656 ;;
10657 esac
10658 ;;
10659 linux*)
10660 case $cc_basename in
10661 KCC)
10662 # KAI C++ Compiler
10663 lt_prog_compiler_wl_CXX='--backend -Wl,'
10664 lt_prog_compiler_pic_CXX='-fPIC'
10665 ;;
10666 icpc)
10667 # Intel C++
10668 lt_prog_compiler_wl_CXX='-Wl,'
10669 lt_prog_compiler_pic_CXX='-KPIC'
10670 lt_prog_compiler_static_CXX='-static'
10671 ;;
10672 cxx)
10673 # Compaq C++
10674 # Make sure the PIC flag is empty. It appears that all Alpha
10675 # Linux and Compaq Tru64 Unix objects are PIC.
10676 lt_prog_compiler_pic_CXX=
10677 lt_prog_compiler_static_CXX='-non_shared'
10678 ;;
10679 *)
10680 ;;
10681 esac
10682 ;;
10683 lynxos*)
10684 ;;
10685 m88k*)
10686 ;;
10687 mvs*)
10688 case $cc_basename in
10689 cxx)
10690 lt_prog_compiler_pic_CXX='-W c,exportall'
10691 ;;
10692 *)
10693 ;;
10694 esac
10695 ;;
10696 netbsd*)
10697 ;;
10698 osf3* | osf4* | osf5*)
10699 case $cc_basename in
10700 KCC)
10701 lt_prog_compiler_wl_CXX='--backend -Wl,'
10702 ;;
10703 RCC)
10704 # Rational C++ 2.4.1
10705 lt_prog_compiler_pic_CXX='-pic'
10706 ;;
10707 cxx)
10708 # Digital/Compaq C++
10709 lt_prog_compiler_wl_CXX='-Wl,'
10710 # Make sure the PIC flag is empty. It appears that all Alpha
10711 # Linux and Compaq Tru64 Unix objects are PIC.
10712 lt_prog_compiler_pic_CXX=
10713 lt_prog_compiler_static_CXX='-non_shared'
10714 ;;
10715 *)
10716 ;;
10717 esac
10718 ;;
10719 psos*)
10720 ;;
10721 sco*)
10722 case $cc_basename in
10723 CC)
10724 lt_prog_compiler_pic_CXX='-fPIC'
10725 ;;
10726 *)
10727 ;;
10728 esac
10729 ;;
10730 solaris*)
10731 case $cc_basename in
10732 CC)
10733 # Sun C++ 4.2, 5.x and Centerline C++
10734 lt_prog_compiler_pic_CXX='-KPIC'
10735 lt_prog_compiler_static_CXX='-Bstatic'
10736 lt_prog_compiler_wl_CXX='-Qoption ld '
10737 ;;
10738 gcx)
10739 # Green Hills C++ Compiler
10740 lt_prog_compiler_pic_CXX='-PIC'
10741 ;;
10742 *)
10743 ;;
10744 esac
10745 ;;
10746 sunos4*)
10747 case $cc_basename in
10748 CC)
10749 # Sun C++ 4.x
10750 lt_prog_compiler_pic_CXX='-pic'
10751 lt_prog_compiler_static_CXX='-Bstatic'
10752 ;;
10753 lcc)
10754 # Lucid
10755 lt_prog_compiler_pic_CXX='-pic'
10756 ;;
10757 *)
10758 ;;
10759 esac
10760 ;;
10761 tandem*)
10762 case $cc_basename in
10763 NCC)
10764 # NonStop-UX NCC 3.20
10765 lt_prog_compiler_pic_CXX='-KPIC'
10766 ;;
10767 *)
10768 ;;
10769 esac
10770 ;;
10771 unixware*)
10772 ;;
10773 vxworks*)
10774 ;;
10775 *)
10776 lt_prog_compiler_can_build_shared_CXX=no
10777 ;;
10778 esac
10779 fi
10780
10781echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10782echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10783
10784#
10785# Check to make sure the PIC flag actually works.
10786#
10787if test -n "$lt_prog_compiler_pic_CXX"; then
10788 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10789echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10790if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10791 echo $ECHO_N "(cached) $ECHO_C" >&6
10792else
10793 lt_prog_compiler_pic_works_CXX=no
10794 ac_outfile=conftest.$ac_objext
10795 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10796 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10797 # Insert the option either (1) after the last *FLAGS variable, or
10798 # (2) before a word containing "conftest.", or (3) at the end.
10799 # Note that $ac_compile itself does not contain backslashes and begins
10800 # with a dollar sign (not a hyphen), so the echo should work correctly.
10801 # The option is referenced via a variable to avoid confusing sed.
10802 lt_compile=`echo "$ac_compile" | $SED \
10803 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10804 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10805 -e 's:$: $lt_compiler_flag:'`
John Criswell4e079782003-09-29 14:52:28 +000010806 (eval echo "\"\$as_me:10806: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010807 (eval "$lt_compile" 2>conftest.err)
10808 ac_status=$?
10809 cat conftest.err >&5
John Criswell4e079782003-09-29 14:52:28 +000010810 echo "$as_me:10810: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010811 if (exit $ac_status) && test -s "$ac_outfile"; then
10812 # The compiler can only warn and ignore the option if not recognized
10813 # So say no if there are warnings
10814 if test ! -s conftest.err; then
10815 lt_prog_compiler_pic_works_CXX=yes
10816 fi
10817 fi
10818 $rm conftest*
10819
10820fi
10821echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10822echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10823
10824if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10825 case $lt_prog_compiler_pic_CXX in
10826 "" | " "*) ;;
10827 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10828 esac
10829else
10830 lt_prog_compiler_pic_CXX=
10831 lt_prog_compiler_can_build_shared_CXX=no
10832fi
10833
10834fi
10835case "$host_os" in
10836 # For platforms which do not support PIC, -DPIC is meaningless:
10837 *djgpp*)
10838 lt_prog_compiler_pic_CXX=
10839 ;;
10840 *)
10841 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10842 ;;
10843esac
10844
10845echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10846echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10847if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10848 echo $ECHO_N "(cached) $ECHO_C" >&6
10849else
10850 lt_cv_prog_compiler_c_o_CXX=no
10851 $rm -r conftest 2>/dev/null
10852 mkdir conftest
10853 cd conftest
10854 mkdir out
10855 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10856
10857 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10858 # that will create temporary files in the current directory regardless of
10859 # the output directory. Thus, making CWD read-only will cause this test
10860 # to fail, enabling locking or at least warning the user not to do parallel
10861 # builds.
10862 chmod -w .
10863
10864 lt_compiler_flag="-o out/conftest2.$ac_objext"
10865 # Insert the option either (1) after the last *FLAGS variable, or
10866 # (2) before a word containing "conftest.", or (3) at the end.
10867 # Note that $ac_compile itself does not contain backslashes and begins
10868 # with a dollar sign (not a hyphen), so the echo should work correctly.
10869 lt_compile=`echo "$ac_compile" | $SED \
10870 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10871 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10872 -e 's:$: $lt_compiler_flag:'`
John Criswell4e079782003-09-29 14:52:28 +000010873 (eval echo "\"\$as_me:10873: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010874 (eval "$lt_compile" 2>out/conftest.err)
10875 ac_status=$?
10876 cat out/conftest.err >&5
John Criswell4e079782003-09-29 14:52:28 +000010877 echo "$as_me:10877: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010878 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10879 then
10880 # The compiler can only warn and ignore the option if not recognized
10881 # So say no if there are warnings
10882 if test ! -s out/conftest.err; then
10883 lt_cv_prog_compiler_c_o_CXX=yes
10884 fi
10885 fi
10886 chmod u+w .
10887 $rm conftest* out/*
10888 rmdir out
10889 cd ..
10890 rmdir conftest
10891 $rm conftest*
10892
10893fi
10894echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10895echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10896
10897
10898hard_links="nottested"
10899if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10900 # do not overwrite the value of need_locks provided by the user
10901 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10902echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10903 hard_links=yes
10904 $rm conftest*
10905 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10906 touch conftest.a
10907 ln conftest.a conftest.b 2>&5 || hard_links=no
10908 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10909 echo "$as_me:$LINENO: result: $hard_links" >&5
10910echo "${ECHO_T}$hard_links" >&6
10911 if test "$hard_links" = no; then
10912 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10913echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10914 need_locks=warn
10915 fi
10916else
10917 need_locks=no
10918fi
10919
10920echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10921echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10922
10923 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10924 case $host_os in
10925 aix4* | aix5*)
10926 # If we're using GNU nm, then we don't want the "-C" option.
10927 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10928 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10929 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'
10930 else
10931 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'
10932 fi
10933 ;;
10934 pw32*)
10935 export_symbols_cmds_CXX="$ltdll_cmds"
10936 ;;
10937 cygwin* | mingw*)
10938 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10939 ;;
10940 *)
10941 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10942 ;;
10943 esac
10944
10945echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10946echo "${ECHO_T}$ld_shlibs_CXX" >&6
10947test "$ld_shlibs_CXX" = no && can_build_shared=no
10948
10949variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10950if test "$GCC" = yes; then
10951 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10952fi
10953
10954#
10955# Do we need to explicitly link libc?
10956#
10957case "x$archive_cmds_need_lc_CXX" in
10958x|xyes)
10959 # Assume -lc should be added
10960 archive_cmds_need_lc_CXX=yes
10961
10962 if test "$enable_shared" = yes && test "$GCC" = yes; then
10963 case $archive_cmds_CXX in
10964 *'~'*)
10965 # FIXME: we may have to deal with multi-command sequences.
10966 ;;
10967 '$CC '*)
10968 # Test whether the compiler implicitly links with -lc since on some
10969 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10970 # to ld, don't add -lc before -lgcc.
10971 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10972echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10973 $rm conftest*
10974 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10975
10976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10977 (eval $ac_compile) 2>&5
10978 ac_status=$?
10979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10980 (exit $ac_status); } 2>conftest.err; then
10981 soname=conftest
10982 lib=conftest
10983 libobjs=conftest.$ac_objext
10984 deplibs=
10985 wl=$lt_prog_compiler_wl_CXX
10986 compiler_flags=-v
10987 linker_flags=-v
10988 verstring=
10989 output_objdir=.
10990 libname=conftest
10991 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10992 allow_undefined_flag_CXX=
10993 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10994 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10995 ac_status=$?
10996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997 (exit $ac_status); }
10998 then
10999 archive_cmds_need_lc_CXX=no
11000 else
11001 archive_cmds_need_lc_CXX=yes
11002 fi
11003 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11004 else
11005 cat conftest.err 1>&5
11006 fi
11007 $rm conftest*
11008 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11009echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11010 ;;
11011 esac
11012 fi
11013 ;;
11014esac
11015
11016echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11017echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11018hardcode_action_CXX=
11019if test -n "$hardcode_libdir_flag_spec_CXX" || \
11020 test -n "$runpath_var CXX" || \
11021 test "X$hardcode_automatic_CXX"="Xyes" ; then
11022
11023 # We can hardcode non-existant directories.
11024 if test "$hardcode_direct_CXX" != no &&
11025 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11026 # have to relink, otherwise we might link with an installed library
11027 # when we should be linking with a yet-to-be-installed one
11028 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11029 test "$hardcode_minus_L_CXX" != no; then
11030 # Linking always hardcodes the temporary library directory.
11031 hardcode_action_CXX=relink
11032 else
11033 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11034 hardcode_action_CXX=immediate
11035 fi
11036else
11037 # We cannot hardcode anything, or else we can only hardcode existing
11038 # directories.
11039 hardcode_action_CXX=unsupported
11040fi
11041echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11042echo "${ECHO_T}$hardcode_action_CXX" >&6
11043
11044if test "$hardcode_action_CXX" = relink; then
11045 # Fast installation is not supported
11046 enable_fast_install=no
11047elif test "$shlibpath_overrides_runpath" = yes ||
11048 test "$enable_shared" = no; then
11049 # Fast installation is not necessary
11050 enable_fast_install=needless
11051fi
11052
11053striplib=
11054old_striplib=
11055echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11056echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11057if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11058 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11059 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11060 echo "$as_me:$LINENO: result: yes" >&5
11061echo "${ECHO_T}yes" >&6
11062else
11063# FIXME - insert some real tests, host_os isn't really good enough
11064 case $host_os in
11065 darwin*)
11066 if test -n "$STRIP" ; then
11067 striplib="$STRIP -x"
11068 echo "$as_me:$LINENO: result: yes" >&5
11069echo "${ECHO_T}yes" >&6
11070 else
11071 echo "$as_me:$LINENO: result: no" >&5
11072echo "${ECHO_T}no" >&6
11073fi
11074 ;;
11075 *)
11076 echo "$as_me:$LINENO: result: no" >&5
11077echo "${ECHO_T}no" >&6
11078 ;;
11079 esac
11080fi
11081
11082echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11083echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11084library_names_spec=
11085libname_spec='lib$name'
11086soname_spec=
11087shrext=".so"
11088postinstall_cmds=
11089postuninstall_cmds=
11090finish_cmds=
11091finish_eval=
11092shlibpath_var=
11093shlibpath_overrides_runpath=unknown
11094version_type=none
11095dynamic_linker="$host_os ld.so"
11096sys_lib_dlsearch_path_spec="/lib /usr/lib"
11097if test "$GCC" = yes; then
11098 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11099 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11100 # if the path contains ";" then we assume it to be the separator
11101 # otherwise default to the standard path separator (i.e. ":") - it is
11102 # assumed that no part of a normal pathname contains ";" but that should
11103 # okay in the real world where ";" in dirpaths is itself problematic.
11104 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11105 else
11106 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11107 fi
11108else
11109 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11110fi
11111need_lib_prefix=unknown
11112hardcode_into_libs=no
11113
11114# when you set need_version to no, make sure it does not cause -set_version
11115# flags to be left without arguments
11116need_version=unknown
11117
11118case $host_os in
11119aix3*)
11120 version_type=linux
11121 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11122 shlibpath_var=LIBPATH
11123
11124 # AIX 3 has no versioning support, so we append a major version to the name.
11125 soname_spec='${libname}${release}${shared_ext}$major'
11126 ;;
11127
11128aix4* | aix5*)
11129 version_type=linux
11130 need_lib_prefix=no
11131 need_version=no
11132 hardcode_into_libs=yes
11133 if test "$host_cpu" = ia64; then
11134 # AIX 5 supports IA64
11135 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11136 shlibpath_var=LD_LIBRARY_PATH
11137 else
11138 # With GCC up to 2.95.x, collect2 would create an import file
11139 # for dependence libraries. The import file would start with
11140 # the line `#! .'. This would cause the generated library to
11141 # depend on `.', always an invalid library. This was fixed in
11142 # development snapshots of GCC prior to 3.0.
11143 case $host_os in
11144 aix4 | aix4.[01] | aix4.[01].*)
11145 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11146 echo ' yes '
11147 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11148 :
11149 else
11150 can_build_shared=no
11151 fi
11152 ;;
11153 esac
11154 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11155 # soname into executable. Probably we can add versioning support to
11156 # collect2, so additional links can be useful in future.
11157 if test "$aix_use_runtimelinking" = yes; then
11158 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11159 # instead of lib<name>.a to let people know that these are not
11160 # typical AIX shared libraries.
11161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11162 else
11163 # We preserve .a as extension for shared libraries through AIX4.2
11164 # and later when we are not doing run time linking.
11165 library_names_spec='${libname}${release}.a $libname.a'
11166 soname_spec='${libname}${release}${shared_ext}$major'
11167 fi
11168 shlibpath_var=LIBPATH
11169 fi
11170 ;;
11171
11172amigaos*)
11173 library_names_spec='$libname.ixlibrary $libname.a'
11174 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11175 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'
11176 ;;
11177
11178beos*)
11179 library_names_spec='${libname}${shared_ext}'
11180 dynamic_linker="$host_os ld.so"
11181 shlibpath_var=LIBRARY_PATH
11182 ;;
11183
11184bsdi4*)
11185 version_type=linux
11186 need_version=no
11187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11188 soname_spec='${libname}${release}${shared_ext}$major'
11189 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11190 shlibpath_var=LD_LIBRARY_PATH
11191 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11192 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11193 # the default ld.so.conf also contains /usr/contrib/lib and
11194 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11195 # libtool to hard-code these into programs
11196 ;;
11197
11198cygwin* | mingw* | pw32*)
11199 version_type=windows
11200 shrext=".dll"
11201 need_version=no
11202 need_lib_prefix=no
11203
11204 case $GCC,$host_os in
11205 yes,cygwin* | yes,mingw* | yes,pw32*)
11206 library_names_spec='$libname.dll.a'
11207 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11208 postinstall_cmds='base_file=`basename \${file}`~
11209 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11210 dldir=$destdir/`dirname \$dlpath`~
11211 test -d \$dldir || mkdir -p \$dldir~
11212 $install_prog $dir/$dlname \$dldir/$dlname'
11213 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11214 dlpath=$dir/\$dldll~
11215 $rm \$dlpath'
11216 shlibpath_overrides_runpath=yes
11217
11218 case $host_os in
11219 cygwin*)
11220 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11221 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11222 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11223 ;;
11224 mingw*)
11225 # MinGW DLLs use traditional 'lib' prefix
11226 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11227 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11228 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11229 # It is most probably a Windows format PATH printed by
11230 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11231 # path with ; separators, and with drive letters. We can handle the
11232 # drive letters (cygwin fileutils understands them), so leave them,
11233 # especially as we might pass files found there to a mingw objdump,
11234 # which wouldn't understand a cygwinified path. Ahh.
11235 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11236 else
11237 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11238 fi
11239 ;;
11240 pw32*)
11241 # pw32 DLLs use 'pw' prefix rather than 'lib'
11242 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11243 ;;
11244 esac
11245 ;;
11246
11247 *)
11248 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11249 ;;
11250 esac
11251 dynamic_linker='Win32 ld.exe'
11252 # FIXME: first we should search . and the directory the executable is in
11253 shlibpath_var=PATH
11254 ;;
11255
11256darwin* | rhapsody*)
11257 dynamic_linker="$host_os dyld"
11258 version_type=darwin
11259 need_lib_prefix=no
11260 need_version=no
11261 # FIXME: Relying on posixy $() will cause problems for
11262 # cross-compilation, but unfortunately the echo tests do not
11263 # yet detect zsh echo's removal of \ escapes.
11264 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11265 soname_spec='${libname}${release}${major}$shared_ext'
11266 shlibpath_overrides_runpath=yes
11267 shlibpath_var=DYLD_LIBRARY_PATH
11268 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11269 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11270 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11271 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"`
11272 fi
11273 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11274 ;;
11275
11276dgux*)
11277 version_type=linux
11278 need_lib_prefix=no
11279 need_version=no
11280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11281 soname_spec='${libname}${release}${shared_ext}$major'
11282 shlibpath_var=LD_LIBRARY_PATH
11283 ;;
11284
11285freebsd1*)
11286 dynamic_linker=no
11287 ;;
11288
11289freebsd*)
11290 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11291 version_type=freebsd-$objformat
11292 case $version_type in
11293 freebsd-elf*)
11294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11295 need_version=no
11296 need_lib_prefix=no
11297 ;;
11298 freebsd-*)
11299 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11300 need_version=yes
11301 ;;
11302 esac
11303 shlibpath_var=LD_LIBRARY_PATH
11304 case $host_os in
11305 freebsd2*)
11306 shlibpath_overrides_runpath=yes
11307 ;;
11308 freebsd3.01* | freebsdelf3.01*)
11309 shlibpath_overrides_runpath=yes
11310 hardcode_into_libs=yes
11311 ;;
11312 *) # from 3.2 on
11313 shlibpath_overrides_runpath=no
11314 hardcode_into_libs=yes
11315 ;;
11316 esac
11317 ;;
11318
11319gnu*)
11320 version_type=linux
11321 need_lib_prefix=no
11322 need_version=no
11323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11324 soname_spec='${libname}${release}${shared_ext}$major'
11325 shlibpath_var=LD_LIBRARY_PATH
11326 hardcode_into_libs=yes
11327 ;;
11328
11329hpux9* | hpux10* | hpux11*)
11330 # Give a soname corresponding to the major version so that dld.sl refuses to
11331 # link against other versions.
11332 version_type=sunos
11333 need_lib_prefix=no
11334 need_version=no
11335 case "$host_cpu" in
11336 ia64*)
11337 shrext='.so'
11338 hardcode_into_libs=yes
11339 dynamic_linker="$host_os dld.so"
11340 shlibpath_var=LD_LIBRARY_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 if test "X$HPUX_IA64_MODE" = X32; then
11345 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11346 else
11347 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11348 fi
11349 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11350 ;;
11351 hppa*64*)
11352 shrext='.sl'
11353 hardcode_into_libs=yes
11354 dynamic_linker="$host_os dld.sl"
11355 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11356 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11358 soname_spec='${libname}${release}${shared_ext}$major'
11359 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11360 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11361 ;;
11362 *)
11363 shrext='.sl'
11364 dynamic_linker="$host_os dld.sl"
11365 shlibpath_var=SHLIB_PATH
11366 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11368 soname_spec='${libname}${release}${shared_ext}$major'
11369 ;;
11370 esac
11371 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11372 postinstall_cmds='chmod 555 $lib'
11373 ;;
11374
11375irix5* | irix6* | nonstopux*)
11376 case $host_os in
11377 nonstopux*) version_type=nonstopux ;;
11378 *)
11379 if test "$lt_cv_prog_gnu_ld" = yes; then
11380 version_type=linux
11381 else
11382 version_type=irix
11383 fi ;;
11384 esac
11385 need_lib_prefix=no
11386 need_version=no
11387 soname_spec='${libname}${release}${shared_ext}$major'
11388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11389 case $host_os in
11390 irix5* | nonstopux*)
11391 libsuff= shlibsuff=
11392 ;;
11393 *)
11394 case $LD in # libtool.m4 will add one of these switches to LD
11395 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11396 libsuff= shlibsuff= libmagic=32-bit;;
11397 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11398 libsuff=32 shlibsuff=N32 libmagic=N32;;
11399 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11400 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11401 *) libsuff= shlibsuff= libmagic=never-match;;
11402 esac
11403 ;;
11404 esac
11405 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11406 shlibpath_overrides_runpath=no
11407 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11408 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11409 hardcode_into_libs=yes
11410 ;;
11411
11412# No shared lib support for Linux oldld, aout, or coff.
11413linux*oldld* | linux*aout* | linux*coff*)
11414 dynamic_linker=no
11415 ;;
11416
11417# This must be Linux ELF.
11418linux*)
11419 version_type=linux
11420 need_lib_prefix=no
11421 need_version=no
11422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11423 soname_spec='${libname}${release}${shared_ext}$major'
11424 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11425 shlibpath_var=LD_LIBRARY_PATH
11426 shlibpath_overrides_runpath=no
11427 # This implies no fast_install, which is unacceptable.
11428 # Some rework will be needed to allow for fast_install
11429 # before this can be enabled.
11430 hardcode_into_libs=yes
11431
11432 # We used to test for /lib/ld.so.1 and disable shared libraries on
11433 # powerpc, because MkLinux only supported shared libraries with the
11434 # GNU dynamic linker. Since this was broken with cross compilers,
11435 # most powerpc-linux boxes support dynamic linking these days and
11436 # people can always --disable-shared, the test was removed, and we
11437 # assume the GNU/Linux dynamic linker is in use.
11438 dynamic_linker='GNU/Linux ld.so'
11439 ;;
11440
11441netbsd*)
11442 version_type=sunos
11443 need_lib_prefix=no
11444 need_version=no
11445 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11447 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11448 dynamic_linker='NetBSD (a.out) ld.so'
11449 else
11450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11451 soname_spec='${libname}${release}${shared_ext}$major'
11452 dynamic_linker='NetBSD ld.elf_so'
11453 fi
11454 shlibpath_var=LD_LIBRARY_PATH
11455 shlibpath_overrides_runpath=yes
11456 hardcode_into_libs=yes
11457 ;;
11458
11459newsos6)
11460 version_type=linux
11461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11462 shlibpath_var=LD_LIBRARY_PATH
11463 shlibpath_overrides_runpath=yes
11464 ;;
11465
11466nto-qnx)
11467 version_type=linux
11468 need_lib_prefix=no
11469 need_version=no
11470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11471 soname_spec='${libname}${release}${shared_ext}$major'
11472 shlibpath_var=LD_LIBRARY_PATH
11473 shlibpath_overrides_runpath=yes
11474 ;;
11475
11476openbsd*)
11477 version_type=sunos
11478 need_lib_prefix=no
11479 need_version=no
11480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11481 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11482 shlibpath_var=LD_LIBRARY_PATH
11483 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11484 case $host_os in
11485 openbsd2.[89] | openbsd2.[89].*)
11486 shlibpath_overrides_runpath=no
11487 ;;
11488 *)
11489 shlibpath_overrides_runpath=yes
11490 ;;
11491 esac
11492 else
11493 shlibpath_overrides_runpath=yes
11494 fi
11495 ;;
11496
11497os2*)
11498 libname_spec='$name'
11499 shrext=".dll"
11500 need_lib_prefix=no
11501 library_names_spec='$libname${shared_ext} $libname.a'
11502 dynamic_linker='OS/2 ld.exe'
11503 shlibpath_var=LIBPATH
11504 ;;
11505
11506osf3* | osf4* | osf5*)
11507 version_type=osf
11508 need_lib_prefix=no
11509 need_version=no
11510 soname_spec='${libname}${release}${shared_ext}$major'
11511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11512 shlibpath_var=LD_LIBRARY_PATH
11513 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11514 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11515 ;;
11516
11517sco3.2v5*)
11518 version_type=osf
11519 soname_spec='${libname}${release}${shared_ext}$major'
11520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11521 shlibpath_var=LD_LIBRARY_PATH
11522 ;;
11523
11524solaris*)
11525 version_type=linux
11526 need_lib_prefix=no
11527 need_version=no
11528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11529 soname_spec='${libname}${release}${shared_ext}$major'
11530 shlibpath_var=LD_LIBRARY_PATH
11531 shlibpath_overrides_runpath=yes
11532 hardcode_into_libs=yes
11533 # ldd complains unless libraries are executable
11534 postinstall_cmds='chmod +x $lib'
11535 ;;
11536
11537sunos4*)
11538 version_type=sunos
11539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11540 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11541 shlibpath_var=LD_LIBRARY_PATH
11542 shlibpath_overrides_runpath=yes
11543 if test "$with_gnu_ld" = yes; then
11544 need_lib_prefix=no
11545 fi
11546 need_version=yes
11547 ;;
11548
11549sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11550 version_type=linux
11551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11552 soname_spec='${libname}${release}${shared_ext}$major'
11553 shlibpath_var=LD_LIBRARY_PATH
11554 case $host_vendor in
11555 sni)
11556 shlibpath_overrides_runpath=no
11557 need_lib_prefix=no
11558 export_dynamic_flag_spec='${wl}-Blargedynsym'
11559 runpath_var=LD_RUN_PATH
11560 ;;
11561 siemens)
11562 need_lib_prefix=no
11563 ;;
11564 motorola)
11565 need_lib_prefix=no
11566 need_version=no
11567 shlibpath_overrides_runpath=no
11568 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11569 ;;
11570 esac
11571 ;;
11572
11573sysv4*MP*)
11574 if test -d /usr/nec ;then
11575 version_type=linux
11576 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11577 soname_spec='$libname${shared_ext}.$major'
11578 shlibpath_var=LD_LIBRARY_PATH
11579 fi
11580 ;;
11581
11582uts4*)
11583 version_type=linux
11584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11585 soname_spec='${libname}${release}${shared_ext}$major'
11586 shlibpath_var=LD_LIBRARY_PATH
11587 ;;
11588
11589*)
11590 dynamic_linker=no
11591 ;;
11592esac
11593echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11594echo "${ECHO_T}$dynamic_linker" >&6
11595test "$dynamic_linker" = no && can_build_shared=no
11596
11597if test "x$enable_dlopen" != xyes; then
11598 enable_dlopen=unknown
11599 enable_dlopen_self=unknown
11600 enable_dlopen_self_static=unknown
11601else
11602 lt_cv_dlopen=no
11603 lt_cv_dlopen_libs=
11604
11605 case $host_os in
11606 beos*)
11607 lt_cv_dlopen="load_add_on"
11608 lt_cv_dlopen_libs=
11609 lt_cv_dlopen_self=yes
11610 ;;
11611
11612 mingw* | pw32*)
11613 lt_cv_dlopen="LoadLibrary"
11614 lt_cv_dlopen_libs=
11615 ;;
11616
11617 cygwin*)
11618 lt_cv_dlopen="dlopen"
11619 lt_cv_dlopen_libs=
11620 ;;
11621
11622 darwin*)
11623 # if libdl is installed we need to link against it
11624 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11625echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11626if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11627 echo $ECHO_N "(cached) $ECHO_C" >&6
11628else
11629 ac_check_lib_save_LIBS=$LIBS
11630LIBS="-ldl $LIBS"
11631cat >conftest.$ac_ext <<_ACEOF
11632#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011633/* confdefs.h. */
11634_ACEOF
11635cat confdefs.h >>conftest.$ac_ext
11636cat >>conftest.$ac_ext <<_ACEOF
11637/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011638
11639/* Override any gcc2 internal prototype to avoid an error. */
11640#ifdef __cplusplus
11641extern "C"
11642#endif
11643/* We use char because int might match the return type of a gcc2
11644 builtin and then its argument prototype would still apply. */
11645char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011646int
11647main ()
11648{
11649dlopen ();
11650 ;
11651 return 0;
11652}
11653_ACEOF
11654rm -f conftest.$ac_objext conftest$ac_exeext
11655if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11656 (eval $ac_link) 2>&5
11657 ac_status=$?
11658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659 (exit $ac_status); } &&
11660 { ac_try='test -s conftest$ac_exeext'
11661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11662 (eval $ac_try) 2>&5
11663 ac_status=$?
11664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11665 (exit $ac_status); }; }; then
11666 ac_cv_lib_dl_dlopen=yes
11667else
11668 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011669sed 's/^/| /' conftest.$ac_ext >&5
11670
John Criswell47fdd832003-07-14 16:52:07 +000011671ac_cv_lib_dl_dlopen=no
11672fi
11673rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11674LIBS=$ac_check_lib_save_LIBS
11675fi
11676echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11677echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11678if test $ac_cv_lib_dl_dlopen = yes; then
11679 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11680else
11681
11682 lt_cv_dlopen="dyld"
11683 lt_cv_dlopen_libs=
11684 lt_cv_dlopen_self=yes
11685
11686fi
11687
11688 ;;
11689
11690 *)
11691 echo "$as_me:$LINENO: checking for shl_load" >&5
11692echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11693if test "${ac_cv_func_shl_load+set}" = set; then
11694 echo $ECHO_N "(cached) $ECHO_C" >&6
11695else
11696 cat >conftest.$ac_ext <<_ACEOF
11697#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011698/* confdefs.h. */
11699_ACEOF
11700cat confdefs.h >>conftest.$ac_ext
11701cat >>conftest.$ac_ext <<_ACEOF
11702/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011703/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011704 which can conflict with char shl_load (); below.
11705 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11706 <limits.h> exists even on freestanding compilers. */
11707#ifdef __STDC__
11708# include <limits.h>
11709#else
11710# include <assert.h>
11711#endif
John Criswell47fdd832003-07-14 16:52:07 +000011712/* Override any gcc2 internal prototype to avoid an error. */
11713#ifdef __cplusplus
11714extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011715{
John Criswell47fdd832003-07-14 16:52:07 +000011716#endif
11717/* We use char because int might match the return type of a gcc2
11718 builtin and then its argument prototype would still apply. */
11719char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011720/* The GNU C library defines this for functions which it implements
11721 to always fail with ENOSYS. Some functions are actually named
11722 something starting with __ and the normal name is an alias. */
11723#if defined (__stub_shl_load) || defined (__stub___shl_load)
11724choke me
11725#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011726char (*f) () = shl_load;
11727#endif
11728#ifdef __cplusplus
11729}
John Criswell47fdd832003-07-14 16:52:07 +000011730#endif
11731
John Criswell0c38eaf2003-09-10 15:17:25 +000011732int
11733main ()
11734{
11735return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000011736 ;
11737 return 0;
11738}
11739_ACEOF
11740rm -f conftest.$ac_objext conftest$ac_exeext
11741if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11742 (eval $ac_link) 2>&5
11743 ac_status=$?
11744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11745 (exit $ac_status); } &&
11746 { ac_try='test -s conftest$ac_exeext'
11747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11748 (eval $ac_try) 2>&5
11749 ac_status=$?
11750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11751 (exit $ac_status); }; }; then
11752 ac_cv_func_shl_load=yes
11753else
11754 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011755sed 's/^/| /' conftest.$ac_ext >&5
11756
John Criswell47fdd832003-07-14 16:52:07 +000011757ac_cv_func_shl_load=no
11758fi
11759rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11760fi
11761echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11762echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11763if test $ac_cv_func_shl_load = yes; then
11764 lt_cv_dlopen="shl_load"
11765else
11766 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11767echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11768if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11769 echo $ECHO_N "(cached) $ECHO_C" >&6
11770else
11771 ac_check_lib_save_LIBS=$LIBS
11772LIBS="-ldld $LIBS"
11773cat >conftest.$ac_ext <<_ACEOF
11774#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011775/* confdefs.h. */
11776_ACEOF
11777cat confdefs.h >>conftest.$ac_ext
11778cat >>conftest.$ac_ext <<_ACEOF
11779/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011780
11781/* Override any gcc2 internal prototype to avoid an error. */
11782#ifdef __cplusplus
11783extern "C"
11784#endif
11785/* We use char because int might match the return type of a gcc2
11786 builtin and then its argument prototype would still apply. */
11787char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011788int
11789main ()
11790{
11791shl_load ();
11792 ;
11793 return 0;
11794}
11795_ACEOF
11796rm -f conftest.$ac_objext conftest$ac_exeext
11797if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11798 (eval $ac_link) 2>&5
11799 ac_status=$?
11800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801 (exit $ac_status); } &&
11802 { ac_try='test -s conftest$ac_exeext'
11803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11804 (eval $ac_try) 2>&5
11805 ac_status=$?
11806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11807 (exit $ac_status); }; }; then
11808 ac_cv_lib_dld_shl_load=yes
11809else
11810 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011811sed 's/^/| /' conftest.$ac_ext >&5
11812
John Criswell47fdd832003-07-14 16:52:07 +000011813ac_cv_lib_dld_shl_load=no
11814fi
11815rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11816LIBS=$ac_check_lib_save_LIBS
11817fi
11818echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11819echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11820if test $ac_cv_lib_dld_shl_load = yes; then
11821 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11822else
11823 echo "$as_me:$LINENO: checking for dlopen" >&5
11824echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11825if test "${ac_cv_func_dlopen+set}" = set; then
11826 echo $ECHO_N "(cached) $ECHO_C" >&6
11827else
11828 cat >conftest.$ac_ext <<_ACEOF
11829#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011830/* confdefs.h. */
11831_ACEOF
11832cat confdefs.h >>conftest.$ac_ext
11833cat >>conftest.$ac_ext <<_ACEOF
11834/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011835/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011836 which can conflict with char dlopen (); below.
11837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11838 <limits.h> exists even on freestanding compilers. */
11839#ifdef __STDC__
11840# include <limits.h>
11841#else
11842# include <assert.h>
11843#endif
John Criswell47fdd832003-07-14 16:52:07 +000011844/* Override any gcc2 internal prototype to avoid an error. */
11845#ifdef __cplusplus
11846extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011847{
John Criswell47fdd832003-07-14 16:52:07 +000011848#endif
11849/* We use char because int might match the return type of a gcc2
11850 builtin and then its argument prototype would still apply. */
11851char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011852/* The GNU C library defines this for functions which it implements
11853 to always fail with ENOSYS. Some functions are actually named
11854 something starting with __ and the normal name is an alias. */
11855#if defined (__stub_dlopen) || defined (__stub___dlopen)
11856choke me
11857#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011858char (*f) () = dlopen;
11859#endif
11860#ifdef __cplusplus
11861}
John Criswell47fdd832003-07-14 16:52:07 +000011862#endif
11863
John Criswell0c38eaf2003-09-10 15:17:25 +000011864int
11865main ()
11866{
11867return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000011868 ;
11869 return 0;
11870}
11871_ACEOF
11872rm -f conftest.$ac_objext conftest$ac_exeext
11873if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11874 (eval $ac_link) 2>&5
11875 ac_status=$?
11876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11877 (exit $ac_status); } &&
11878 { ac_try='test -s conftest$ac_exeext'
11879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11880 (eval $ac_try) 2>&5
11881 ac_status=$?
11882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883 (exit $ac_status); }; }; then
11884 ac_cv_func_dlopen=yes
11885else
11886 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011887sed 's/^/| /' conftest.$ac_ext >&5
11888
John Criswell47fdd832003-07-14 16:52:07 +000011889ac_cv_func_dlopen=no
11890fi
11891rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11892fi
11893echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11894echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11895if test $ac_cv_func_dlopen = yes; then
11896 lt_cv_dlopen="dlopen"
11897else
11898 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11899echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11900if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11901 echo $ECHO_N "(cached) $ECHO_C" >&6
11902else
11903 ac_check_lib_save_LIBS=$LIBS
11904LIBS="-ldl $LIBS"
11905cat >conftest.$ac_ext <<_ACEOF
11906#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011907/* confdefs.h. */
11908_ACEOF
11909cat confdefs.h >>conftest.$ac_ext
11910cat >>conftest.$ac_ext <<_ACEOF
11911/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011912
11913/* Override any gcc2 internal prototype to avoid an error. */
11914#ifdef __cplusplus
11915extern "C"
11916#endif
11917/* We use char because int might match the return type of a gcc2
11918 builtin and then its argument prototype would still apply. */
11919char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011920int
11921main ()
11922{
11923dlopen ();
11924 ;
11925 return 0;
11926}
11927_ACEOF
11928rm -f conftest.$ac_objext conftest$ac_exeext
11929if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11930 (eval $ac_link) 2>&5
11931 ac_status=$?
11932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11933 (exit $ac_status); } &&
11934 { ac_try='test -s conftest$ac_exeext'
11935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11936 (eval $ac_try) 2>&5
11937 ac_status=$?
11938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11939 (exit $ac_status); }; }; then
11940 ac_cv_lib_dl_dlopen=yes
11941else
11942 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011943sed 's/^/| /' conftest.$ac_ext >&5
11944
John Criswell47fdd832003-07-14 16:52:07 +000011945ac_cv_lib_dl_dlopen=no
11946fi
11947rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11948LIBS=$ac_check_lib_save_LIBS
11949fi
11950echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11951echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11952if test $ac_cv_lib_dl_dlopen = yes; then
11953 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11954else
11955 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11956echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11957if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11958 echo $ECHO_N "(cached) $ECHO_C" >&6
11959else
11960 ac_check_lib_save_LIBS=$LIBS
11961LIBS="-lsvld $LIBS"
11962cat >conftest.$ac_ext <<_ACEOF
11963#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011964/* confdefs.h. */
11965_ACEOF
11966cat confdefs.h >>conftest.$ac_ext
11967cat >>conftest.$ac_ext <<_ACEOF
11968/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011969
11970/* Override any gcc2 internal prototype to avoid an error. */
11971#ifdef __cplusplus
11972extern "C"
11973#endif
11974/* We use char because int might match the return type of a gcc2
11975 builtin and then its argument prototype would still apply. */
11976char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011977int
11978main ()
11979{
11980dlopen ();
11981 ;
11982 return 0;
11983}
11984_ACEOF
11985rm -f conftest.$ac_objext conftest$ac_exeext
11986if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11987 (eval $ac_link) 2>&5
11988 ac_status=$?
11989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990 (exit $ac_status); } &&
11991 { ac_try='test -s conftest$ac_exeext'
11992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11993 (eval $ac_try) 2>&5
11994 ac_status=$?
11995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11996 (exit $ac_status); }; }; then
11997 ac_cv_lib_svld_dlopen=yes
11998else
11999 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012000sed 's/^/| /' conftest.$ac_ext >&5
12001
John Criswell47fdd832003-07-14 16:52:07 +000012002ac_cv_lib_svld_dlopen=no
12003fi
12004rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12005LIBS=$ac_check_lib_save_LIBS
12006fi
12007echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12008echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12009if test $ac_cv_lib_svld_dlopen = yes; then
12010 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12011else
12012 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12013echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12014if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12015 echo $ECHO_N "(cached) $ECHO_C" >&6
12016else
12017 ac_check_lib_save_LIBS=$LIBS
12018LIBS="-ldld $LIBS"
12019cat >conftest.$ac_ext <<_ACEOF
12020#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000012021/* confdefs.h. */
12022_ACEOF
12023cat confdefs.h >>conftest.$ac_ext
12024cat >>conftest.$ac_ext <<_ACEOF
12025/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012026
12027/* Override any gcc2 internal prototype to avoid an error. */
12028#ifdef __cplusplus
12029extern "C"
12030#endif
12031/* We use char because int might match the return type of a gcc2
12032 builtin and then its argument prototype would still apply. */
12033char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000012034int
12035main ()
12036{
12037dld_link ();
12038 ;
12039 return 0;
12040}
12041_ACEOF
12042rm -f conftest.$ac_objext conftest$ac_exeext
12043if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12044 (eval $ac_link) 2>&5
12045 ac_status=$?
12046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047 (exit $ac_status); } &&
12048 { ac_try='test -s conftest$ac_exeext'
12049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12050 (eval $ac_try) 2>&5
12051 ac_status=$?
12052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053 (exit $ac_status); }; }; then
12054 ac_cv_lib_dld_dld_link=yes
12055else
12056 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012057sed 's/^/| /' conftest.$ac_ext >&5
12058
John Criswell47fdd832003-07-14 16:52:07 +000012059ac_cv_lib_dld_dld_link=no
12060fi
12061rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12062LIBS=$ac_check_lib_save_LIBS
12063fi
12064echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12065echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12066if test $ac_cv_lib_dld_dld_link = yes; then
12067 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12068fi
12069
12070
12071fi
12072
12073
12074fi
12075
12076
12077fi
12078
12079
12080fi
12081
12082
12083fi
12084
12085 ;;
12086 esac
12087
12088 if test "x$lt_cv_dlopen" != xno; then
12089 enable_dlopen=yes
12090 else
12091 enable_dlopen=no
12092 fi
12093
12094 case $lt_cv_dlopen in
12095 dlopen)
12096 save_CPPFLAGS="$CPPFLAGS"
12097 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12098
12099 save_LDFLAGS="$LDFLAGS"
12100 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12101
12102 save_LIBS="$LIBS"
12103 LIBS="$lt_cv_dlopen_libs $LIBS"
12104
12105 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12106echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12107if test "${lt_cv_dlopen_self+set}" = set; then
12108 echo $ECHO_N "(cached) $ECHO_C" >&6
12109else
12110 if test "$cross_compiling" = yes; then :
12111 lt_cv_dlopen_self=cross
12112else
12113 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12114 lt_status=$lt_dlunknown
12115 cat > conftest.$ac_ext <<EOF
John Criswell4e079782003-09-29 14:52:28 +000012116#line 12116 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000012117#include "confdefs.h"
12118
12119#if HAVE_DLFCN_H
12120#include <dlfcn.h>
12121#endif
12122
12123#include <stdio.h>
12124
12125#ifdef RTLD_GLOBAL
12126# define LT_DLGLOBAL RTLD_GLOBAL
12127#else
12128# ifdef DL_GLOBAL
12129# define LT_DLGLOBAL DL_GLOBAL
12130# else
12131# define LT_DLGLOBAL 0
12132# endif
12133#endif
12134
12135/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12136 find out it does not work in some platform. */
12137#ifndef LT_DLLAZY_OR_NOW
12138# ifdef RTLD_LAZY
12139# define LT_DLLAZY_OR_NOW RTLD_LAZY
12140# else
12141# ifdef DL_LAZY
12142# define LT_DLLAZY_OR_NOW DL_LAZY
12143# else
12144# ifdef RTLD_NOW
12145# define LT_DLLAZY_OR_NOW RTLD_NOW
12146# else
12147# ifdef DL_NOW
12148# define LT_DLLAZY_OR_NOW DL_NOW
12149# else
12150# define LT_DLLAZY_OR_NOW 0
12151# endif
12152# endif
12153# endif
12154# endif
12155#endif
12156
12157#ifdef __cplusplus
12158extern "C" void exit (int);
12159#endif
12160
12161void fnord() { int i=42;}
12162int main ()
12163{
12164 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12165 int status = $lt_dlunknown;
12166
12167 if (self)
12168 {
12169 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12170 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12171 /* dlclose (self); */
12172 }
12173
12174 exit (status);
12175}
12176EOF
12177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12178 (eval $ac_link) 2>&5
12179 ac_status=$?
12180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12181 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12182 (./conftest; exit; ) 2>/dev/null
12183 lt_status=$?
12184 case x$lt_status in
12185 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12186 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12187 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12188 esac
12189 else :
12190 # compilation failed
12191 lt_cv_dlopen_self=no
12192 fi
12193fi
12194rm -fr conftest*
12195
12196
12197fi
12198echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12199echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12200
12201 if test "x$lt_cv_dlopen_self" = xyes; then
12202 LDFLAGS="$LDFLAGS $link_static_flag"
12203 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12204echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12205if test "${lt_cv_dlopen_self_static+set}" = set; then
12206 echo $ECHO_N "(cached) $ECHO_C" >&6
12207else
12208 if test "$cross_compiling" = yes; then :
12209 lt_cv_dlopen_self_static=cross
12210else
12211 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12212 lt_status=$lt_dlunknown
12213 cat > conftest.$ac_ext <<EOF
John Criswell4e079782003-09-29 14:52:28 +000012214#line 12214 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000012215#include "confdefs.h"
12216
12217#if HAVE_DLFCN_H
12218#include <dlfcn.h>
12219#endif
12220
12221#include <stdio.h>
12222
12223#ifdef RTLD_GLOBAL
12224# define LT_DLGLOBAL RTLD_GLOBAL
12225#else
12226# ifdef DL_GLOBAL
12227# define LT_DLGLOBAL DL_GLOBAL
12228# else
12229# define LT_DLGLOBAL 0
12230# endif
12231#endif
12232
12233/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12234 find out it does not work in some platform. */
12235#ifndef LT_DLLAZY_OR_NOW
12236# ifdef RTLD_LAZY
12237# define LT_DLLAZY_OR_NOW RTLD_LAZY
12238# else
12239# ifdef DL_LAZY
12240# define LT_DLLAZY_OR_NOW DL_LAZY
12241# else
12242# ifdef RTLD_NOW
12243# define LT_DLLAZY_OR_NOW RTLD_NOW
12244# else
12245# ifdef DL_NOW
12246# define LT_DLLAZY_OR_NOW DL_NOW
12247# else
12248# define LT_DLLAZY_OR_NOW 0
12249# endif
12250# endif
12251# endif
12252# endif
12253#endif
12254
12255#ifdef __cplusplus
12256extern "C" void exit (int);
12257#endif
12258
12259void fnord() { int i=42;}
12260int main ()
12261{
12262 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12263 int status = $lt_dlunknown;
12264
12265 if (self)
12266 {
12267 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12268 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12269 /* dlclose (self); */
12270 }
12271
12272 exit (status);
12273}
12274EOF
12275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12276 (eval $ac_link) 2>&5
12277 ac_status=$?
12278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12280 (./conftest; exit; ) 2>/dev/null
12281 lt_status=$?
12282 case x$lt_status in
12283 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12284 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12285 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12286 esac
12287 else :
12288 # compilation failed
12289 lt_cv_dlopen_self_static=no
12290 fi
12291fi
12292rm -fr conftest*
12293
12294
12295fi
12296echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12297echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12298 fi
12299
12300 CPPFLAGS="$save_CPPFLAGS"
12301 LDFLAGS="$save_LDFLAGS"
12302 LIBS="$save_LIBS"
12303 ;;
12304 esac
12305
12306 case $lt_cv_dlopen_self in
12307 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12308 *) enable_dlopen_self=unknown ;;
12309 esac
12310
12311 case $lt_cv_dlopen_self_static in
12312 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12313 *) enable_dlopen_self_static=unknown ;;
12314 esac
12315fi
12316
12317
12318# The else clause should only fire when bootstrapping the
12319# libtool distribution, otherwise you forgot to ship ltmain.sh
12320# with your package, and you will get complaints that there are
12321# no rules to generate ltmain.sh.
12322if test -f "$ltmain"; then
12323 # See if we are running on zsh, and set the options which allow our commands through
12324 # without removal of \ escapes.
12325 if test -n "${ZSH_VERSION+set}" ; then
12326 setopt NO_GLOB_SUBST
12327 fi
12328 # Now quote all the things that may contain metacharacters while being
12329 # careful not to overquote the AC_SUBSTed values. We take copies of the
12330 # variables and quote the copies for generation of the libtool script.
12331 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12332 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12333 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12334 deplibs_check_method reload_flag reload_cmds need_locks \
12335 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12336 lt_cv_sys_global_symbol_to_c_name_address \
12337 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12338 old_postinstall_cmds old_postuninstall_cmds \
12339 compiler_CXX \
12340 CC_CXX \
12341 LD_CXX \
12342 lt_prog_compiler_wl_CXX \
12343 lt_prog_compiler_pic_CXX \
12344 lt_prog_compiler_static_CXX \
12345 lt_prog_compiler_no_builtin_flag_CXX \
12346 export_dynamic_flag_spec_CXX \
12347 thread_safe_flag_spec_CXX \
12348 whole_archive_flag_spec_CXX \
12349 enable_shared_with_static_runtimes_CXX \
12350 old_archive_cmds_CXX \
12351 old_archive_from_new_cmds_CXX \
12352 predep_objects_CXX \
12353 postdep_objects_CXX \
12354 predeps_CXX \
12355 postdeps_CXX \
12356 compiler_lib_search_path_CXX \
12357 archive_cmds_CXX \
12358 archive_expsym_cmds_CXX \
12359 postinstall_cmds_CXX \
12360 postuninstall_cmds_CXX \
12361 old_archive_from_expsyms_cmds_CXX \
12362 allow_undefined_flag_CXX \
12363 no_undefined_flag_CXX \
12364 export_symbols_cmds_CXX \
12365 hardcode_libdir_flag_spec_CXX \
12366 hardcode_libdir_flag_spec_ld_CXX \
12367 hardcode_libdir_separator_CXX \
12368 hardcode_automatic_CXX \
12369 module_cmds_CXX \
12370 module_expsym_cmds_CXX \
12371 lt_cv_prog_compiler_c_o_CXX \
12372 exclude_expsyms_CXX \
12373 include_expsyms_CXX; do
12374
12375 case $var in
12376 old_archive_cmds_CXX | \
12377 old_archive_from_new_cmds_CXX | \
12378 archive_cmds_CXX | \
12379 archive_expsym_cmds_CXX | \
12380 module_cmds_CXX | \
12381 module_expsym_cmds_CXX | \
12382 old_archive_from_expsyms_cmds_CXX | \
12383 export_symbols_cmds_CXX | \
12384 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12385 postinstall_cmds | postuninstall_cmds | \
12386 old_postinstall_cmds | old_postuninstall_cmds | \
12387 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12388 # Double-quote double-evaled strings.
12389 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12390 ;;
12391 *)
12392 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12393 ;;
12394 esac
12395 done
12396
12397 case $lt_echo in
12398 *'\$0 --fallback-echo"')
12399 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12400 ;;
12401 esac
12402
12403cfgfile="$ofile"
12404
12405 cat <<__EOF__ >> "$cfgfile"
12406# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12407
12408# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12409
12410# Shell to use when invoking shell scripts.
12411SHELL=$lt_SHELL
12412
12413# Whether or not to build shared libraries.
12414build_libtool_libs=$enable_shared
12415
12416# Whether or not to build static libraries.
12417build_old_libs=$enable_static
12418
12419# Whether or not to add -lc for building shared libraries.
12420build_libtool_need_lc=$archive_cmds_need_lc_CXX
12421
12422# Whether or not to disallow shared libs when runtime libs are static
12423allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12424
12425# Whether or not to optimize for fast installation.
12426fast_install=$enable_fast_install
12427
12428# The host system.
12429host_alias=$host_alias
12430host=$host
12431
12432# An echo program that does not interpret backslashes.
12433echo=$lt_echo
12434
12435# The archiver.
12436AR=$lt_AR
12437AR_FLAGS=$lt_AR_FLAGS
12438
12439# A C compiler.
12440LTCC=$lt_LTCC
12441
12442# A language-specific compiler.
12443CC=$lt_compiler_CXX
12444
12445# Is the compiler the GNU C compiler?
12446with_gcc=$GCC_CXX
12447
12448# An ERE matcher.
12449EGREP=$lt_EGREP
12450
12451# The linker used to build libraries.
12452LD=$lt_LD_CXX
12453
12454# Whether we need hard or soft links.
12455LN_S=$lt_LN_S
12456
12457# A BSD-compatible nm program.
12458NM=$lt_NM
12459
12460# A symbol stripping program
12461STRIP=$STRIP
12462
12463# Used to examine libraries when file_magic_cmd begins "file"
12464MAGIC_CMD=$MAGIC_CMD
12465
12466# Used on cygwin: DLL creation program.
12467DLLTOOL="$DLLTOOL"
12468
12469# Used on cygwin: object dumper.
12470OBJDUMP="$OBJDUMP"
12471
12472# Used on cygwin: assembler.
12473AS="$AS"
12474
12475# The name of the directory that contains temporary libtool files.
12476objdir=$objdir
12477
12478# How to create reloadable object files.
12479reload_flag=$lt_reload_flag
12480reload_cmds=$lt_reload_cmds
12481
12482# How to pass a linker flag through the compiler.
12483wl=$lt_lt_prog_compiler_wl_CXX
12484
12485# Object file suffix (normally "o").
12486objext="$ac_objext"
12487
12488# Old archive suffix (normally "a").
12489libext="$libext"
12490
12491# Shared library suffix (normally ".so").
12492shrext='$shrext'
12493
12494# Executable file suffix (normally "").
12495exeext="$exeext"
12496
12497# Additional compiler flags for building library objects.
12498pic_flag=$lt_lt_prog_compiler_pic_CXX
12499pic_mode=$pic_mode
12500
12501# What is the maximum length of a command?
12502max_cmd_len=$lt_cv_sys_max_cmd_len
12503
12504# Does compiler simultaneously support -c and -o options?
12505compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12506
12507# Must we lock files when doing compilation ?
12508need_locks=$lt_need_locks
12509
12510# Do we need the lib prefix for modules?
12511need_lib_prefix=$need_lib_prefix
12512
12513# Do we need a version for libraries?
12514need_version=$need_version
12515
12516# Whether dlopen is supported.
12517dlopen_support=$enable_dlopen
12518
12519# Whether dlopen of programs is supported.
12520dlopen_self=$enable_dlopen_self
12521
12522# Whether dlopen of statically linked programs is supported.
12523dlopen_self_static=$enable_dlopen_self_static
12524
12525# Compiler flag to prevent dynamic linking.
12526link_static_flag=$lt_lt_prog_compiler_static_CXX
12527
12528# Compiler flag to turn off builtin functions.
12529no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12530
12531# Compiler flag to allow reflexive dlopens.
12532export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12533
12534# Compiler flag to generate shared objects directly from archives.
12535whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12536
12537# Compiler flag to generate thread-safe objects.
12538thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12539
12540# Library versioning type.
12541version_type=$version_type
12542
12543# Format of library name prefix.
12544libname_spec=$lt_libname_spec
12545
12546# List of archive names. First name is the real one, the rest are links.
12547# The last name is the one that the linker finds with -lNAME.
12548library_names_spec=$lt_library_names_spec
12549
12550# The coded name of the library, if different from the real name.
12551soname_spec=$lt_soname_spec
12552
12553# Commands used to build and install an old-style archive.
12554RANLIB=$lt_RANLIB
12555old_archive_cmds=$lt_old_archive_cmds_CXX
12556old_postinstall_cmds=$lt_old_postinstall_cmds
12557old_postuninstall_cmds=$lt_old_postuninstall_cmds
12558
12559# Create an old-style archive from a shared archive.
12560old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12561
12562# Create a temporary old-style archive to link instead of a shared archive.
12563old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12564
12565# Commands used to build and install a shared archive.
12566archive_cmds=$lt_archive_cmds_CXX
12567archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12568postinstall_cmds=$lt_postinstall_cmds
12569postuninstall_cmds=$lt_postuninstall_cmds
12570
12571# Commands used to build a loadable module (assumed same as above if empty)
12572module_cmds=$lt_module_cmds_CXX
12573module_expsym_cmds=$lt_module_expsym_cmds_CXX
12574
12575# Commands to strip libraries.
12576old_striplib=$lt_old_striplib
12577striplib=$lt_striplib
12578
12579# Dependencies to place before the objects being linked to create a
12580# shared library.
12581predep_objects=$lt_predep_objects_CXX
12582
12583# Dependencies to place after the objects being linked to create a
12584# shared library.
12585postdep_objects=$lt_postdep_objects_CXX
12586
12587# Dependencies to place before the objects being linked to create a
12588# shared library.
12589predeps=$lt_predeps_CXX
12590
12591# Dependencies to place after the objects being linked to create a
12592# shared library.
12593postdeps=$lt_postdeps_CXX
12594
12595# The library search path used internally by the compiler when linking
12596# a shared library.
12597compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12598
12599# Method to check whether dependent libraries are shared objects.
12600deplibs_check_method=$lt_deplibs_check_method
12601
12602# Command to use when deplibs_check_method == file_magic.
12603file_magic_cmd=$lt_file_magic_cmd
12604
12605# Flag that allows shared libraries with undefined symbols to be built.
12606allow_undefined_flag=$lt_allow_undefined_flag_CXX
12607
12608# Flag that forces no undefined symbols.
12609no_undefined_flag=$lt_no_undefined_flag_CXX
12610
12611# Commands used to finish a libtool library installation in a directory.
12612finish_cmds=$lt_finish_cmds
12613
12614# Same as above, but a single script fragment to be evaled but not shown.
12615finish_eval=$lt_finish_eval
12616
12617# Take the output of nm and produce a listing of raw symbols and C names.
12618global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12619
12620# Transform the output of nm in a proper C declaration
12621global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12622
12623# Transform the output of nm in a C name address pair
12624global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12625
12626# This is the shared library runtime path variable.
12627runpath_var=$runpath_var
12628
12629# This is the shared library path variable.
12630shlibpath_var=$shlibpath_var
12631
12632# Is shlibpath searched before the hard-coded library search path?
12633shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12634
12635# How to hardcode a shared library path into an executable.
12636hardcode_action=$hardcode_action_CXX
12637
12638# Whether we should hardcode library paths into libraries.
12639hardcode_into_libs=$hardcode_into_libs
12640
12641# Flag to hardcode \$libdir into a binary during linking.
12642# This must work even if \$libdir does not exist.
12643hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12644
12645# If ld is used when linking, flag to hardcode \$libdir into
12646# a binary during linking. This must work even if \$libdir does
12647# not exist.
12648hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12649
12650# Whether we need a single -rpath flag with a separated argument.
12651hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12652
12653# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12654# resulting binary.
12655hardcode_direct=$hardcode_direct_CXX
12656
12657# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12658# resulting binary.
12659hardcode_minus_L=$hardcode_minus_L_CXX
12660
12661# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12662# the resulting binary.
12663hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12664
12665# Set to yes if building a shared library automatically hardcodes DIR into the library
12666# and all subsequent libraries and executables linked against it.
12667hardcode_automatic=$hardcode_automatic_CXX
12668
12669# Variables whose values should be saved in libtool wrapper scripts and
12670# restored at relink time.
12671variables_saved_for_relink="$variables_saved_for_relink"
12672
12673# Whether libtool must link a program against all its dependency libraries.
12674link_all_deplibs=$link_all_deplibs_CXX
12675
12676# Compile-time system search path for libraries
12677sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12678
12679# Run-time system search path for libraries
12680sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12681
12682# Fix the shell variable \$srcfile for the compiler.
12683fix_srcfile_path="$fix_srcfile_path_CXX"
12684
12685# Set to yes if exported symbols are required.
12686always_export_symbols=$always_export_symbols_CXX
12687
12688# The commands to list exported symbols.
12689export_symbols_cmds=$lt_export_symbols_cmds_CXX
12690
12691# The commands to extract the exported symbol list from a shared archive.
12692extract_expsyms_cmds=$lt_extract_expsyms_cmds
12693
12694# Symbols that should not be listed in the preloaded symbols.
12695exclude_expsyms=$lt_exclude_expsyms_CXX
12696
12697# Symbols that must always be exported.
12698include_expsyms=$lt_include_expsyms_CXX
12699
12700# ### END LIBTOOL TAG CONFIG: $tagname
12701
12702__EOF__
12703
12704
12705else
12706 # If there is no Makefile yet, we rely on a make rule to execute
12707 # `config.status --recheck' to rerun these tests and create the
12708 # libtool script then.
12709 test -f Makefile && make "$ltmain"
12710fi
12711
12712
12713ac_ext=c
12714ac_cpp='$CPP $CPPFLAGS'
12715ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12716ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12717ac_compiler_gnu=$ac_cv_c_compiler_gnu
12718
12719CC=$lt_save_CC
12720LDCXX=$LD
12721LD=$lt_save_LD
12722GCC=$lt_save_GCC
12723with_gnu_ldcxx=$with_gnu_ld
12724with_gnu_ld=$lt_save_with_gnu_ld
12725lt_cv_path_LDCXX=$lt_cv_path_LD
12726lt_cv_path_LD=$lt_save_path_LD
12727lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12728lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12729
12730 else
12731 tagname=""
12732 fi
12733 ;;
12734
12735 F77)
12736 if test -n "$F77" && test "X$F77" != "Xno"; then
12737
12738ac_ext=f
12739ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12740ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12741ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12742
12743
12744archive_cmds_need_lc_F77=no
12745allow_undefined_flag_F77=
12746always_export_symbols_F77=no
12747archive_expsym_cmds_F77=
12748export_dynamic_flag_spec_F77=
12749hardcode_direct_F77=no
12750hardcode_libdir_flag_spec_F77=
12751hardcode_libdir_flag_spec_ld_F77=
12752hardcode_libdir_separator_F77=
12753hardcode_minus_L_F77=no
12754hardcode_automatic_F77=no
12755module_cmds_F77=
12756module_expsym_cmds_F77=
12757link_all_deplibs_F77=unknown
12758old_archive_cmds_F77=$old_archive_cmds
12759no_undefined_flag_F77=
12760whole_archive_flag_spec_F77=
12761enable_shared_with_static_runtimes_F77=no
12762
12763# Source file extension for f77 test sources.
12764ac_ext=f
12765
12766# Object file extension for compiled f77 test sources.
12767objext=o
12768objext_F77=$objext
12769
12770# Code to be used in simple compile tests
12771lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12772
12773# Code to be used in simple link tests
12774lt_simple_link_test_code=" program t\n end\n"
12775
12776# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12777
12778# If no C compiler was specified, use CC.
12779LTCC=${LTCC-"$CC"}
12780
12781# Allow CC to be a program name with arguments.
12782compiler=$CC
12783
12784
12785# Allow CC to be a program name with arguments.
12786lt_save_CC="$CC"
12787CC=${F77-"f77"}
12788compiler=$CC
12789compiler_F77=$CC
12790cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12791
12792echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12793echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12794echo "$as_me:$LINENO: result: $can_build_shared" >&5
12795echo "${ECHO_T}$can_build_shared" >&6
12796
12797echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12798echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12799test "$can_build_shared" = "no" && enable_shared=no
12800
12801# On AIX, shared libraries and static libraries use the same namespace, and
12802# are all built from PIC.
12803case "$host_os" in
12804aix3*)
12805 test "$enable_shared" = yes && enable_static=no
12806 if test -n "$RANLIB"; then
12807 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12808 postinstall_cmds='$RANLIB $lib'
12809 fi
12810 ;;
12811aix4*)
12812 test "$enable_shared" = yes && enable_static=no
12813 ;;
12814esac
12815echo "$as_me:$LINENO: result: $enable_shared" >&5
12816echo "${ECHO_T}$enable_shared" >&6
12817
12818echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12819echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12820# Make sure either enable_shared or enable_static is yes.
12821test "$enable_shared" = yes || enable_static=yes
12822echo "$as_me:$LINENO: result: $enable_static" >&5
12823echo "${ECHO_T}$enable_static" >&6
12824
12825test "$ld_shlibs_F77" = no && can_build_shared=no
12826
12827GCC_F77="$G77"
12828LD_F77="$LD"
12829
12830lt_prog_compiler_wl_F77=
12831lt_prog_compiler_pic_F77=
12832lt_prog_compiler_static_F77=
12833
12834echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12835echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12836
12837 if test "$GCC" = yes; then
12838 lt_prog_compiler_wl_F77='-Wl,'
12839 lt_prog_compiler_static_F77='-static'
12840
12841 case $host_os in
12842 aix*)
12843 # All AIX code is PIC.
12844 if test "$host_cpu" = ia64; then
12845 # AIX 5 now supports IA64 processor
12846 lt_prog_compiler_static_F77='-Bstatic'
12847 fi
12848 ;;
12849
12850 amigaos*)
12851 # FIXME: we need at least 68020 code to build shared libraries, but
12852 # adding the `-m68020' flag to GCC prevents building anything better,
12853 # like `-m68040'.
12854 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12855 ;;
12856
12857 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12858 # PIC is the default for these OSes.
12859 ;;
12860
12861 mingw* | pw32* | os2*)
12862 # This hack is so that the source file can tell whether it is being
12863 # built for inclusion in a dll (and should export symbols for example).
12864 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12865 ;;
12866
12867 darwin* | rhapsody*)
12868 # PIC is the default on this platform
12869 # Common symbols not allowed in MH_DYLIB files
12870 lt_prog_compiler_pic_F77='-fno-common'
12871 ;;
12872
12873 msdosdjgpp*)
12874 # Just because we use GCC doesn't mean we suddenly get shared libraries
12875 # on systems that don't support them.
12876 lt_prog_compiler_can_build_shared_F77=no
12877 enable_shared=no
12878 ;;
12879
12880 sysv4*MP*)
12881 if test -d /usr/nec; then
12882 lt_prog_compiler_pic_F77=-Kconform_pic
12883 fi
12884 ;;
12885
12886 hpux*)
12887 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12888 # not for PA HP-UX.
12889 case "$host_cpu" in
12890 hppa*64*|ia64*)
12891 # +Z the default
12892 ;;
12893 *)
12894 lt_prog_compiler_pic_F77='-fPIC'
12895 ;;
12896 esac
12897 ;;
12898
12899 *)
12900 lt_prog_compiler_pic_F77='-fPIC'
12901 ;;
12902 esac
12903 else
12904 # PORTME Check for flag to pass linker flags through the system compiler.
12905 case $host_os in
12906 aix*)
12907 lt_prog_compiler_wl_F77='-Wl,'
12908 if test "$host_cpu" = ia64; then
12909 # AIX 5 now supports IA64 processor
12910 lt_prog_compiler_static_F77='-Bstatic'
12911 else
12912 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12913 fi
12914 ;;
12915
12916 mingw* | pw32* | os2*)
12917 # This hack is so that the source file can tell whether it is being
12918 # built for inclusion in a dll (and should export symbols for example).
12919 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12920 ;;
12921
12922 hpux9* | hpux10* | hpux11*)
12923 lt_prog_compiler_wl_F77='-Wl,'
12924 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12925 # not for PA HP-UX.
12926 case "$host_cpu" in
12927 hppa*64*|ia64*)
12928 # +Z the default
12929 ;;
12930 *)
12931 lt_prog_compiler_pic_F77='+Z'
12932 ;;
12933 esac
12934 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12935 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12936 ;;
12937
12938 irix5* | irix6* | nonstopux*)
12939 lt_prog_compiler_wl_F77='-Wl,'
12940 # PIC (with -KPIC) is the default.
12941 lt_prog_compiler_static_F77='-non_shared'
12942 ;;
12943
12944 newsos6)
12945 lt_prog_compiler_pic_F77='-KPIC'
12946 lt_prog_compiler_static_F77='-Bstatic'
12947 ;;
12948
12949 linux*)
12950 case $CC in
12951 icc|ecc)
12952 lt_prog_compiler_wl_F77='-Wl,'
12953 lt_prog_compiler_pic_F77='-KPIC'
12954 lt_prog_compiler_static_F77='-static'
12955 ;;
12956 ccc)
12957 lt_prog_compiler_wl_F77='-Wl,'
12958 # All Alpha code is PIC.
12959 lt_prog_compiler_static_F77='-non_shared'
12960 ;;
12961 esac
12962 ;;
12963
12964 osf3* | osf4* | osf5*)
12965 lt_prog_compiler_wl_F77='-Wl,'
12966 # All OSF/1 code is PIC.
12967 lt_prog_compiler_static_F77='-non_shared'
12968 ;;
12969
12970 sco3.2v5*)
12971 lt_prog_compiler_pic_F77='-Kpic'
12972 lt_prog_compiler_static_F77='-dn'
12973 ;;
12974
12975 solaris*)
12976 lt_prog_compiler_wl_F77='-Wl,'
12977 lt_prog_compiler_pic_F77='-KPIC'
12978 lt_prog_compiler_static_F77='-Bstatic'
12979 ;;
12980
12981 sunos4*)
12982 lt_prog_compiler_wl_F77='-Qoption ld '
12983 lt_prog_compiler_pic_F77='-PIC'
12984 lt_prog_compiler_static_F77='-Bstatic'
12985 ;;
12986
12987 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12988 lt_prog_compiler_wl_F77='-Wl,'
12989 lt_prog_compiler_pic_F77='-KPIC'
12990 lt_prog_compiler_static_F77='-Bstatic'
12991 ;;
12992
12993 sysv4*MP*)
12994 if test -d /usr/nec ;then
12995 lt_prog_compiler_pic_F77='-Kconform_pic'
12996 lt_prog_compiler_static_F77='-Bstatic'
12997 fi
12998 ;;
12999
13000 uts4*)
13001 lt_prog_compiler_pic_F77='-pic'
13002 lt_prog_compiler_static_F77='-Bstatic'
13003 ;;
13004
13005 *)
13006 lt_prog_compiler_can_build_shared_F77=no
13007 ;;
13008 esac
13009 fi
13010
13011echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13012echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13013
13014#
13015# Check to make sure the PIC flag actually works.
13016#
13017if test -n "$lt_prog_compiler_pic_F77"; then
13018 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13019echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13020if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13021 echo $ECHO_N "(cached) $ECHO_C" >&6
13022else
13023 lt_prog_compiler_pic_works_F77=no
13024 ac_outfile=conftest.$ac_objext
13025 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13026 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13027 # Insert the option either (1) after the last *FLAGS variable, or
13028 # (2) before a word containing "conftest.", or (3) at the end.
13029 # Note that $ac_compile itself does not contain backslashes and begins
13030 # with a dollar sign (not a hyphen), so the echo should work correctly.
13031 # The option is referenced via a variable to avoid confusing sed.
13032 lt_compile=`echo "$ac_compile" | $SED \
13033 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13034 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13035 -e 's:$: $lt_compiler_flag:'`
John Criswell4e079782003-09-29 14:52:28 +000013036 (eval echo "\"\$as_me:13036: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013037 (eval "$lt_compile" 2>conftest.err)
13038 ac_status=$?
13039 cat conftest.err >&5
John Criswell4e079782003-09-29 14:52:28 +000013040 echo "$as_me:13040: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013041 if (exit $ac_status) && test -s "$ac_outfile"; then
13042 # The compiler can only warn and ignore the option if not recognized
13043 # So say no if there are warnings
13044 if test ! -s conftest.err; then
13045 lt_prog_compiler_pic_works_F77=yes
13046 fi
13047 fi
13048 $rm conftest*
13049
13050fi
13051echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13052echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13053
13054if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13055 case $lt_prog_compiler_pic_F77 in
13056 "" | " "*) ;;
13057 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13058 esac
13059else
13060 lt_prog_compiler_pic_F77=
13061 lt_prog_compiler_can_build_shared_F77=no
13062fi
13063
13064fi
13065case "$host_os" in
13066 # For platforms which do not support PIC, -DPIC is meaningless:
13067 *djgpp*)
13068 lt_prog_compiler_pic_F77=
13069 ;;
13070 *)
13071 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13072 ;;
13073esac
13074
13075echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13076echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13077if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13078 echo $ECHO_N "(cached) $ECHO_C" >&6
13079else
13080 lt_cv_prog_compiler_c_o_F77=no
13081 $rm -r conftest 2>/dev/null
13082 mkdir conftest
13083 cd conftest
13084 mkdir out
13085 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13086
13087 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13088 # that will create temporary files in the current directory regardless of
13089 # the output directory. Thus, making CWD read-only will cause this test
13090 # to fail, enabling locking or at least warning the user not to do parallel
13091 # builds.
13092 chmod -w .
13093
13094 lt_compiler_flag="-o out/conftest2.$ac_objext"
13095 # Insert the option either (1) after the last *FLAGS variable, or
13096 # (2) before a word containing "conftest.", or (3) at the end.
13097 # Note that $ac_compile itself does not contain backslashes and begins
13098 # with a dollar sign (not a hyphen), so the echo should work correctly.
13099 lt_compile=`echo "$ac_compile" | $SED \
13100 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13101 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13102 -e 's:$: $lt_compiler_flag:'`
John Criswell4e079782003-09-29 14:52:28 +000013103 (eval echo "\"\$as_me:13103: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013104 (eval "$lt_compile" 2>out/conftest.err)
13105 ac_status=$?
13106 cat out/conftest.err >&5
John Criswell4e079782003-09-29 14:52:28 +000013107 echo "$as_me:13107: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013108 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13109 then
13110 # The compiler can only warn and ignore the option if not recognized
13111 # So say no if there are warnings
13112 if test ! -s out/conftest.err; then
13113 lt_cv_prog_compiler_c_o_F77=yes
13114 fi
13115 fi
13116 chmod u+w .
13117 $rm conftest* out/*
13118 rmdir out
13119 cd ..
13120 rmdir conftest
13121 $rm conftest*
13122
13123fi
13124echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13125echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13126
13127
13128hard_links="nottested"
13129if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13130 # do not overwrite the value of need_locks provided by the user
13131 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13132echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13133 hard_links=yes
13134 $rm conftest*
13135 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13136 touch conftest.a
13137 ln conftest.a conftest.b 2>&5 || hard_links=no
13138 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13139 echo "$as_me:$LINENO: result: $hard_links" >&5
13140echo "${ECHO_T}$hard_links" >&6
13141 if test "$hard_links" = no; then
13142 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13143echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13144 need_locks=warn
13145 fi
13146else
13147 need_locks=no
13148fi
13149
13150echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13151echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13152
13153 runpath_var=
13154 allow_undefined_flag_F77=
13155 enable_shared_with_static_runtimes_F77=no
13156 archive_cmds_F77=
13157 archive_expsym_cmds_F77=
13158 old_archive_From_new_cmds_F77=
13159 old_archive_from_expsyms_cmds_F77=
13160 export_dynamic_flag_spec_F77=
13161 whole_archive_flag_spec_F77=
13162 thread_safe_flag_spec_F77=
13163 hardcode_libdir_flag_spec_F77=
13164 hardcode_libdir_flag_spec_ld_F77=
13165 hardcode_libdir_separator_F77=
13166 hardcode_direct_F77=no
13167 hardcode_minus_L_F77=no
13168 hardcode_shlibpath_var_F77=unsupported
13169 link_all_deplibs_F77=unknown
13170 hardcode_automatic_F77=no
13171 module_cmds_F77=
13172 module_expsym_cmds_F77=
13173 always_export_symbols_F77=no
13174 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13175 # include_expsyms should be a list of space-separated symbols to be *always*
13176 # included in the symbol list
13177 include_expsyms_F77=
13178 # exclude_expsyms can be an extended regexp of symbols to exclude
13179 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13180 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13181 # as well as any symbol that contains `d'.
13182 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13183 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13184 # platforms (ab)use it in PIC code, but their linkers get confused if
13185 # the symbol is explicitly referenced. Since portable code cannot
13186 # rely on this symbol name, it's probably fine to never include it in
13187 # preloaded symbol tables.
13188 extract_expsyms_cmds=
13189
13190 case $host_os in
13191 cygwin* | mingw* | pw32*)
13192 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13193 # When not using gcc, we currently assume that we are using
13194 # Microsoft Visual C++.
13195 if test "$GCC" != yes; then
13196 with_gnu_ld=no
13197 fi
13198 ;;
13199 openbsd*)
13200 with_gnu_ld=no
13201 ;;
13202 esac
13203
13204 ld_shlibs_F77=yes
13205 if test "$with_gnu_ld" = yes; then
13206 # If archive_cmds runs LD, not CC, wlarc should be empty
13207 wlarc='${wl}'
13208
13209 # See if GNU ld supports shared libraries.
13210 case $host_os in
13211 aix3* | aix4* | aix5*)
13212 # On AIX/PPC, the GNU linker is very broken
13213 if test "$host_cpu" != ia64; then
13214 ld_shlibs_F77=no
13215 cat <<EOF 1>&2
13216
13217*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13218*** to be unable to reliably create shared libraries on AIX.
13219*** Therefore, libtool is disabling shared libraries support. If you
13220*** really care for shared libraries, you may want to modify your PATH
13221*** so that a non-GNU linker is found, and then restart.
13222
13223EOF
13224 fi
13225 ;;
13226
13227 amigaos*)
13228 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)'
13229 hardcode_libdir_flag_spec_F77='-L$libdir'
13230 hardcode_minus_L_F77=yes
13231
13232 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13233 # that the semantics of dynamic libraries on AmigaOS, at least up
13234 # to version 4, is to share data among multiple programs linked
13235 # with the same dynamic library. Since this doesn't match the
13236 # behavior of shared libraries on other platforms, we can't use
13237 # them.
13238 ld_shlibs_F77=no
13239 ;;
13240
13241 beos*)
13242 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13243 allow_undefined_flag_F77=unsupported
13244 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13245 # support --undefined. This deserves some investigation. FIXME
13246 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13247 else
13248 ld_shlibs_F77=no
13249 fi
13250 ;;
13251
13252 cygwin* | mingw* | pw32*)
13253 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13254 # as there is no search path for DLLs.
13255 hardcode_libdir_flag_spec_F77='-L$libdir'
13256 allow_undefined_flag_F77=unsupported
13257 always_export_symbols_F77=no
13258 enable_shared_with_static_runtimes_F77=yes
13259 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13260
13261 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13262 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13263 # If the export-symbols file already is a .def file (1st line
13264 # is EXPORTS), use it as is; otherwise, prepend...
13265 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13266 cp $export_symbols $output_objdir/$soname.def;
13267 else
13268 echo EXPORTS > $output_objdir/$soname.def;
13269 cat $export_symbols >> $output_objdir/$soname.def;
13270 fi~
13271 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13272 else
13273 ld_shlibs=no
13274 fi
13275 ;;
13276
13277 netbsd*)
13278 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13279 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13280 wlarc=
13281 else
13282 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13283 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13284 fi
13285 ;;
13286
13287 solaris* | sysv5*)
13288 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13289 ld_shlibs_F77=no
13290 cat <<EOF 1>&2
13291
13292*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13293*** create shared libraries on Solaris systems. Therefore, libtool
13294*** is disabling shared libraries support. We urge you to upgrade GNU
13295*** binutils to release 2.9.1 or newer. Another option is to modify
13296*** your PATH or compiler configuration so that the native linker is
13297*** used, and then restart.
13298
13299EOF
13300 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13301 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13302 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13303 else
13304 ld_shlibs_F77=no
13305 fi
13306 ;;
13307
13308 sunos4*)
13309 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13310 wlarc=
13311 hardcode_direct_F77=yes
13312 hardcode_shlibpath_var_F77=no
13313 ;;
13314
13315 *)
13316 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13317 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13318 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13319 else
13320 ld_shlibs_F77=no
13321 fi
13322 ;;
13323 esac
13324
13325 if test "$ld_shlibs_F77" = yes; then
13326 runpath_var=LD_RUN_PATH
13327 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13328 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13329 # ancient GNU ld didn't support --whole-archive et. al.
13330 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13331 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13332 else
13333 whole_archive_flag_spec_F77=
13334 fi
13335 fi
13336 else
13337 # PORTME fill in a description of your system's linker (not GNU ld)
13338 case $host_os in
13339 aix3*)
13340 allow_undefined_flag_F77=unsupported
13341 always_export_symbols_F77=yes
13342 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'
13343 # Note: this linker hardcodes the directories in LIBPATH if there
13344 # are no directories specified by -L.
13345 hardcode_minus_L_F77=yes
13346 if test "$GCC" = yes && test -z "$link_static_flag"; then
13347 # Neither direct hardcoding nor static linking is supported with a
13348 # broken collect2.
13349 hardcode_direct_F77=unsupported
13350 fi
13351 ;;
13352
13353 aix4* | aix5*)
13354 if test "$host_cpu" = ia64; then
13355 # On IA64, the linker does run time linking by default, so we don't
13356 # have to do anything special.
13357 aix_use_runtimelinking=no
13358 exp_sym_flag='-Bexport'
13359 no_entry_flag=""
13360 else
13361 # If we're using GNU nm, then we don't want the "-C" option.
13362 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13363 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13364 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'
13365 else
13366 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'
13367 fi
13368 aix_use_runtimelinking=no
13369
13370 # Test if we are trying to use run time linking or normal
13371 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13372 # need to do runtime linking.
13373 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13374 for ld_flag in $LDFLAGS; do
13375 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13376 aix_use_runtimelinking=yes
13377 break
13378 fi
13379 done
13380 esac
13381
13382 exp_sym_flag='-bexport'
13383 no_entry_flag='-bnoentry'
13384 fi
13385
13386 # When large executables or shared objects are built, AIX ld can
13387 # have problems creating the table of contents. If linking a library
13388 # or program results in "error TOC overflow" add -mminimal-toc to
13389 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13390 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13391
13392 archive_cmds_F77=''
13393 hardcode_direct_F77=yes
13394 hardcode_libdir_separator_F77=':'
13395 link_all_deplibs_F77=yes
13396
13397 if test "$GCC" = yes; then
13398 case $host_os in aix4.012|aix4.012.*)
13399 # We only want to do this on AIX 4.2 and lower, the check
13400 # below for broken collect2 doesn't work under 4.3+
13401 collect2name=`${CC} -print-prog-name=collect2`
13402 if test -f "$collect2name" && \
13403 strings "$collect2name" | grep resolve_lib_name >/dev/null
13404 then
13405 # We have reworked collect2
13406 hardcode_direct_F77=yes
13407 else
13408 # We have old collect2
13409 hardcode_direct_F77=unsupported
13410 # It fails to find uninstalled libraries when the uninstalled
13411 # path is not listed in the libpath. Setting hardcode_minus_L
13412 # to unsupported forces relinking
13413 hardcode_minus_L_F77=yes
13414 hardcode_libdir_flag_spec_F77='-L$libdir'
13415 hardcode_libdir_separator_F77=
13416 fi
13417 esac
13418 shared_flag='-shared'
13419 else
13420 # not using gcc
13421 if test "$host_cpu" = ia64; then
13422 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13423 # chokes on -Wl,-G. The following line is correct:
13424 shared_flag='-G'
13425 else
13426 if test "$aix_use_runtimelinking" = yes; then
13427 shared_flag='${wl}-G'
13428 else
13429 shared_flag='${wl}-bM:SRE'
13430 fi
13431 fi
13432 fi
13433
13434 # It seems that -bexpall does not export symbols beginning with
13435 # underscore (_), so it is better to generate a list of symbols to export.
13436 always_export_symbols_F77=yes
13437 if test "$aix_use_runtimelinking" = yes; then
13438 # Warning - without using the other runtime loading flags (-brtl),
13439 # -berok will link without error, but may produce a broken library.
13440 allow_undefined_flag_F77='-berok'
13441 # Determine the default libpath from the value encoded in an empty executable.
13442 cat >conftest.$ac_ext <<_ACEOF
13443 program main
13444
13445 end
13446_ACEOF
13447rm -f conftest.$ac_objext conftest$ac_exeext
13448if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13449 (eval $ac_link) 2>&5
13450 ac_status=$?
13451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13452 (exit $ac_status); } &&
13453 { ac_try='test -s conftest$ac_exeext'
13454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13455 (eval $ac_try) 2>&5
13456 ac_status=$?
13457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13458 (exit $ac_status); }; }; then
13459
13460aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13461}'`
13462# Check for a 64-bit object if we didn't find anything.
13463if 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; }
13464}'`; fi
13465else
13466 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013467sed 's/^/| /' conftest.$ac_ext >&5
13468
John Criswell47fdd832003-07-14 16:52:07 +000013469fi
13470rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13471if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13472
13473 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13474 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"
13475 else
13476 if test "$host_cpu" = ia64; then
13477 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13478 allow_undefined_flag_F77="-z nodefs"
13479 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"
13480 else
13481 # Determine the default libpath from the value encoded in an empty executable.
13482 cat >conftest.$ac_ext <<_ACEOF
13483 program main
13484
13485 end
13486_ACEOF
13487rm -f conftest.$ac_objext conftest$ac_exeext
13488if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13489 (eval $ac_link) 2>&5
13490 ac_status=$?
13491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13492 (exit $ac_status); } &&
13493 { ac_try='test -s conftest$ac_exeext'
13494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13495 (eval $ac_try) 2>&5
13496 ac_status=$?
13497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498 (exit $ac_status); }; }; then
13499
13500aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13501}'`
13502# Check for a 64-bit object if we didn't find anything.
13503if 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; }
13504}'`; fi
13505else
13506 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013507sed 's/^/| /' conftest.$ac_ext >&5
13508
John Criswell47fdd832003-07-14 16:52:07 +000013509fi
13510rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13511if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13512
13513 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13514 # Warning - without using the other run time loading flags,
13515 # -berok will link without error, but may produce a broken library.
13516 no_undefined_flag_F77=' ${wl}-bernotok'
13517 allow_undefined_flag_F77=' ${wl}-berok'
13518 # -bexpall does not export symbols beginning with underscore (_)
13519 always_export_symbols_F77=yes
13520 # Exported symbols can be pulled into shared objects from archives
13521 whole_archive_flag_spec_F77=' '
13522 archive_cmds_need_lc_F77=yes
13523 # This is similar to how AIX traditionally builds it's shared libraries.
13524 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'
13525 fi
13526 fi
13527 ;;
13528
13529 amigaos*)
13530 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)'
13531 hardcode_libdir_flag_spec_F77='-L$libdir'
13532 hardcode_minus_L_F77=yes
13533 # see comment about different semantics on the GNU ld section
13534 ld_shlibs_F77=no
13535 ;;
13536
13537 bsdi4*)
13538 export_dynamic_flag_spec_F77=-rdynamic
13539 ;;
13540
13541 cygwin* | mingw* | pw32*)
13542 # When not using gcc, we currently assume that we are using
13543 # Microsoft Visual C++.
13544 # hardcode_libdir_flag_spec is actually meaningless, as there is
13545 # no search path for DLLs.
13546 hardcode_libdir_flag_spec_F77=' '
13547 allow_undefined_flag_F77=unsupported
13548 # Tell ltmain to make .lib files, not .a files.
13549 libext=lib
13550 # Tell ltmain to make .dll files, not .so files.
13551 shrext=".dll"
13552 # FIXME: Setting linknames here is a bad hack.
13553 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13554 # The linker will automatically build a .lib file if we build a DLL.
13555 old_archive_From_new_cmds_F77='true'
13556 # FIXME: Should let the user specify the lib program.
13557 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13558 fix_srcfile_path='`cygpath -w "$srcfile"`'
13559 enable_shared_with_static_runtimes_F77=yes
13560 ;;
13561
13562 darwin* | rhapsody*)
13563 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13564 archive_cmds_need_lc_F77=no
13565 case "$host_os" in
13566 rhapsody* | darwin1.[012])
13567 allow_undefined_flag_F77='-undefined suppress'
13568 ;;
13569 *) # Darwin 1.3 on
13570 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13571 ;;
13572 esac
13573 # FIXME: Relying on posixy $() will cause problems for
13574 # cross-compilation, but unfortunately the echo tests do not
13575 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
13576 # `"' quotes if we put them in here... so don't!
13577 lt_int_apple_cc_single_mod=no
13578 output_verbose_link_cmd='echo'
13579 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13580 lt_int_apple_cc_single_mod=yes
13581 fi
13582 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13583 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13584 else
13585 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'
13586 fi
13587 module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13588 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13589 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13590 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}'
13591 else
13592 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}'
13593 fi
13594 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}'
13595 hardcode_direct_F77=no
13596 hardcode_automatic_F77=yes
13597 hardcode_shlibpath_var_F77=unsupported
13598 whole_archive_flag_spec_F77='-all_load $convenience'
13599 link_all_deplibs_F77=yes
13600 fi
13601 ;;
13602
13603 dgux*)
13604 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13605 hardcode_libdir_flag_spec_F77='-L$libdir'
13606 hardcode_shlibpath_var_F77=no
13607 ;;
13608
13609 freebsd1*)
13610 ld_shlibs_F77=no
13611 ;;
13612
13613 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13614 # support. Future versions do this automatically, but an explicit c++rt0.o
13615 # does not break anything, and helps significantly (at the cost of a little
13616 # extra space).
13617 freebsd2.2*)
13618 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13619 hardcode_libdir_flag_spec_F77='-R$libdir'
13620 hardcode_direct_F77=yes
13621 hardcode_shlibpath_var_F77=no
13622 ;;
13623
13624 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13625 freebsd2*)
13626 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13627 hardcode_direct_F77=yes
13628 hardcode_minus_L_F77=yes
13629 hardcode_shlibpath_var_F77=no
13630 ;;
13631
13632 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13633 freebsd*)
13634 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13635 hardcode_libdir_flag_spec_F77='-R$libdir'
13636 hardcode_direct_F77=yes
13637 hardcode_shlibpath_var_F77=no
13638 ;;
13639
13640 hpux9*)
13641 if test "$GCC" = yes; then
13642 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'
13643 else
13644 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'
13645 fi
13646 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13647 hardcode_libdir_separator_F77=:
13648 hardcode_direct_F77=yes
13649
13650 # hardcode_minus_L: Not really in the search PATH,
13651 # but as the default location of the library.
13652 hardcode_minus_L_F77=yes
13653 export_dynamic_flag_spec_F77='${wl}-E'
13654 ;;
13655
13656 hpux10* | hpux11*)
13657 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13658 case "$host_cpu" in
13659 hppa*64*|ia64*)
13660 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13661 ;;
13662 *)
13663 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13664 ;;
13665 esac
13666 else
13667 case "$host_cpu" in
13668 hppa*64*|ia64*)
13669 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13670 ;;
13671 *)
13672 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13673 ;;
13674 esac
13675 fi
13676 if test "$with_gnu_ld" = no; then
13677 case "$host_cpu" in
13678 hppa*64*)
13679 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13680 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13681 hardcode_libdir_separator_F77=:
13682 hardcode_direct_F77=no
13683 hardcode_shlibpath_var_F77=no
13684 ;;
13685 ia64*)
13686 hardcode_libdir_flag_spec_F77='-L$libdir'
13687 hardcode_direct_F77=no
13688 hardcode_shlibpath_var_F77=no
13689
13690 # hardcode_minus_L: Not really in the search PATH,
13691 # but as the default location of the library.
13692 hardcode_minus_L_F77=yes
13693 ;;
13694 *)
13695 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13696 hardcode_libdir_separator_F77=:
13697 hardcode_direct_F77=yes
13698 export_dynamic_flag_spec_F77='${wl}-E'
13699
13700 # hardcode_minus_L: Not really in the search PATH,
13701 # but as the default location of the library.
13702 hardcode_minus_L_F77=yes
13703 ;;
13704 esac
13705 fi
13706 ;;
13707
13708 irix5* | irix6* | nonstopux*)
13709 if test "$GCC" = yes; then
13710 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'
13711 else
13712 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'
13713 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13714 fi
13715 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13716 hardcode_libdir_separator_F77=:
13717 link_all_deplibs_F77=yes
13718 ;;
13719
13720 netbsd*)
13721 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13722 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13723 else
13724 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13725 fi
13726 hardcode_libdir_flag_spec_F77='-R$libdir'
13727 hardcode_direct_F77=yes
13728 hardcode_shlibpath_var_F77=no
13729 ;;
13730
13731 newsos6)
13732 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13733 hardcode_direct_F77=yes
13734 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13735 hardcode_libdir_separator_F77=:
13736 hardcode_shlibpath_var_F77=no
13737 ;;
13738
13739 openbsd*)
13740 hardcode_direct_F77=yes
13741 hardcode_shlibpath_var_F77=no
13742 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13743 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13744 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13745 export_dynamic_flag_spec_F77='${wl}-E'
13746 else
13747 case $host_os in
13748 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13749 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13750 hardcode_libdir_flag_spec_F77='-R$libdir'
13751 ;;
13752 *)
13753 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13754 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13755 ;;
13756 esac
13757 fi
13758 ;;
13759
13760 os2*)
13761 hardcode_libdir_flag_spec_F77='-L$libdir'
13762 hardcode_minus_L_F77=yes
13763 allow_undefined_flag_F77=unsupported
13764 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'
13765 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13766 ;;
13767
13768 osf3*)
13769 if test "$GCC" = yes; then
13770 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13771 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'
13772 else
13773 allow_undefined_flag_F77=' -expect_unresolved \*'
13774 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'
13775 fi
13776 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13777 hardcode_libdir_separator_F77=:
13778 ;;
13779
13780 osf4* | osf5*) # as osf3* with the addition of -msym flag
13781 if test "$GCC" = yes; then
13782 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13783 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13784 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13785 else
13786 allow_undefined_flag_F77=' -expect_unresolved \*'
13787 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'
13788 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~
13789 $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'
13790
13791 # Both c and cxx compiler support -rpath directly
13792 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13793 fi
13794 hardcode_libdir_separator_F77=:
13795 ;;
13796
13797 sco3.2v5*)
13798 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13799 hardcode_shlibpath_var_F77=no
13800 export_dynamic_flag_spec_F77='${wl}-Bexport'
13801 runpath_var=LD_RUN_PATH
13802 hardcode_runpath_var=yes
13803 ;;
13804
13805 solaris*)
13806 no_undefined_flag_F77=' -z text'
13807 if test "$GCC" = yes; then
13808 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13809 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13810 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13811 else
13812 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13813 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13814 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13815 fi
13816 hardcode_libdir_flag_spec_F77='-R$libdir'
13817 hardcode_shlibpath_var_F77=no
13818 case $host_os in
13819 solaris2.[0-5] | solaris2.[0-5].*) ;;
13820 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13821 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13822 esac
13823 link_all_deplibs_F77=yes
13824 ;;
13825
13826 sunos4*)
13827 if test "x$host_vendor" = xsequent; then
13828 # Use $CC to link under sequent, because it throws in some extra .o
13829 # files that make .init and .fini sections work.
13830 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13831 else
13832 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13833 fi
13834 hardcode_libdir_flag_spec_F77='-L$libdir'
13835 hardcode_direct_F77=yes
13836 hardcode_minus_L_F77=yes
13837 hardcode_shlibpath_var_F77=no
13838 ;;
13839
13840 sysv4)
13841 case $host_vendor in
13842 sni)
13843 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13844 hardcode_direct_F77=yes # is this really true???
13845 ;;
13846 siemens)
13847 ## LD is ld it makes a PLAMLIB
13848 ## CC just makes a GrossModule.
13849 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13850 reload_cmds_F77='$CC -r -o $output$reload_objs'
13851 hardcode_direct_F77=no
13852 ;;
13853 motorola)
13854 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13855 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13856 ;;
13857 esac
13858 runpath_var='LD_RUN_PATH'
13859 hardcode_shlibpath_var_F77=no
13860 ;;
13861
13862 sysv4.3*)
13863 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13864 hardcode_shlibpath_var_F77=no
13865 export_dynamic_flag_spec_F77='-Bexport'
13866 ;;
13867
13868 sysv4*MP*)
13869 if test -d /usr/nec; then
13870 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13871 hardcode_shlibpath_var_F77=no
13872 runpath_var=LD_RUN_PATH
13873 hardcode_runpath_var=yes
13874 ld_shlibs_F77=yes
13875 fi
13876 ;;
13877
13878 sysv4.2uw2*)
13879 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13880 hardcode_direct_F77=yes
13881 hardcode_minus_L_F77=no
13882 hardcode_shlibpath_var_F77=no
13883 hardcode_runpath_var=yes
13884 runpath_var=LD_RUN_PATH
13885 ;;
13886
13887 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13888 no_undefined_flag_F77='${wl}-z ${wl}text'
13889 if test "$GCC" = yes; then
13890 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13891 else
13892 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13893 fi
13894 runpath_var='LD_RUN_PATH'
13895 hardcode_shlibpath_var_F77=no
13896 ;;
13897
13898 sysv5*)
13899 no_undefined_flag_F77=' -z text'
13900 # $CC -shared without GNU ld will not create a library from C++
13901 # object files and a static libstdc++, better avoid it by now
13902 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13903 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13904 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13905 hardcode_libdir_flag_spec_F77=
13906 hardcode_shlibpath_var_F77=no
13907 runpath_var='LD_RUN_PATH'
13908 ;;
13909
13910 uts4*)
13911 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13912 hardcode_libdir_flag_spec_F77='-L$libdir'
13913 hardcode_shlibpath_var_F77=no
13914 ;;
13915
13916 *)
13917 ld_shlibs_F77=no
13918 ;;
13919 esac
13920 fi
13921
13922echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13923echo "${ECHO_T}$ld_shlibs_F77" >&6
13924test "$ld_shlibs_F77" = no && can_build_shared=no
13925
13926variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13927if test "$GCC" = yes; then
13928 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13929fi
13930
13931#
13932# Do we need to explicitly link libc?
13933#
13934case "x$archive_cmds_need_lc_F77" in
13935x|xyes)
13936 # Assume -lc should be added
13937 archive_cmds_need_lc_F77=yes
13938
13939 if test "$enable_shared" = yes && test "$GCC" = yes; then
13940 case $archive_cmds_F77 in
13941 *'~'*)
13942 # FIXME: we may have to deal with multi-command sequences.
13943 ;;
13944 '$CC '*)
13945 # Test whether the compiler implicitly links with -lc since on some
13946 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13947 # to ld, don't add -lc before -lgcc.
13948 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13949echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13950 $rm conftest*
13951 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13952
13953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13954 (eval $ac_compile) 2>&5
13955 ac_status=$?
13956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13957 (exit $ac_status); } 2>conftest.err; then
13958 soname=conftest
13959 lib=conftest
13960 libobjs=conftest.$ac_objext
13961 deplibs=
13962 wl=$lt_prog_compiler_wl_F77
13963 compiler_flags=-v
13964 linker_flags=-v
13965 verstring=
13966 output_objdir=.
13967 libname=conftest
13968 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13969 allow_undefined_flag_F77=
13970 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13971 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13972 ac_status=$?
13973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13974 (exit $ac_status); }
13975 then
13976 archive_cmds_need_lc_F77=no
13977 else
13978 archive_cmds_need_lc_F77=yes
13979 fi
13980 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13981 else
13982 cat conftest.err 1>&5
13983 fi
13984 $rm conftest*
13985 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13986echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13987 ;;
13988 esac
13989 fi
13990 ;;
13991esac
13992
13993echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13994echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13995hardcode_action_F77=
13996if test -n "$hardcode_libdir_flag_spec_F77" || \
13997 test -n "$runpath_var F77" || \
13998 test "X$hardcode_automatic_F77"="Xyes" ; then
13999
14000 # We can hardcode non-existant directories.
14001 if test "$hardcode_direct_F77" != no &&
14002 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14003 # have to relink, otherwise we might link with an installed library
14004 # when we should be linking with a yet-to-be-installed one
14005 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14006 test "$hardcode_minus_L_F77" != no; then
14007 # Linking always hardcodes the temporary library directory.
14008 hardcode_action_F77=relink
14009 else
14010 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14011 hardcode_action_F77=immediate
14012 fi
14013else
14014 # We cannot hardcode anything, or else we can only hardcode existing
14015 # directories.
14016 hardcode_action_F77=unsupported
14017fi
14018echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14019echo "${ECHO_T}$hardcode_action_F77" >&6
14020
14021if test "$hardcode_action_F77" = relink; then
14022 # Fast installation is not supported
14023 enable_fast_install=no
14024elif test "$shlibpath_overrides_runpath" = yes ||
14025 test "$enable_shared" = no; then
14026 # Fast installation is not necessary
14027 enable_fast_install=needless
14028fi
14029
14030striplib=
14031old_striplib=
14032echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14033echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14034if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14035 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14036 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14037 echo "$as_me:$LINENO: result: yes" >&5
14038echo "${ECHO_T}yes" >&6
14039else
14040# FIXME - insert some real tests, host_os isn't really good enough
14041 case $host_os in
14042 darwin*)
14043 if test -n "$STRIP" ; then
14044 striplib="$STRIP -x"
14045 echo "$as_me:$LINENO: result: yes" >&5
14046echo "${ECHO_T}yes" >&6
14047 else
14048 echo "$as_me:$LINENO: result: no" >&5
14049echo "${ECHO_T}no" >&6
14050fi
14051 ;;
14052 *)
14053 echo "$as_me:$LINENO: result: no" >&5
14054echo "${ECHO_T}no" >&6
14055 ;;
14056 esac
14057fi
14058
14059echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14060echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14061library_names_spec=
14062libname_spec='lib$name'
14063soname_spec=
14064shrext=".so"
14065postinstall_cmds=
14066postuninstall_cmds=
14067finish_cmds=
14068finish_eval=
14069shlibpath_var=
14070shlibpath_overrides_runpath=unknown
14071version_type=none
14072dynamic_linker="$host_os ld.so"
14073sys_lib_dlsearch_path_spec="/lib /usr/lib"
14074if test "$GCC" = yes; then
14075 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14076 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14077 # if the path contains ";" then we assume it to be the separator
14078 # otherwise default to the standard path separator (i.e. ":") - it is
14079 # assumed that no part of a normal pathname contains ";" but that should
14080 # okay in the real world where ";" in dirpaths is itself problematic.
14081 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14082 else
14083 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14084 fi
14085else
14086 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14087fi
14088need_lib_prefix=unknown
14089hardcode_into_libs=no
14090
14091# when you set need_version to no, make sure it does not cause -set_version
14092# flags to be left without arguments
14093need_version=unknown
14094
14095case $host_os in
14096aix3*)
14097 version_type=linux
14098 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14099 shlibpath_var=LIBPATH
14100
14101 # AIX 3 has no versioning support, so we append a major version to the name.
14102 soname_spec='${libname}${release}${shared_ext}$major'
14103 ;;
14104
14105aix4* | aix5*)
14106 version_type=linux
14107 need_lib_prefix=no
14108 need_version=no
14109 hardcode_into_libs=yes
14110 if test "$host_cpu" = ia64; then
14111 # AIX 5 supports IA64
14112 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14113 shlibpath_var=LD_LIBRARY_PATH
14114 else
14115 # With GCC up to 2.95.x, collect2 would create an import file
14116 # for dependence libraries. The import file would start with
14117 # the line `#! .'. This would cause the generated library to
14118 # depend on `.', always an invalid library. This was fixed in
14119 # development snapshots of GCC prior to 3.0.
14120 case $host_os in
14121 aix4 | aix4.[01] | aix4.[01].*)
14122 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14123 echo ' yes '
14124 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14125 :
14126 else
14127 can_build_shared=no
14128 fi
14129 ;;
14130 esac
14131 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14132 # soname into executable. Probably we can add versioning support to
14133 # collect2, so additional links can be useful in future.
14134 if test "$aix_use_runtimelinking" = yes; then
14135 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14136 # instead of lib<name>.a to let people know that these are not
14137 # typical AIX shared libraries.
14138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14139 else
14140 # We preserve .a as extension for shared libraries through AIX4.2
14141 # and later when we are not doing run time linking.
14142 library_names_spec='${libname}${release}.a $libname.a'
14143 soname_spec='${libname}${release}${shared_ext}$major'
14144 fi
14145 shlibpath_var=LIBPATH
14146 fi
14147 ;;
14148
14149amigaos*)
14150 library_names_spec='$libname.ixlibrary $libname.a'
14151 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14152 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'
14153 ;;
14154
14155beos*)
14156 library_names_spec='${libname}${shared_ext}'
14157 dynamic_linker="$host_os ld.so"
14158 shlibpath_var=LIBRARY_PATH
14159 ;;
14160
14161bsdi4*)
14162 version_type=linux
14163 need_version=no
14164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14165 soname_spec='${libname}${release}${shared_ext}$major'
14166 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14167 shlibpath_var=LD_LIBRARY_PATH
14168 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14169 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14170 # the default ld.so.conf also contains /usr/contrib/lib and
14171 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14172 # libtool to hard-code these into programs
14173 ;;
14174
14175cygwin* | mingw* | pw32*)
14176 version_type=windows
14177 shrext=".dll"
14178 need_version=no
14179 need_lib_prefix=no
14180
14181 case $GCC,$host_os in
14182 yes,cygwin* | yes,mingw* | yes,pw32*)
14183 library_names_spec='$libname.dll.a'
14184 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14185 postinstall_cmds='base_file=`basename \${file}`~
14186 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14187 dldir=$destdir/`dirname \$dlpath`~
14188 test -d \$dldir || mkdir -p \$dldir~
14189 $install_prog $dir/$dlname \$dldir/$dlname'
14190 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14191 dlpath=$dir/\$dldll~
14192 $rm \$dlpath'
14193 shlibpath_overrides_runpath=yes
14194
14195 case $host_os in
14196 cygwin*)
14197 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14198 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14199 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14200 ;;
14201 mingw*)
14202 # MinGW DLLs use traditional 'lib' prefix
14203 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14204 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14205 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14206 # It is most probably a Windows format PATH printed by
14207 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14208 # path with ; separators, and with drive letters. We can handle the
14209 # drive letters (cygwin fileutils understands them), so leave them,
14210 # especially as we might pass files found there to a mingw objdump,
14211 # which wouldn't understand a cygwinified path. Ahh.
14212 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14213 else
14214 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14215 fi
14216 ;;
14217 pw32*)
14218 # pw32 DLLs use 'pw' prefix rather than 'lib'
14219 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14220 ;;
14221 esac
14222 ;;
14223
14224 *)
14225 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14226 ;;
14227 esac
14228 dynamic_linker='Win32 ld.exe'
14229 # FIXME: first we should search . and the directory the executable is in
14230 shlibpath_var=PATH
14231 ;;
14232
14233darwin* | rhapsody*)
14234 dynamic_linker="$host_os dyld"
14235 version_type=darwin
14236 need_lib_prefix=no
14237 need_version=no
14238 # FIXME: Relying on posixy $() will cause problems for
14239 # cross-compilation, but unfortunately the echo tests do not
14240 # yet detect zsh echo's removal of \ escapes.
14241 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14242 soname_spec='${libname}${release}${major}$shared_ext'
14243 shlibpath_overrides_runpath=yes
14244 shlibpath_var=DYLD_LIBRARY_PATH
14245 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14246 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14247 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14248 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"`
14249 fi
14250 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14251 ;;
14252
14253dgux*)
14254 version_type=linux
14255 need_lib_prefix=no
14256 need_version=no
14257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14258 soname_spec='${libname}${release}${shared_ext}$major'
14259 shlibpath_var=LD_LIBRARY_PATH
14260 ;;
14261
14262freebsd1*)
14263 dynamic_linker=no
14264 ;;
14265
14266freebsd*)
14267 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14268 version_type=freebsd-$objformat
14269 case $version_type in
14270 freebsd-elf*)
14271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14272 need_version=no
14273 need_lib_prefix=no
14274 ;;
14275 freebsd-*)
14276 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14277 need_version=yes
14278 ;;
14279 esac
14280 shlibpath_var=LD_LIBRARY_PATH
14281 case $host_os in
14282 freebsd2*)
14283 shlibpath_overrides_runpath=yes
14284 ;;
14285 freebsd3.01* | freebsdelf3.01*)
14286 shlibpath_overrides_runpath=yes
14287 hardcode_into_libs=yes
14288 ;;
14289 *) # from 3.2 on
14290 shlibpath_overrides_runpath=no
14291 hardcode_into_libs=yes
14292 ;;
14293 esac
14294 ;;
14295
14296gnu*)
14297 version_type=linux
14298 need_lib_prefix=no
14299 need_version=no
14300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14301 soname_spec='${libname}${release}${shared_ext}$major'
14302 shlibpath_var=LD_LIBRARY_PATH
14303 hardcode_into_libs=yes
14304 ;;
14305
14306hpux9* | hpux10* | hpux11*)
14307 # Give a soname corresponding to the major version so that dld.sl refuses to
14308 # link against other versions.
14309 version_type=sunos
14310 need_lib_prefix=no
14311 need_version=no
14312 case "$host_cpu" in
14313 ia64*)
14314 shrext='.so'
14315 hardcode_into_libs=yes
14316 dynamic_linker="$host_os dld.so"
14317 shlibpath_var=LD_LIBRARY_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 if test "X$HPUX_IA64_MODE" = X32; then
14322 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14323 else
14324 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14325 fi
14326 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14327 ;;
14328 hppa*64*)
14329 shrext='.sl'
14330 hardcode_into_libs=yes
14331 dynamic_linker="$host_os dld.sl"
14332 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14333 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14335 soname_spec='${libname}${release}${shared_ext}$major'
14336 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14337 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14338 ;;
14339 *)
14340 shrext='.sl'
14341 dynamic_linker="$host_os dld.sl"
14342 shlibpath_var=SHLIB_PATH
14343 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14345 soname_spec='${libname}${release}${shared_ext}$major'
14346 ;;
14347 esac
14348 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14349 postinstall_cmds='chmod 555 $lib'
14350 ;;
14351
14352irix5* | irix6* | nonstopux*)
14353 case $host_os in
14354 nonstopux*) version_type=nonstopux ;;
14355 *)
14356 if test "$lt_cv_prog_gnu_ld" = yes; then
14357 version_type=linux
14358 else
14359 version_type=irix
14360 fi ;;
14361 esac
14362 need_lib_prefix=no
14363 need_version=no
14364 soname_spec='${libname}${release}${shared_ext}$major'
14365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14366 case $host_os in
14367 irix5* | nonstopux*)
14368 libsuff= shlibsuff=
14369 ;;
14370 *)
14371 case $LD in # libtool.m4 will add one of these switches to LD
14372 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14373 libsuff= shlibsuff= libmagic=32-bit;;
14374 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14375 libsuff=32 shlibsuff=N32 libmagic=N32;;
14376 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14377 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14378 *) libsuff= shlibsuff= libmagic=never-match;;
14379 esac
14380 ;;
14381 esac
14382 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14383 shlibpath_overrides_runpath=no
14384 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14385 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14386 hardcode_into_libs=yes
14387 ;;
14388
14389# No shared lib support for Linux oldld, aout, or coff.
14390linux*oldld* | linux*aout* | linux*coff*)
14391 dynamic_linker=no
14392 ;;
14393
14394# This must be Linux ELF.
14395linux*)
14396 version_type=linux
14397 need_lib_prefix=no
14398 need_version=no
14399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14400 soname_spec='${libname}${release}${shared_ext}$major'
14401 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14402 shlibpath_var=LD_LIBRARY_PATH
14403 shlibpath_overrides_runpath=no
14404 # This implies no fast_install, which is unacceptable.
14405 # Some rework will be needed to allow for fast_install
14406 # before this can be enabled.
14407 hardcode_into_libs=yes
14408
14409 # We used to test for /lib/ld.so.1 and disable shared libraries on
14410 # powerpc, because MkLinux only supported shared libraries with the
14411 # GNU dynamic linker. Since this was broken with cross compilers,
14412 # most powerpc-linux boxes support dynamic linking these days and
14413 # people can always --disable-shared, the test was removed, and we
14414 # assume the GNU/Linux dynamic linker is in use.
14415 dynamic_linker='GNU/Linux ld.so'
14416 ;;
14417
14418netbsd*)
14419 version_type=sunos
14420 need_lib_prefix=no
14421 need_version=no
14422 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14424 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14425 dynamic_linker='NetBSD (a.out) ld.so'
14426 else
14427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14428 soname_spec='${libname}${release}${shared_ext}$major'
14429 dynamic_linker='NetBSD ld.elf_so'
14430 fi
14431 shlibpath_var=LD_LIBRARY_PATH
14432 shlibpath_overrides_runpath=yes
14433 hardcode_into_libs=yes
14434 ;;
14435
14436newsos6)
14437 version_type=linux
14438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14439 shlibpath_var=LD_LIBRARY_PATH
14440 shlibpath_overrides_runpath=yes
14441 ;;
14442
14443nto-qnx)
14444 version_type=linux
14445 need_lib_prefix=no
14446 need_version=no
14447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14448 soname_spec='${libname}${release}${shared_ext}$major'
14449 shlibpath_var=LD_LIBRARY_PATH
14450 shlibpath_overrides_runpath=yes
14451 ;;
14452
14453openbsd*)
14454 version_type=sunos
14455 need_lib_prefix=no
14456 need_version=no
14457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14458 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14459 shlibpath_var=LD_LIBRARY_PATH
14460 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14461 case $host_os in
14462 openbsd2.[89] | openbsd2.[89].*)
14463 shlibpath_overrides_runpath=no
14464 ;;
14465 *)
14466 shlibpath_overrides_runpath=yes
14467 ;;
14468 esac
14469 else
14470 shlibpath_overrides_runpath=yes
14471 fi
14472 ;;
14473
14474os2*)
14475 libname_spec='$name'
14476 shrext=".dll"
14477 need_lib_prefix=no
14478 library_names_spec='$libname${shared_ext} $libname.a'
14479 dynamic_linker='OS/2 ld.exe'
14480 shlibpath_var=LIBPATH
14481 ;;
14482
14483osf3* | osf4* | osf5*)
14484 version_type=osf
14485 need_lib_prefix=no
14486 need_version=no
14487 soname_spec='${libname}${release}${shared_ext}$major'
14488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14489 shlibpath_var=LD_LIBRARY_PATH
14490 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14491 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14492 ;;
14493
14494sco3.2v5*)
14495 version_type=osf
14496 soname_spec='${libname}${release}${shared_ext}$major'
14497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14498 shlibpath_var=LD_LIBRARY_PATH
14499 ;;
14500
14501solaris*)
14502 version_type=linux
14503 need_lib_prefix=no
14504 need_version=no
14505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14506 soname_spec='${libname}${release}${shared_ext}$major'
14507 shlibpath_var=LD_LIBRARY_PATH
14508 shlibpath_overrides_runpath=yes
14509 hardcode_into_libs=yes
14510 # ldd complains unless libraries are executable
14511 postinstall_cmds='chmod +x $lib'
14512 ;;
14513
14514sunos4*)
14515 version_type=sunos
14516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14517 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14518 shlibpath_var=LD_LIBRARY_PATH
14519 shlibpath_overrides_runpath=yes
14520 if test "$with_gnu_ld" = yes; then
14521 need_lib_prefix=no
14522 fi
14523 need_version=yes
14524 ;;
14525
14526sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14527 version_type=linux
14528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14529 soname_spec='${libname}${release}${shared_ext}$major'
14530 shlibpath_var=LD_LIBRARY_PATH
14531 case $host_vendor in
14532 sni)
14533 shlibpath_overrides_runpath=no
14534 need_lib_prefix=no
14535 export_dynamic_flag_spec='${wl}-Blargedynsym'
14536 runpath_var=LD_RUN_PATH
14537 ;;
14538 siemens)
14539 need_lib_prefix=no
14540 ;;
14541 motorola)
14542 need_lib_prefix=no
14543 need_version=no
14544 shlibpath_overrides_runpath=no
14545 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14546 ;;
14547 esac
14548 ;;
14549
14550sysv4*MP*)
14551 if test -d /usr/nec ;then
14552 version_type=linux
14553 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14554 soname_spec='$libname${shared_ext}.$major'
14555 shlibpath_var=LD_LIBRARY_PATH
14556 fi
14557 ;;
14558
14559uts4*)
14560 version_type=linux
14561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14562 soname_spec='${libname}${release}${shared_ext}$major'
14563 shlibpath_var=LD_LIBRARY_PATH
14564 ;;
14565
14566*)
14567 dynamic_linker=no
14568 ;;
14569esac
14570echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14571echo "${ECHO_T}$dynamic_linker" >&6
14572test "$dynamic_linker" = no && can_build_shared=no
14573
14574
14575# The else clause should only fire when bootstrapping the
14576# libtool distribution, otherwise you forgot to ship ltmain.sh
14577# with your package, and you will get complaints that there are
14578# no rules to generate ltmain.sh.
14579if test -f "$ltmain"; then
14580 # See if we are running on zsh, and set the options which allow our commands through
14581 # without removal of \ escapes.
14582 if test -n "${ZSH_VERSION+set}" ; then
14583 setopt NO_GLOB_SUBST
14584 fi
14585 # Now quote all the things that may contain metacharacters while being
14586 # careful not to overquote the AC_SUBSTed values. We take copies of the
14587 # variables and quote the copies for generation of the libtool script.
14588 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14589 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14590 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14591 deplibs_check_method reload_flag reload_cmds need_locks \
14592 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14593 lt_cv_sys_global_symbol_to_c_name_address \
14594 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14595 old_postinstall_cmds old_postuninstall_cmds \
14596 compiler_F77 \
14597 CC_F77 \
14598 LD_F77 \
14599 lt_prog_compiler_wl_F77 \
14600 lt_prog_compiler_pic_F77 \
14601 lt_prog_compiler_static_F77 \
14602 lt_prog_compiler_no_builtin_flag_F77 \
14603 export_dynamic_flag_spec_F77 \
14604 thread_safe_flag_spec_F77 \
14605 whole_archive_flag_spec_F77 \
14606 enable_shared_with_static_runtimes_F77 \
14607 old_archive_cmds_F77 \
14608 old_archive_from_new_cmds_F77 \
14609 predep_objects_F77 \
14610 postdep_objects_F77 \
14611 predeps_F77 \
14612 postdeps_F77 \
14613 compiler_lib_search_path_F77 \
14614 archive_cmds_F77 \
14615 archive_expsym_cmds_F77 \
14616 postinstall_cmds_F77 \
14617 postuninstall_cmds_F77 \
14618 old_archive_from_expsyms_cmds_F77 \
14619 allow_undefined_flag_F77 \
14620 no_undefined_flag_F77 \
14621 export_symbols_cmds_F77 \
14622 hardcode_libdir_flag_spec_F77 \
14623 hardcode_libdir_flag_spec_ld_F77 \
14624 hardcode_libdir_separator_F77 \
14625 hardcode_automatic_F77 \
14626 module_cmds_F77 \
14627 module_expsym_cmds_F77 \
14628 lt_cv_prog_compiler_c_o_F77 \
14629 exclude_expsyms_F77 \
14630 include_expsyms_F77; do
14631
14632 case $var in
14633 old_archive_cmds_F77 | \
14634 old_archive_from_new_cmds_F77 | \
14635 archive_cmds_F77 | \
14636 archive_expsym_cmds_F77 | \
14637 module_cmds_F77 | \
14638 module_expsym_cmds_F77 | \
14639 old_archive_from_expsyms_cmds_F77 | \
14640 export_symbols_cmds_F77 | \
14641 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14642 postinstall_cmds | postuninstall_cmds | \
14643 old_postinstall_cmds | old_postuninstall_cmds | \
14644 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14645 # Double-quote double-evaled strings.
14646 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14647 ;;
14648 *)
14649 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14650 ;;
14651 esac
14652 done
14653
14654 case $lt_echo in
14655 *'\$0 --fallback-echo"')
14656 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14657 ;;
14658 esac
14659
14660cfgfile="$ofile"
14661
14662 cat <<__EOF__ >> "$cfgfile"
14663# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14664
14665# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14666
14667# Shell to use when invoking shell scripts.
14668SHELL=$lt_SHELL
14669
14670# Whether or not to build shared libraries.
14671build_libtool_libs=$enable_shared
14672
14673# Whether or not to build static libraries.
14674build_old_libs=$enable_static
14675
14676# Whether or not to add -lc for building shared libraries.
14677build_libtool_need_lc=$archive_cmds_need_lc_F77
14678
14679# Whether or not to disallow shared libs when runtime libs are static
14680allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14681
14682# Whether or not to optimize for fast installation.
14683fast_install=$enable_fast_install
14684
14685# The host system.
14686host_alias=$host_alias
14687host=$host
14688
14689# An echo program that does not interpret backslashes.
14690echo=$lt_echo
14691
14692# The archiver.
14693AR=$lt_AR
14694AR_FLAGS=$lt_AR_FLAGS
14695
14696# A C compiler.
14697LTCC=$lt_LTCC
14698
14699# A language-specific compiler.
14700CC=$lt_compiler_F77
14701
14702# Is the compiler the GNU C compiler?
14703with_gcc=$GCC_F77
14704
14705# An ERE matcher.
14706EGREP=$lt_EGREP
14707
14708# The linker used to build libraries.
14709LD=$lt_LD_F77
14710
14711# Whether we need hard or soft links.
14712LN_S=$lt_LN_S
14713
14714# A BSD-compatible nm program.
14715NM=$lt_NM
14716
14717# A symbol stripping program
14718STRIP=$STRIP
14719
14720# Used to examine libraries when file_magic_cmd begins "file"
14721MAGIC_CMD=$MAGIC_CMD
14722
14723# Used on cygwin: DLL creation program.
14724DLLTOOL="$DLLTOOL"
14725
14726# Used on cygwin: object dumper.
14727OBJDUMP="$OBJDUMP"
14728
14729# Used on cygwin: assembler.
14730AS="$AS"
14731
14732# The name of the directory that contains temporary libtool files.
14733objdir=$objdir
14734
14735# How to create reloadable object files.
14736reload_flag=$lt_reload_flag
14737reload_cmds=$lt_reload_cmds
14738
14739# How to pass a linker flag through the compiler.
14740wl=$lt_lt_prog_compiler_wl_F77
14741
14742# Object file suffix (normally "o").
14743objext="$ac_objext"
14744
14745# Old archive suffix (normally "a").
14746libext="$libext"
14747
14748# Shared library suffix (normally ".so").
14749shrext='$shrext'
14750
14751# Executable file suffix (normally "").
14752exeext="$exeext"
14753
14754# Additional compiler flags for building library objects.
14755pic_flag=$lt_lt_prog_compiler_pic_F77
14756pic_mode=$pic_mode
14757
14758# What is the maximum length of a command?
14759max_cmd_len=$lt_cv_sys_max_cmd_len
14760
14761# Does compiler simultaneously support -c and -o options?
14762compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14763
14764# Must we lock files when doing compilation ?
14765need_locks=$lt_need_locks
14766
14767# Do we need the lib prefix for modules?
14768need_lib_prefix=$need_lib_prefix
14769
14770# Do we need a version for libraries?
14771need_version=$need_version
14772
14773# Whether dlopen is supported.
14774dlopen_support=$enable_dlopen
14775
14776# Whether dlopen of programs is supported.
14777dlopen_self=$enable_dlopen_self
14778
14779# Whether dlopen of statically linked programs is supported.
14780dlopen_self_static=$enable_dlopen_self_static
14781
14782# Compiler flag to prevent dynamic linking.
14783link_static_flag=$lt_lt_prog_compiler_static_F77
14784
14785# Compiler flag to turn off builtin functions.
14786no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14787
14788# Compiler flag to allow reflexive dlopens.
14789export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14790
14791# Compiler flag to generate shared objects directly from archives.
14792whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14793
14794# Compiler flag to generate thread-safe objects.
14795thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14796
14797# Library versioning type.
14798version_type=$version_type
14799
14800# Format of library name prefix.
14801libname_spec=$lt_libname_spec
14802
14803# List of archive names. First name is the real one, the rest are links.
14804# The last name is the one that the linker finds with -lNAME.
14805library_names_spec=$lt_library_names_spec
14806
14807# The coded name of the library, if different from the real name.
14808soname_spec=$lt_soname_spec
14809
14810# Commands used to build and install an old-style archive.
14811RANLIB=$lt_RANLIB
14812old_archive_cmds=$lt_old_archive_cmds_F77
14813old_postinstall_cmds=$lt_old_postinstall_cmds
14814old_postuninstall_cmds=$lt_old_postuninstall_cmds
14815
14816# Create an old-style archive from a shared archive.
14817old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14818
14819# Create a temporary old-style archive to link instead of a shared archive.
14820old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14821
14822# Commands used to build and install a shared archive.
14823archive_cmds=$lt_archive_cmds_F77
14824archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14825postinstall_cmds=$lt_postinstall_cmds
14826postuninstall_cmds=$lt_postuninstall_cmds
14827
14828# Commands used to build a loadable module (assumed same as above if empty)
14829module_cmds=$lt_module_cmds_F77
14830module_expsym_cmds=$lt_module_expsym_cmds_F77
14831
14832# Commands to strip libraries.
14833old_striplib=$lt_old_striplib
14834striplib=$lt_striplib
14835
14836# Dependencies to place before the objects being linked to create a
14837# shared library.
14838predep_objects=$lt_predep_objects_F77
14839
14840# Dependencies to place after the objects being linked to create a
14841# shared library.
14842postdep_objects=$lt_postdep_objects_F77
14843
14844# Dependencies to place before the objects being linked to create a
14845# shared library.
14846predeps=$lt_predeps_F77
14847
14848# Dependencies to place after the objects being linked to create a
14849# shared library.
14850postdeps=$lt_postdeps_F77
14851
14852# The library search path used internally by the compiler when linking
14853# a shared library.
14854compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14855
14856# Method to check whether dependent libraries are shared objects.
14857deplibs_check_method=$lt_deplibs_check_method
14858
14859# Command to use when deplibs_check_method == file_magic.
14860file_magic_cmd=$lt_file_magic_cmd
14861
14862# Flag that allows shared libraries with undefined symbols to be built.
14863allow_undefined_flag=$lt_allow_undefined_flag_F77
14864
14865# Flag that forces no undefined symbols.
14866no_undefined_flag=$lt_no_undefined_flag_F77
14867
14868# Commands used to finish a libtool library installation in a directory.
14869finish_cmds=$lt_finish_cmds
14870
14871# Same as above, but a single script fragment to be evaled but not shown.
14872finish_eval=$lt_finish_eval
14873
14874# Take the output of nm and produce a listing of raw symbols and C names.
14875global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14876
14877# Transform the output of nm in a proper C declaration
14878global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14879
14880# Transform the output of nm in a C name address pair
14881global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14882
14883# This is the shared library runtime path variable.
14884runpath_var=$runpath_var
14885
14886# This is the shared library path variable.
14887shlibpath_var=$shlibpath_var
14888
14889# Is shlibpath searched before the hard-coded library search path?
14890shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14891
14892# How to hardcode a shared library path into an executable.
14893hardcode_action=$hardcode_action_F77
14894
14895# Whether we should hardcode library paths into libraries.
14896hardcode_into_libs=$hardcode_into_libs
14897
14898# Flag to hardcode \$libdir into a binary during linking.
14899# This must work even if \$libdir does not exist.
14900hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14901
14902# If ld is used when linking, flag to hardcode \$libdir into
14903# a binary during linking. This must work even if \$libdir does
14904# not exist.
14905hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14906
14907# Whether we need a single -rpath flag with a separated argument.
14908hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14909
14910# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14911# resulting binary.
14912hardcode_direct=$hardcode_direct_F77
14913
14914# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14915# resulting binary.
14916hardcode_minus_L=$hardcode_minus_L_F77
14917
14918# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14919# the resulting binary.
14920hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14921
14922# Set to yes if building a shared library automatically hardcodes DIR into the library
14923# and all subsequent libraries and executables linked against it.
14924hardcode_automatic=$hardcode_automatic_F77
14925
14926# Variables whose values should be saved in libtool wrapper scripts and
14927# restored at relink time.
14928variables_saved_for_relink="$variables_saved_for_relink"
14929
14930# Whether libtool must link a program against all its dependency libraries.
14931link_all_deplibs=$link_all_deplibs_F77
14932
14933# Compile-time system search path for libraries
14934sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14935
14936# Run-time system search path for libraries
14937sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14938
14939# Fix the shell variable \$srcfile for the compiler.
14940fix_srcfile_path="$fix_srcfile_path_F77"
14941
14942# Set to yes if exported symbols are required.
14943always_export_symbols=$always_export_symbols_F77
14944
14945# The commands to list exported symbols.
14946export_symbols_cmds=$lt_export_symbols_cmds_F77
14947
14948# The commands to extract the exported symbol list from a shared archive.
14949extract_expsyms_cmds=$lt_extract_expsyms_cmds
14950
14951# Symbols that should not be listed in the preloaded symbols.
14952exclude_expsyms=$lt_exclude_expsyms_F77
14953
14954# Symbols that must always be exported.
14955include_expsyms=$lt_include_expsyms_F77
14956
14957# ### END LIBTOOL TAG CONFIG: $tagname
14958
14959__EOF__
14960
14961
14962else
14963 # If there is no Makefile yet, we rely on a make rule to execute
14964 # `config.status --recheck' to rerun these tests and create the
14965 # libtool script then.
14966 test -f Makefile && make "$ltmain"
14967fi
14968
14969
14970ac_ext=c
14971ac_cpp='$CPP $CPPFLAGS'
14972ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14973ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14974ac_compiler_gnu=$ac_cv_c_compiler_gnu
14975
14976CC="$lt_save_CC"
14977
14978 else
14979 tagname=""
14980 fi
14981 ;;
14982
14983 GCJ)
14984 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14985
14986
14987
14988# Source file extension for Java test sources.
14989ac_ext=java
14990
14991# Object file extension for compiled Java test sources.
14992objext=o
14993objext_GCJ=$objext
14994
14995# Code to be used in simple compile tests
14996lt_simple_compile_test_code="class foo {}\n"
14997
14998# Code to be used in simple link tests
14999lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15000
15001# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15002
15003# If no C compiler was specified, use CC.
15004LTCC=${LTCC-"$CC"}
15005
15006# Allow CC to be a program name with arguments.
15007compiler=$CC
15008
15009
15010# Allow CC to be a program name with arguments.
15011lt_save_CC="$CC"
15012CC=${GCJ-"gcj"}
15013compiler=$CC
15014compiler_GCJ=$CC
15015
15016# GCJ did not exist at the time GCC didn't implicitly link libc in.
15017archive_cmds_need_lc_GCJ=no
15018
15019## CAVEAT EMPTOR:
15020## There is no encapsulation within the following macros, do not change
15021## the running order or otherwise move them around unless you know exactly
15022## what you are doing...
15023
15024lt_prog_compiler_no_builtin_flag_GCJ=
15025
15026if test "$GCC" = yes; then
15027 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15028
15029 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15030echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15031if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15032 echo $ECHO_N "(cached) $ECHO_C" >&6
15033else
15034 lt_cv_prog_compiler_rtti_exceptions=no
15035 ac_outfile=conftest.$ac_objext
15036 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15037 lt_compiler_flag="-fno-rtti -fno-exceptions"
15038 # Insert the option either (1) after the last *FLAGS variable, or
15039 # (2) before a word containing "conftest.", or (3) at the end.
15040 # Note that $ac_compile itself does not contain backslashes and begins
15041 # with a dollar sign (not a hyphen), so the echo should work correctly.
15042 # The option is referenced via a variable to avoid confusing sed.
15043 lt_compile=`echo "$ac_compile" | $SED \
15044 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15045 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15046 -e 's:$: $lt_compiler_flag:'`
John Criswell4e079782003-09-29 14:52:28 +000015047 (eval echo "\"\$as_me:15047: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015048 (eval "$lt_compile" 2>conftest.err)
15049 ac_status=$?
15050 cat conftest.err >&5
John Criswell4e079782003-09-29 14:52:28 +000015051 echo "$as_me:15051: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015052 if (exit $ac_status) && test -s "$ac_outfile"; then
15053 # The compiler can only warn and ignore the option if not recognized
15054 # So say no if there are warnings
15055 if test ! -s conftest.err; then
15056 lt_cv_prog_compiler_rtti_exceptions=yes
15057 fi
15058 fi
15059 $rm conftest*
15060
15061fi
15062echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15063echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15064
15065if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15066 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15067else
15068 :
15069fi
15070
15071fi
15072
15073lt_prog_compiler_wl_GCJ=
15074lt_prog_compiler_pic_GCJ=
15075lt_prog_compiler_static_GCJ=
15076
15077echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15078echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15079
15080 if test "$GCC" = yes; then
15081 lt_prog_compiler_wl_GCJ='-Wl,'
15082 lt_prog_compiler_static_GCJ='-static'
15083
15084 case $host_os in
15085 aix*)
15086 # All AIX code is PIC.
15087 if test "$host_cpu" = ia64; then
15088 # AIX 5 now supports IA64 processor
15089 lt_prog_compiler_static_GCJ='-Bstatic'
15090 fi
15091 ;;
15092
15093 amigaos*)
15094 # FIXME: we need at least 68020 code to build shared libraries, but
15095 # adding the `-m68020' flag to GCC prevents building anything better,
15096 # like `-m68040'.
15097 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15098 ;;
15099
15100 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15101 # PIC is the default for these OSes.
15102 ;;
15103
15104 mingw* | pw32* | os2*)
15105 # This hack is so that the source file can tell whether it is being
15106 # built for inclusion in a dll (and should export symbols for example).
15107 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15108 ;;
15109
15110 darwin* | rhapsody*)
15111 # PIC is the default on this platform
15112 # Common symbols not allowed in MH_DYLIB files
15113 lt_prog_compiler_pic_GCJ='-fno-common'
15114 ;;
15115
15116 msdosdjgpp*)
15117 # Just because we use GCC doesn't mean we suddenly get shared libraries
15118 # on systems that don't support them.
15119 lt_prog_compiler_can_build_shared_GCJ=no
15120 enable_shared=no
15121 ;;
15122
15123 sysv4*MP*)
15124 if test -d /usr/nec; then
15125 lt_prog_compiler_pic_GCJ=-Kconform_pic
15126 fi
15127 ;;
15128
15129 hpux*)
15130 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15131 # not for PA HP-UX.
15132 case "$host_cpu" in
15133 hppa*64*|ia64*)
15134 # +Z the default
15135 ;;
15136 *)
15137 lt_prog_compiler_pic_GCJ='-fPIC'
15138 ;;
15139 esac
15140 ;;
15141
15142 *)
15143 lt_prog_compiler_pic_GCJ='-fPIC'
15144 ;;
15145 esac
15146 else
15147 # PORTME Check for flag to pass linker flags through the system compiler.
15148 case $host_os in
15149 aix*)
15150 lt_prog_compiler_wl_GCJ='-Wl,'
15151 if test "$host_cpu" = ia64; then
15152 # AIX 5 now supports IA64 processor
15153 lt_prog_compiler_static_GCJ='-Bstatic'
15154 else
15155 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15156 fi
15157 ;;
15158
15159 mingw* | pw32* | os2*)
15160 # This hack is so that the source file can tell whether it is being
15161 # built for inclusion in a dll (and should export symbols for example).
15162 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15163 ;;
15164
15165 hpux9* | hpux10* | hpux11*)
15166 lt_prog_compiler_wl_GCJ='-Wl,'
15167 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15168 # not for PA HP-UX.
15169 case "$host_cpu" in
15170 hppa*64*|ia64*)
15171 # +Z the default
15172 ;;
15173 *)
15174 lt_prog_compiler_pic_GCJ='+Z'
15175 ;;
15176 esac
15177 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15178 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15179 ;;
15180
15181 irix5* | irix6* | nonstopux*)
15182 lt_prog_compiler_wl_GCJ='-Wl,'
15183 # PIC (with -KPIC) is the default.
15184 lt_prog_compiler_static_GCJ='-non_shared'
15185 ;;
15186
15187 newsos6)
15188 lt_prog_compiler_pic_GCJ='-KPIC'
15189 lt_prog_compiler_static_GCJ='-Bstatic'
15190 ;;
15191
15192 linux*)
15193 case $CC in
15194 icc|ecc)
15195 lt_prog_compiler_wl_GCJ='-Wl,'
15196 lt_prog_compiler_pic_GCJ='-KPIC'
15197 lt_prog_compiler_static_GCJ='-static'
15198 ;;
15199 ccc)
15200 lt_prog_compiler_wl_GCJ='-Wl,'
15201 # All Alpha code is PIC.
15202 lt_prog_compiler_static_GCJ='-non_shared'
15203 ;;
15204 esac
15205 ;;
15206
15207 osf3* | osf4* | osf5*)
15208 lt_prog_compiler_wl_GCJ='-Wl,'
15209 # All OSF/1 code is PIC.
15210 lt_prog_compiler_static_GCJ='-non_shared'
15211 ;;
15212
15213 sco3.2v5*)
15214 lt_prog_compiler_pic_GCJ='-Kpic'
15215 lt_prog_compiler_static_GCJ='-dn'
15216 ;;
15217
15218 solaris*)
15219 lt_prog_compiler_wl_GCJ='-Wl,'
15220 lt_prog_compiler_pic_GCJ='-KPIC'
15221 lt_prog_compiler_static_GCJ='-Bstatic'
15222 ;;
15223
15224 sunos4*)
15225 lt_prog_compiler_wl_GCJ='-Qoption ld '
15226 lt_prog_compiler_pic_GCJ='-PIC'
15227 lt_prog_compiler_static_GCJ='-Bstatic'
15228 ;;
15229
15230 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15231 lt_prog_compiler_wl_GCJ='-Wl,'
15232 lt_prog_compiler_pic_GCJ='-KPIC'
15233 lt_prog_compiler_static_GCJ='-Bstatic'
15234 ;;
15235
15236 sysv4*MP*)
15237 if test -d /usr/nec ;then
15238 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15239 lt_prog_compiler_static_GCJ='-Bstatic'
15240 fi
15241 ;;
15242
15243 uts4*)
15244 lt_prog_compiler_pic_GCJ='-pic'
15245 lt_prog_compiler_static_GCJ='-Bstatic'
15246 ;;
15247
15248 *)
15249 lt_prog_compiler_can_build_shared_GCJ=no
15250 ;;
15251 esac
15252 fi
15253
15254echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15255echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15256
15257#
15258# Check to make sure the PIC flag actually works.
15259#
15260if test -n "$lt_prog_compiler_pic_GCJ"; then
15261 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15262echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15263if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15264 echo $ECHO_N "(cached) $ECHO_C" >&6
15265else
15266 lt_prog_compiler_pic_works_GCJ=no
15267 ac_outfile=conftest.$ac_objext
15268 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15269 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15270 # Insert the option either (1) after the last *FLAGS variable, or
15271 # (2) before a word containing "conftest.", or (3) at the end.
15272 # Note that $ac_compile itself does not contain backslashes and begins
15273 # with a dollar sign (not a hyphen), so the echo should work correctly.
15274 # The option is referenced via a variable to avoid confusing sed.
15275 lt_compile=`echo "$ac_compile" | $SED \
15276 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15277 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15278 -e 's:$: $lt_compiler_flag:'`
John Criswell4e079782003-09-29 14:52:28 +000015279 (eval echo "\"\$as_me:15279: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015280 (eval "$lt_compile" 2>conftest.err)
15281 ac_status=$?
15282 cat conftest.err >&5
John Criswell4e079782003-09-29 14:52:28 +000015283 echo "$as_me:15283: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015284 if (exit $ac_status) && test -s "$ac_outfile"; then
15285 # The compiler can only warn and ignore the option if not recognized
15286 # So say no if there are warnings
15287 if test ! -s conftest.err; then
15288 lt_prog_compiler_pic_works_GCJ=yes
15289 fi
15290 fi
15291 $rm conftest*
15292
15293fi
15294echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15295echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15296
15297if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15298 case $lt_prog_compiler_pic_GCJ in
15299 "" | " "*) ;;
15300 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15301 esac
15302else
15303 lt_prog_compiler_pic_GCJ=
15304 lt_prog_compiler_can_build_shared_GCJ=no
15305fi
15306
15307fi
15308case "$host_os" in
15309 # For platforms which do not support PIC, -DPIC is meaningless:
15310 *djgpp*)
15311 lt_prog_compiler_pic_GCJ=
15312 ;;
15313 *)
15314 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15315 ;;
15316esac
15317
15318echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15319echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15320if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15321 echo $ECHO_N "(cached) $ECHO_C" >&6
15322else
15323 lt_cv_prog_compiler_c_o_GCJ=no
15324 $rm -r conftest 2>/dev/null
15325 mkdir conftest
15326 cd conftest
15327 mkdir out
15328 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15329
15330 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15331 # that will create temporary files in the current directory regardless of
15332 # the output directory. Thus, making CWD read-only will cause this test
15333 # to fail, enabling locking or at least warning the user not to do parallel
15334 # builds.
15335 chmod -w .
15336
15337 lt_compiler_flag="-o out/conftest2.$ac_objext"
15338 # Insert the option either (1) after the last *FLAGS variable, or
15339 # (2) before a word containing "conftest.", or (3) at the end.
15340 # Note that $ac_compile itself does not contain backslashes and begins
15341 # with a dollar sign (not a hyphen), so the echo should work correctly.
15342 lt_compile=`echo "$ac_compile" | $SED \
15343 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15344 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15345 -e 's:$: $lt_compiler_flag:'`
John Criswell4e079782003-09-29 14:52:28 +000015346 (eval echo "\"\$as_me:15346: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015347 (eval "$lt_compile" 2>out/conftest.err)
15348 ac_status=$?
15349 cat out/conftest.err >&5
John Criswell4e079782003-09-29 14:52:28 +000015350 echo "$as_me:15350: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015351 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15352 then
15353 # The compiler can only warn and ignore the option if not recognized
15354 # So say no if there are warnings
15355 if test ! -s out/conftest.err; then
15356 lt_cv_prog_compiler_c_o_GCJ=yes
15357 fi
15358 fi
15359 chmod u+w .
15360 $rm conftest* out/*
15361 rmdir out
15362 cd ..
15363 rmdir conftest
15364 $rm conftest*
15365
15366fi
15367echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15368echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15369
15370
15371hard_links="nottested"
15372if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15373 # do not overwrite the value of need_locks provided by the user
15374 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15375echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15376 hard_links=yes
15377 $rm conftest*
15378 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15379 touch conftest.a
15380 ln conftest.a conftest.b 2>&5 || hard_links=no
15381 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15382 echo "$as_me:$LINENO: result: $hard_links" >&5
15383echo "${ECHO_T}$hard_links" >&6
15384 if test "$hard_links" = no; then
15385 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15386echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15387 need_locks=warn
15388 fi
15389else
15390 need_locks=no
15391fi
15392
15393echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15394echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15395
15396 runpath_var=
15397 allow_undefined_flag_GCJ=
15398 enable_shared_with_static_runtimes_GCJ=no
15399 archive_cmds_GCJ=
15400 archive_expsym_cmds_GCJ=
15401 old_archive_From_new_cmds_GCJ=
15402 old_archive_from_expsyms_cmds_GCJ=
15403 export_dynamic_flag_spec_GCJ=
15404 whole_archive_flag_spec_GCJ=
15405 thread_safe_flag_spec_GCJ=
15406 hardcode_libdir_flag_spec_GCJ=
15407 hardcode_libdir_flag_spec_ld_GCJ=
15408 hardcode_libdir_separator_GCJ=
15409 hardcode_direct_GCJ=no
15410 hardcode_minus_L_GCJ=no
15411 hardcode_shlibpath_var_GCJ=unsupported
15412 link_all_deplibs_GCJ=unknown
15413 hardcode_automatic_GCJ=no
15414 module_cmds_GCJ=
15415 module_expsym_cmds_GCJ=
15416 always_export_symbols_GCJ=no
15417 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15418 # include_expsyms should be a list of space-separated symbols to be *always*
15419 # included in the symbol list
15420 include_expsyms_GCJ=
15421 # exclude_expsyms can be an extended regexp of symbols to exclude
15422 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15423 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15424 # as well as any symbol that contains `d'.
15425 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15426 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15427 # platforms (ab)use it in PIC code, but their linkers get confused if
15428 # the symbol is explicitly referenced. Since portable code cannot
15429 # rely on this symbol name, it's probably fine to never include it in
15430 # preloaded symbol tables.
15431 extract_expsyms_cmds=
15432
15433 case $host_os in
15434 cygwin* | mingw* | pw32*)
15435 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15436 # When not using gcc, we currently assume that we are using
15437 # Microsoft Visual C++.
15438 if test "$GCC" != yes; then
15439 with_gnu_ld=no
15440 fi
15441 ;;
15442 openbsd*)
15443 with_gnu_ld=no
15444 ;;
15445 esac
15446
15447 ld_shlibs_GCJ=yes
15448 if test "$with_gnu_ld" = yes; then
15449 # If archive_cmds runs LD, not CC, wlarc should be empty
15450 wlarc='${wl}'
15451
15452 # See if GNU ld supports shared libraries.
15453 case $host_os in
15454 aix3* | aix4* | aix5*)
15455 # On AIX/PPC, the GNU linker is very broken
15456 if test "$host_cpu" != ia64; then
15457 ld_shlibs_GCJ=no
15458 cat <<EOF 1>&2
15459
15460*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15461*** to be unable to reliably create shared libraries on AIX.
15462*** Therefore, libtool is disabling shared libraries support. If you
15463*** really care for shared libraries, you may want to modify your PATH
15464*** so that a non-GNU linker is found, and then restart.
15465
15466EOF
15467 fi
15468 ;;
15469
15470 amigaos*)
15471 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)'
15472 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15473 hardcode_minus_L_GCJ=yes
15474
15475 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15476 # that the semantics of dynamic libraries on AmigaOS, at least up
15477 # to version 4, is to share data among multiple programs linked
15478 # with the same dynamic library. Since this doesn't match the
15479 # behavior of shared libraries on other platforms, we can't use
15480 # them.
15481 ld_shlibs_GCJ=no
15482 ;;
15483
15484 beos*)
15485 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15486 allow_undefined_flag_GCJ=unsupported
15487 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15488 # support --undefined. This deserves some investigation. FIXME
15489 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15490 else
15491 ld_shlibs_GCJ=no
15492 fi
15493 ;;
15494
15495 cygwin* | mingw* | pw32*)
15496 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15497 # as there is no search path for DLLs.
15498 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15499 allow_undefined_flag_GCJ=unsupported
15500 always_export_symbols_GCJ=no
15501 enable_shared_with_static_runtimes_GCJ=yes
15502 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15503
15504 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15505 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15506 # If the export-symbols file already is a .def file (1st line
15507 # is EXPORTS), use it as is; otherwise, prepend...
15508 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15509 cp $export_symbols $output_objdir/$soname.def;
15510 else
15511 echo EXPORTS > $output_objdir/$soname.def;
15512 cat $export_symbols >> $output_objdir/$soname.def;
15513 fi~
15514 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15515 else
15516 ld_shlibs=no
15517 fi
15518 ;;
15519
15520 netbsd*)
15521 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15522 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15523 wlarc=
15524 else
15525 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15526 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15527 fi
15528 ;;
15529
15530 solaris* | sysv5*)
15531 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15532 ld_shlibs_GCJ=no
15533 cat <<EOF 1>&2
15534
15535*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15536*** create shared libraries on Solaris systems. Therefore, libtool
15537*** is disabling shared libraries support. We urge you to upgrade GNU
15538*** binutils to release 2.9.1 or newer. Another option is to modify
15539*** your PATH or compiler configuration so that the native linker is
15540*** used, and then restart.
15541
15542EOF
15543 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15544 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15545 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15546 else
15547 ld_shlibs_GCJ=no
15548 fi
15549 ;;
15550
15551 sunos4*)
15552 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15553 wlarc=
15554 hardcode_direct_GCJ=yes
15555 hardcode_shlibpath_var_GCJ=no
15556 ;;
15557
15558 *)
15559 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15560 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15561 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15562 else
15563 ld_shlibs_GCJ=no
15564 fi
15565 ;;
15566 esac
15567
15568 if test "$ld_shlibs_GCJ" = yes; then
15569 runpath_var=LD_RUN_PATH
15570 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15571 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15572 # ancient GNU ld didn't support --whole-archive et. al.
15573 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15574 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15575 else
15576 whole_archive_flag_spec_GCJ=
15577 fi
15578 fi
15579 else
15580 # PORTME fill in a description of your system's linker (not GNU ld)
15581 case $host_os in
15582 aix3*)
15583 allow_undefined_flag_GCJ=unsupported
15584 always_export_symbols_GCJ=yes
15585 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'
15586 # Note: this linker hardcodes the directories in LIBPATH if there
15587 # are no directories specified by -L.
15588 hardcode_minus_L_GCJ=yes
15589 if test "$GCC" = yes && test -z "$link_static_flag"; then
15590 # Neither direct hardcoding nor static linking is supported with a
15591 # broken collect2.
15592 hardcode_direct_GCJ=unsupported
15593 fi
15594 ;;
15595
15596 aix4* | aix5*)
15597 if test "$host_cpu" = ia64; then
15598 # On IA64, the linker does run time linking by default, so we don't
15599 # have to do anything special.
15600 aix_use_runtimelinking=no
15601 exp_sym_flag='-Bexport'
15602 no_entry_flag=""
15603 else
15604 # If we're using GNU nm, then we don't want the "-C" option.
15605 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15606 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15607 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'
15608 else
15609 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'
15610 fi
15611 aix_use_runtimelinking=no
15612
15613 # Test if we are trying to use run time linking or normal
15614 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15615 # need to do runtime linking.
15616 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15617 for ld_flag in $LDFLAGS; do
15618 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15619 aix_use_runtimelinking=yes
15620 break
15621 fi
15622 done
15623 esac
15624
15625 exp_sym_flag='-bexport'
15626 no_entry_flag='-bnoentry'
15627 fi
15628
15629 # When large executables or shared objects are built, AIX ld can
15630 # have problems creating the table of contents. If linking a library
15631 # or program results in "error TOC overflow" add -mminimal-toc to
15632 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15633 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15634
15635 archive_cmds_GCJ=''
15636 hardcode_direct_GCJ=yes
15637 hardcode_libdir_separator_GCJ=':'
15638 link_all_deplibs_GCJ=yes
15639
15640 if test "$GCC" = yes; then
15641 case $host_os in aix4.012|aix4.012.*)
15642 # We only want to do this on AIX 4.2 and lower, the check
15643 # below for broken collect2 doesn't work under 4.3+
15644 collect2name=`${CC} -print-prog-name=collect2`
15645 if test -f "$collect2name" && \
15646 strings "$collect2name" | grep resolve_lib_name >/dev/null
15647 then
15648 # We have reworked collect2
15649 hardcode_direct_GCJ=yes
15650 else
15651 # We have old collect2
15652 hardcode_direct_GCJ=unsupported
15653 # It fails to find uninstalled libraries when the uninstalled
15654 # path is not listed in the libpath. Setting hardcode_minus_L
15655 # to unsupported forces relinking
15656 hardcode_minus_L_GCJ=yes
15657 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15658 hardcode_libdir_separator_GCJ=
15659 fi
15660 esac
15661 shared_flag='-shared'
15662 else
15663 # not using gcc
15664 if test "$host_cpu" = ia64; then
15665 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15666 # chokes on -Wl,-G. The following line is correct:
15667 shared_flag='-G'
15668 else
15669 if test "$aix_use_runtimelinking" = yes; then
15670 shared_flag='${wl}-G'
15671 else
15672 shared_flag='${wl}-bM:SRE'
15673 fi
15674 fi
15675 fi
15676
15677 # It seems that -bexpall does not export symbols beginning with
15678 # underscore (_), so it is better to generate a list of symbols to export.
15679 always_export_symbols_GCJ=yes
15680 if test "$aix_use_runtimelinking" = yes; then
15681 # Warning - without using the other runtime loading flags (-brtl),
15682 # -berok will link without error, but may produce a broken library.
15683 allow_undefined_flag_GCJ='-berok'
15684 # Determine the default libpath from the value encoded in an empty executable.
15685 cat >conftest.$ac_ext <<_ACEOF
15686#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000015687/* confdefs.h. */
15688_ACEOF
15689cat confdefs.h >>conftest.$ac_ext
15690cat >>conftest.$ac_ext <<_ACEOF
15691/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015692
John Criswell47fdd832003-07-14 16:52:07 +000015693int
15694main ()
15695{
15696
15697 ;
15698 return 0;
15699}
15700_ACEOF
15701rm -f conftest.$ac_objext conftest$ac_exeext
15702if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15703 (eval $ac_link) 2>&5
15704 ac_status=$?
15705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15706 (exit $ac_status); } &&
15707 { ac_try='test -s conftest$ac_exeext'
15708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15709 (eval $ac_try) 2>&5
15710 ac_status=$?
15711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15712 (exit $ac_status); }; }; then
15713
15714aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15715}'`
15716# Check for a 64-bit object if we didn't find anything.
15717if 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; }
15718}'`; fi
15719else
15720 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015721sed 's/^/| /' conftest.$ac_ext >&5
15722
John Criswell47fdd832003-07-14 16:52:07 +000015723fi
15724rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15725if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15726
15727 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15728 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"
15729 else
15730 if test "$host_cpu" = ia64; then
15731 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15732 allow_undefined_flag_GCJ="-z nodefs"
15733 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"
15734 else
15735 # Determine the default libpath from the value encoded in an empty executable.
15736 cat >conftest.$ac_ext <<_ACEOF
15737#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000015738/* confdefs.h. */
15739_ACEOF
15740cat confdefs.h >>conftest.$ac_ext
15741cat >>conftest.$ac_ext <<_ACEOF
15742/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015743
John Criswell47fdd832003-07-14 16:52:07 +000015744int
15745main ()
15746{
15747
15748 ;
15749 return 0;
15750}
15751_ACEOF
15752rm -f conftest.$ac_objext conftest$ac_exeext
15753if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15754 (eval $ac_link) 2>&5
15755 ac_status=$?
15756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15757 (exit $ac_status); } &&
15758 { ac_try='test -s conftest$ac_exeext'
15759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15760 (eval $ac_try) 2>&5
15761 ac_status=$?
15762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15763 (exit $ac_status); }; }; then
15764
15765aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15766}'`
15767# Check for a 64-bit object if we didn't find anything.
15768if 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; }
15769}'`; fi
15770else
15771 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015772sed 's/^/| /' conftest.$ac_ext >&5
15773
John Criswell47fdd832003-07-14 16:52:07 +000015774fi
15775rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15776if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15777
15778 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15779 # Warning - without using the other run time loading flags,
15780 # -berok will link without error, but may produce a broken library.
15781 no_undefined_flag_GCJ=' ${wl}-bernotok'
15782 allow_undefined_flag_GCJ=' ${wl}-berok'
15783 # -bexpall does not export symbols beginning with underscore (_)
15784 always_export_symbols_GCJ=yes
15785 # Exported symbols can be pulled into shared objects from archives
15786 whole_archive_flag_spec_GCJ=' '
15787 archive_cmds_need_lc_GCJ=yes
15788 # This is similar to how AIX traditionally builds it's shared libraries.
15789 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'
15790 fi
15791 fi
15792 ;;
15793
15794 amigaos*)
15795 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)'
15796 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15797 hardcode_minus_L_GCJ=yes
15798 # see comment about different semantics on the GNU ld section
15799 ld_shlibs_GCJ=no
15800 ;;
15801
15802 bsdi4*)
15803 export_dynamic_flag_spec_GCJ=-rdynamic
15804 ;;
15805
15806 cygwin* | mingw* | pw32*)
15807 # When not using gcc, we currently assume that we are using
15808 # Microsoft Visual C++.
15809 # hardcode_libdir_flag_spec is actually meaningless, as there is
15810 # no search path for DLLs.
15811 hardcode_libdir_flag_spec_GCJ=' '
15812 allow_undefined_flag_GCJ=unsupported
15813 # Tell ltmain to make .lib files, not .a files.
15814 libext=lib
15815 # Tell ltmain to make .dll files, not .so files.
15816 shrext=".dll"
15817 # FIXME: Setting linknames here is a bad hack.
15818 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15819 # The linker will automatically build a .lib file if we build a DLL.
15820 old_archive_From_new_cmds_GCJ='true'
15821 # FIXME: Should let the user specify the lib program.
15822 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15823 fix_srcfile_path='`cygpath -w "$srcfile"`'
15824 enable_shared_with_static_runtimes_GCJ=yes
15825 ;;
15826
15827 darwin* | rhapsody*)
15828 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15829 archive_cmds_need_lc_GCJ=no
15830 case "$host_os" in
15831 rhapsody* | darwin1.[012])
15832 allow_undefined_flag_GCJ='-undefined suppress'
15833 ;;
15834 *) # Darwin 1.3 on
15835 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15836 ;;
15837 esac
15838 # FIXME: Relying on posixy $() will cause problems for
15839 # cross-compilation, but unfortunately the echo tests do not
15840 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
15841 # `"' quotes if we put them in here... so don't!
15842 lt_int_apple_cc_single_mod=no
15843 output_verbose_link_cmd='echo'
15844 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15845 lt_int_apple_cc_single_mod=yes
15846 fi
15847 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15848 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15849 else
15850 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'
15851 fi
15852 module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15853 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15854 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15855 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}'
15856 else
15857 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}'
15858 fi
15859 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}'
15860 hardcode_direct_GCJ=no
15861 hardcode_automatic_GCJ=yes
15862 hardcode_shlibpath_var_GCJ=unsupported
15863 whole_archive_flag_spec_GCJ='-all_load $convenience'
15864 link_all_deplibs_GCJ=yes
15865 fi
15866 ;;
15867
15868 dgux*)
15869 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15870 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15871 hardcode_shlibpath_var_GCJ=no
15872 ;;
15873
15874 freebsd1*)
15875 ld_shlibs_GCJ=no
15876 ;;
15877
15878 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15879 # support. Future versions do this automatically, but an explicit c++rt0.o
15880 # does not break anything, and helps significantly (at the cost of a little
15881 # extra space).
15882 freebsd2.2*)
15883 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15884 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15885 hardcode_direct_GCJ=yes
15886 hardcode_shlibpath_var_GCJ=no
15887 ;;
15888
15889 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15890 freebsd2*)
15891 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15892 hardcode_direct_GCJ=yes
15893 hardcode_minus_L_GCJ=yes
15894 hardcode_shlibpath_var_GCJ=no
15895 ;;
15896
15897 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15898 freebsd*)
15899 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15900 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15901 hardcode_direct_GCJ=yes
15902 hardcode_shlibpath_var_GCJ=no
15903 ;;
15904
15905 hpux9*)
15906 if test "$GCC" = yes; then
15907 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'
15908 else
15909 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'
15910 fi
15911 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15912 hardcode_libdir_separator_GCJ=:
15913 hardcode_direct_GCJ=yes
15914
15915 # hardcode_minus_L: Not really in the search PATH,
15916 # but as the default location of the library.
15917 hardcode_minus_L_GCJ=yes
15918 export_dynamic_flag_spec_GCJ='${wl}-E'
15919 ;;
15920
15921 hpux10* | hpux11*)
15922 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15923 case "$host_cpu" in
15924 hppa*64*|ia64*)
15925 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15926 ;;
15927 *)
15928 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15929 ;;
15930 esac
15931 else
15932 case "$host_cpu" in
15933 hppa*64*|ia64*)
15934 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15935 ;;
15936 *)
15937 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15938 ;;
15939 esac
15940 fi
15941 if test "$with_gnu_ld" = no; then
15942 case "$host_cpu" in
15943 hppa*64*)
15944 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15945 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15946 hardcode_libdir_separator_GCJ=:
15947 hardcode_direct_GCJ=no
15948 hardcode_shlibpath_var_GCJ=no
15949 ;;
15950 ia64*)
15951 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15952 hardcode_direct_GCJ=no
15953 hardcode_shlibpath_var_GCJ=no
15954
15955 # hardcode_minus_L: Not really in the search PATH,
15956 # but as the default location of the library.
15957 hardcode_minus_L_GCJ=yes
15958 ;;
15959 *)
15960 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15961 hardcode_libdir_separator_GCJ=:
15962 hardcode_direct_GCJ=yes
15963 export_dynamic_flag_spec_GCJ='${wl}-E'
15964
15965 # hardcode_minus_L: Not really in the search PATH,
15966 # but as the default location of the library.
15967 hardcode_minus_L_GCJ=yes
15968 ;;
15969 esac
15970 fi
15971 ;;
15972
15973 irix5* | irix6* | nonstopux*)
15974 if test "$GCC" = yes; then
15975 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'
15976 else
15977 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'
15978 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15979 fi
15980 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15981 hardcode_libdir_separator_GCJ=:
15982 link_all_deplibs_GCJ=yes
15983 ;;
15984
15985 netbsd*)
15986 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15987 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15988 else
15989 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15990 fi
15991 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15992 hardcode_direct_GCJ=yes
15993 hardcode_shlibpath_var_GCJ=no
15994 ;;
15995
15996 newsos6)
15997 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15998 hardcode_direct_GCJ=yes
15999 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16000 hardcode_libdir_separator_GCJ=:
16001 hardcode_shlibpath_var_GCJ=no
16002 ;;
16003
16004 openbsd*)
16005 hardcode_direct_GCJ=yes
16006 hardcode_shlibpath_var_GCJ=no
16007 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16008 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16009 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16010 export_dynamic_flag_spec_GCJ='${wl}-E'
16011 else
16012 case $host_os in
16013 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16014 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16015 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16016 ;;
16017 *)
16018 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16019 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16020 ;;
16021 esac
16022 fi
16023 ;;
16024
16025 os2*)
16026 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16027 hardcode_minus_L_GCJ=yes
16028 allow_undefined_flag_GCJ=unsupported
16029 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'
16030 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16031 ;;
16032
16033 osf3*)
16034 if test "$GCC" = yes; then
16035 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16036 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'
16037 else
16038 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16039 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'
16040 fi
16041 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16042 hardcode_libdir_separator_GCJ=:
16043 ;;
16044
16045 osf4* | osf5*) # as osf3* with the addition of -msym flag
16046 if test "$GCC" = yes; then
16047 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16048 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16049 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16050 else
16051 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16052 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'
16053 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~
16054 $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'
16055
16056 # Both c and cxx compiler support -rpath directly
16057 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16058 fi
16059 hardcode_libdir_separator_GCJ=:
16060 ;;
16061
16062 sco3.2v5*)
16063 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16064 hardcode_shlibpath_var_GCJ=no
16065 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16066 runpath_var=LD_RUN_PATH
16067 hardcode_runpath_var=yes
16068 ;;
16069
16070 solaris*)
16071 no_undefined_flag_GCJ=' -z text'
16072 if test "$GCC" = yes; then
16073 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16074 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16075 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16076 else
16077 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16078 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16079 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16080 fi
16081 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16082 hardcode_shlibpath_var_GCJ=no
16083 case $host_os in
16084 solaris2.[0-5] | solaris2.[0-5].*) ;;
16085 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16086 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16087 esac
16088 link_all_deplibs_GCJ=yes
16089 ;;
16090
16091 sunos4*)
16092 if test "x$host_vendor" = xsequent; then
16093 # Use $CC to link under sequent, because it throws in some extra .o
16094 # files that make .init and .fini sections work.
16095 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16096 else
16097 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16098 fi
16099 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16100 hardcode_direct_GCJ=yes
16101 hardcode_minus_L_GCJ=yes
16102 hardcode_shlibpath_var_GCJ=no
16103 ;;
16104
16105 sysv4)
16106 case $host_vendor in
16107 sni)
16108 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16109 hardcode_direct_GCJ=yes # is this really true???
16110 ;;
16111 siemens)
16112 ## LD is ld it makes a PLAMLIB
16113 ## CC just makes a GrossModule.
16114 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16115 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16116 hardcode_direct_GCJ=no
16117 ;;
16118 motorola)
16119 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16120 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16121 ;;
16122 esac
16123 runpath_var='LD_RUN_PATH'
16124 hardcode_shlibpath_var_GCJ=no
16125 ;;
16126
16127 sysv4.3*)
16128 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16129 hardcode_shlibpath_var_GCJ=no
16130 export_dynamic_flag_spec_GCJ='-Bexport'
16131 ;;
16132
16133 sysv4*MP*)
16134 if test -d /usr/nec; then
16135 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16136 hardcode_shlibpath_var_GCJ=no
16137 runpath_var=LD_RUN_PATH
16138 hardcode_runpath_var=yes
16139 ld_shlibs_GCJ=yes
16140 fi
16141 ;;
16142
16143 sysv4.2uw2*)
16144 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16145 hardcode_direct_GCJ=yes
16146 hardcode_minus_L_GCJ=no
16147 hardcode_shlibpath_var_GCJ=no
16148 hardcode_runpath_var=yes
16149 runpath_var=LD_RUN_PATH
16150 ;;
16151
16152 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16153 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16154 if test "$GCC" = yes; then
16155 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16156 else
16157 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16158 fi
16159 runpath_var='LD_RUN_PATH'
16160 hardcode_shlibpath_var_GCJ=no
16161 ;;
16162
16163 sysv5*)
16164 no_undefined_flag_GCJ=' -z text'
16165 # $CC -shared without GNU ld will not create a library from C++
16166 # object files and a static libstdc++, better avoid it by now
16167 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16168 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16169 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16170 hardcode_libdir_flag_spec_GCJ=
16171 hardcode_shlibpath_var_GCJ=no
16172 runpath_var='LD_RUN_PATH'
16173 ;;
16174
16175 uts4*)
16176 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16177 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16178 hardcode_shlibpath_var_GCJ=no
16179 ;;
16180
16181 *)
16182 ld_shlibs_GCJ=no
16183 ;;
16184 esac
16185 fi
16186
16187echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16188echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16189test "$ld_shlibs_GCJ" = no && can_build_shared=no
16190
16191variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16192if test "$GCC" = yes; then
16193 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16194fi
16195
16196#
16197# Do we need to explicitly link libc?
16198#
16199case "x$archive_cmds_need_lc_GCJ" in
16200x|xyes)
16201 # Assume -lc should be added
16202 archive_cmds_need_lc_GCJ=yes
16203
16204 if test "$enable_shared" = yes && test "$GCC" = yes; then
16205 case $archive_cmds_GCJ in
16206 *'~'*)
16207 # FIXME: we may have to deal with multi-command sequences.
16208 ;;
16209 '$CC '*)
16210 # Test whether the compiler implicitly links with -lc since on some
16211 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16212 # to ld, don't add -lc before -lgcc.
16213 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16214echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16215 $rm conftest*
16216 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16217
16218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16219 (eval $ac_compile) 2>&5
16220 ac_status=$?
16221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16222 (exit $ac_status); } 2>conftest.err; then
16223 soname=conftest
16224 lib=conftest
16225 libobjs=conftest.$ac_objext
16226 deplibs=
16227 wl=$lt_prog_compiler_wl_GCJ
16228 compiler_flags=-v
16229 linker_flags=-v
16230 verstring=
16231 output_objdir=.
16232 libname=conftest
16233 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16234 allow_undefined_flag_GCJ=
16235 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16236 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16237 ac_status=$?
16238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16239 (exit $ac_status); }
16240 then
16241 archive_cmds_need_lc_GCJ=no
16242 else
16243 archive_cmds_need_lc_GCJ=yes
16244 fi
16245 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16246 else
16247 cat conftest.err 1>&5
16248 fi
16249 $rm conftest*
16250 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16251echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16252 ;;
16253 esac
16254 fi
16255 ;;
16256esac
16257
16258echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16259echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16260hardcode_action_GCJ=
16261if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16262 test -n "$runpath_var GCJ" || \
16263 test "X$hardcode_automatic_GCJ"="Xyes" ; then
16264
16265 # We can hardcode non-existant directories.
16266 if test "$hardcode_direct_GCJ" != no &&
16267 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16268 # have to relink, otherwise we might link with an installed library
16269 # when we should be linking with a yet-to-be-installed one
16270 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16271 test "$hardcode_minus_L_GCJ" != no; then
16272 # Linking always hardcodes the temporary library directory.
16273 hardcode_action_GCJ=relink
16274 else
16275 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16276 hardcode_action_GCJ=immediate
16277 fi
16278else
16279 # We cannot hardcode anything, or else we can only hardcode existing
16280 # directories.
16281 hardcode_action_GCJ=unsupported
16282fi
16283echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16284echo "${ECHO_T}$hardcode_action_GCJ" >&6
16285
16286if test "$hardcode_action_GCJ" = relink; then
16287 # Fast installation is not supported
16288 enable_fast_install=no
16289elif test "$shlibpath_overrides_runpath" = yes ||
16290 test "$enable_shared" = no; then
16291 # Fast installation is not necessary
16292 enable_fast_install=needless
16293fi
16294
16295striplib=
16296old_striplib=
16297echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16298echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16299if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16300 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16301 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16302 echo "$as_me:$LINENO: result: yes" >&5
16303echo "${ECHO_T}yes" >&6
16304else
16305# FIXME - insert some real tests, host_os isn't really good enough
16306 case $host_os in
16307 darwin*)
16308 if test -n "$STRIP" ; then
16309 striplib="$STRIP -x"
16310 echo "$as_me:$LINENO: result: yes" >&5
16311echo "${ECHO_T}yes" >&6
16312 else
16313 echo "$as_me:$LINENO: result: no" >&5
16314echo "${ECHO_T}no" >&6
16315fi
16316 ;;
16317 *)
16318 echo "$as_me:$LINENO: result: no" >&5
16319echo "${ECHO_T}no" >&6
16320 ;;
16321 esac
16322fi
16323
16324echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16325echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16326library_names_spec=
16327libname_spec='lib$name'
16328soname_spec=
16329shrext=".so"
16330postinstall_cmds=
16331postuninstall_cmds=
16332finish_cmds=
16333finish_eval=
16334shlibpath_var=
16335shlibpath_overrides_runpath=unknown
16336version_type=none
16337dynamic_linker="$host_os ld.so"
16338sys_lib_dlsearch_path_spec="/lib /usr/lib"
16339if test "$GCC" = yes; then
16340 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16341 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16342 # if the path contains ";" then we assume it to be the separator
16343 # otherwise default to the standard path separator (i.e. ":") - it is
16344 # assumed that no part of a normal pathname contains ";" but that should
16345 # okay in the real world where ";" in dirpaths is itself problematic.
16346 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16347 else
16348 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16349 fi
16350else
16351 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16352fi
16353need_lib_prefix=unknown
16354hardcode_into_libs=no
16355
16356# when you set need_version to no, make sure it does not cause -set_version
16357# flags to be left without arguments
16358need_version=unknown
16359
16360case $host_os in
16361aix3*)
16362 version_type=linux
16363 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16364 shlibpath_var=LIBPATH
16365
16366 # AIX 3 has no versioning support, so we append a major version to the name.
16367 soname_spec='${libname}${release}${shared_ext}$major'
16368 ;;
16369
16370aix4* | aix5*)
16371 version_type=linux
16372 need_lib_prefix=no
16373 need_version=no
16374 hardcode_into_libs=yes
16375 if test "$host_cpu" = ia64; then
16376 # AIX 5 supports IA64
16377 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16378 shlibpath_var=LD_LIBRARY_PATH
16379 else
16380 # With GCC up to 2.95.x, collect2 would create an import file
16381 # for dependence libraries. The import file would start with
16382 # the line `#! .'. This would cause the generated library to
16383 # depend on `.', always an invalid library. This was fixed in
16384 # development snapshots of GCC prior to 3.0.
16385 case $host_os in
16386 aix4 | aix4.[01] | aix4.[01].*)
16387 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16388 echo ' yes '
16389 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16390 :
16391 else
16392 can_build_shared=no
16393 fi
16394 ;;
16395 esac
16396 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16397 # soname into executable. Probably we can add versioning support to
16398 # collect2, so additional links can be useful in future.
16399 if test "$aix_use_runtimelinking" = yes; then
16400 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16401 # instead of lib<name>.a to let people know that these are not
16402 # typical AIX shared libraries.
16403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16404 else
16405 # We preserve .a as extension for shared libraries through AIX4.2
16406 # and later when we are not doing run time linking.
16407 library_names_spec='${libname}${release}.a $libname.a'
16408 soname_spec='${libname}${release}${shared_ext}$major'
16409 fi
16410 shlibpath_var=LIBPATH
16411 fi
16412 ;;
16413
16414amigaos*)
16415 library_names_spec='$libname.ixlibrary $libname.a'
16416 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16417 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'
16418 ;;
16419
16420beos*)
16421 library_names_spec='${libname}${shared_ext}'
16422 dynamic_linker="$host_os ld.so"
16423 shlibpath_var=LIBRARY_PATH
16424 ;;
16425
16426bsdi4*)
16427 version_type=linux
16428 need_version=no
16429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16430 soname_spec='${libname}${release}${shared_ext}$major'
16431 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16432 shlibpath_var=LD_LIBRARY_PATH
16433 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16434 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16435 # the default ld.so.conf also contains /usr/contrib/lib and
16436 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16437 # libtool to hard-code these into programs
16438 ;;
16439
16440cygwin* | mingw* | pw32*)
16441 version_type=windows
16442 shrext=".dll"
16443 need_version=no
16444 need_lib_prefix=no
16445
16446 case $GCC,$host_os in
16447 yes,cygwin* | yes,mingw* | yes,pw32*)
16448 library_names_spec='$libname.dll.a'
16449 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16450 postinstall_cmds='base_file=`basename \${file}`~
16451 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16452 dldir=$destdir/`dirname \$dlpath`~
16453 test -d \$dldir || mkdir -p \$dldir~
16454 $install_prog $dir/$dlname \$dldir/$dlname'
16455 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16456 dlpath=$dir/\$dldll~
16457 $rm \$dlpath'
16458 shlibpath_overrides_runpath=yes
16459
16460 case $host_os in
16461 cygwin*)
16462 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16463 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16464 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16465 ;;
16466 mingw*)
16467 # MinGW DLLs use traditional 'lib' prefix
16468 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16469 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16470 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16471 # It is most probably a Windows format PATH printed by
16472 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16473 # path with ; separators, and with drive letters. We can handle the
16474 # drive letters (cygwin fileutils understands them), so leave them,
16475 # especially as we might pass files found there to a mingw objdump,
16476 # which wouldn't understand a cygwinified path. Ahh.
16477 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16478 else
16479 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16480 fi
16481 ;;
16482 pw32*)
16483 # pw32 DLLs use 'pw' prefix rather than 'lib'
16484 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16485 ;;
16486 esac
16487 ;;
16488
16489 *)
16490 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16491 ;;
16492 esac
16493 dynamic_linker='Win32 ld.exe'
16494 # FIXME: first we should search . and the directory the executable is in
16495 shlibpath_var=PATH
16496 ;;
16497
16498darwin* | rhapsody*)
16499 dynamic_linker="$host_os dyld"
16500 version_type=darwin
16501 need_lib_prefix=no
16502 need_version=no
16503 # FIXME: Relying on posixy $() will cause problems for
16504 # cross-compilation, but unfortunately the echo tests do not
16505 # yet detect zsh echo's removal of \ escapes.
16506 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16507 soname_spec='${libname}${release}${major}$shared_ext'
16508 shlibpath_overrides_runpath=yes
16509 shlibpath_var=DYLD_LIBRARY_PATH
16510 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16511 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16512 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16513 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"`
16514 fi
16515 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16516 ;;
16517
16518dgux*)
16519 version_type=linux
16520 need_lib_prefix=no
16521 need_version=no
16522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16523 soname_spec='${libname}${release}${shared_ext}$major'
16524 shlibpath_var=LD_LIBRARY_PATH
16525 ;;
16526
16527freebsd1*)
16528 dynamic_linker=no
16529 ;;
16530
16531freebsd*)
16532 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16533 version_type=freebsd-$objformat
16534 case $version_type in
16535 freebsd-elf*)
16536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16537 need_version=no
16538 need_lib_prefix=no
16539 ;;
16540 freebsd-*)
16541 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16542 need_version=yes
16543 ;;
16544 esac
16545 shlibpath_var=LD_LIBRARY_PATH
16546 case $host_os in
16547 freebsd2*)
16548 shlibpath_overrides_runpath=yes
16549 ;;
16550 freebsd3.01* | freebsdelf3.01*)
16551 shlibpath_overrides_runpath=yes
16552 hardcode_into_libs=yes
16553 ;;
16554 *) # from 3.2 on
16555 shlibpath_overrides_runpath=no
16556 hardcode_into_libs=yes
16557 ;;
16558 esac
16559 ;;
16560
16561gnu*)
16562 version_type=linux
16563 need_lib_prefix=no
16564 need_version=no
16565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16566 soname_spec='${libname}${release}${shared_ext}$major'
16567 shlibpath_var=LD_LIBRARY_PATH
16568 hardcode_into_libs=yes
16569 ;;
16570
16571hpux9* | hpux10* | hpux11*)
16572 # Give a soname corresponding to the major version so that dld.sl refuses to
16573 # link against other versions.
16574 version_type=sunos
16575 need_lib_prefix=no
16576 need_version=no
16577 case "$host_cpu" in
16578 ia64*)
16579 shrext='.so'
16580 hardcode_into_libs=yes
16581 dynamic_linker="$host_os dld.so"
16582 shlibpath_var=LD_LIBRARY_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 if test "X$HPUX_IA64_MODE" = X32; then
16587 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16588 else
16589 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16590 fi
16591 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16592 ;;
16593 hppa*64*)
16594 shrext='.sl'
16595 hardcode_into_libs=yes
16596 dynamic_linker="$host_os dld.sl"
16597 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16598 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16600 soname_spec='${libname}${release}${shared_ext}$major'
16601 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16602 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16603 ;;
16604 *)
16605 shrext='.sl'
16606 dynamic_linker="$host_os dld.sl"
16607 shlibpath_var=SHLIB_PATH
16608 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16610 soname_spec='${libname}${release}${shared_ext}$major'
16611 ;;
16612 esac
16613 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16614 postinstall_cmds='chmod 555 $lib'
16615 ;;
16616
16617irix5* | irix6* | nonstopux*)
16618 case $host_os in
16619 nonstopux*) version_type=nonstopux ;;
16620 *)
16621 if test "$lt_cv_prog_gnu_ld" = yes; then
16622 version_type=linux
16623 else
16624 version_type=irix
16625 fi ;;
16626 esac
16627 need_lib_prefix=no
16628 need_version=no
16629 soname_spec='${libname}${release}${shared_ext}$major'
16630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16631 case $host_os in
16632 irix5* | nonstopux*)
16633 libsuff= shlibsuff=
16634 ;;
16635 *)
16636 case $LD in # libtool.m4 will add one of these switches to LD
16637 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16638 libsuff= shlibsuff= libmagic=32-bit;;
16639 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16640 libsuff=32 shlibsuff=N32 libmagic=N32;;
16641 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16642 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16643 *) libsuff= shlibsuff= libmagic=never-match;;
16644 esac
16645 ;;
16646 esac
16647 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16648 shlibpath_overrides_runpath=no
16649 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16650 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16651 hardcode_into_libs=yes
16652 ;;
16653
16654# No shared lib support for Linux oldld, aout, or coff.
16655linux*oldld* | linux*aout* | linux*coff*)
16656 dynamic_linker=no
16657 ;;
16658
16659# This must be Linux ELF.
16660linux*)
16661 version_type=linux
16662 need_lib_prefix=no
16663 need_version=no
16664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16665 soname_spec='${libname}${release}${shared_ext}$major'
16666 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16667 shlibpath_var=LD_LIBRARY_PATH
16668 shlibpath_overrides_runpath=no
16669 # This implies no fast_install, which is unacceptable.
16670 # Some rework will be needed to allow for fast_install
16671 # before this can be enabled.
16672 hardcode_into_libs=yes
16673
16674 # We used to test for /lib/ld.so.1 and disable shared libraries on
16675 # powerpc, because MkLinux only supported shared libraries with the
16676 # GNU dynamic linker. Since this was broken with cross compilers,
16677 # most powerpc-linux boxes support dynamic linking these days and
16678 # people can always --disable-shared, the test was removed, and we
16679 # assume the GNU/Linux dynamic linker is in use.
16680 dynamic_linker='GNU/Linux ld.so'
16681 ;;
16682
16683netbsd*)
16684 version_type=sunos
16685 need_lib_prefix=no
16686 need_version=no
16687 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16689 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16690 dynamic_linker='NetBSD (a.out) ld.so'
16691 else
16692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16693 soname_spec='${libname}${release}${shared_ext}$major'
16694 dynamic_linker='NetBSD ld.elf_so'
16695 fi
16696 shlibpath_var=LD_LIBRARY_PATH
16697 shlibpath_overrides_runpath=yes
16698 hardcode_into_libs=yes
16699 ;;
16700
16701newsos6)
16702 version_type=linux
16703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16704 shlibpath_var=LD_LIBRARY_PATH
16705 shlibpath_overrides_runpath=yes
16706 ;;
16707
16708nto-qnx)
16709 version_type=linux
16710 need_lib_prefix=no
16711 need_version=no
16712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16713 soname_spec='${libname}${release}${shared_ext}$major'
16714 shlibpath_var=LD_LIBRARY_PATH
16715 shlibpath_overrides_runpath=yes
16716 ;;
16717
16718openbsd*)
16719 version_type=sunos
16720 need_lib_prefix=no
16721 need_version=no
16722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16723 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16724 shlibpath_var=LD_LIBRARY_PATH
16725 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16726 case $host_os in
16727 openbsd2.[89] | openbsd2.[89].*)
16728 shlibpath_overrides_runpath=no
16729 ;;
16730 *)
16731 shlibpath_overrides_runpath=yes
16732 ;;
16733 esac
16734 else
16735 shlibpath_overrides_runpath=yes
16736 fi
16737 ;;
16738
16739os2*)
16740 libname_spec='$name'
16741 shrext=".dll"
16742 need_lib_prefix=no
16743 library_names_spec='$libname${shared_ext} $libname.a'
16744 dynamic_linker='OS/2 ld.exe'
16745 shlibpath_var=LIBPATH
16746 ;;
16747
16748osf3* | osf4* | osf5*)
16749 version_type=osf
16750 need_lib_prefix=no
16751 need_version=no
16752 soname_spec='${libname}${release}${shared_ext}$major'
16753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16754 shlibpath_var=LD_LIBRARY_PATH
16755 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16756 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16757 ;;
16758
16759sco3.2v5*)
16760 version_type=osf
16761 soname_spec='${libname}${release}${shared_ext}$major'
16762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16763 shlibpath_var=LD_LIBRARY_PATH
16764 ;;
16765
16766solaris*)
16767 version_type=linux
16768 need_lib_prefix=no
16769 need_version=no
16770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16771 soname_spec='${libname}${release}${shared_ext}$major'
16772 shlibpath_var=LD_LIBRARY_PATH
16773 shlibpath_overrides_runpath=yes
16774 hardcode_into_libs=yes
16775 # ldd complains unless libraries are executable
16776 postinstall_cmds='chmod +x $lib'
16777 ;;
16778
16779sunos4*)
16780 version_type=sunos
16781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16782 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16783 shlibpath_var=LD_LIBRARY_PATH
16784 shlibpath_overrides_runpath=yes
16785 if test "$with_gnu_ld" = yes; then
16786 need_lib_prefix=no
16787 fi
16788 need_version=yes
16789 ;;
16790
16791sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16792 version_type=linux
16793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16794 soname_spec='${libname}${release}${shared_ext}$major'
16795 shlibpath_var=LD_LIBRARY_PATH
16796 case $host_vendor in
16797 sni)
16798 shlibpath_overrides_runpath=no
16799 need_lib_prefix=no
16800 export_dynamic_flag_spec='${wl}-Blargedynsym'
16801 runpath_var=LD_RUN_PATH
16802 ;;
16803 siemens)
16804 need_lib_prefix=no
16805 ;;
16806 motorola)
16807 need_lib_prefix=no
16808 need_version=no
16809 shlibpath_overrides_runpath=no
16810 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16811 ;;
16812 esac
16813 ;;
16814
16815sysv4*MP*)
16816 if test -d /usr/nec ;then
16817 version_type=linux
16818 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16819 soname_spec='$libname${shared_ext}.$major'
16820 shlibpath_var=LD_LIBRARY_PATH
16821 fi
16822 ;;
16823
16824uts4*)
16825 version_type=linux
16826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16827 soname_spec='${libname}${release}${shared_ext}$major'
16828 shlibpath_var=LD_LIBRARY_PATH
16829 ;;
16830
16831*)
16832 dynamic_linker=no
16833 ;;
16834esac
16835echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16836echo "${ECHO_T}$dynamic_linker" >&6
16837test "$dynamic_linker" = no && can_build_shared=no
16838
16839if test "x$enable_dlopen" != xyes; then
16840 enable_dlopen=unknown
16841 enable_dlopen_self=unknown
16842 enable_dlopen_self_static=unknown
16843else
16844 lt_cv_dlopen=no
16845 lt_cv_dlopen_libs=
16846
16847 case $host_os in
16848 beos*)
16849 lt_cv_dlopen="load_add_on"
16850 lt_cv_dlopen_libs=
16851 lt_cv_dlopen_self=yes
16852 ;;
16853
16854 mingw* | pw32*)
16855 lt_cv_dlopen="LoadLibrary"
16856 lt_cv_dlopen_libs=
16857 ;;
16858
16859 cygwin*)
16860 lt_cv_dlopen="dlopen"
16861 lt_cv_dlopen_libs=
16862 ;;
16863
16864 darwin*)
16865 # if libdl is installed we need to link against it
16866 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16867echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16868if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16869 echo $ECHO_N "(cached) $ECHO_C" >&6
16870else
16871 ac_check_lib_save_LIBS=$LIBS
16872LIBS="-ldl $LIBS"
16873cat >conftest.$ac_ext <<_ACEOF
16874#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016875/* confdefs.h. */
16876_ACEOF
16877cat confdefs.h >>conftest.$ac_ext
16878cat >>conftest.$ac_ext <<_ACEOF
16879/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016880
16881/* Override any gcc2 internal prototype to avoid an error. */
16882#ifdef __cplusplus
16883extern "C"
16884#endif
16885/* We use char because int might match the return type of a gcc2
16886 builtin and then its argument prototype would still apply. */
16887char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016888int
16889main ()
16890{
16891dlopen ();
16892 ;
16893 return 0;
16894}
16895_ACEOF
16896rm -f conftest.$ac_objext conftest$ac_exeext
16897if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16898 (eval $ac_link) 2>&5
16899 ac_status=$?
16900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16901 (exit $ac_status); } &&
16902 { ac_try='test -s conftest$ac_exeext'
16903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16904 (eval $ac_try) 2>&5
16905 ac_status=$?
16906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16907 (exit $ac_status); }; }; then
16908 ac_cv_lib_dl_dlopen=yes
16909else
16910 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016911sed 's/^/| /' conftest.$ac_ext >&5
16912
John Criswell47fdd832003-07-14 16:52:07 +000016913ac_cv_lib_dl_dlopen=no
16914fi
16915rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16916LIBS=$ac_check_lib_save_LIBS
16917fi
16918echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16919echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16920if test $ac_cv_lib_dl_dlopen = yes; then
16921 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16922else
16923
16924 lt_cv_dlopen="dyld"
16925 lt_cv_dlopen_libs=
16926 lt_cv_dlopen_self=yes
16927
16928fi
16929
16930 ;;
16931
16932 *)
16933 echo "$as_me:$LINENO: checking for shl_load" >&5
16934echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16935if test "${ac_cv_func_shl_load+set}" = set; then
16936 echo $ECHO_N "(cached) $ECHO_C" >&6
16937else
16938 cat >conftest.$ac_ext <<_ACEOF
16939#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016940/* confdefs.h. */
16941_ACEOF
16942cat confdefs.h >>conftest.$ac_ext
16943cat >>conftest.$ac_ext <<_ACEOF
16944/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016945/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016946 which can conflict with char shl_load (); below.
16947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16948 <limits.h> exists even on freestanding compilers. */
16949#ifdef __STDC__
16950# include <limits.h>
16951#else
16952# include <assert.h>
16953#endif
John Criswell47fdd832003-07-14 16:52:07 +000016954/* Override any gcc2 internal prototype to avoid an error. */
16955#ifdef __cplusplus
16956extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000016957{
John Criswell47fdd832003-07-14 16:52:07 +000016958#endif
16959/* We use char because int might match the return type of a gcc2
16960 builtin and then its argument prototype would still apply. */
16961char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000016962/* The GNU C library defines this for functions which it implements
16963 to always fail with ENOSYS. Some functions are actually named
16964 something starting with __ and the normal name is an alias. */
16965#if defined (__stub_shl_load) || defined (__stub___shl_load)
16966choke me
16967#else
John Criswell0c38eaf2003-09-10 15:17:25 +000016968char (*f) () = shl_load;
16969#endif
16970#ifdef __cplusplus
16971}
John Criswell47fdd832003-07-14 16:52:07 +000016972#endif
16973
John Criswell0c38eaf2003-09-10 15:17:25 +000016974int
16975main ()
16976{
16977return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000016978 ;
16979 return 0;
16980}
16981_ACEOF
16982rm -f conftest.$ac_objext conftest$ac_exeext
16983if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16984 (eval $ac_link) 2>&5
16985 ac_status=$?
16986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16987 (exit $ac_status); } &&
16988 { ac_try='test -s conftest$ac_exeext'
16989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16990 (eval $ac_try) 2>&5
16991 ac_status=$?
16992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993 (exit $ac_status); }; }; then
16994 ac_cv_func_shl_load=yes
16995else
16996 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016997sed 's/^/| /' conftest.$ac_ext >&5
16998
John Criswell47fdd832003-07-14 16:52:07 +000016999ac_cv_func_shl_load=no
17000fi
17001rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17002fi
17003echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17004echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17005if test $ac_cv_func_shl_load = yes; then
17006 lt_cv_dlopen="shl_load"
17007else
17008 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17009echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17010if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17011 echo $ECHO_N "(cached) $ECHO_C" >&6
17012else
17013 ac_check_lib_save_LIBS=$LIBS
17014LIBS="-ldld $LIBS"
17015cat >conftest.$ac_ext <<_ACEOF
17016#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017017/* confdefs.h. */
17018_ACEOF
17019cat confdefs.h >>conftest.$ac_ext
17020cat >>conftest.$ac_ext <<_ACEOF
17021/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017022
17023/* Override any gcc2 internal prototype to avoid an error. */
17024#ifdef __cplusplus
17025extern "C"
17026#endif
17027/* We use char because int might match the return type of a gcc2
17028 builtin and then its argument prototype would still apply. */
17029char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017030int
17031main ()
17032{
17033shl_load ();
17034 ;
17035 return 0;
17036}
17037_ACEOF
17038rm -f conftest.$ac_objext conftest$ac_exeext
17039if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17040 (eval $ac_link) 2>&5
17041 ac_status=$?
17042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17043 (exit $ac_status); } &&
17044 { ac_try='test -s conftest$ac_exeext'
17045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17046 (eval $ac_try) 2>&5
17047 ac_status=$?
17048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17049 (exit $ac_status); }; }; then
17050 ac_cv_lib_dld_shl_load=yes
17051else
17052 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017053sed 's/^/| /' conftest.$ac_ext >&5
17054
John Criswell47fdd832003-07-14 16:52:07 +000017055ac_cv_lib_dld_shl_load=no
17056fi
17057rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17058LIBS=$ac_check_lib_save_LIBS
17059fi
17060echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17061echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17062if test $ac_cv_lib_dld_shl_load = yes; then
17063 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17064else
17065 echo "$as_me:$LINENO: checking for dlopen" >&5
17066echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17067if test "${ac_cv_func_dlopen+set}" = set; then
17068 echo $ECHO_N "(cached) $ECHO_C" >&6
17069else
17070 cat >conftest.$ac_ext <<_ACEOF
17071#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017072/* confdefs.h. */
17073_ACEOF
17074cat confdefs.h >>conftest.$ac_ext
17075cat >>conftest.$ac_ext <<_ACEOF
17076/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017077/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017078 which can conflict with char dlopen (); below.
17079 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17080 <limits.h> exists even on freestanding compilers. */
17081#ifdef __STDC__
17082# include <limits.h>
17083#else
17084# include <assert.h>
17085#endif
John Criswell47fdd832003-07-14 16:52:07 +000017086/* Override any gcc2 internal prototype to avoid an error. */
17087#ifdef __cplusplus
17088extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017089{
John Criswell47fdd832003-07-14 16:52:07 +000017090#endif
17091/* We use char because int might match the return type of a gcc2
17092 builtin and then its argument prototype would still apply. */
17093char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017094/* The GNU C library defines this for functions which it implements
17095 to always fail with ENOSYS. Some functions are actually named
17096 something starting with __ and the normal name is an alias. */
17097#if defined (__stub_dlopen) || defined (__stub___dlopen)
17098choke me
17099#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017100char (*f) () = dlopen;
17101#endif
17102#ifdef __cplusplus
17103}
John Criswell47fdd832003-07-14 16:52:07 +000017104#endif
17105
John Criswell0c38eaf2003-09-10 15:17:25 +000017106int
17107main ()
17108{
17109return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000017110 ;
17111 return 0;
17112}
17113_ACEOF
17114rm -f conftest.$ac_objext conftest$ac_exeext
17115if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17116 (eval $ac_link) 2>&5
17117 ac_status=$?
17118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17119 (exit $ac_status); } &&
17120 { ac_try='test -s conftest$ac_exeext'
17121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17122 (eval $ac_try) 2>&5
17123 ac_status=$?
17124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17125 (exit $ac_status); }; }; then
17126 ac_cv_func_dlopen=yes
17127else
17128 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017129sed 's/^/| /' conftest.$ac_ext >&5
17130
John Criswell47fdd832003-07-14 16:52:07 +000017131ac_cv_func_dlopen=no
17132fi
17133rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17134fi
17135echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17136echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17137if test $ac_cv_func_dlopen = yes; then
17138 lt_cv_dlopen="dlopen"
17139else
17140 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17141echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17142if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17143 echo $ECHO_N "(cached) $ECHO_C" >&6
17144else
17145 ac_check_lib_save_LIBS=$LIBS
17146LIBS="-ldl $LIBS"
17147cat >conftest.$ac_ext <<_ACEOF
17148#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017149/* confdefs.h. */
17150_ACEOF
17151cat confdefs.h >>conftest.$ac_ext
17152cat >>conftest.$ac_ext <<_ACEOF
17153/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017154
17155/* Override any gcc2 internal prototype to avoid an error. */
17156#ifdef __cplusplus
17157extern "C"
17158#endif
17159/* We use char because int might match the return type of a gcc2
17160 builtin and then its argument prototype would still apply. */
17161char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017162int
17163main ()
17164{
17165dlopen ();
17166 ;
17167 return 0;
17168}
17169_ACEOF
17170rm -f conftest.$ac_objext conftest$ac_exeext
17171if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17172 (eval $ac_link) 2>&5
17173 ac_status=$?
17174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17175 (exit $ac_status); } &&
17176 { ac_try='test -s conftest$ac_exeext'
17177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17178 (eval $ac_try) 2>&5
17179 ac_status=$?
17180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17181 (exit $ac_status); }; }; then
17182 ac_cv_lib_dl_dlopen=yes
17183else
17184 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017185sed 's/^/| /' conftest.$ac_ext >&5
17186
John Criswell47fdd832003-07-14 16:52:07 +000017187ac_cv_lib_dl_dlopen=no
17188fi
17189rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17190LIBS=$ac_check_lib_save_LIBS
17191fi
17192echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17193echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17194if test $ac_cv_lib_dl_dlopen = yes; then
17195 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17196else
17197 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17198echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17199if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17200 echo $ECHO_N "(cached) $ECHO_C" >&6
17201else
17202 ac_check_lib_save_LIBS=$LIBS
17203LIBS="-lsvld $LIBS"
17204cat >conftest.$ac_ext <<_ACEOF
17205#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017206/* confdefs.h. */
17207_ACEOF
17208cat confdefs.h >>conftest.$ac_ext
17209cat >>conftest.$ac_ext <<_ACEOF
17210/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017211
17212/* Override any gcc2 internal prototype to avoid an error. */
17213#ifdef __cplusplus
17214extern "C"
17215#endif
17216/* We use char because int might match the return type of a gcc2
17217 builtin and then its argument prototype would still apply. */
17218char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017219int
17220main ()
17221{
17222dlopen ();
17223 ;
17224 return 0;
17225}
17226_ACEOF
17227rm -f conftest.$ac_objext conftest$ac_exeext
17228if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17229 (eval $ac_link) 2>&5
17230 ac_status=$?
17231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17232 (exit $ac_status); } &&
17233 { ac_try='test -s conftest$ac_exeext'
17234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17235 (eval $ac_try) 2>&5
17236 ac_status=$?
17237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17238 (exit $ac_status); }; }; then
17239 ac_cv_lib_svld_dlopen=yes
17240else
17241 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017242sed 's/^/| /' conftest.$ac_ext >&5
17243
John Criswell47fdd832003-07-14 16:52:07 +000017244ac_cv_lib_svld_dlopen=no
17245fi
17246rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17247LIBS=$ac_check_lib_save_LIBS
17248fi
17249echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17250echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17251if test $ac_cv_lib_svld_dlopen = yes; then
17252 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17253else
17254 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17255echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17256if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17257 echo $ECHO_N "(cached) $ECHO_C" >&6
17258else
17259 ac_check_lib_save_LIBS=$LIBS
17260LIBS="-ldld $LIBS"
17261cat >conftest.$ac_ext <<_ACEOF
17262#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017263/* confdefs.h. */
17264_ACEOF
17265cat confdefs.h >>conftest.$ac_ext
17266cat >>conftest.$ac_ext <<_ACEOF
17267/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017268
17269/* Override any gcc2 internal prototype to avoid an error. */
17270#ifdef __cplusplus
17271extern "C"
17272#endif
17273/* We use char because int might match the return type of a gcc2
17274 builtin and then its argument prototype would still apply. */
17275char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000017276int
17277main ()
17278{
17279dld_link ();
17280 ;
17281 return 0;
17282}
17283_ACEOF
17284rm -f conftest.$ac_objext conftest$ac_exeext
17285if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17286 (eval $ac_link) 2>&5
17287 ac_status=$?
17288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17289 (exit $ac_status); } &&
17290 { ac_try='test -s conftest$ac_exeext'
17291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17292 (eval $ac_try) 2>&5
17293 ac_status=$?
17294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17295 (exit $ac_status); }; }; then
17296 ac_cv_lib_dld_dld_link=yes
17297else
17298 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017299sed 's/^/| /' conftest.$ac_ext >&5
17300
John Criswell47fdd832003-07-14 16:52:07 +000017301ac_cv_lib_dld_dld_link=no
17302fi
17303rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17304LIBS=$ac_check_lib_save_LIBS
17305fi
17306echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17307echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17308if test $ac_cv_lib_dld_dld_link = yes; then
17309 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17310fi
17311
17312
17313fi
17314
17315
17316fi
17317
17318
17319fi
17320
17321
17322fi
17323
17324
17325fi
17326
17327 ;;
17328 esac
17329
17330 if test "x$lt_cv_dlopen" != xno; then
17331 enable_dlopen=yes
17332 else
17333 enable_dlopen=no
17334 fi
17335
17336 case $lt_cv_dlopen in
17337 dlopen)
17338 save_CPPFLAGS="$CPPFLAGS"
17339 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17340
17341 save_LDFLAGS="$LDFLAGS"
17342 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17343
17344 save_LIBS="$LIBS"
17345 LIBS="$lt_cv_dlopen_libs $LIBS"
17346
17347 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17348echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17349if test "${lt_cv_dlopen_self+set}" = set; then
17350 echo $ECHO_N "(cached) $ECHO_C" >&6
17351else
17352 if test "$cross_compiling" = yes; then :
17353 lt_cv_dlopen_self=cross
17354else
17355 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17356 lt_status=$lt_dlunknown
17357 cat > conftest.$ac_ext <<EOF
John Criswell4e079782003-09-29 14:52:28 +000017358#line 17358 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017359#include "confdefs.h"
17360
17361#if HAVE_DLFCN_H
17362#include <dlfcn.h>
17363#endif
17364
17365#include <stdio.h>
17366
17367#ifdef RTLD_GLOBAL
17368# define LT_DLGLOBAL RTLD_GLOBAL
17369#else
17370# ifdef DL_GLOBAL
17371# define LT_DLGLOBAL DL_GLOBAL
17372# else
17373# define LT_DLGLOBAL 0
17374# endif
17375#endif
17376
17377/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17378 find out it does not work in some platform. */
17379#ifndef LT_DLLAZY_OR_NOW
17380# ifdef RTLD_LAZY
17381# define LT_DLLAZY_OR_NOW RTLD_LAZY
17382# else
17383# ifdef DL_LAZY
17384# define LT_DLLAZY_OR_NOW DL_LAZY
17385# else
17386# ifdef RTLD_NOW
17387# define LT_DLLAZY_OR_NOW RTLD_NOW
17388# else
17389# ifdef DL_NOW
17390# define LT_DLLAZY_OR_NOW DL_NOW
17391# else
17392# define LT_DLLAZY_OR_NOW 0
17393# endif
17394# endif
17395# endif
17396# endif
17397#endif
17398
17399#ifdef __cplusplus
17400extern "C" void exit (int);
17401#endif
17402
17403void fnord() { int i=42;}
17404int main ()
17405{
17406 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17407 int status = $lt_dlunknown;
17408
17409 if (self)
17410 {
17411 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17412 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17413 /* dlclose (self); */
17414 }
17415
17416 exit (status);
17417}
17418EOF
17419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17420 (eval $ac_link) 2>&5
17421 ac_status=$?
17422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17423 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17424 (./conftest; exit; ) 2>/dev/null
17425 lt_status=$?
17426 case x$lt_status in
17427 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17428 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17429 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17430 esac
17431 else :
17432 # compilation failed
17433 lt_cv_dlopen_self=no
17434 fi
17435fi
17436rm -fr conftest*
17437
17438
17439fi
17440echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17441echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17442
17443 if test "x$lt_cv_dlopen_self" = xyes; then
17444 LDFLAGS="$LDFLAGS $link_static_flag"
17445 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17446echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17447if test "${lt_cv_dlopen_self_static+set}" = set; then
17448 echo $ECHO_N "(cached) $ECHO_C" >&6
17449else
17450 if test "$cross_compiling" = yes; then :
17451 lt_cv_dlopen_self_static=cross
17452else
17453 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17454 lt_status=$lt_dlunknown
17455 cat > conftest.$ac_ext <<EOF
John Criswell4e079782003-09-29 14:52:28 +000017456#line 17456 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017457#include "confdefs.h"
17458
17459#if HAVE_DLFCN_H
17460#include <dlfcn.h>
17461#endif
17462
17463#include <stdio.h>
17464
17465#ifdef RTLD_GLOBAL
17466# define LT_DLGLOBAL RTLD_GLOBAL
17467#else
17468# ifdef DL_GLOBAL
17469# define LT_DLGLOBAL DL_GLOBAL
17470# else
17471# define LT_DLGLOBAL 0
17472# endif
17473#endif
17474
17475/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17476 find out it does not work in some platform. */
17477#ifndef LT_DLLAZY_OR_NOW
17478# ifdef RTLD_LAZY
17479# define LT_DLLAZY_OR_NOW RTLD_LAZY
17480# else
17481# ifdef DL_LAZY
17482# define LT_DLLAZY_OR_NOW DL_LAZY
17483# else
17484# ifdef RTLD_NOW
17485# define LT_DLLAZY_OR_NOW RTLD_NOW
17486# else
17487# ifdef DL_NOW
17488# define LT_DLLAZY_OR_NOW DL_NOW
17489# else
17490# define LT_DLLAZY_OR_NOW 0
17491# endif
17492# endif
17493# endif
17494# endif
17495#endif
17496
17497#ifdef __cplusplus
17498extern "C" void exit (int);
17499#endif
17500
17501void fnord() { int i=42;}
17502int main ()
17503{
17504 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17505 int status = $lt_dlunknown;
17506
17507 if (self)
17508 {
17509 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17510 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17511 /* dlclose (self); */
17512 }
17513
17514 exit (status);
17515}
17516EOF
17517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17518 (eval $ac_link) 2>&5
17519 ac_status=$?
17520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17521 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17522 (./conftest; exit; ) 2>/dev/null
17523 lt_status=$?
17524 case x$lt_status in
17525 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17526 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17527 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17528 esac
17529 else :
17530 # compilation failed
17531 lt_cv_dlopen_self_static=no
17532 fi
17533fi
17534rm -fr conftest*
17535
17536
17537fi
17538echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17539echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17540 fi
17541
17542 CPPFLAGS="$save_CPPFLAGS"
17543 LDFLAGS="$save_LDFLAGS"
17544 LIBS="$save_LIBS"
17545 ;;
17546 esac
17547
17548 case $lt_cv_dlopen_self in
17549 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17550 *) enable_dlopen_self=unknown ;;
17551 esac
17552
17553 case $lt_cv_dlopen_self_static in
17554 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17555 *) enable_dlopen_self_static=unknown ;;
17556 esac
17557fi
17558
17559
17560# The else clause should only fire when bootstrapping the
17561# libtool distribution, otherwise you forgot to ship ltmain.sh
17562# with your package, and you will get complaints that there are
17563# no rules to generate ltmain.sh.
17564if test -f "$ltmain"; then
17565 # See if we are running on zsh, and set the options which allow our commands through
17566 # without removal of \ escapes.
17567 if test -n "${ZSH_VERSION+set}" ; then
17568 setopt NO_GLOB_SUBST
17569 fi
17570 # Now quote all the things that may contain metacharacters while being
17571 # careful not to overquote the AC_SUBSTed values. We take copies of the
17572 # variables and quote the copies for generation of the libtool script.
17573 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17574 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17575 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17576 deplibs_check_method reload_flag reload_cmds need_locks \
17577 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17578 lt_cv_sys_global_symbol_to_c_name_address \
17579 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17580 old_postinstall_cmds old_postuninstall_cmds \
17581 compiler_GCJ \
17582 CC_GCJ \
17583 LD_GCJ \
17584 lt_prog_compiler_wl_GCJ \
17585 lt_prog_compiler_pic_GCJ \
17586 lt_prog_compiler_static_GCJ \
17587 lt_prog_compiler_no_builtin_flag_GCJ \
17588 export_dynamic_flag_spec_GCJ \
17589 thread_safe_flag_spec_GCJ \
17590 whole_archive_flag_spec_GCJ \
17591 enable_shared_with_static_runtimes_GCJ \
17592 old_archive_cmds_GCJ \
17593 old_archive_from_new_cmds_GCJ \
17594 predep_objects_GCJ \
17595 postdep_objects_GCJ \
17596 predeps_GCJ \
17597 postdeps_GCJ \
17598 compiler_lib_search_path_GCJ \
17599 archive_cmds_GCJ \
17600 archive_expsym_cmds_GCJ \
17601 postinstall_cmds_GCJ \
17602 postuninstall_cmds_GCJ \
17603 old_archive_from_expsyms_cmds_GCJ \
17604 allow_undefined_flag_GCJ \
17605 no_undefined_flag_GCJ \
17606 export_symbols_cmds_GCJ \
17607 hardcode_libdir_flag_spec_GCJ \
17608 hardcode_libdir_flag_spec_ld_GCJ \
17609 hardcode_libdir_separator_GCJ \
17610 hardcode_automatic_GCJ \
17611 module_cmds_GCJ \
17612 module_expsym_cmds_GCJ \
17613 lt_cv_prog_compiler_c_o_GCJ \
17614 exclude_expsyms_GCJ \
17615 include_expsyms_GCJ; do
17616
17617 case $var in
17618 old_archive_cmds_GCJ | \
17619 old_archive_from_new_cmds_GCJ | \
17620 archive_cmds_GCJ | \
17621 archive_expsym_cmds_GCJ | \
17622 module_cmds_GCJ | \
17623 module_expsym_cmds_GCJ | \
17624 old_archive_from_expsyms_cmds_GCJ | \
17625 export_symbols_cmds_GCJ | \
17626 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17627 postinstall_cmds | postuninstall_cmds | \
17628 old_postinstall_cmds | old_postuninstall_cmds | \
17629 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17630 # Double-quote double-evaled strings.
17631 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17632 ;;
17633 *)
17634 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17635 ;;
17636 esac
17637 done
17638
17639 case $lt_echo in
17640 *'\$0 --fallback-echo"')
17641 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17642 ;;
17643 esac
17644
17645cfgfile="$ofile"
17646
17647 cat <<__EOF__ >> "$cfgfile"
17648# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17649
17650# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17651
17652# Shell to use when invoking shell scripts.
17653SHELL=$lt_SHELL
17654
17655# Whether or not to build shared libraries.
17656build_libtool_libs=$enable_shared
17657
17658# Whether or not to build static libraries.
17659build_old_libs=$enable_static
17660
17661# Whether or not to add -lc for building shared libraries.
17662build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17663
17664# Whether or not to disallow shared libs when runtime libs are static
17665allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17666
17667# Whether or not to optimize for fast installation.
17668fast_install=$enable_fast_install
17669
17670# The host system.
17671host_alias=$host_alias
17672host=$host
17673
17674# An echo program that does not interpret backslashes.
17675echo=$lt_echo
17676
17677# The archiver.
17678AR=$lt_AR
17679AR_FLAGS=$lt_AR_FLAGS
17680
17681# A C compiler.
17682LTCC=$lt_LTCC
17683
17684# A language-specific compiler.
17685CC=$lt_compiler_GCJ
17686
17687# Is the compiler the GNU C compiler?
17688with_gcc=$GCC_GCJ
17689
17690# An ERE matcher.
17691EGREP=$lt_EGREP
17692
17693# The linker used to build libraries.
17694LD=$lt_LD_GCJ
17695
17696# Whether we need hard or soft links.
17697LN_S=$lt_LN_S
17698
17699# A BSD-compatible nm program.
17700NM=$lt_NM
17701
17702# A symbol stripping program
17703STRIP=$STRIP
17704
17705# Used to examine libraries when file_magic_cmd begins "file"
17706MAGIC_CMD=$MAGIC_CMD
17707
17708# Used on cygwin: DLL creation program.
17709DLLTOOL="$DLLTOOL"
17710
17711# Used on cygwin: object dumper.
17712OBJDUMP="$OBJDUMP"
17713
17714# Used on cygwin: assembler.
17715AS="$AS"
17716
17717# The name of the directory that contains temporary libtool files.
17718objdir=$objdir
17719
17720# How to create reloadable object files.
17721reload_flag=$lt_reload_flag
17722reload_cmds=$lt_reload_cmds
17723
17724# How to pass a linker flag through the compiler.
17725wl=$lt_lt_prog_compiler_wl_GCJ
17726
17727# Object file suffix (normally "o").
17728objext="$ac_objext"
17729
17730# Old archive suffix (normally "a").
17731libext="$libext"
17732
17733# Shared library suffix (normally ".so").
17734shrext='$shrext'
17735
17736# Executable file suffix (normally "").
17737exeext="$exeext"
17738
17739# Additional compiler flags for building library objects.
17740pic_flag=$lt_lt_prog_compiler_pic_GCJ
17741pic_mode=$pic_mode
17742
17743# What is the maximum length of a command?
17744max_cmd_len=$lt_cv_sys_max_cmd_len
17745
17746# Does compiler simultaneously support -c and -o options?
17747compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17748
17749# Must we lock files when doing compilation ?
17750need_locks=$lt_need_locks
17751
17752# Do we need the lib prefix for modules?
17753need_lib_prefix=$need_lib_prefix
17754
17755# Do we need a version for libraries?
17756need_version=$need_version
17757
17758# Whether dlopen is supported.
17759dlopen_support=$enable_dlopen
17760
17761# Whether dlopen of programs is supported.
17762dlopen_self=$enable_dlopen_self
17763
17764# Whether dlopen of statically linked programs is supported.
17765dlopen_self_static=$enable_dlopen_self_static
17766
17767# Compiler flag to prevent dynamic linking.
17768link_static_flag=$lt_lt_prog_compiler_static_GCJ
17769
17770# Compiler flag to turn off builtin functions.
17771no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17772
17773# Compiler flag to allow reflexive dlopens.
17774export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17775
17776# Compiler flag to generate shared objects directly from archives.
17777whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17778
17779# Compiler flag to generate thread-safe objects.
17780thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17781
17782# Library versioning type.
17783version_type=$version_type
17784
17785# Format of library name prefix.
17786libname_spec=$lt_libname_spec
17787
17788# List of archive names. First name is the real one, the rest are links.
17789# The last name is the one that the linker finds with -lNAME.
17790library_names_spec=$lt_library_names_spec
17791
17792# The coded name of the library, if different from the real name.
17793soname_spec=$lt_soname_spec
17794
17795# Commands used to build and install an old-style archive.
17796RANLIB=$lt_RANLIB
17797old_archive_cmds=$lt_old_archive_cmds_GCJ
17798old_postinstall_cmds=$lt_old_postinstall_cmds
17799old_postuninstall_cmds=$lt_old_postuninstall_cmds
17800
17801# Create an old-style archive from a shared archive.
17802old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17803
17804# Create a temporary old-style archive to link instead of a shared archive.
17805old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17806
17807# Commands used to build and install a shared archive.
17808archive_cmds=$lt_archive_cmds_GCJ
17809archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17810postinstall_cmds=$lt_postinstall_cmds
17811postuninstall_cmds=$lt_postuninstall_cmds
17812
17813# Commands used to build a loadable module (assumed same as above if empty)
17814module_cmds=$lt_module_cmds_GCJ
17815module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17816
17817# Commands to strip libraries.
17818old_striplib=$lt_old_striplib
17819striplib=$lt_striplib
17820
17821# Dependencies to place before the objects being linked to create a
17822# shared library.
17823predep_objects=$lt_predep_objects_GCJ
17824
17825# Dependencies to place after the objects being linked to create a
17826# shared library.
17827postdep_objects=$lt_postdep_objects_GCJ
17828
17829# Dependencies to place before the objects being linked to create a
17830# shared library.
17831predeps=$lt_predeps_GCJ
17832
17833# Dependencies to place after the objects being linked to create a
17834# shared library.
17835postdeps=$lt_postdeps_GCJ
17836
17837# The library search path used internally by the compiler when linking
17838# a shared library.
17839compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17840
17841# Method to check whether dependent libraries are shared objects.
17842deplibs_check_method=$lt_deplibs_check_method
17843
17844# Command to use when deplibs_check_method == file_magic.
17845file_magic_cmd=$lt_file_magic_cmd
17846
17847# Flag that allows shared libraries with undefined symbols to be built.
17848allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17849
17850# Flag that forces no undefined symbols.
17851no_undefined_flag=$lt_no_undefined_flag_GCJ
17852
17853# Commands used to finish a libtool library installation in a directory.
17854finish_cmds=$lt_finish_cmds
17855
17856# Same as above, but a single script fragment to be evaled but not shown.
17857finish_eval=$lt_finish_eval
17858
17859# Take the output of nm and produce a listing of raw symbols and C names.
17860global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17861
17862# Transform the output of nm in a proper C declaration
17863global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17864
17865# Transform the output of nm in a C name address pair
17866global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17867
17868# This is the shared library runtime path variable.
17869runpath_var=$runpath_var
17870
17871# This is the shared library path variable.
17872shlibpath_var=$shlibpath_var
17873
17874# Is shlibpath searched before the hard-coded library search path?
17875shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17876
17877# How to hardcode a shared library path into an executable.
17878hardcode_action=$hardcode_action_GCJ
17879
17880# Whether we should hardcode library paths into libraries.
17881hardcode_into_libs=$hardcode_into_libs
17882
17883# Flag to hardcode \$libdir into a binary during linking.
17884# This must work even if \$libdir does not exist.
17885hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17886
17887# If ld is used when linking, flag to hardcode \$libdir into
17888# a binary during linking. This must work even if \$libdir does
17889# not exist.
17890hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17891
17892# Whether we need a single -rpath flag with a separated argument.
17893hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17894
17895# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17896# resulting binary.
17897hardcode_direct=$hardcode_direct_GCJ
17898
17899# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17900# resulting binary.
17901hardcode_minus_L=$hardcode_minus_L_GCJ
17902
17903# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17904# the resulting binary.
17905hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17906
17907# Set to yes if building a shared library automatically hardcodes DIR into the library
17908# and all subsequent libraries and executables linked against it.
17909hardcode_automatic=$hardcode_automatic_GCJ
17910
17911# Variables whose values should be saved in libtool wrapper scripts and
17912# restored at relink time.
17913variables_saved_for_relink="$variables_saved_for_relink"
17914
17915# Whether libtool must link a program against all its dependency libraries.
17916link_all_deplibs=$link_all_deplibs_GCJ
17917
17918# Compile-time system search path for libraries
17919sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17920
17921# Run-time system search path for libraries
17922sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17923
17924# Fix the shell variable \$srcfile for the compiler.
17925fix_srcfile_path="$fix_srcfile_path_GCJ"
17926
17927# Set to yes if exported symbols are required.
17928always_export_symbols=$always_export_symbols_GCJ
17929
17930# The commands to list exported symbols.
17931export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17932
17933# The commands to extract the exported symbol list from a shared archive.
17934extract_expsyms_cmds=$lt_extract_expsyms_cmds
17935
17936# Symbols that should not be listed in the preloaded symbols.
17937exclude_expsyms=$lt_exclude_expsyms_GCJ
17938
17939# Symbols that must always be exported.
17940include_expsyms=$lt_include_expsyms_GCJ
17941
17942# ### END LIBTOOL TAG CONFIG: $tagname
17943
17944__EOF__
17945
17946
17947else
17948 # If there is no Makefile yet, we rely on a make rule to execute
17949 # `config.status --recheck' to rerun these tests and create the
17950 # libtool script then.
17951 test -f Makefile && make "$ltmain"
17952fi
17953
17954
17955ac_ext=c
17956ac_cpp='$CPP $CPPFLAGS'
17957ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17958ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17959ac_compiler_gnu=$ac_cv_c_compiler_gnu
17960
17961CC="$lt_save_CC"
17962
17963 else
17964 tagname=""
17965 fi
17966 ;;
17967
17968 RC)
17969
17970
17971
17972# Source file extension for RC test sources.
17973ac_ext=rc
17974
17975# Object file extension for compiled RC test sources.
17976objext=o
17977objext_RC=$objext
17978
17979# Code to be used in simple compile tests
17980lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17981
17982# Code to be used in simple link tests
17983lt_simple_link_test_code="$lt_simple_compile_test_code"
17984
17985# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17986
17987# If no C compiler was specified, use CC.
17988LTCC=${LTCC-"$CC"}
17989
17990# Allow CC to be a program name with arguments.
17991compiler=$CC
17992
17993
17994# Allow CC to be a program name with arguments.
17995lt_save_CC="$CC"
17996CC=${RC-"windres"}
17997compiler=$CC
17998compiler_RC=$CC
17999lt_cv_prog_compiler_c_o_RC=yes
18000
18001# The else clause should only fire when bootstrapping the
18002# libtool distribution, otherwise you forgot to ship ltmain.sh
18003# with your package, and you will get complaints that there are
18004# no rules to generate ltmain.sh.
18005if test -f "$ltmain"; then
18006 # See if we are running on zsh, and set the options which allow our commands through
18007 # without removal of \ escapes.
18008 if test -n "${ZSH_VERSION+set}" ; then
18009 setopt NO_GLOB_SUBST
18010 fi
18011 # Now quote all the things that may contain metacharacters while being
18012 # careful not to overquote the AC_SUBSTed values. We take copies of the
18013 # variables and quote the copies for generation of the libtool script.
18014 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18015 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18016 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18017 deplibs_check_method reload_flag reload_cmds need_locks \
18018 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18019 lt_cv_sys_global_symbol_to_c_name_address \
18020 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18021 old_postinstall_cmds old_postuninstall_cmds \
18022 compiler_RC \
18023 CC_RC \
18024 LD_RC \
18025 lt_prog_compiler_wl_RC \
18026 lt_prog_compiler_pic_RC \
18027 lt_prog_compiler_static_RC \
18028 lt_prog_compiler_no_builtin_flag_RC \
18029 export_dynamic_flag_spec_RC \
18030 thread_safe_flag_spec_RC \
18031 whole_archive_flag_spec_RC \
18032 enable_shared_with_static_runtimes_RC \
18033 old_archive_cmds_RC \
18034 old_archive_from_new_cmds_RC \
18035 predep_objects_RC \
18036 postdep_objects_RC \
18037 predeps_RC \
18038 postdeps_RC \
18039 compiler_lib_search_path_RC \
18040 archive_cmds_RC \
18041 archive_expsym_cmds_RC \
18042 postinstall_cmds_RC \
18043 postuninstall_cmds_RC \
18044 old_archive_from_expsyms_cmds_RC \
18045 allow_undefined_flag_RC \
18046 no_undefined_flag_RC \
18047 export_symbols_cmds_RC \
18048 hardcode_libdir_flag_spec_RC \
18049 hardcode_libdir_flag_spec_ld_RC \
18050 hardcode_libdir_separator_RC \
18051 hardcode_automatic_RC \
18052 module_cmds_RC \
18053 module_expsym_cmds_RC \
18054 lt_cv_prog_compiler_c_o_RC \
18055 exclude_expsyms_RC \
18056 include_expsyms_RC; do
18057
18058 case $var in
18059 old_archive_cmds_RC | \
18060 old_archive_from_new_cmds_RC | \
18061 archive_cmds_RC | \
18062 archive_expsym_cmds_RC | \
18063 module_cmds_RC | \
18064 module_expsym_cmds_RC | \
18065 old_archive_from_expsyms_cmds_RC | \
18066 export_symbols_cmds_RC | \
18067 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18068 postinstall_cmds | postuninstall_cmds | \
18069 old_postinstall_cmds | old_postuninstall_cmds | \
18070 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18071 # Double-quote double-evaled strings.
18072 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18073 ;;
18074 *)
18075 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18076 ;;
18077 esac
18078 done
18079
18080 case $lt_echo in
18081 *'\$0 --fallback-echo"')
18082 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18083 ;;
18084 esac
18085
18086cfgfile="$ofile"
18087
18088 cat <<__EOF__ >> "$cfgfile"
18089# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18090
18091# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18092
18093# Shell to use when invoking shell scripts.
18094SHELL=$lt_SHELL
18095
18096# Whether or not to build shared libraries.
18097build_libtool_libs=$enable_shared
18098
18099# Whether or not to build static libraries.
18100build_old_libs=$enable_static
18101
18102# Whether or not to add -lc for building shared libraries.
18103build_libtool_need_lc=$archive_cmds_need_lc_RC
18104
18105# Whether or not to disallow shared libs when runtime libs are static
18106allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18107
18108# Whether or not to optimize for fast installation.
18109fast_install=$enable_fast_install
18110
18111# The host system.
18112host_alias=$host_alias
18113host=$host
18114
18115# An echo program that does not interpret backslashes.
18116echo=$lt_echo
18117
18118# The archiver.
18119AR=$lt_AR
18120AR_FLAGS=$lt_AR_FLAGS
18121
18122# A C compiler.
18123LTCC=$lt_LTCC
18124
18125# A language-specific compiler.
18126CC=$lt_compiler_RC
18127
18128# Is the compiler the GNU C compiler?
18129with_gcc=$GCC_RC
18130
18131# An ERE matcher.
18132EGREP=$lt_EGREP
18133
18134# The linker used to build libraries.
18135LD=$lt_LD_RC
18136
18137# Whether we need hard or soft links.
18138LN_S=$lt_LN_S
18139
18140# A BSD-compatible nm program.
18141NM=$lt_NM
18142
18143# A symbol stripping program
18144STRIP=$STRIP
18145
18146# Used to examine libraries when file_magic_cmd begins "file"
18147MAGIC_CMD=$MAGIC_CMD
18148
18149# Used on cygwin: DLL creation program.
18150DLLTOOL="$DLLTOOL"
18151
18152# Used on cygwin: object dumper.
18153OBJDUMP="$OBJDUMP"
18154
18155# Used on cygwin: assembler.
18156AS="$AS"
18157
18158# The name of the directory that contains temporary libtool files.
18159objdir=$objdir
18160
18161# How to create reloadable object files.
18162reload_flag=$lt_reload_flag
18163reload_cmds=$lt_reload_cmds
18164
18165# How to pass a linker flag through the compiler.
18166wl=$lt_lt_prog_compiler_wl_RC
18167
18168# Object file suffix (normally "o").
18169objext="$ac_objext"
18170
18171# Old archive suffix (normally "a").
18172libext="$libext"
18173
18174# Shared library suffix (normally ".so").
18175shrext='$shrext'
18176
18177# Executable file suffix (normally "").
18178exeext="$exeext"
18179
18180# Additional compiler flags for building library objects.
18181pic_flag=$lt_lt_prog_compiler_pic_RC
18182pic_mode=$pic_mode
18183
18184# What is the maximum length of a command?
18185max_cmd_len=$lt_cv_sys_max_cmd_len
18186
18187# Does compiler simultaneously support -c and -o options?
18188compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18189
18190# Must we lock files when doing compilation ?
18191need_locks=$lt_need_locks
18192
18193# Do we need the lib prefix for modules?
18194need_lib_prefix=$need_lib_prefix
18195
18196# Do we need a version for libraries?
18197need_version=$need_version
18198
18199# Whether dlopen is supported.
18200dlopen_support=$enable_dlopen
18201
18202# Whether dlopen of programs is supported.
18203dlopen_self=$enable_dlopen_self
18204
18205# Whether dlopen of statically linked programs is supported.
18206dlopen_self_static=$enable_dlopen_self_static
18207
18208# Compiler flag to prevent dynamic linking.
18209link_static_flag=$lt_lt_prog_compiler_static_RC
18210
18211# Compiler flag to turn off builtin functions.
18212no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18213
18214# Compiler flag to allow reflexive dlopens.
18215export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18216
18217# Compiler flag to generate shared objects directly from archives.
18218whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18219
18220# Compiler flag to generate thread-safe objects.
18221thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18222
18223# Library versioning type.
18224version_type=$version_type
18225
18226# Format of library name prefix.
18227libname_spec=$lt_libname_spec
18228
18229# List of archive names. First name is the real one, the rest are links.
18230# The last name is the one that the linker finds with -lNAME.
18231library_names_spec=$lt_library_names_spec
18232
18233# The coded name of the library, if different from the real name.
18234soname_spec=$lt_soname_spec
18235
18236# Commands used to build and install an old-style archive.
18237RANLIB=$lt_RANLIB
18238old_archive_cmds=$lt_old_archive_cmds_RC
18239old_postinstall_cmds=$lt_old_postinstall_cmds
18240old_postuninstall_cmds=$lt_old_postuninstall_cmds
18241
18242# Create an old-style archive from a shared archive.
18243old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18244
18245# Create a temporary old-style archive to link instead of a shared archive.
18246old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18247
18248# Commands used to build and install a shared archive.
18249archive_cmds=$lt_archive_cmds_RC
18250archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18251postinstall_cmds=$lt_postinstall_cmds
18252postuninstall_cmds=$lt_postuninstall_cmds
18253
18254# Commands used to build a loadable module (assumed same as above if empty)
18255module_cmds=$lt_module_cmds_RC
18256module_expsym_cmds=$lt_module_expsym_cmds_RC
18257
18258# Commands to strip libraries.
18259old_striplib=$lt_old_striplib
18260striplib=$lt_striplib
18261
18262# Dependencies to place before the objects being linked to create a
18263# shared library.
18264predep_objects=$lt_predep_objects_RC
18265
18266# Dependencies to place after the objects being linked to create a
18267# shared library.
18268postdep_objects=$lt_postdep_objects_RC
18269
18270# Dependencies to place before the objects being linked to create a
18271# shared library.
18272predeps=$lt_predeps_RC
18273
18274# Dependencies to place after the objects being linked to create a
18275# shared library.
18276postdeps=$lt_postdeps_RC
18277
18278# The library search path used internally by the compiler when linking
18279# a shared library.
18280compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18281
18282# Method to check whether dependent libraries are shared objects.
18283deplibs_check_method=$lt_deplibs_check_method
18284
18285# Command to use when deplibs_check_method == file_magic.
18286file_magic_cmd=$lt_file_magic_cmd
18287
18288# Flag that allows shared libraries with undefined symbols to be built.
18289allow_undefined_flag=$lt_allow_undefined_flag_RC
18290
18291# Flag that forces no undefined symbols.
18292no_undefined_flag=$lt_no_undefined_flag_RC
18293
18294# Commands used to finish a libtool library installation in a directory.
18295finish_cmds=$lt_finish_cmds
18296
18297# Same as above, but a single script fragment to be evaled but not shown.
18298finish_eval=$lt_finish_eval
18299
18300# Take the output of nm and produce a listing of raw symbols and C names.
18301global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18302
18303# Transform the output of nm in a proper C declaration
18304global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18305
18306# Transform the output of nm in a C name address pair
18307global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18308
18309# This is the shared library runtime path variable.
18310runpath_var=$runpath_var
18311
18312# This is the shared library path variable.
18313shlibpath_var=$shlibpath_var
18314
18315# Is shlibpath searched before the hard-coded library search path?
18316shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18317
18318# How to hardcode a shared library path into an executable.
18319hardcode_action=$hardcode_action_RC
18320
18321# Whether we should hardcode library paths into libraries.
18322hardcode_into_libs=$hardcode_into_libs
18323
18324# Flag to hardcode \$libdir into a binary during linking.
18325# This must work even if \$libdir does not exist.
18326hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18327
18328# If ld is used when linking, flag to hardcode \$libdir into
18329# a binary during linking. This must work even if \$libdir does
18330# not exist.
18331hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18332
18333# Whether we need a single -rpath flag with a separated argument.
18334hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18335
18336# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18337# resulting binary.
18338hardcode_direct=$hardcode_direct_RC
18339
18340# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18341# resulting binary.
18342hardcode_minus_L=$hardcode_minus_L_RC
18343
18344# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18345# the resulting binary.
18346hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18347
18348# Set to yes if building a shared library automatically hardcodes DIR into the library
18349# and all subsequent libraries and executables linked against it.
18350hardcode_automatic=$hardcode_automatic_RC
18351
18352# Variables whose values should be saved in libtool wrapper scripts and
18353# restored at relink time.
18354variables_saved_for_relink="$variables_saved_for_relink"
18355
18356# Whether libtool must link a program against all its dependency libraries.
18357link_all_deplibs=$link_all_deplibs_RC
18358
18359# Compile-time system search path for libraries
18360sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18361
18362# Run-time system search path for libraries
18363sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18364
18365# Fix the shell variable \$srcfile for the compiler.
18366fix_srcfile_path="$fix_srcfile_path_RC"
18367
18368# Set to yes if exported symbols are required.
18369always_export_symbols=$always_export_symbols_RC
18370
18371# The commands to list exported symbols.
18372export_symbols_cmds=$lt_export_symbols_cmds_RC
18373
18374# The commands to extract the exported symbol list from a shared archive.
18375extract_expsyms_cmds=$lt_extract_expsyms_cmds
18376
18377# Symbols that should not be listed in the preloaded symbols.
18378exclude_expsyms=$lt_exclude_expsyms_RC
18379
18380# Symbols that must always be exported.
18381include_expsyms=$lt_include_expsyms_RC
18382
18383# ### END LIBTOOL TAG CONFIG: $tagname
18384
18385__EOF__
18386
18387
18388else
18389 # If there is no Makefile yet, we rely on a make rule to execute
18390 # `config.status --recheck' to rerun these tests and create the
18391 # libtool script then.
18392 test -f Makefile && make "$ltmain"
18393fi
18394
18395
18396ac_ext=c
18397ac_cpp='$CPP $CPPFLAGS'
18398ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18399ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18400ac_compiler_gnu=$ac_cv_c_compiler_gnu
18401
18402CC="$lt_save_CC"
18403
18404 ;;
18405
18406 *)
18407 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18408echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18409 { (exit 1); exit 1; }; }
18410 ;;
18411 esac
18412
18413 # Append the new tag name to the list of available tags.
18414 if test -n "$tagname" ; then
18415 available_tags="$available_tags $tagname"
18416 fi
18417 fi
18418 done
18419 IFS="$lt_save_ifs"
18420
18421 # Now substitute the updated list of available tags.
18422 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18423 mv "${ofile}T" "$ofile"
18424 chmod +x "$ofile"
18425 else
18426 rm -f "${ofile}T"
18427 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18428echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18429 { (exit 1); exit 1; }; }
18430 fi
18431fi
John Criswell7a73b802003-06-30 21:59:07 +000018432
18433
18434
18435# This can be used to rebuild libtool when needed
18436LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18437
18438# Always use our own libtool.
John Criswell8d4221e2003-07-23 16:52:50 +000018439LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000018440
18441# Prevent multiple expansion
18442
18443
18444
John Criswell47fdd832003-07-14 16:52:07 +000018445
18446
18447
18448
18449
18450
18451
18452
18453
18454
18455
18456
18457
18458
18459
18460
18461
18462
John Criswellde00db22003-08-25 16:49:54 +000018463# Extract the first word of "pwd", so it can be a program name with args.
18464set dummy pwd; ac_word=$2
18465echo "$as_me:$LINENO: checking for $ac_word" >&5
18466echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18467if test "${ac_cv_path_RPWD+set}" = set; then
18468 echo $ECHO_N "(cached) $ECHO_C" >&6
18469else
18470 case $RPWD in
18471 [\\/]* | ?:[\\/]*)
18472 ac_cv_path_RPWD="$RPWD" # Let the user override the test with a path.
18473 ;;
18474 *)
18475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18476for as_dir in $PATH
18477do
18478 IFS=$as_save_IFS
18479 test -z "$as_dir" && as_dir=.
18480 for ac_exec_ext in '' $ac_executable_extensions; do
18481 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18482 ac_cv_path_RPWD="$as_dir/$ac_word$ac_exec_ext"
18483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18484 break 2
18485 fi
18486done
18487done
18488
John Criswell39827c82003-09-23 15:28:52 +000018489 test -z "$ac_cv_path_RPWD" && ac_cv_path_RPWD="false"
John Criswellde00db22003-08-25 16:49:54 +000018490 ;;
18491esac
18492fi
18493RPWD=$ac_cv_path_RPWD
18494
18495if test -n "$RPWD"; then
18496 echo "$as_me:$LINENO: result: $RPWD" >&5
18497echo "${ECHO_T}$RPWD" >&6
18498else
18499 echo "$as_me:$LINENO: result: no" >&5
18500echo "${ECHO_T}no" >&6
18501fi
18502
John Criswell39827c82003-09-23 15:28:52 +000018503if test ${RPWD} = "false"
18504then
18505 { { echo "$as_me:$LINENO: error: pwd required but not found" >&5
18506echo "$as_me: error: pwd required but not found" >&2;}
18507 { (exit 1); exit 1; }; }
18508fi
18509
John Criswell7a73b802003-06-30 21:59:07 +000018510# Extract the first word of "ar", so it can be a program name with args.
18511set dummy ar; ac_word=$2
18512echo "$as_me:$LINENO: checking for $ac_word" >&5
18513echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18514if test "${ac_cv_path_AR+set}" = set; then
18515 echo $ECHO_N "(cached) $ECHO_C" >&6
18516else
18517 case $AR in
18518 [\\/]* | ?:[\\/]*)
18519 ac_cv_path_AR="$AR" # Let the user override the test with a path.
18520 ;;
18521 *)
18522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18523for as_dir in $PATH
18524do
18525 IFS=$as_save_IFS
18526 test -z "$as_dir" && as_dir=.
18527 for ac_exec_ext in '' $ac_executable_extensions; do
18528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18529 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
18530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18531 break 2
18532 fi
18533done
18534done
18535
John Criswell39827c82003-09-23 15:28:52 +000018536 test -z "$ac_cv_path_AR" && ac_cv_path_AR="false"
John Criswell7a73b802003-06-30 21:59:07 +000018537 ;;
18538esac
18539fi
18540AR=$ac_cv_path_AR
18541
18542if test -n "$AR"; then
18543 echo "$as_me:$LINENO: result: $AR" >&5
18544echo "${ECHO_T}$AR" >&6
18545else
18546 echo "$as_me:$LINENO: result: no" >&5
18547echo "${ECHO_T}no" >&6
18548fi
18549
John Criswell39827c82003-09-23 15:28:52 +000018550if test ${AR} = "false"
18551then
18552 { { echo "$as_me:$LINENO: error: ar required but not found" >&5
18553echo "$as_me: error: ar required but not found" >&2;}
18554 { (exit 1); exit 1; }; }
18555fi
18556
John Criswell7a73b802003-06-30 21:59:07 +000018557# Extract the first word of "sed", so it can be a program name with args.
18558set dummy sed; ac_word=$2
18559echo "$as_me:$LINENO: checking for $ac_word" >&5
18560echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18561if test "${ac_cv_path_SED+set}" = set; then
18562 echo $ECHO_N "(cached) $ECHO_C" >&6
18563else
18564 case $SED in
18565 [\\/]* | ?:[\\/]*)
18566 ac_cv_path_SED="$SED" # Let the user override the test with a path.
18567 ;;
18568 *)
18569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18570for as_dir in $PATH
18571do
18572 IFS=$as_save_IFS
18573 test -z "$as_dir" && as_dir=.
18574 for ac_exec_ext in '' $ac_executable_extensions; do
18575 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18576 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
18577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18578 break 2
18579 fi
18580done
18581done
18582
John Criswell39827c82003-09-23 15:28:52 +000018583 test -z "$ac_cv_path_SED" && ac_cv_path_SED="false"
John Criswell7a73b802003-06-30 21:59:07 +000018584 ;;
18585esac
18586fi
18587SED=$ac_cv_path_SED
18588
18589if test -n "$SED"; then
18590 echo "$as_me:$LINENO: result: $SED" >&5
18591echo "${ECHO_T}$SED" >&6
18592else
18593 echo "$as_me:$LINENO: result: no" >&5
18594echo "${ECHO_T}no" >&6
18595fi
18596
John Criswell39827c82003-09-23 15:28:52 +000018597if test ${SED} = "false"
18598then
18599 { { echo "$as_me:$LINENO: error: sed required but not found" >&5
18600echo "$as_me: error: sed required but not found" >&2;}
18601 { (exit 1); exit 1; }; }
18602fi
18603
John Criswell7a73b802003-06-30 21:59:07 +000018604# Extract the first word of "rm", so it can be a program name with args.
18605set dummy rm; ac_word=$2
18606echo "$as_me:$LINENO: checking for $ac_word" >&5
18607echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18608if test "${ac_cv_path_RM+set}" = set; then
18609 echo $ECHO_N "(cached) $ECHO_C" >&6
18610else
18611 case $RM in
18612 [\\/]* | ?:[\\/]*)
18613 ac_cv_path_RM="$RM" # Let the user override the test with a path.
18614 ;;
18615 *)
18616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18617for as_dir in $PATH
18618do
18619 IFS=$as_save_IFS
18620 test -z "$as_dir" && as_dir=.
18621 for ac_exec_ext in '' $ac_executable_extensions; do
18622 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18623 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
18624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18625 break 2
18626 fi
18627done
18628done
18629
John Criswell39827c82003-09-23 15:28:52 +000018630 test -z "$ac_cv_path_RM" && ac_cv_path_RM="false"
John Criswell7a73b802003-06-30 21:59:07 +000018631 ;;
18632esac
18633fi
18634RM=$ac_cv_path_RM
18635
18636if test -n "$RM"; then
18637 echo "$as_me:$LINENO: result: $RM" >&5
18638echo "${ECHO_T}$RM" >&6
18639else
18640 echo "$as_me:$LINENO: result: no" >&5
18641echo "${ECHO_T}no" >&6
18642fi
18643
John Criswell39827c82003-09-23 15:28:52 +000018644if test ${RM} = "false"
18645then
18646 { { echo "$as_me:$LINENO: error: rm required but not found" >&5
18647echo "$as_me: error: rm required but not found" >&2;}
18648 { (exit 1); exit 1; }; }
18649fi
18650
John Criswell7a73b802003-06-30 21:59:07 +000018651# Extract the first word of "echo", so it can be a program name with args.
18652set dummy echo; ac_word=$2
18653echo "$as_me:$LINENO: checking for $ac_word" >&5
18654echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18655if test "${ac_cv_path_ECHO+set}" = set; then
18656 echo $ECHO_N "(cached) $ECHO_C" >&6
18657else
18658 case $ECHO in
18659 [\\/]* | ?:[\\/]*)
18660 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
18661 ;;
18662 *)
18663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18664for as_dir in $PATH
18665do
18666 IFS=$as_save_IFS
18667 test -z "$as_dir" && as_dir=.
18668 for ac_exec_ext in '' $ac_executable_extensions; do
18669 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18670 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
18671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18672 break 2
18673 fi
18674done
18675done
18676
John Criswell39827c82003-09-23 15:28:52 +000018677 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="false"
John Criswell7a73b802003-06-30 21:59:07 +000018678 ;;
18679esac
18680fi
18681ECHO=$ac_cv_path_ECHO
18682
18683if test -n "$ECHO"; then
18684 echo "$as_me:$LINENO: result: $ECHO" >&5
18685echo "${ECHO_T}$ECHO" >&6
18686else
18687 echo "$as_me:$LINENO: result: no" >&5
18688echo "${ECHO_T}no" >&6
18689fi
18690
John Criswell39827c82003-09-23 15:28:52 +000018691if test ${ECHO} = "false"
18692then
18693 { { echo "$as_me:$LINENO: error: echo required but not found" >&5
18694echo "$as_me: error: echo required but not found" >&2;}
18695 { (exit 1); exit 1; }; }
18696fi
18697
John Criswell7a73b802003-06-30 21:59:07 +000018698# Extract the first word of "mkdir", so it can be a program name with args.
18699set dummy mkdir; ac_word=$2
18700echo "$as_me:$LINENO: checking for $ac_word" >&5
18701echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18702if test "${ac_cv_path_MKDIR+set}" = set; then
18703 echo $ECHO_N "(cached) $ECHO_C" >&6
18704else
18705 case $MKDIR in
18706 [\\/]* | ?:[\\/]*)
18707 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
18708 ;;
18709 *)
18710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18711for as_dir in $PATH
18712do
18713 IFS=$as_save_IFS
18714 test -z "$as_dir" && as_dir=.
18715 for ac_exec_ext in '' $ac_executable_extensions; do
18716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18717 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
18718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18719 break 2
18720 fi
18721done
18722done
18723
John Criswell39827c82003-09-23 15:28:52 +000018724 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="false"
John Criswell7a73b802003-06-30 21:59:07 +000018725 ;;
18726esac
18727fi
18728MKDIR=$ac_cv_path_MKDIR
18729
18730if test -n "$MKDIR"; then
18731 echo "$as_me:$LINENO: result: $MKDIR" >&5
18732echo "${ECHO_T}$MKDIR" >&6
18733else
18734 echo "$as_me:$LINENO: result: no" >&5
18735echo "${ECHO_T}no" >&6
18736fi
18737
John Criswell39827c82003-09-23 15:28:52 +000018738if test ${MKDIR} = "false"
18739then
18740 { { echo "$as_me:$LINENO: error: mkdir required but not found" >&5
18741echo "$as_me: error: mkdir required but not found" >&2;}
18742 { (exit 1); exit 1; }; }
18743fi
18744
John Criswell7a73b802003-06-30 21:59:07 +000018745# Extract the first word of "date", so it can be a program name with args.
18746set dummy date; ac_word=$2
18747echo "$as_me:$LINENO: checking for $ac_word" >&5
18748echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18749if test "${ac_cv_path_DATE+set}" = set; then
18750 echo $ECHO_N "(cached) $ECHO_C" >&6
18751else
18752 case $DATE in
18753 [\\/]* | ?:[\\/]*)
18754 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
18755 ;;
18756 *)
18757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18758for as_dir in $PATH
18759do
18760 IFS=$as_save_IFS
18761 test -z "$as_dir" && as_dir=.
18762 for ac_exec_ext in '' $ac_executable_extensions; do
18763 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18764 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
18765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18766 break 2
18767 fi
18768done
18769done
18770
John Criswell39827c82003-09-23 15:28:52 +000018771 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="false"
John Criswell7a73b802003-06-30 21:59:07 +000018772 ;;
18773esac
18774fi
18775DATE=$ac_cv_path_DATE
18776
18777if test -n "$DATE"; then
18778 echo "$as_me:$LINENO: result: $DATE" >&5
18779echo "${ECHO_T}$DATE" >&6
18780else
18781 echo "$as_me:$LINENO: result: no" >&5
18782echo "${ECHO_T}no" >&6
18783fi
18784
John Criswell39827c82003-09-23 15:28:52 +000018785if test ${DATE} = "false"
18786then
18787 { { echo "$as_me:$LINENO: error: date required but not found" >&5
18788echo "$as_me: error: date required but not found" >&2;}
18789 { (exit 1); exit 1; }; }
18790fi
18791
John Criswell7a73b802003-06-30 21:59:07 +000018792# Extract the first word of "mv", so it can be a program name with args.
18793set dummy mv; ac_word=$2
18794echo "$as_me:$LINENO: checking for $ac_word" >&5
18795echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18796if test "${ac_cv_path_MV+set}" = set; then
18797 echo $ECHO_N "(cached) $ECHO_C" >&6
18798else
18799 case $MV in
18800 [\\/]* | ?:[\\/]*)
18801 ac_cv_path_MV="$MV" # Let the user override the test with a path.
18802 ;;
18803 *)
18804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18805for as_dir in $PATH
18806do
18807 IFS=$as_save_IFS
18808 test -z "$as_dir" && as_dir=.
18809 for ac_exec_ext in '' $ac_executable_extensions; do
18810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18811 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
18812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18813 break 2
18814 fi
18815done
18816done
18817
John Criswell39827c82003-09-23 15:28:52 +000018818 test -z "$ac_cv_path_MV" && ac_cv_path_MV="false"
John Criswell7a73b802003-06-30 21:59:07 +000018819 ;;
18820esac
18821fi
18822MV=$ac_cv_path_MV
18823
18824if test -n "$MV"; then
18825 echo "$as_me:$LINENO: result: $MV" >&5
18826echo "${ECHO_T}$MV" >&6
18827else
18828 echo "$as_me:$LINENO: result: no" >&5
18829echo "${ECHO_T}no" >&6
18830fi
18831
John Criswell39827c82003-09-23 15:28:52 +000018832if test ${MV} = "false"
18833then
18834 { { echo "$as_me:$LINENO: error: mv required but not found" >&5
18835echo "$as_me: error: mv required but not found" >&2;}
18836 { (exit 1); exit 1; }; }
18837fi
18838
John Criswell7a73b802003-06-30 21:59:07 +000018839# Extract the first word of "dot", so it can be a program name with args.
18840set dummy dot; ac_word=$2
18841echo "$as_me:$LINENO: checking for $ac_word" >&5
18842echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18843if test "${ac_cv_path_DOT+set}" = set; then
18844 echo $ECHO_N "(cached) $ECHO_C" >&6
18845else
18846 case $DOT in
18847 [\\/]* | ?:[\\/]*)
18848 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18849 ;;
18850 *)
18851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18852for as_dir in $PATH
18853do
18854 IFS=$as_save_IFS
18855 test -z "$as_dir" && as_dir=.
18856 for ac_exec_ext in '' $ac_executable_extensions; do
18857 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18858 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18860 break 2
18861 fi
18862done
18863done
18864
John Criswell39827c82003-09-23 15:28:52 +000018865 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="false"
John Criswell7a73b802003-06-30 21:59:07 +000018866 ;;
18867esac
18868fi
18869DOT=$ac_cv_path_DOT
18870
18871if test -n "$DOT"; then
18872 echo "$as_me:$LINENO: result: $DOT" >&5
18873echo "${ECHO_T}$DOT" >&6
18874else
18875 echo "$as_me:$LINENO: result: no" >&5
18876echo "${ECHO_T}no" >&6
18877fi
18878
John Criswell39827c82003-09-23 15:28:52 +000018879
John Criswell7a73b802003-06-30 21:59:07 +000018880# Extract the first word of "etags", so it can be a program name with args.
18881set dummy etags; ac_word=$2
18882echo "$as_me:$LINENO: checking for $ac_word" >&5
18883echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18884if test "${ac_cv_path_ETAGS+set}" = set; then
18885 echo $ECHO_N "(cached) $ECHO_C" >&6
18886else
18887 case $ETAGS in
18888 [\\/]* | ?:[\\/]*)
18889 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18890 ;;
18891 *)
18892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18893for as_dir in $PATH
18894do
18895 IFS=$as_save_IFS
18896 test -z "$as_dir" && as_dir=.
18897 for ac_exec_ext in '' $ac_executable_extensions; do
18898 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18899 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18901 break 2
18902 fi
18903done
18904done
18905
John Criswell39827c82003-09-23 15:28:52 +000018906 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="false"
John Criswell7a73b802003-06-30 21:59:07 +000018907 ;;
18908esac
18909fi
18910ETAGS=$ac_cv_path_ETAGS
18911
18912if test -n "$ETAGS"; then
18913 echo "$as_me:$LINENO: result: $ETAGS" >&5
18914echo "${ECHO_T}$ETAGS" >&6
18915else
18916 echo "$as_me:$LINENO: result: no" >&5
18917echo "${ECHO_T}no" >&6
18918fi
18919
John Criswell39827c82003-09-23 15:28:52 +000018920
John Criswell7a73b802003-06-30 21:59:07 +000018921# Extract the first word of "purify", so it can be a program name with args.
18922set dummy purify; ac_word=$2
18923echo "$as_me:$LINENO: checking for $ac_word" >&5
18924echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18925if test "${ac_cv_path_PURIFY+set}" = set; then
18926 echo $ECHO_N "(cached) $ECHO_C" >&6
18927else
18928 case $PURIFY in
18929 [\\/]* | ?:[\\/]*)
18930 ac_cv_path_PURIFY="$PURIFY" # Let the user override the test with a path.
18931 ;;
18932 *)
18933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18934for as_dir in $PATH
18935do
18936 IFS=$as_save_IFS
18937 test -z "$as_dir" && as_dir=.
18938 for ac_exec_ext in '' $ac_executable_extensions; do
18939 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18940 ac_cv_path_PURIFY="$as_dir/$ac_word$ac_exec_ext"
18941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18942 break 2
18943 fi
18944done
18945done
18946
John Criswell39827c82003-09-23 15:28:52 +000018947 test -z "$ac_cv_path_PURIFY" && ac_cv_path_PURIFY="false"
John Criswell7a73b802003-06-30 21:59:07 +000018948 ;;
18949esac
18950fi
18951PURIFY=$ac_cv_path_PURIFY
18952
18953if test -n "$PURIFY"; then
18954 echo "$as_me:$LINENO: result: $PURIFY" >&5
18955echo "${ECHO_T}$PURIFY" >&6
18956else
18957 echo "$as_me:$LINENO: result: no" >&5
18958echo "${ECHO_T}no" >&6
18959fi
18960
John Criswell39827c82003-09-23 15:28:52 +000018961
John Criswellde00db22003-08-25 16:49:54 +000018962# Extract the first word of "python", so it can be a program name with args.
18963set dummy python; ac_word=$2
18964echo "$as_me:$LINENO: checking for $ac_word" >&5
18965echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18966if test "${ac_cv_path_PYTHON+set}" = set; then
18967 echo $ECHO_N "(cached) $ECHO_C" >&6
18968else
18969 case $PYTHON in
18970 [\\/]* | ?:[\\/]*)
18971 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18972 ;;
18973 *)
18974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18975for as_dir in $PATH
18976do
18977 IFS=$as_save_IFS
18978 test -z "$as_dir" && as_dir=.
18979 for ac_exec_ext in '' $ac_executable_extensions; do
18980 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18981 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18983 break 2
18984 fi
18985done
18986done
18987
John Criswell39827c82003-09-23 15:28:52 +000018988 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="false"
John Criswellde00db22003-08-25 16:49:54 +000018989 ;;
18990esac
18991fi
18992PYTHON=$ac_cv_path_PYTHON
18993
18994if test -n "$PYTHON"; then
18995 echo "$as_me:$LINENO: result: $PYTHON" >&5
18996echo "${ECHO_T}$PYTHON" >&6
18997else
18998 echo "$as_me:$LINENO: result: no" >&5
18999echo "${ECHO_T}no" >&6
19000fi
19001
John Criswell39827c82003-09-23 15:28:52 +000019002if test ${PYTHON} = "false"
19003then
John Criswell61095982003-09-23 20:46:32 +000019004 { echo "$as_me:$LINENO: WARNING: python required but not found" >&5
19005echo "$as_me: WARNING: python required but not found" >&2;}
John Criswell39827c82003-09-23 15:28:52 +000019006fi
19007
John Criswellde00db22003-08-25 16:49:54 +000019008# Extract the first word of "qmtest", so it can be a program name with args.
19009set dummy qmtest; ac_word=$2
19010echo "$as_me:$LINENO: checking for $ac_word" >&5
19011echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19012if test "${ac_cv_path_QMTEST+set}" = set; then
19013 echo $ECHO_N "(cached) $ECHO_C" >&6
19014else
19015 case $QMTEST in
19016 [\\/]* | ?:[\\/]*)
19017 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
19018 ;;
19019 *)
19020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19021for as_dir in $PATH
19022do
19023 IFS=$as_save_IFS
19024 test -z "$as_dir" && as_dir=.
19025 for ac_exec_ext in '' $ac_executable_extensions; do
19026 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19027 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
19028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19029 break 2
19030 fi
19031done
19032done
19033
John Criswell39827c82003-09-23 15:28:52 +000019034 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="false"
John Criswellde00db22003-08-25 16:49:54 +000019035 ;;
19036esac
19037fi
19038QMTEST=$ac_cv_path_QMTEST
19039
19040if test -n "$QMTEST"; then
19041 echo "$as_me:$LINENO: result: $QMTEST" >&5
19042echo "${ECHO_T}$QMTEST" >&6
19043else
19044 echo "$as_me:$LINENO: result: no" >&5
19045echo "${ECHO_T}no" >&6
19046fi
19047
John Criswell39827c82003-09-23 15:28:52 +000019048if test ${QMTEST} = "false"
19049then
John Criswell61095982003-09-23 20:46:32 +000019050 { echo "$as_me:$LINENO: WARNING: qmtest required but not found" >&5
19051echo "$as_me: WARNING: qmtest required but not found" >&2;}
John Criswell39827c82003-09-23 15:28:52 +000019052fi
John Criswellde00db22003-08-25 16:49:54 +000019053
19054pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
19055pymajor=`echo $pyversion | cut -d. -f1`
19056pyminor=`echo $pyversion | cut -d. -f2`
19057
19058if test "$pymajor" -ge "2"
19059then
19060 if test "$pymajor" -eq "2"
19061 then
19062 if test "$pyminor" -lt "2"
19063 then
19064 { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
19065echo "$as_me: error: Python 2.2 or greater required" >&2;}
19066 { (exit 1); exit 1; }; }
19067 fi
19068 fi
19069else
19070 { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
19071echo "$as_me: error: Python 2.2 or greater required" >&2;}
19072 { (exit 1); exit 1; }; }
19073fi
John Criswell7a73b802003-06-30 21:59:07 +000019074
19075
19076
19077
19078
19079echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
19080echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
19081if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
19082 echo $ECHO_N "(cached) $ECHO_C" >&6
19083else
19084 ac_check_lib_save_LIBS=$LIBS
19085LIBS="-lelf $LIBS"
19086cat >conftest.$ac_ext <<_ACEOF
19087#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019088/* confdefs.h. */
19089_ACEOF
19090cat confdefs.h >>conftest.$ac_ext
19091cat >>conftest.$ac_ext <<_ACEOF
19092/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019093
19094/* Override any gcc2 internal prototype to avoid an error. */
19095#ifdef __cplusplus
19096extern "C"
19097#endif
19098/* We use char because int might match the return type of a gcc2
19099 builtin and then its argument prototype would still apply. */
19100char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000019101int
19102main ()
19103{
19104elf_begin ();
19105 ;
19106 return 0;
19107}
19108_ACEOF
19109rm -f conftest.$ac_objext conftest$ac_exeext
19110if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19111 (eval $ac_link) 2>&5
19112 ac_status=$?
19113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19114 (exit $ac_status); } &&
19115 { ac_try='test -s conftest$ac_exeext'
19116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19117 (eval $ac_try) 2>&5
19118 ac_status=$?
19119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19120 (exit $ac_status); }; }; then
19121 ac_cv_lib_elf_elf_begin=yes
19122else
19123 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019124sed 's/^/| /' conftest.$ac_ext >&5
19125
John Criswell7a73b802003-06-30 21:59:07 +000019126ac_cv_lib_elf_elf_begin=no
19127fi
19128rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19129LIBS=$ac_check_lib_save_LIBS
19130fi
19131echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
19132echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
19133if test $ac_cv_lib_elf_elf_begin = yes; then
19134 cat >>confdefs.h <<_ACEOF
19135#define HAVE_LIBELF 1
19136_ACEOF
19137
19138 LIBS="-lelf $LIBS"
19139
19140fi
19141
19142
19143echo "$as_me:$LINENO: checking for library containing dlopen" >&5
19144echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
19145if test "${ac_cv_search_dlopen+set}" = set; then
19146 echo $ECHO_N "(cached) $ECHO_C" >&6
19147else
19148 ac_func_search_save_LIBS=$LIBS
19149ac_cv_search_dlopen=no
19150cat >conftest.$ac_ext <<_ACEOF
19151#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019152/* confdefs.h. */
19153_ACEOF
19154cat confdefs.h >>conftest.$ac_ext
19155cat >>conftest.$ac_ext <<_ACEOF
19156/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019157
19158/* Override any gcc2 internal prototype to avoid an error. */
19159#ifdef __cplusplus
19160extern "C"
19161#endif
19162/* We use char because int might match the return type of a gcc2
19163 builtin and then its argument prototype would still apply. */
19164char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000019165int
19166main ()
19167{
19168dlopen ();
19169 ;
19170 return 0;
19171}
19172_ACEOF
19173rm -f conftest.$ac_objext conftest$ac_exeext
19174if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19175 (eval $ac_link) 2>&5
19176 ac_status=$?
19177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19178 (exit $ac_status); } &&
19179 { ac_try='test -s conftest$ac_exeext'
19180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19181 (eval $ac_try) 2>&5
19182 ac_status=$?
19183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19184 (exit $ac_status); }; }; then
19185 ac_cv_search_dlopen="none required"
19186else
19187 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019188sed 's/^/| /' conftest.$ac_ext >&5
19189
John Criswell7a73b802003-06-30 21:59:07 +000019190fi
19191rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19192if test "$ac_cv_search_dlopen" = no; then
19193 for ac_lib in dl; do
19194 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19195 cat >conftest.$ac_ext <<_ACEOF
19196#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019197/* confdefs.h. */
19198_ACEOF
19199cat confdefs.h >>conftest.$ac_ext
19200cat >>conftest.$ac_ext <<_ACEOF
19201/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019202
19203/* Override any gcc2 internal prototype to avoid an error. */
19204#ifdef __cplusplus
19205extern "C"
19206#endif
19207/* We use char because int might match the return type of a gcc2
19208 builtin and then its argument prototype would still apply. */
19209char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000019210int
19211main ()
19212{
19213dlopen ();
19214 ;
19215 return 0;
19216}
19217_ACEOF
19218rm -f conftest.$ac_objext conftest$ac_exeext
19219if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19220 (eval $ac_link) 2>&5
19221 ac_status=$?
19222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19223 (exit $ac_status); } &&
19224 { ac_try='test -s conftest$ac_exeext'
19225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19226 (eval $ac_try) 2>&5
19227 ac_status=$?
19228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19229 (exit $ac_status); }; }; then
19230 ac_cv_search_dlopen="-l$ac_lib"
19231break
19232else
19233 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019234sed 's/^/| /' conftest.$ac_ext >&5
19235
John Criswell7a73b802003-06-30 21:59:07 +000019236fi
19237rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19238 done
19239fi
19240LIBS=$ac_func_search_save_LIBS
19241fi
19242echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19243echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19244if test "$ac_cv_search_dlopen" != no; then
19245 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
19246
19247else
19248 { { echo "$as_me:$LINENO: error: dlopen() required but not found" >&5
19249echo "$as_me: error: dlopen() required but not found" >&2;}
19250 { (exit 1); exit 1; }; }
19251fi
19252
19253
19254echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19255echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19256if test "${ac_cv_search_mallinfo+set}" = set; then
19257 echo $ECHO_N "(cached) $ECHO_C" >&6
19258else
19259 ac_func_search_save_LIBS=$LIBS
19260ac_cv_search_mallinfo=no
19261cat >conftest.$ac_ext <<_ACEOF
19262#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019263/* confdefs.h. */
19264_ACEOF
19265cat confdefs.h >>conftest.$ac_ext
19266cat >>conftest.$ac_ext <<_ACEOF
19267/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019268
19269/* Override any gcc2 internal prototype to avoid an error. */
19270#ifdef __cplusplus
19271extern "C"
19272#endif
19273/* We use char because int might match the return type of a gcc2
19274 builtin and then its argument prototype would still apply. */
19275char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000019276int
19277main ()
19278{
19279mallinfo ();
19280 ;
19281 return 0;
19282}
19283_ACEOF
19284rm -f conftest.$ac_objext conftest$ac_exeext
19285if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19286 (eval $ac_link) 2>&5
19287 ac_status=$?
19288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19289 (exit $ac_status); } &&
19290 { ac_try='test -s conftest$ac_exeext'
19291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19292 (eval $ac_try) 2>&5
19293 ac_status=$?
19294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19295 (exit $ac_status); }; }; then
19296 ac_cv_search_mallinfo="none required"
19297else
19298 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019299sed 's/^/| /' conftest.$ac_ext >&5
19300
John Criswell7a73b802003-06-30 21:59:07 +000019301fi
19302rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19303if test "$ac_cv_search_mallinfo" = no; then
19304 for ac_lib in malloc; do
19305 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19306 cat >conftest.$ac_ext <<_ACEOF
19307#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019308/* confdefs.h. */
19309_ACEOF
19310cat confdefs.h >>conftest.$ac_ext
19311cat >>conftest.$ac_ext <<_ACEOF
19312/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019313
19314/* Override any gcc2 internal prototype to avoid an error. */
19315#ifdef __cplusplus
19316extern "C"
19317#endif
19318/* We use char because int might match the return type of a gcc2
19319 builtin and then its argument prototype would still apply. */
19320char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000019321int
19322main ()
19323{
19324mallinfo ();
19325 ;
19326 return 0;
19327}
19328_ACEOF
19329rm -f conftest.$ac_objext conftest$ac_exeext
19330if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19331 (eval $ac_link) 2>&5
19332 ac_status=$?
19333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19334 (exit $ac_status); } &&
19335 { ac_try='test -s conftest$ac_exeext'
19336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19337 (eval $ac_try) 2>&5
19338 ac_status=$?
19339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19340 (exit $ac_status); }; }; then
19341 ac_cv_search_mallinfo="-l$ac_lib"
19342break
19343else
19344 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019345sed 's/^/| /' conftest.$ac_ext >&5
19346
John Criswell7a73b802003-06-30 21:59:07 +000019347fi
19348rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19349 done
19350fi
19351LIBS=$ac_func_search_save_LIBS
19352fi
19353echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19354echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19355if test "$ac_cv_search_mallinfo" != no; then
19356 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
19357 cat >>confdefs.h <<\_ACEOF
19358#define HAVE_MALLINFO 1
19359_ACEOF
19360
19361fi
19362
19363
19364
19365echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19366echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19367if test "${ac_cv_header_stdc+set}" = set; then
19368 echo $ECHO_N "(cached) $ECHO_C" >&6
19369else
19370 cat >conftest.$ac_ext <<_ACEOF
19371#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019372/* confdefs.h. */
19373_ACEOF
19374cat confdefs.h >>conftest.$ac_ext
19375cat >>conftest.$ac_ext <<_ACEOF
19376/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019377#include <stdlib.h>
19378#include <stdarg.h>
19379#include <string.h>
19380#include <float.h>
19381
John Criswell0c38eaf2003-09-10 15:17:25 +000019382int
19383main ()
19384{
19385
19386 ;
19387 return 0;
19388}
John Criswell7a73b802003-06-30 21:59:07 +000019389_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019390rm -f conftest.$ac_objext
19391if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19392 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000019393 ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +000019394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019395 (exit $ac_status); } &&
19396 { ac_try='test -s conftest.$ac_objext'
19397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19398 (eval $ac_try) 2>&5
19399 ac_status=$?
19400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19401 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000019402 ac_cv_header_stdc=yes
19403else
19404 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019405sed 's/^/| /' conftest.$ac_ext >&5
19406
19407ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000019408fi
John Criswell0c38eaf2003-09-10 15:17:25 +000019409rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019410
19411if test $ac_cv_header_stdc = yes; then
19412 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19413 cat >conftest.$ac_ext <<_ACEOF
19414#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019415/* confdefs.h. */
19416_ACEOF
19417cat confdefs.h >>conftest.$ac_ext
19418cat >>conftest.$ac_ext <<_ACEOF
19419/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019420#include <string.h>
19421
19422_ACEOF
19423if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000019424 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000019425 :
19426else
19427 ac_cv_header_stdc=no
19428fi
19429rm -f conftest*
19430
19431fi
19432
19433if test $ac_cv_header_stdc = yes; then
19434 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19435 cat >conftest.$ac_ext <<_ACEOF
19436#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019437/* confdefs.h. */
19438_ACEOF
19439cat confdefs.h >>conftest.$ac_ext
19440cat >>conftest.$ac_ext <<_ACEOF
19441/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019442#include <stdlib.h>
19443
19444_ACEOF
19445if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000019446 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000019447 :
19448else
19449 ac_cv_header_stdc=no
19450fi
19451rm -f conftest*
19452
19453fi
19454
19455if test $ac_cv_header_stdc = yes; then
19456 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19457 if test "$cross_compiling" = yes; then
19458 :
19459else
19460 cat >conftest.$ac_ext <<_ACEOF
19461#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019462/* confdefs.h. */
19463_ACEOF
19464cat confdefs.h >>conftest.$ac_ext
19465cat >>conftest.$ac_ext <<_ACEOF
19466/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019467#include <ctype.h>
19468#if ((' ' & 0x0FF) == 0x020)
19469# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19470# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19471#else
John Criswell0c38eaf2003-09-10 15:17:25 +000019472# define ISLOWER(c) \
19473 (('a' <= (c) && (c) <= 'i') \
John Criswell7a73b802003-06-30 21:59:07 +000019474 || ('j' <= (c) && (c) <= 'r') \
19475 || ('s' <= (c) && (c) <= 'z'))
19476# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19477#endif
19478
19479#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19480int
19481main ()
19482{
19483 int i;
19484 for (i = 0; i < 256; i++)
19485 if (XOR (islower (i), ISLOWER (i))
19486 || toupper (i) != TOUPPER (i))
19487 exit(2);
19488 exit (0);
19489}
19490_ACEOF
19491rm -f conftest$ac_exeext
19492if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19493 (eval $ac_link) 2>&5
19494 ac_status=$?
19495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19496 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19498 (eval $ac_try) 2>&5
19499 ac_status=$?
19500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19501 (exit $ac_status); }; }; then
19502 :
19503else
19504 echo "$as_me: program exited with status $ac_status" >&5
19505echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019506sed 's/^/| /' conftest.$ac_ext >&5
19507
John Criswell7a73b802003-06-30 21:59:07 +000019508( exit $ac_status )
19509ac_cv_header_stdc=no
19510fi
John Criswell0c38eaf2003-09-10 15:17:25 +000019511rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019512fi
19513fi
19514fi
19515echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19516echo "${ECHO_T}$ac_cv_header_stdc" >&6
19517if test $ac_cv_header_stdc = yes; then
19518
19519cat >>confdefs.h <<\_ACEOF
19520#define STDC_HEADERS 1
19521_ACEOF
19522
19523fi
19524
19525echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19526echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19527if test "${ac_cv_header_sys_wait_h+set}" = set; then
19528 echo $ECHO_N "(cached) $ECHO_C" >&6
19529else
19530 cat >conftest.$ac_ext <<_ACEOF
19531#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019532/* confdefs.h. */
19533_ACEOF
19534cat confdefs.h >>conftest.$ac_ext
19535cat >>conftest.$ac_ext <<_ACEOF
19536/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019537#include <sys/types.h>
19538#include <sys/wait.h>
19539#ifndef WEXITSTATUS
19540# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19541#endif
19542#ifndef WIFEXITED
19543# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19544#endif
19545
John Criswell7a73b802003-06-30 21:59:07 +000019546int
19547main ()
19548{
19549 int s;
19550 wait (&s);
19551 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19552 ;
19553 return 0;
19554}
19555_ACEOF
19556rm -f conftest.$ac_objext
19557if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19558 (eval $ac_compile) 2>&5
19559 ac_status=$?
19560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19561 (exit $ac_status); } &&
19562 { ac_try='test -s conftest.$ac_objext'
19563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19564 (eval $ac_try) 2>&5
19565 ac_status=$?
19566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19567 (exit $ac_status); }; }; then
19568 ac_cv_header_sys_wait_h=yes
19569else
19570 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019571sed 's/^/| /' conftest.$ac_ext >&5
19572
John Criswell7a73b802003-06-30 21:59:07 +000019573ac_cv_header_sys_wait_h=no
19574fi
19575rm -f conftest.$ac_objext conftest.$ac_ext
19576fi
19577echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19578echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19579if test $ac_cv_header_sys_wait_h = yes; then
19580
19581cat >>confdefs.h <<\_ACEOF
19582#define HAVE_SYS_WAIT_H 1
19583_ACEOF
19584
19585fi
19586
19587
19588
19589
19590
19591
19592
19593
19594
19595
19596for ac_header in assert.h fcntl.h limits.h sys/time.h unistd.h errno.h signal.h math.h
19597do
19598as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19599if eval "test \"\${$as_ac_Header+set}\" = set"; then
19600 echo "$as_me:$LINENO: checking for $ac_header" >&5
19601echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19602if eval "test \"\${$as_ac_Header+set}\" = set"; then
19603 echo $ECHO_N "(cached) $ECHO_C" >&6
19604fi
19605echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19606echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19607else
19608 # Is the header compilable?
19609echo "$as_me:$LINENO: checking $ac_header usability" >&5
19610echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19611cat >conftest.$ac_ext <<_ACEOF
19612#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019613/* confdefs.h. */
19614_ACEOF
19615cat confdefs.h >>conftest.$ac_ext
19616cat >>conftest.$ac_ext <<_ACEOF
19617/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019618$ac_includes_default
19619#include <$ac_header>
19620_ACEOF
19621rm -f conftest.$ac_objext
19622if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19623 (eval $ac_compile) 2>&5
19624 ac_status=$?
19625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19626 (exit $ac_status); } &&
19627 { ac_try='test -s conftest.$ac_objext'
19628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19629 (eval $ac_try) 2>&5
19630 ac_status=$?
19631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19632 (exit $ac_status); }; }; then
19633 ac_header_compiler=yes
19634else
19635 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019636sed 's/^/| /' conftest.$ac_ext >&5
19637
John Criswell7a73b802003-06-30 21:59:07 +000019638ac_header_compiler=no
19639fi
19640rm -f conftest.$ac_objext conftest.$ac_ext
19641echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19642echo "${ECHO_T}$ac_header_compiler" >&6
19643
19644# Is the header present?
19645echo "$as_me:$LINENO: checking $ac_header presence" >&5
19646echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19647cat >conftest.$ac_ext <<_ACEOF
19648#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019649/* confdefs.h. */
19650_ACEOF
19651cat confdefs.h >>conftest.$ac_ext
19652cat >>conftest.$ac_ext <<_ACEOF
19653/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019654#include <$ac_header>
19655_ACEOF
19656if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19657 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19658 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019659 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019660 rm -f conftest.er1
19661 cat conftest.err >&5
19662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19663 (exit $ac_status); } >/dev/null; then
19664 if test -s conftest.err; then
19665 ac_cpp_err=$ac_c_preproc_warn_flag
19666 else
19667 ac_cpp_err=
19668 fi
19669else
19670 ac_cpp_err=yes
19671fi
19672if test -z "$ac_cpp_err"; then
19673 ac_header_preproc=yes
19674else
19675 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019676sed 's/^/| /' conftest.$ac_ext >&5
19677
John Criswell7a73b802003-06-30 21:59:07 +000019678 ac_header_preproc=no
19679fi
19680rm -f conftest.err conftest.$ac_ext
19681echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19682echo "${ECHO_T}$ac_header_preproc" >&6
19683
19684# So? What about this header?
19685case $ac_header_compiler:$ac_header_preproc in
19686 yes:no )
19687 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19688echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19689 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019690echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19691 (
19692 cat <<\_ASBOX
19693## ------------------------------------ ##
19694## Report this to bug-autoconf@gnu.org. ##
19695## ------------------------------------ ##
19696_ASBOX
19697 ) |
19698 sed "s/^/$as_me: WARNING: /" >&2
19699 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019700 no:yes )
19701 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19702echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19703 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19704echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019706echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19707 (
19708 cat <<\_ASBOX
19709## ------------------------------------ ##
19710## Report this to bug-autoconf@gnu.org. ##
19711## ------------------------------------ ##
19712_ASBOX
19713 ) |
19714 sed "s/^/$as_me: WARNING: /" >&2
19715 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019716esac
19717echo "$as_me:$LINENO: checking for $ac_header" >&5
19718echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19719if eval "test \"\${$as_ac_Header+set}\" = set"; then
19720 echo $ECHO_N "(cached) $ECHO_C" >&6
19721else
19722 eval "$as_ac_Header=$ac_header_preproc"
19723fi
19724echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19725echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19726
19727fi
19728if test `eval echo '${'$as_ac_Header'}'` = yes; then
19729 cat >>confdefs.h <<_ACEOF
19730#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19731_ACEOF
19732
19733fi
19734
19735done
19736
19737
19738
19739
19740
19741
19742for ac_header in malloc.h strings.h sys/mman.h sys/resource.h
19743do
19744as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19745if eval "test \"\${$as_ac_Header+set}\" = set"; then
19746 echo "$as_me:$LINENO: checking for $ac_header" >&5
19747echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19748if eval "test \"\${$as_ac_Header+set}\" = set"; then
19749 echo $ECHO_N "(cached) $ECHO_C" >&6
19750fi
19751echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19752echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19753else
19754 # Is the header compilable?
19755echo "$as_me:$LINENO: checking $ac_header usability" >&5
19756echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19757cat >conftest.$ac_ext <<_ACEOF
19758#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019759/* confdefs.h. */
19760_ACEOF
19761cat confdefs.h >>conftest.$ac_ext
19762cat >>conftest.$ac_ext <<_ACEOF
19763/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019764$ac_includes_default
19765#include <$ac_header>
19766_ACEOF
19767rm -f conftest.$ac_objext
19768if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19769 (eval $ac_compile) 2>&5
19770 ac_status=$?
19771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19772 (exit $ac_status); } &&
19773 { ac_try='test -s conftest.$ac_objext'
19774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19775 (eval $ac_try) 2>&5
19776 ac_status=$?
19777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19778 (exit $ac_status); }; }; then
19779 ac_header_compiler=yes
19780else
19781 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019782sed 's/^/| /' conftest.$ac_ext >&5
19783
John Criswell7a73b802003-06-30 21:59:07 +000019784ac_header_compiler=no
19785fi
19786rm -f conftest.$ac_objext conftest.$ac_ext
19787echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19788echo "${ECHO_T}$ac_header_compiler" >&6
19789
19790# Is the header present?
19791echo "$as_me:$LINENO: checking $ac_header presence" >&5
19792echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19793cat >conftest.$ac_ext <<_ACEOF
19794#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019795/* confdefs.h. */
19796_ACEOF
19797cat confdefs.h >>conftest.$ac_ext
19798cat >>conftest.$ac_ext <<_ACEOF
19799/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019800#include <$ac_header>
19801_ACEOF
19802if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19803 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19804 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019805 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019806 rm -f conftest.er1
19807 cat conftest.err >&5
19808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19809 (exit $ac_status); } >/dev/null; then
19810 if test -s conftest.err; then
19811 ac_cpp_err=$ac_c_preproc_warn_flag
19812 else
19813 ac_cpp_err=
19814 fi
19815else
19816 ac_cpp_err=yes
19817fi
19818if test -z "$ac_cpp_err"; then
19819 ac_header_preproc=yes
19820else
19821 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019822sed 's/^/| /' conftest.$ac_ext >&5
19823
John Criswell7a73b802003-06-30 21:59:07 +000019824 ac_header_preproc=no
19825fi
19826rm -f conftest.err conftest.$ac_ext
19827echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19828echo "${ECHO_T}$ac_header_preproc" >&6
19829
19830# So? What about this header?
19831case $ac_header_compiler:$ac_header_preproc in
19832 yes:no )
19833 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19834echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19835 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019836echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19837 (
19838 cat <<\_ASBOX
19839## ------------------------------------ ##
19840## Report this to bug-autoconf@gnu.org. ##
19841## ------------------------------------ ##
19842_ASBOX
19843 ) |
19844 sed "s/^/$as_me: WARNING: /" >&2
19845 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019846 no:yes )
19847 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19848echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19849 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19850echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19851 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019852echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19853 (
19854 cat <<\_ASBOX
19855## ------------------------------------ ##
19856## Report this to bug-autoconf@gnu.org. ##
19857## ------------------------------------ ##
19858_ASBOX
19859 ) |
19860 sed "s/^/$as_me: WARNING: /" >&2
19861 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019862esac
19863echo "$as_me:$LINENO: checking for $ac_header" >&5
19864echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19865if eval "test \"\${$as_ac_Header+set}\" = set"; then
19866 echo $ECHO_N "(cached) $ECHO_C" >&6
19867else
19868 eval "$as_ac_Header=$ac_header_preproc"
19869fi
19870echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19871echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19872
19873fi
19874if test `eval echo '${'$as_ac_Header'}'` = yes; then
19875 cat >>confdefs.h <<_ACEOF
19876#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19877_ACEOF
19878
19879fi
19880
19881done
19882
19883
19884
19885
19886for ac_header in dlfcn.h link.h
19887do
19888as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19889if eval "test \"\${$as_ac_Header+set}\" = set"; then
19890 echo "$as_me:$LINENO: checking for $ac_header" >&5
19891echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19892if eval "test \"\${$as_ac_Header+set}\" = set"; then
19893 echo $ECHO_N "(cached) $ECHO_C" >&6
19894fi
19895echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19896echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19897else
19898 # Is the header compilable?
19899echo "$as_me:$LINENO: checking $ac_header usability" >&5
19900echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19901cat >conftest.$ac_ext <<_ACEOF
19902#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019903/* confdefs.h. */
19904_ACEOF
19905cat confdefs.h >>conftest.$ac_ext
19906cat >>conftest.$ac_ext <<_ACEOF
19907/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019908$ac_includes_default
19909#include <$ac_header>
19910_ACEOF
19911rm -f conftest.$ac_objext
19912if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19913 (eval $ac_compile) 2>&5
19914 ac_status=$?
19915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19916 (exit $ac_status); } &&
19917 { ac_try='test -s conftest.$ac_objext'
19918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19919 (eval $ac_try) 2>&5
19920 ac_status=$?
19921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19922 (exit $ac_status); }; }; then
19923 ac_header_compiler=yes
19924else
19925 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019926sed 's/^/| /' conftest.$ac_ext >&5
19927
John Criswell7a73b802003-06-30 21:59:07 +000019928ac_header_compiler=no
19929fi
19930rm -f conftest.$ac_objext conftest.$ac_ext
19931echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19932echo "${ECHO_T}$ac_header_compiler" >&6
19933
19934# Is the header present?
19935echo "$as_me:$LINENO: checking $ac_header presence" >&5
19936echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19937cat >conftest.$ac_ext <<_ACEOF
19938#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019939/* confdefs.h. */
19940_ACEOF
19941cat confdefs.h >>conftest.$ac_ext
19942cat >>conftest.$ac_ext <<_ACEOF
19943/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019944#include <$ac_header>
19945_ACEOF
19946if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19947 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19948 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019949 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019950 rm -f conftest.er1
19951 cat conftest.err >&5
19952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19953 (exit $ac_status); } >/dev/null; then
19954 if test -s conftest.err; then
19955 ac_cpp_err=$ac_c_preproc_warn_flag
19956 else
19957 ac_cpp_err=
19958 fi
19959else
19960 ac_cpp_err=yes
19961fi
19962if test -z "$ac_cpp_err"; then
19963 ac_header_preproc=yes
19964else
19965 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019966sed 's/^/| /' conftest.$ac_ext >&5
19967
John Criswell7a73b802003-06-30 21:59:07 +000019968 ac_header_preproc=no
19969fi
19970rm -f conftest.err conftest.$ac_ext
19971echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19972echo "${ECHO_T}$ac_header_preproc" >&6
19973
19974# So? What about this header?
19975case $ac_header_compiler:$ac_header_preproc in
19976 yes:no )
19977 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19978echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19979 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019980echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19981 (
19982 cat <<\_ASBOX
19983## ------------------------------------ ##
19984## Report this to bug-autoconf@gnu.org. ##
19985## ------------------------------------ ##
19986_ASBOX
19987 ) |
19988 sed "s/^/$as_me: WARNING: /" >&2
19989 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019990 no:yes )
19991 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19992echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19993 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19994echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19995 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019996echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19997 (
19998 cat <<\_ASBOX
19999## ------------------------------------ ##
20000## Report this to bug-autoconf@gnu.org. ##
20001## ------------------------------------ ##
20002_ASBOX
20003 ) |
20004 sed "s/^/$as_me: WARNING: /" >&2
20005 ;;
John Criswell7a73b802003-06-30 21:59:07 +000020006esac
20007echo "$as_me:$LINENO: checking for $ac_header" >&5
20008echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20009if eval "test \"\${$as_ac_Header+set}\" = set"; then
20010 echo $ECHO_N "(cached) $ECHO_C" >&6
20011else
20012 eval "$as_ac_Header=$ac_header_preproc"
20013fi
20014echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20015echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20016
20017fi
20018if test `eval echo '${'$as_ac_Header'}'` = yes; then
20019 cat >>confdefs.h <<_ACEOF
20020#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20021_ACEOF
20022
20023fi
20024
20025done
20026
20027
20028
John Criswell7a73b802003-06-30 21:59:07 +000020029echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20030echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20031if test "${ac_cv_c_const+set}" = set; then
20032 echo $ECHO_N "(cached) $ECHO_C" >&6
20033else
20034 cat >conftest.$ac_ext <<_ACEOF
20035#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020036/* confdefs.h. */
20037_ACEOF
20038cat confdefs.h >>conftest.$ac_ext
20039cat >>conftest.$ac_ext <<_ACEOF
20040/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020041
John Criswell7a73b802003-06-30 21:59:07 +000020042int
20043main ()
20044{
20045/* FIXME: Include the comments suggested by Paul. */
20046#ifndef __cplusplus
20047 /* Ultrix mips cc rejects this. */
20048 typedef int charset[2];
20049 const charset x;
20050 /* SunOS 4.1.1 cc rejects this. */
20051 char const *const *ccp;
20052 char **p;
20053 /* NEC SVR4.0.2 mips cc rejects this. */
20054 struct point {int x, y;};
20055 static struct point const zero = {0,0};
20056 /* AIX XL C 1.02.0.0 rejects this.
20057 It does not let you subtract one const X* pointer from another in
20058 an arm of an if-expression whose if-part is not a constant
20059 expression */
20060 const char *g = "string";
20061 ccp = &g + (g ? g-g : 0);
20062 /* HPUX 7.0 cc rejects these. */
20063 ++ccp;
20064 p = (char**) ccp;
20065 ccp = (char const *const *) p;
20066 { /* SCO 3.2v4 cc rejects this. */
20067 char *t;
20068 char const *s = 0 ? (char *) 0 : (char const *) 0;
20069
20070 *t++ = 0;
20071 }
20072 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20073 int x[] = {25, 17};
20074 const int *foo = &x[0];
20075 ++foo;
20076 }
20077 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20078 typedef const int *iptr;
20079 iptr p = 0;
20080 ++p;
20081 }
20082 { /* AIX XL C 1.02.0.0 rejects this saying
20083 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20084 struct s { int j; const int *ap[3]; };
20085 struct s *b; b->j = 5;
20086 }
20087 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20088 const int foo = 10;
20089 }
20090#endif
20091
20092 ;
20093 return 0;
20094}
20095_ACEOF
20096rm -f conftest.$ac_objext
20097if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20098 (eval $ac_compile) 2>&5
20099 ac_status=$?
20100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20101 (exit $ac_status); } &&
20102 { ac_try='test -s conftest.$ac_objext'
20103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20104 (eval $ac_try) 2>&5
20105 ac_status=$?
20106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20107 (exit $ac_status); }; }; then
20108 ac_cv_c_const=yes
20109else
20110 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020111sed 's/^/| /' conftest.$ac_ext >&5
20112
John Criswell7a73b802003-06-30 21:59:07 +000020113ac_cv_c_const=no
20114fi
20115rm -f conftest.$ac_objext conftest.$ac_ext
20116fi
20117echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20118echo "${ECHO_T}$ac_cv_c_const" >&6
20119if test $ac_cv_c_const = no; then
20120
20121cat >>confdefs.h <<\_ACEOF
20122#define const
20123_ACEOF
20124
20125fi
20126
20127echo "$as_me:$LINENO: checking for inline" >&5
20128echo $ECHO_N "checking for inline... $ECHO_C" >&6
20129if test "${ac_cv_c_inline+set}" = set; then
20130 echo $ECHO_N "(cached) $ECHO_C" >&6
20131else
20132 ac_cv_c_inline=no
20133for ac_kw in inline __inline__ __inline; do
20134 cat >conftest.$ac_ext <<_ACEOF
20135#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020136/* confdefs.h. */
20137_ACEOF
20138cat confdefs.h >>conftest.$ac_ext
20139cat >>conftest.$ac_ext <<_ACEOF
20140/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020141#ifndef __cplusplus
John Criswell0c38eaf2003-09-10 15:17:25 +000020142typedef int foo_t;
20143static $ac_kw foo_t static_foo () {return 0; }
20144$ac_kw foo_t foo () {return 0; }
John Criswell7a73b802003-06-30 21:59:07 +000020145#endif
20146
20147_ACEOF
20148rm -f conftest.$ac_objext
20149if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20150 (eval $ac_compile) 2>&5
20151 ac_status=$?
20152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20153 (exit $ac_status); } &&
20154 { ac_try='test -s conftest.$ac_objext'
20155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20156 (eval $ac_try) 2>&5
20157 ac_status=$?
20158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20159 (exit $ac_status); }; }; then
20160 ac_cv_c_inline=$ac_kw; break
20161else
20162 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020163sed 's/^/| /' conftest.$ac_ext >&5
20164
John Criswell7a73b802003-06-30 21:59:07 +000020165fi
20166rm -f conftest.$ac_objext conftest.$ac_ext
20167done
20168
20169fi
20170echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20171echo "${ECHO_T}$ac_cv_c_inline" >&6
20172case $ac_cv_c_inline in
20173 inline | yes) ;;
20174 no)
20175cat >>confdefs.h <<\_ACEOF
20176#define inline
20177_ACEOF
20178 ;;
20179 *) cat >>confdefs.h <<_ACEOF
20180#define inline $ac_cv_c_inline
20181_ACEOF
20182 ;;
20183esac
20184
20185
20186echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20187echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20188if test "${ac_cv_c_bigendian+set}" = set; then
20189 echo $ECHO_N "(cached) $ECHO_C" >&6
20190else
20191 # See if sys/param.h defines the BYTE_ORDER macro.
20192cat >conftest.$ac_ext <<_ACEOF
20193#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020194/* confdefs.h. */
20195_ACEOF
20196cat confdefs.h >>conftest.$ac_ext
20197cat >>conftest.$ac_ext <<_ACEOF
20198/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020199#include <sys/types.h>
20200#include <sys/param.h>
20201
John Criswell7a73b802003-06-30 21:59:07 +000020202int
20203main ()
20204{
20205#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20206 bogus endian macros
20207#endif
20208
20209 ;
20210 return 0;
20211}
20212_ACEOF
20213rm -f conftest.$ac_objext
20214if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20215 (eval $ac_compile) 2>&5
20216 ac_status=$?
20217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20218 (exit $ac_status); } &&
20219 { ac_try='test -s conftest.$ac_objext'
20220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20221 (eval $ac_try) 2>&5
20222 ac_status=$?
20223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20224 (exit $ac_status); }; }; then
20225 # It does; now see whether it defined to BIG_ENDIAN or not.
20226cat >conftest.$ac_ext <<_ACEOF
20227#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020228/* confdefs.h. */
20229_ACEOF
20230cat confdefs.h >>conftest.$ac_ext
20231cat >>conftest.$ac_ext <<_ACEOF
20232/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020233#include <sys/types.h>
20234#include <sys/param.h>
20235
John Criswell7a73b802003-06-30 21:59:07 +000020236int
20237main ()
20238{
20239#if BYTE_ORDER != BIG_ENDIAN
20240 not big endian
20241#endif
20242
20243 ;
20244 return 0;
20245}
20246_ACEOF
20247rm -f conftest.$ac_objext
20248if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20249 (eval $ac_compile) 2>&5
20250 ac_status=$?
20251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20252 (exit $ac_status); } &&
20253 { ac_try='test -s conftest.$ac_objext'
20254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20255 (eval $ac_try) 2>&5
20256 ac_status=$?
20257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20258 (exit $ac_status); }; }; then
20259 ac_cv_c_bigendian=yes
20260else
20261 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020262sed 's/^/| /' conftest.$ac_ext >&5
20263
John Criswell7a73b802003-06-30 21:59:07 +000020264ac_cv_c_bigendian=no
20265fi
20266rm -f conftest.$ac_objext conftest.$ac_ext
20267else
20268 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020269sed 's/^/| /' conftest.$ac_ext >&5
20270
John Criswell7a73b802003-06-30 21:59:07 +000020271# It does not; compile a test program.
20272if test "$cross_compiling" = yes; then
John Criswell0c38eaf2003-09-10 15:17:25 +000020273 # try to guess the endianness by grepping values into an object file
John Criswell7a73b802003-06-30 21:59:07 +000020274 ac_cv_c_bigendian=unknown
20275 cat >conftest.$ac_ext <<_ACEOF
20276#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020277/* confdefs.h. */
20278_ACEOF
20279cat confdefs.h >>conftest.$ac_ext
20280cat >>conftest.$ac_ext <<_ACEOF
20281/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020282short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20283short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20284void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20285short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20286short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20287void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
John Criswell7a73b802003-06-30 21:59:07 +000020288int
20289main ()
20290{
20291 _ascii (); _ebcdic ();
20292 ;
20293 return 0;
20294}
20295_ACEOF
20296rm -f conftest.$ac_objext
20297if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20298 (eval $ac_compile) 2>&5
20299 ac_status=$?
20300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20301 (exit $ac_status); } &&
20302 { ac_try='test -s conftest.$ac_objext'
20303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20304 (eval $ac_try) 2>&5
20305 ac_status=$?
20306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20307 (exit $ac_status); }; }; then
John Criswell0c38eaf2003-09-10 15:17:25 +000020308 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
John Criswell7a73b802003-06-30 21:59:07 +000020309 ac_cv_c_bigendian=yes
20310fi
John Criswell0c38eaf2003-09-10 15:17:25 +000020311if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
John Criswell7a73b802003-06-30 21:59:07 +000020312 if test "$ac_cv_c_bigendian" = unknown; then
20313 ac_cv_c_bigendian=no
20314 else
20315 # finding both strings is unlikely to happen, but who knows?
20316 ac_cv_c_bigendian=unknown
20317 fi
20318fi
20319else
20320 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020321sed 's/^/| /' conftest.$ac_ext >&5
20322
John Criswell7a73b802003-06-30 21:59:07 +000020323fi
20324rm -f conftest.$ac_objext conftest.$ac_ext
20325else
20326 cat >conftest.$ac_ext <<_ACEOF
20327#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020328/* confdefs.h. */
20329_ACEOF
20330cat confdefs.h >>conftest.$ac_ext
20331cat >>conftest.$ac_ext <<_ACEOF
20332/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020333int
20334main ()
20335{
20336 /* Are we little or big endian? From Harbison&Steele. */
20337 union
20338 {
20339 long l;
20340 char c[sizeof (long)];
20341 } u;
20342 u.l = 1;
20343 exit (u.c[sizeof (long) - 1] == 1);
20344}
20345_ACEOF
20346rm -f conftest$ac_exeext
20347if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20348 (eval $ac_link) 2>&5
20349 ac_status=$?
20350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20351 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20353 (eval $ac_try) 2>&5
20354 ac_status=$?
20355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20356 (exit $ac_status); }; }; then
20357 ac_cv_c_bigendian=no
20358else
20359 echo "$as_me: program exited with status $ac_status" >&5
20360echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020361sed 's/^/| /' conftest.$ac_ext >&5
20362
John Criswell7a73b802003-06-30 21:59:07 +000020363( exit $ac_status )
20364ac_cv_c_bigendian=yes
20365fi
John Criswell0c38eaf2003-09-10 15:17:25 +000020366rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020367fi
20368fi
20369rm -f conftest.$ac_objext conftest.$ac_ext
20370fi
20371echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20372echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20373case $ac_cv_c_bigendian in
20374 yes)
20375 cat >>confdefs.h <<\_ACEOF
20376#define ENDIAN_BIG 1
20377_ACEOF
20378 ;;
20379 no)
20380 cat >>confdefs.h <<\_ACEOF
20381#define ENDIAN_LITTLE 1
20382_ACEOF
20383 ;;
20384 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000020385 { { echo "$as_me:$LINENO: error: unknown endianness
John Criswell7a73b802003-06-30 21:59:07 +000020386presetting ac_cv_c_bigendian=no (or yes) will help" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020387echo "$as_me: error: unknown endianness
John Criswell7a73b802003-06-30 21:59:07 +000020388presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20389 { (exit 1); exit 1; }; } ;;
20390esac
20391
20392
20393echo "$as_me:$LINENO: checking for pid_t" >&5
20394echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20395if test "${ac_cv_type_pid_t+set}" = set; then
20396 echo $ECHO_N "(cached) $ECHO_C" >&6
20397else
20398 cat >conftest.$ac_ext <<_ACEOF
20399#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020400/* confdefs.h. */
20401_ACEOF
20402cat confdefs.h >>conftest.$ac_ext
20403cat >>conftest.$ac_ext <<_ACEOF
20404/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020405$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020406int
20407main ()
20408{
20409if ((pid_t *) 0)
20410 return 0;
20411if (sizeof (pid_t))
20412 return 0;
20413 ;
20414 return 0;
20415}
20416_ACEOF
20417rm -f conftest.$ac_objext
20418if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20419 (eval $ac_compile) 2>&5
20420 ac_status=$?
20421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20422 (exit $ac_status); } &&
20423 { ac_try='test -s conftest.$ac_objext'
20424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20425 (eval $ac_try) 2>&5
20426 ac_status=$?
20427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20428 (exit $ac_status); }; }; then
20429 ac_cv_type_pid_t=yes
20430else
20431 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020432sed 's/^/| /' conftest.$ac_ext >&5
20433
John Criswell7a73b802003-06-30 21:59:07 +000020434ac_cv_type_pid_t=no
20435fi
20436rm -f conftest.$ac_objext conftest.$ac_ext
20437fi
20438echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20439echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20440if test $ac_cv_type_pid_t = yes; then
20441 :
20442else
20443
20444cat >>confdefs.h <<_ACEOF
20445#define pid_t int
20446_ACEOF
20447
20448fi
20449
20450echo "$as_me:$LINENO: checking for size_t" >&5
20451echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20452if test "${ac_cv_type_size_t+set}" = set; then
20453 echo $ECHO_N "(cached) $ECHO_C" >&6
20454else
20455 cat >conftest.$ac_ext <<_ACEOF
20456#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020457/* confdefs.h. */
20458_ACEOF
20459cat confdefs.h >>conftest.$ac_ext
20460cat >>conftest.$ac_ext <<_ACEOF
20461/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020462$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020463int
20464main ()
20465{
20466if ((size_t *) 0)
20467 return 0;
20468if (sizeof (size_t))
20469 return 0;
20470 ;
20471 return 0;
20472}
20473_ACEOF
20474rm -f conftest.$ac_objext
20475if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20476 (eval $ac_compile) 2>&5
20477 ac_status=$?
20478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20479 (exit $ac_status); } &&
20480 { ac_try='test -s conftest.$ac_objext'
20481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20482 (eval $ac_try) 2>&5
20483 ac_status=$?
20484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20485 (exit $ac_status); }; }; then
20486 ac_cv_type_size_t=yes
20487else
20488 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020489sed 's/^/| /' conftest.$ac_ext >&5
20490
John Criswell7a73b802003-06-30 21:59:07 +000020491ac_cv_type_size_t=no
20492fi
20493rm -f conftest.$ac_objext conftest.$ac_ext
20494fi
20495echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20496echo "${ECHO_T}$ac_cv_type_size_t" >&6
20497if test $ac_cv_type_size_t = yes; then
20498 :
20499else
20500
20501cat >>confdefs.h <<_ACEOF
20502#define size_t unsigned
20503_ACEOF
20504
20505fi
20506
20507echo "$as_me:$LINENO: checking for int64_t" >&5
20508echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20509if test "${ac_cv_type_int64_t+set}" = set; then
20510 echo $ECHO_N "(cached) $ECHO_C" >&6
20511else
20512 cat >conftest.$ac_ext <<_ACEOF
20513#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020514/* confdefs.h. */
20515_ACEOF
20516cat confdefs.h >>conftest.$ac_ext
20517cat >>conftest.$ac_ext <<_ACEOF
20518/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020519$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020520int
20521main ()
20522{
20523if ((int64_t *) 0)
20524 return 0;
20525if (sizeof (int64_t))
20526 return 0;
20527 ;
20528 return 0;
20529}
20530_ACEOF
20531rm -f conftest.$ac_objext
20532if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20533 (eval $ac_compile) 2>&5
20534 ac_status=$?
20535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20536 (exit $ac_status); } &&
20537 { ac_try='test -s conftest.$ac_objext'
20538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20539 (eval $ac_try) 2>&5
20540 ac_status=$?
20541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20542 (exit $ac_status); }; }; then
20543 ac_cv_type_int64_t=yes
20544else
20545 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020546sed 's/^/| /' conftest.$ac_ext >&5
20547
John Criswell7a73b802003-06-30 21:59:07 +000020548ac_cv_type_int64_t=no
20549fi
20550rm -f conftest.$ac_objext conftest.$ac_ext
20551fi
20552echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20553echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20554if test $ac_cv_type_int64_t = yes; then
20555
20556cat >>confdefs.h <<_ACEOF
20557#define HAVE_INT64_T 1
20558_ACEOF
20559
20560
20561else
20562 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20563echo "$as_me: error: Type int64_t required but not found" >&2;}
20564 { (exit 1); exit 1; }; }
20565fi
20566
20567echo "$as_me:$LINENO: checking for uint64_t" >&5
20568echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20569if test "${ac_cv_type_uint64_t+set}" = set; then
20570 echo $ECHO_N "(cached) $ECHO_C" >&6
20571else
20572 cat >conftest.$ac_ext <<_ACEOF
20573#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020574/* confdefs.h. */
20575_ACEOF
20576cat confdefs.h >>conftest.$ac_ext
20577cat >>conftest.$ac_ext <<_ACEOF
20578/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020579$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020580int
20581main ()
20582{
20583if ((uint64_t *) 0)
20584 return 0;
20585if (sizeof (uint64_t))
20586 return 0;
20587 ;
20588 return 0;
20589}
20590_ACEOF
20591rm -f conftest.$ac_objext
20592if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20593 (eval $ac_compile) 2>&5
20594 ac_status=$?
20595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20596 (exit $ac_status); } &&
20597 { ac_try='test -s conftest.$ac_objext'
20598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20599 (eval $ac_try) 2>&5
20600 ac_status=$?
20601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20602 (exit $ac_status); }; }; then
20603 ac_cv_type_uint64_t=yes
20604else
20605 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020606sed 's/^/| /' conftest.$ac_ext >&5
20607
John Criswell7a73b802003-06-30 21:59:07 +000020608ac_cv_type_uint64_t=no
20609fi
20610rm -f conftest.$ac_objext conftest.$ac_ext
20611fi
20612echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20613echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20614if test $ac_cv_type_uint64_t = yes; then
20615
20616cat >>confdefs.h <<_ACEOF
20617#define HAVE_UINT64_T 1
20618_ACEOF
20619
20620
20621else
20622 { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
20623echo "$as_me: error: Type uint64_t required but not found" >&2;}
20624 { (exit 1); exit 1; }; }
20625fi
20626
20627echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20628echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20629if test "${ac_cv_header_time+set}" = set; then
20630 echo $ECHO_N "(cached) $ECHO_C" >&6
20631else
20632 cat >conftest.$ac_ext <<_ACEOF
20633#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020634/* confdefs.h. */
20635_ACEOF
20636cat confdefs.h >>conftest.$ac_ext
20637cat >>conftest.$ac_ext <<_ACEOF
20638/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020639#include <sys/types.h>
20640#include <sys/time.h>
20641#include <time.h>
20642
John Criswell7a73b802003-06-30 21:59:07 +000020643int
20644main ()
20645{
20646if ((struct tm *) 0)
20647return 0;
20648 ;
20649 return 0;
20650}
20651_ACEOF
20652rm -f conftest.$ac_objext
20653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20654 (eval $ac_compile) 2>&5
20655 ac_status=$?
20656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20657 (exit $ac_status); } &&
20658 { ac_try='test -s conftest.$ac_objext'
20659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20660 (eval $ac_try) 2>&5
20661 ac_status=$?
20662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20663 (exit $ac_status); }; }; then
20664 ac_cv_header_time=yes
20665else
20666 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020667sed 's/^/| /' conftest.$ac_ext >&5
20668
John Criswell7a73b802003-06-30 21:59:07 +000020669ac_cv_header_time=no
20670fi
20671rm -f conftest.$ac_objext conftest.$ac_ext
20672fi
20673echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20674echo "${ECHO_T}$ac_cv_header_time" >&6
20675if test $ac_cv_header_time = yes; then
20676
20677cat >>confdefs.h <<\_ACEOF
20678#define TIME_WITH_SYS_TIME 1
20679_ACEOF
20680
20681fi
20682
20683echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20684echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20685if test "${ac_cv_struct_tm+set}" = set; then
20686 echo $ECHO_N "(cached) $ECHO_C" >&6
20687else
20688 cat >conftest.$ac_ext <<_ACEOF
20689#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020690/* confdefs.h. */
20691_ACEOF
20692cat confdefs.h >>conftest.$ac_ext
20693cat >>conftest.$ac_ext <<_ACEOF
20694/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020695#include <sys/types.h>
20696#include <time.h>
20697
John Criswell7a73b802003-06-30 21:59:07 +000020698int
20699main ()
20700{
20701struct tm *tp; tp->tm_sec;
20702 ;
20703 return 0;
20704}
20705_ACEOF
20706rm -f conftest.$ac_objext
20707if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20708 (eval $ac_compile) 2>&5
20709 ac_status=$?
20710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20711 (exit $ac_status); } &&
20712 { ac_try='test -s conftest.$ac_objext'
20713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20714 (eval $ac_try) 2>&5
20715 ac_status=$?
20716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20717 (exit $ac_status); }; }; then
20718 ac_cv_struct_tm=time.h
20719else
20720 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020721sed 's/^/| /' conftest.$ac_ext >&5
20722
John Criswell7a73b802003-06-30 21:59:07 +000020723ac_cv_struct_tm=sys/time.h
20724fi
20725rm -f conftest.$ac_objext conftest.$ac_ext
20726fi
20727echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20728echo "${ECHO_T}$ac_cv_struct_tm" >&6
20729if test $ac_cv_struct_tm = sys/time.h; then
20730
20731cat >>confdefs.h <<\_ACEOF
20732#define TM_IN_SYS_TIME 1
20733_ACEOF
20734
20735fi
20736
20737
John Criswell7a73b802003-06-30 21:59:07 +000020738echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20739echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20740if test "${ac_cv_cxx_namespaces+set}" = set; then
20741 echo $ECHO_N "(cached) $ECHO_C" >&6
20742else
20743
20744
20745 ac_ext=cc
20746ac_cpp='$CXXCPP $CPPFLAGS'
20747ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20748ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20749ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20750
20751 cat >conftest.$ac_ext <<_ACEOF
20752#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020753/* confdefs.h. */
20754_ACEOF
20755cat confdefs.h >>conftest.$ac_ext
20756cat >>conftest.$ac_ext <<_ACEOF
20757/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020758namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000020759int
20760main ()
20761{
20762using namespace Outer::Inner; return i;
20763 ;
20764 return 0;
20765}
20766_ACEOF
20767rm -f conftest.$ac_objext
20768if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20769 (eval $ac_compile) 2>&5
20770 ac_status=$?
20771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20772 (exit $ac_status); } &&
20773 { ac_try='test -s conftest.$ac_objext'
20774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20775 (eval $ac_try) 2>&5
20776 ac_status=$?
20777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20778 (exit $ac_status); }; }; then
20779 ac_cv_cxx_namespaces=yes
20780else
20781 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020782sed 's/^/| /' conftest.$ac_ext >&5
20783
John Criswell7a73b802003-06-30 21:59:07 +000020784ac_cv_cxx_namespaces=no
20785fi
20786rm -f conftest.$ac_objext conftest.$ac_ext
20787 ac_ext=c
20788ac_cpp='$CPP $CPPFLAGS'
20789ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20790ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20791ac_compiler_gnu=$ac_cv_c_compiler_gnu
20792
20793
20794fi
20795echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20796echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20797if test "$ac_cv_cxx_namespaces" = yes; then
20798
20799cat >>confdefs.h <<\_ACEOF
20800#define HAVE_NAMESPACES
20801_ACEOF
20802
20803fi
20804
20805echo "$as_me:$LINENO: checking whether the compiler has ext/hash_map" >&5
20806echo $ECHO_N "checking whether the compiler has ext/hash_map... $ECHO_C" >&6
20807if test "${ac_cv_cxx_have_ext_hash_map+set}" = set; then
20808 echo $ECHO_N "(cached) $ECHO_C" >&6
20809else
20810
20811
20812
20813 ac_ext=cc
20814ac_cpp='$CXXCPP $CPPFLAGS'
20815ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20816ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20817ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20818
20819 cat >conftest.$ac_ext <<_ACEOF
20820#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020821/* confdefs.h. */
20822_ACEOF
20823cat confdefs.h >>conftest.$ac_ext
20824cat >>conftest.$ac_ext <<_ACEOF
20825/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020826#include <ext/hash_map>
20827#ifdef HAVE_NAMESPACES
20828using namespace std;
20829#endif
John Criswell7a73b802003-06-30 21:59:07 +000020830int
20831main ()
20832{
20833hash_map<int, int> t; return 0;
20834 ;
20835 return 0;
20836}
20837_ACEOF
20838rm -f conftest.$ac_objext
20839if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20840 (eval $ac_compile) 2>&5
20841 ac_status=$?
20842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20843 (exit $ac_status); } &&
20844 { ac_try='test -s conftest.$ac_objext'
20845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20846 (eval $ac_try) 2>&5
20847 ac_status=$?
20848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20849 (exit $ac_status); }; }; then
20850 ac_cv_cxx_have_ext_hash_map=std
20851else
20852 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020853sed 's/^/| /' conftest.$ac_ext >&5
20854
John Criswell7a73b802003-06-30 21:59:07 +000020855ac_cv_cxx_have_ext_hash_map=no
20856fi
20857rm -f conftest.$ac_objext conftest.$ac_ext
20858 cat >conftest.$ac_ext <<_ACEOF
20859#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020860/* confdefs.h. */
20861_ACEOF
20862cat confdefs.h >>conftest.$ac_ext
20863cat >>conftest.$ac_ext <<_ACEOF
20864/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020865#include <ext/hash_map>
20866#ifdef HAVE_NAMESPACES
20867using namespace __gnu_cxx;
20868#endif
John Criswell7a73b802003-06-30 21:59:07 +000020869int
20870main ()
20871{
20872hash_map<int, int> t; return 0;
20873 ;
20874 return 0;
20875}
20876_ACEOF
20877rm -f conftest.$ac_objext
20878if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20879 (eval $ac_compile) 2>&5
20880 ac_status=$?
20881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20882 (exit $ac_status); } &&
20883 { ac_try='test -s conftest.$ac_objext'
20884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20885 (eval $ac_try) 2>&5
20886 ac_status=$?
20887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20888 (exit $ac_status); }; }; then
20889 ac_cv_cxx_have_ext_hash_map=gnu
20890else
20891 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020892sed 's/^/| /' conftest.$ac_ext >&5
20893
John Criswell7a73b802003-06-30 21:59:07 +000020894ac_cv_cxx_have_ext_hash_map=no
20895fi
20896rm -f conftest.$ac_objext conftest.$ac_ext
20897 ac_ext=c
20898ac_cpp='$CPP $CPPFLAGS'
20899ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20900ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20901ac_compiler_gnu=$ac_cv_c_compiler_gnu
20902
20903
20904fi
20905echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_map" >&5
20906echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_map" >&6
20907if test "$ac_cv_cxx_have_ext_hash_map" = std; then
20908
20909cat >>confdefs.h <<\_ACEOF
20910#define HAVE_STD_EXT_HASH_MAP
20911_ACEOF
20912
20913fi
20914if test "$ac_cv_cxx_have_ext_hash_map" = gnu; then
20915
20916cat >>confdefs.h <<\_ACEOF
20917#define HAVE_GNU_EXT_HASH_MAP
20918_ACEOF
20919
20920fi
20921
20922echo "$as_me:$LINENO: checking whether the compiler has ext/hash_set" >&5
20923echo $ECHO_N "checking whether the compiler has ext/hash_set... $ECHO_C" >&6
20924if test "${ac_cv_cxx_have_ext_hash_set+set}" = set; then
20925 echo $ECHO_N "(cached) $ECHO_C" >&6
20926else
20927
20928
20929
20930 ac_ext=cc
20931ac_cpp='$CXXCPP $CPPFLAGS'
20932ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20933ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20934ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20935
20936 cat >conftest.$ac_ext <<_ACEOF
20937#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020938/* confdefs.h. */
20939_ACEOF
20940cat confdefs.h >>conftest.$ac_ext
20941cat >>conftest.$ac_ext <<_ACEOF
20942/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020943#include <ext/hash_set>
20944#ifdef HAVE_NAMESPACES
20945using namespace std;
20946#endif
John Criswell7a73b802003-06-30 21:59:07 +000020947int
20948main ()
20949{
20950hash_set<int> t; return 0;
20951 ;
20952 return 0;
20953}
20954_ACEOF
20955rm -f conftest.$ac_objext
20956if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20957 (eval $ac_compile) 2>&5
20958 ac_status=$?
20959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20960 (exit $ac_status); } &&
20961 { ac_try='test -s conftest.$ac_objext'
20962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20963 (eval $ac_try) 2>&5
20964 ac_status=$?
20965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20966 (exit $ac_status); }; }; then
20967 ac_cv_cxx_have_ext_hash_set=std
20968else
20969 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020970sed 's/^/| /' conftest.$ac_ext >&5
20971
John Criswell7a73b802003-06-30 21:59:07 +000020972ac_cv_cxx_have_ext_hash_set=no
20973fi
20974rm -f conftest.$ac_objext conftest.$ac_ext
20975 cat >conftest.$ac_ext <<_ACEOF
20976#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020977/* confdefs.h. */
20978_ACEOF
20979cat confdefs.h >>conftest.$ac_ext
20980cat >>conftest.$ac_ext <<_ACEOF
20981/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020982#include <ext/hash_set>
20983#ifdef HAVE_NAMESPACES
20984using namespace __gnu_cxx;
20985#endif
John Criswell7a73b802003-06-30 21:59:07 +000020986int
20987main ()
20988{
20989hash_set<int> t; return 0;
20990 ;
20991 return 0;
20992}
20993_ACEOF
20994rm -f conftest.$ac_objext
20995if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20996 (eval $ac_compile) 2>&5
20997 ac_status=$?
20998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20999 (exit $ac_status); } &&
21000 { ac_try='test -s conftest.$ac_objext'
21001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21002 (eval $ac_try) 2>&5
21003 ac_status=$?
21004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21005 (exit $ac_status); }; }; then
21006 ac_cv_cxx_have_ext_hash_set=gnu
21007else
21008 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021009sed 's/^/| /' conftest.$ac_ext >&5
21010
John Criswell7a73b802003-06-30 21:59:07 +000021011ac_cv_cxx_have_ext_hash_set=no
21012fi
21013rm -f conftest.$ac_objext conftest.$ac_ext
21014 ac_ext=c
21015ac_cpp='$CPP $CPPFLAGS'
21016ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21017ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21018ac_compiler_gnu=$ac_cv_c_compiler_gnu
21019
21020
21021fi
21022echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_set" >&5
21023echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_set" >&6
21024if test "$ac_cv_cxx_have_ext_hash_set" = std; then
21025
21026cat >>confdefs.h <<\_ACEOF
21027#define HAVE_STD_EXT_HASH_SET
21028_ACEOF
21029
21030fi
21031if test "$ac_cv_cxx_have_ext_hash_set" = gnu; then
21032
21033cat >>confdefs.h <<\_ACEOF
21034#define HAVE_GNU_EXT_HASH_SET
21035_ACEOF
21036
21037fi
21038
21039echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
21040echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
21041if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
21042 echo $ECHO_N "(cached) $ECHO_C" >&6
21043else
21044
21045
21046
21047 ac_ext=cc
21048ac_cpp='$CXXCPP $CPPFLAGS'
21049ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21050ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21051ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21052
21053 cat >conftest.$ac_ext <<_ACEOF
21054#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021055/* confdefs.h. */
21056_ACEOF
21057cat confdefs.h >>conftest.$ac_ext
21058cat >>conftest.$ac_ext <<_ACEOF
21059/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021060#include <ext/slist>
21061#ifdef HAVE_NAMESPACES
21062using namespace std;
21063#endif
John Criswell7a73b802003-06-30 21:59:07 +000021064int
21065main ()
21066{
21067slist<int> s; return 0;
21068 ;
21069 return 0;
21070}
21071_ACEOF
21072rm -f conftest.$ac_objext
21073if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21074 (eval $ac_compile) 2>&5
21075 ac_status=$?
21076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21077 (exit $ac_status); } &&
21078 { ac_try='test -s conftest.$ac_objext'
21079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21080 (eval $ac_try) 2>&5
21081 ac_status=$?
21082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21083 (exit $ac_status); }; }; then
21084 ac_cv_cxx_have_ext_slist=std
21085else
21086 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021087sed 's/^/| /' conftest.$ac_ext >&5
21088
John Criswell7a73b802003-06-30 21:59:07 +000021089ac_cv_cxx_have_ext_slist=no
21090fi
21091rm -f conftest.$ac_objext conftest.$ac_ext
21092 cat >conftest.$ac_ext <<_ACEOF
21093#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021094/* confdefs.h. */
21095_ACEOF
21096cat confdefs.h >>conftest.$ac_ext
21097cat >>conftest.$ac_ext <<_ACEOF
21098/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021099#include <ext/slist>
21100#ifdef HAVE_NAMESPACES
21101using namespace __gnu_cxx;
21102#endif
John Criswell7a73b802003-06-30 21:59:07 +000021103int
21104main ()
21105{
21106slist<int> s; return 0;
21107 ;
21108 return 0;
21109}
21110_ACEOF
21111rm -f conftest.$ac_objext
21112if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21113 (eval $ac_compile) 2>&5
21114 ac_status=$?
21115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21116 (exit $ac_status); } &&
21117 { ac_try='test -s conftest.$ac_objext'
21118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21119 (eval $ac_try) 2>&5
21120 ac_status=$?
21121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21122 (exit $ac_status); }; }; then
21123 ac_cv_cxx_have_ext_slist=gnu
21124else
21125 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021126sed 's/^/| /' conftest.$ac_ext >&5
21127
John Criswell7a73b802003-06-30 21:59:07 +000021128ac_cv_cxx_have_ext_slist=no
21129fi
21130rm -f conftest.$ac_objext conftest.$ac_ext
21131
21132 ac_ext=c
21133ac_cpp='$CPP $CPPFLAGS'
21134ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21135ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21136ac_compiler_gnu=$ac_cv_c_compiler_gnu
21137
21138
21139fi
21140echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
21141echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
21142if test "$ac_cv_cxx_have_ext_slist" = std; then
21143
21144cat >>confdefs.h <<\_ACEOF
21145#define HAVE_EXT_SLIST std
21146_ACEOF
21147
21148fi
21149if test "$ac_cv_cxx_have_ext_slist" = gnu; then
21150
21151cat >>confdefs.h <<\_ACEOF
21152#define HAVE_EXT_SLIST gnu
21153_ACEOF
21154
21155fi
21156
21157echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21158echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21159if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21160 echo $ECHO_N "(cached) $ECHO_C" >&6
21161else
21162
21163
21164
21165 ac_ext=cc
21166ac_cpp='$CXXCPP $CPPFLAGS'
21167ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21168ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21169ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21170
21171 cat >conftest.$ac_ext <<_ACEOF
21172#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021173/* confdefs.h. */
21174_ACEOF
21175cat confdefs.h >>conftest.$ac_ext
21176cat >>conftest.$ac_ext <<_ACEOF
21177/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021178#include <iterator>
21179#ifdef HAVE_NAMESPACES
21180using namespace std;
21181#endif
John Criswell7a73b802003-06-30 21:59:07 +000021182int
21183main ()
21184{
21185iterator<int,int,int> t; return 0;
21186 ;
21187 return 0;
21188}
21189_ACEOF
21190rm -f conftest.$ac_objext
21191if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21192 (eval $ac_compile) 2>&5
21193 ac_status=$?
21194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21195 (exit $ac_status); } &&
21196 { ac_try='test -s conftest.$ac_objext'
21197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21198 (eval $ac_try) 2>&5
21199 ac_status=$?
21200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21201 (exit $ac_status); }; }; then
21202 ac_cv_cxx_have_std_iterator=yes
21203else
21204 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021205sed 's/^/| /' conftest.$ac_ext >&5
21206
John Criswell7a73b802003-06-30 21:59:07 +000021207ac_cv_cxx_have_std_iterator=no
21208fi
21209rm -f conftest.$ac_objext conftest.$ac_ext
21210 ac_ext=c
21211ac_cpp='$CPP $CPPFLAGS'
21212ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21213ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21214ac_compiler_gnu=$ac_cv_c_compiler_gnu
21215
21216
21217fi
21218echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21219echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
21220if test "$ac_cv_cxx_have_std_iterator" = yes; then
21221
21222cat >>confdefs.h <<\_ACEOF
21223#define HAVE_STD_ITERATOR
21224_ACEOF
21225
21226fi
21227
21228echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21229echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21230if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21231 echo $ECHO_N "(cached) $ECHO_C" >&6
21232else
21233
21234
21235
21236 ac_ext=cc
21237ac_cpp='$CXXCPP $CPPFLAGS'
21238ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21239ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21240ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21241
21242 cat >conftest.$ac_ext <<_ACEOF
21243#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021244/* confdefs.h. */
21245_ACEOF
21246cat confdefs.h >>conftest.$ac_ext
21247cat >>conftest.$ac_ext <<_ACEOF
21248/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021249#include <iterator>
21250#ifdef HAVE_NAMESPACES
21251using namespace std;
21252#endif
John Criswell7a73b802003-06-30 21:59:07 +000021253int
21254main ()
21255{
John Criswellc78022e2003-07-29 19:11:58 +000021256bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021257 ;
21258 return 0;
21259}
21260_ACEOF
21261rm -f conftest.$ac_objext
21262if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21263 (eval $ac_compile) 2>&5
21264 ac_status=$?
21265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21266 (exit $ac_status); } &&
21267 { ac_try='test -s conftest.$ac_objext'
21268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21269 (eval $ac_try) 2>&5
21270 ac_status=$?
21271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21272 (exit $ac_status); }; }; then
21273 ac_cv_cxx_have_bi_iterator=yes
21274else
21275 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021276sed 's/^/| /' conftest.$ac_ext >&5
21277
John Criswell7a73b802003-06-30 21:59:07 +000021278ac_cv_cxx_have_bi_iterator=no
21279fi
21280rm -f conftest.$ac_objext conftest.$ac_ext
21281 ac_ext=c
21282ac_cpp='$CPP $CPPFLAGS'
21283ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21284ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21285ac_compiler_gnu=$ac_cv_c_compiler_gnu
21286
21287
21288fi
21289echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21290echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
21291if test "$ac_cv_cxx_have_bi_iterator" = yes; then
21292
21293cat >>confdefs.h <<\_ACEOF
21294#define HAVE_BI_ITERATOR
21295_ACEOF
21296
21297fi
21298
21299echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21300echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21301if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21302 echo $ECHO_N "(cached) $ECHO_C" >&6
21303else
21304
21305
21306
21307 ac_ext=cc
21308ac_cpp='$CXXCPP $CPPFLAGS'
21309ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21310ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21311ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21312
21313 cat >conftest.$ac_ext <<_ACEOF
21314#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021315/* confdefs.h. */
21316_ACEOF
21317cat confdefs.h >>conftest.$ac_ext
21318cat >>conftest.$ac_ext <<_ACEOF
21319/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021320#include <iterator>
21321#ifdef HAVE_NAMESPACES
21322using namespace std;
21323#endif
John Criswell7a73b802003-06-30 21:59:07 +000021324int
21325main ()
21326{
John Criswellc78022e2003-07-29 19:11:58 +000021327forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021328 ;
21329 return 0;
21330}
21331_ACEOF
21332rm -f conftest.$ac_objext
21333if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21334 (eval $ac_compile) 2>&5
21335 ac_status=$?
21336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21337 (exit $ac_status); } &&
21338 { ac_try='test -s conftest.$ac_objext'
21339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21340 (eval $ac_try) 2>&5
21341 ac_status=$?
21342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21343 (exit $ac_status); }; }; then
21344 ac_cv_cxx_have_fwd_iterator=yes
21345else
21346 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021347sed 's/^/| /' conftest.$ac_ext >&5
21348
John Criswell7a73b802003-06-30 21:59:07 +000021349ac_cv_cxx_have_fwd_iterator=no
21350fi
21351rm -f conftest.$ac_objext conftest.$ac_ext
21352 ac_ext=c
21353ac_cpp='$CPP $CPPFLAGS'
21354ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21355ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21356ac_compiler_gnu=$ac_cv_c_compiler_gnu
21357
21358
21359fi
21360echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21361echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
21362if test "$ac_cv_cxx_have_fwd_iterator" = yes; then
21363
21364cat >>confdefs.h <<\_ACEOF
21365#define HAVE_FWD_ITERATOR
21366_ACEOF
21367
21368fi
21369
21370
21371# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21372# for constant arguments. Useless!
21373echo "$as_me:$LINENO: checking for working alloca.h" >&5
21374echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21375if test "${ac_cv_working_alloca_h+set}" = set; then
21376 echo $ECHO_N "(cached) $ECHO_C" >&6
21377else
21378 cat >conftest.$ac_ext <<_ACEOF
21379#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021380/* confdefs.h. */
21381_ACEOF
21382cat confdefs.h >>conftest.$ac_ext
21383cat >>conftest.$ac_ext <<_ACEOF
21384/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021385#include <alloca.h>
John Criswell7a73b802003-06-30 21:59:07 +000021386int
21387main ()
21388{
21389char *p = (char *) alloca (2 * sizeof (int));
21390 ;
21391 return 0;
21392}
21393_ACEOF
21394rm -f conftest.$ac_objext conftest$ac_exeext
21395if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21396 (eval $ac_link) 2>&5
21397 ac_status=$?
21398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21399 (exit $ac_status); } &&
21400 { ac_try='test -s conftest$ac_exeext'
21401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21402 (eval $ac_try) 2>&5
21403 ac_status=$?
21404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21405 (exit $ac_status); }; }; then
21406 ac_cv_working_alloca_h=yes
21407else
21408 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021409sed 's/^/| /' conftest.$ac_ext >&5
21410
John Criswell7a73b802003-06-30 21:59:07 +000021411ac_cv_working_alloca_h=no
21412fi
21413rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21414fi
21415echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21416echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21417if test $ac_cv_working_alloca_h = yes; then
21418
21419cat >>confdefs.h <<\_ACEOF
21420#define HAVE_ALLOCA_H 1
21421_ACEOF
21422
21423fi
21424
21425echo "$as_me:$LINENO: checking for alloca" >&5
21426echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21427if test "${ac_cv_func_alloca_works+set}" = set; then
21428 echo $ECHO_N "(cached) $ECHO_C" >&6
21429else
21430 cat >conftest.$ac_ext <<_ACEOF
21431#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021432/* confdefs.h. */
21433_ACEOF
21434cat confdefs.h >>conftest.$ac_ext
21435cat >>conftest.$ac_ext <<_ACEOF
21436/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021437#ifdef __GNUC__
21438# define alloca __builtin_alloca
21439#else
21440# ifdef _MSC_VER
21441# include <malloc.h>
21442# define alloca _alloca
21443# else
21444# if HAVE_ALLOCA_H
21445# include <alloca.h>
21446# else
21447# ifdef _AIX
21448 #pragma alloca
21449# else
21450# ifndef alloca /* predefined by HP cc +Olibcalls */
21451char *alloca ();
21452# endif
21453# endif
21454# endif
21455# endif
21456#endif
21457
John Criswell7a73b802003-06-30 21:59:07 +000021458int
21459main ()
21460{
21461char *p = (char *) alloca (1);
21462 ;
21463 return 0;
21464}
21465_ACEOF
21466rm -f conftest.$ac_objext conftest$ac_exeext
21467if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21468 (eval $ac_link) 2>&5
21469 ac_status=$?
21470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21471 (exit $ac_status); } &&
21472 { ac_try='test -s conftest$ac_exeext'
21473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21474 (eval $ac_try) 2>&5
21475 ac_status=$?
21476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21477 (exit $ac_status); }; }; then
21478 ac_cv_func_alloca_works=yes
21479else
21480 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021481sed 's/^/| /' conftest.$ac_ext >&5
21482
John Criswell7a73b802003-06-30 21:59:07 +000021483ac_cv_func_alloca_works=no
21484fi
21485rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21486fi
21487echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21488echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21489
21490if test $ac_cv_func_alloca_works = yes; then
21491
21492cat >>confdefs.h <<\_ACEOF
21493#define HAVE_ALLOCA 1
21494_ACEOF
21495
21496else
21497 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21498# that cause trouble. Some versions do not even contain alloca or
21499# contain a buggy version. If you still want to use their alloca,
21500# use ar to extract alloca.o from them instead of compiling alloca.c.
21501
21502ALLOCA=alloca.$ac_objext
21503
21504cat >>confdefs.h <<\_ACEOF
21505#define C_ALLOCA 1
21506_ACEOF
21507
21508
21509echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21510echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21511if test "${ac_cv_os_cray+set}" = set; then
21512 echo $ECHO_N "(cached) $ECHO_C" >&6
21513else
21514 cat >conftest.$ac_ext <<_ACEOF
21515#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021516/* confdefs.h. */
21517_ACEOF
21518cat confdefs.h >>conftest.$ac_ext
21519cat >>conftest.$ac_ext <<_ACEOF
21520/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021521#if defined(CRAY) && ! defined(CRAY2)
21522webecray
21523#else
21524wenotbecray
21525#endif
21526
21527_ACEOF
21528if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021529 $EGREP "webecray" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021530 ac_cv_os_cray=yes
21531else
21532 ac_cv_os_cray=no
21533fi
21534rm -f conftest*
21535
21536fi
21537echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21538echo "${ECHO_T}$ac_cv_os_cray" >&6
21539if test $ac_cv_os_cray = yes; then
21540 for ac_func in _getb67 GETB67 getb67; do
21541 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21542echo "$as_me:$LINENO: checking for $ac_func" >&5
21543echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21544if eval "test \"\${$as_ac_var+set}\" = set"; then
21545 echo $ECHO_N "(cached) $ECHO_C" >&6
21546else
21547 cat >conftest.$ac_ext <<_ACEOF
21548#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021549/* confdefs.h. */
21550_ACEOF
21551cat confdefs.h >>conftest.$ac_ext
21552cat >>conftest.$ac_ext <<_ACEOF
21553/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021554/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000021555 which can conflict with char $ac_func (); below.
21556 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21557 <limits.h> exists even on freestanding compilers. */
21558#ifdef __STDC__
21559# include <limits.h>
21560#else
21561# include <assert.h>
21562#endif
John Criswell7a73b802003-06-30 21:59:07 +000021563/* Override any gcc2 internal prototype to avoid an error. */
21564#ifdef __cplusplus
21565extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000021566{
John Criswell7a73b802003-06-30 21:59:07 +000021567#endif
21568/* We use char because int might match the return type of a gcc2
21569 builtin and then its argument prototype would still apply. */
21570char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000021571/* The GNU C library defines this for functions which it implements
21572 to always fail with ENOSYS. Some functions are actually named
21573 something starting with __ and the normal name is an alias. */
21574#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21575choke me
21576#else
John Criswell0c38eaf2003-09-10 15:17:25 +000021577char (*f) () = $ac_func;
21578#endif
21579#ifdef __cplusplus
21580}
John Criswell7a73b802003-06-30 21:59:07 +000021581#endif
21582
John Criswell0c38eaf2003-09-10 15:17:25 +000021583int
21584main ()
21585{
21586return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000021587 ;
21588 return 0;
21589}
21590_ACEOF
21591rm -f conftest.$ac_objext conftest$ac_exeext
21592if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21593 (eval $ac_link) 2>&5
21594 ac_status=$?
21595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21596 (exit $ac_status); } &&
21597 { ac_try='test -s conftest$ac_exeext'
21598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21599 (eval $ac_try) 2>&5
21600 ac_status=$?
21601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21602 (exit $ac_status); }; }; then
21603 eval "$as_ac_var=yes"
21604else
21605 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021606sed 's/^/| /' conftest.$ac_ext >&5
21607
John Criswell7a73b802003-06-30 21:59:07 +000021608eval "$as_ac_var=no"
21609fi
21610rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21611fi
21612echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21613echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21614if test `eval echo '${'$as_ac_var'}'` = yes; then
21615
21616cat >>confdefs.h <<_ACEOF
21617#define CRAY_STACKSEG_END $ac_func
21618_ACEOF
21619
21620 break
21621fi
21622
21623 done
21624fi
21625
21626echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21627echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21628if test "${ac_cv_c_stack_direction+set}" = set; then
21629 echo $ECHO_N "(cached) $ECHO_C" >&6
21630else
21631 if test "$cross_compiling" = yes; then
21632 ac_cv_c_stack_direction=0
21633else
21634 cat >conftest.$ac_ext <<_ACEOF
21635#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021636/* confdefs.h. */
21637_ACEOF
21638cat confdefs.h >>conftest.$ac_ext
21639cat >>conftest.$ac_ext <<_ACEOF
21640/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021641int
21642find_stack_direction ()
21643{
21644 static char *addr = 0;
21645 auto char dummy;
21646 if (addr == 0)
21647 {
21648 addr = &dummy;
21649 return find_stack_direction ();
21650 }
21651 else
21652 return (&dummy > addr) ? 1 : -1;
21653}
21654
21655int
21656main ()
21657{
21658 exit (find_stack_direction () < 0);
21659}
21660_ACEOF
21661rm -f conftest$ac_exeext
21662if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21663 (eval $ac_link) 2>&5
21664 ac_status=$?
21665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21666 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21668 (eval $ac_try) 2>&5
21669 ac_status=$?
21670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21671 (exit $ac_status); }; }; then
21672 ac_cv_c_stack_direction=1
21673else
21674 echo "$as_me: program exited with status $ac_status" >&5
21675echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021676sed 's/^/| /' conftest.$ac_ext >&5
21677
John Criswell7a73b802003-06-30 21:59:07 +000021678( exit $ac_status )
21679ac_cv_c_stack_direction=-1
21680fi
John Criswell0c38eaf2003-09-10 15:17:25 +000021681rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021682fi
21683fi
21684echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21685echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21686
21687cat >>confdefs.h <<_ACEOF
21688#define STACK_DIRECTION $ac_cv_c_stack_direction
21689_ACEOF
21690
21691
21692fi
21693
21694if test $ac_cv_c_compiler_gnu = yes; then
21695 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
21696echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
21697if test "${ac_cv_prog_gcc_traditional+set}" = set; then
21698 echo $ECHO_N "(cached) $ECHO_C" >&6
21699else
21700 ac_pattern="Autoconf.*'x'"
21701 cat >conftest.$ac_ext <<_ACEOF
21702#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021703/* confdefs.h. */
21704_ACEOF
21705cat confdefs.h >>conftest.$ac_ext
21706cat >>conftest.$ac_ext <<_ACEOF
21707/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021708#include <sgtty.h>
21709Autoconf TIOCGETP
21710_ACEOF
21711if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021712 $EGREP "$ac_pattern" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021713 ac_cv_prog_gcc_traditional=yes
21714else
21715 ac_cv_prog_gcc_traditional=no
21716fi
21717rm -f conftest*
21718
21719
21720 if test $ac_cv_prog_gcc_traditional = no; then
21721 cat >conftest.$ac_ext <<_ACEOF
21722#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021723/* confdefs.h. */
21724_ACEOF
21725cat confdefs.h >>conftest.$ac_ext
21726cat >>conftest.$ac_ext <<_ACEOF
21727/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021728#include <termio.h>
21729Autoconf TCGETA
21730_ACEOF
21731if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021732 $EGREP "$ac_pattern" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021733 ac_cv_prog_gcc_traditional=yes
21734fi
21735rm -f conftest*
21736
21737 fi
21738fi
21739echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
21740echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
21741 if test $ac_cv_prog_gcc_traditional = yes; then
21742 CC="$CC -traditional"
21743 fi
21744fi
21745
21746echo "$as_me:$LINENO: checking for working memcmp" >&5
21747echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
21748if test "${ac_cv_func_memcmp_working+set}" = set; then
21749 echo $ECHO_N "(cached) $ECHO_C" >&6
21750else
21751 if test "$cross_compiling" = yes; then
21752 ac_cv_func_memcmp_working=no
21753else
21754 cat >conftest.$ac_ext <<_ACEOF
21755#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021756/* confdefs.h. */
21757_ACEOF
21758cat confdefs.h >>conftest.$ac_ext
21759cat >>conftest.$ac_ext <<_ACEOF
21760/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021761
John Criswell7a73b802003-06-30 21:59:07 +000021762int
21763main ()
21764{
21765
21766 /* Some versions of memcmp are not 8-bit clean. */
21767 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21768 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21769 exit (1);
21770
21771 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21772 or more and with at least one buffer not starting on a 4-byte boundary.
21773 William Lewis provided this test program. */
21774 {
21775 char foo[21];
21776 char bar[21];
21777 int i;
21778 for (i = 0; i < 4; i++)
21779 {
21780 char *a = foo + i;
21781 char *b = bar + i;
21782 strcpy (a, "--------01111111");
21783 strcpy (b, "--------10000000");
21784 if (memcmp (a, b, 16) >= 0)
21785 exit (1);
21786 }
21787 exit (0);
21788 }
21789
21790 ;
21791 return 0;
21792}
21793_ACEOF
21794rm -f conftest$ac_exeext
21795if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21796 (eval $ac_link) 2>&5
21797 ac_status=$?
21798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21799 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21801 (eval $ac_try) 2>&5
21802 ac_status=$?
21803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21804 (exit $ac_status); }; }; then
21805 ac_cv_func_memcmp_working=yes
21806else
21807 echo "$as_me: program exited with status $ac_status" >&5
21808echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021809sed 's/^/| /' conftest.$ac_ext >&5
21810
John Criswell7a73b802003-06-30 21:59:07 +000021811( exit $ac_status )
21812ac_cv_func_memcmp_working=no
21813fi
John Criswell0c38eaf2003-09-10 15:17:25 +000021814rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021815fi
21816fi
21817echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21818echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21819test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21820
21821
21822
21823for ac_header in stdlib.h unistd.h
21824do
21825as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21826if eval "test \"\${$as_ac_Header+set}\" = set"; then
21827 echo "$as_me:$LINENO: checking for $ac_header" >&5
21828echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21829if eval "test \"\${$as_ac_Header+set}\" = set"; then
21830 echo $ECHO_N "(cached) $ECHO_C" >&6
21831fi
21832echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21833echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21834else
21835 # Is the header compilable?
21836echo "$as_me:$LINENO: checking $ac_header usability" >&5
21837echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21838cat >conftest.$ac_ext <<_ACEOF
21839#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021840/* confdefs.h. */
21841_ACEOF
21842cat confdefs.h >>conftest.$ac_ext
21843cat >>conftest.$ac_ext <<_ACEOF
21844/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021845$ac_includes_default
21846#include <$ac_header>
21847_ACEOF
21848rm -f conftest.$ac_objext
21849if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21850 (eval $ac_compile) 2>&5
21851 ac_status=$?
21852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21853 (exit $ac_status); } &&
21854 { ac_try='test -s conftest.$ac_objext'
21855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21856 (eval $ac_try) 2>&5
21857 ac_status=$?
21858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21859 (exit $ac_status); }; }; then
21860 ac_header_compiler=yes
21861else
21862 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021863sed 's/^/| /' conftest.$ac_ext >&5
21864
John Criswell7a73b802003-06-30 21:59:07 +000021865ac_header_compiler=no
21866fi
21867rm -f conftest.$ac_objext conftest.$ac_ext
21868echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21869echo "${ECHO_T}$ac_header_compiler" >&6
21870
21871# Is the header present?
21872echo "$as_me:$LINENO: checking $ac_header presence" >&5
21873echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21874cat >conftest.$ac_ext <<_ACEOF
21875#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021876/* confdefs.h. */
21877_ACEOF
21878cat confdefs.h >>conftest.$ac_ext
21879cat >>conftest.$ac_ext <<_ACEOF
21880/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021881#include <$ac_header>
21882_ACEOF
21883if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21884 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21885 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000021886 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000021887 rm -f conftest.er1
21888 cat conftest.err >&5
21889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21890 (exit $ac_status); } >/dev/null; then
21891 if test -s conftest.err; then
21892 ac_cpp_err=$ac_c_preproc_warn_flag
21893 else
21894 ac_cpp_err=
21895 fi
21896else
21897 ac_cpp_err=yes
21898fi
21899if test -z "$ac_cpp_err"; then
21900 ac_header_preproc=yes
21901else
21902 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021903sed 's/^/| /' conftest.$ac_ext >&5
21904
John Criswell7a73b802003-06-30 21:59:07 +000021905 ac_header_preproc=no
21906fi
21907rm -f conftest.err conftest.$ac_ext
21908echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21909echo "${ECHO_T}$ac_header_preproc" >&6
21910
21911# So? What about this header?
21912case $ac_header_compiler:$ac_header_preproc in
21913 yes:no )
21914 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21915echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21916 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021917echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21918 (
21919 cat <<\_ASBOX
21920## ------------------------------------ ##
21921## Report this to bug-autoconf@gnu.org. ##
21922## ------------------------------------ ##
21923_ASBOX
21924 ) |
21925 sed "s/^/$as_me: WARNING: /" >&2
21926 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021927 no:yes )
21928 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21929echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21930 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21931echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21932 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021933echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21934 (
21935 cat <<\_ASBOX
21936## ------------------------------------ ##
21937## Report this to bug-autoconf@gnu.org. ##
21938## ------------------------------------ ##
21939_ASBOX
21940 ) |
21941 sed "s/^/$as_me: WARNING: /" >&2
21942 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021943esac
21944echo "$as_me:$LINENO: checking for $ac_header" >&5
21945echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21946if eval "test \"\${$as_ac_Header+set}\" = set"; then
21947 echo $ECHO_N "(cached) $ECHO_C" >&6
21948else
21949 eval "$as_ac_Header=$ac_header_preproc"
21950fi
21951echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21952echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21953
21954fi
21955if test `eval echo '${'$as_ac_Header'}'` = yes; then
21956 cat >>confdefs.h <<_ACEOF
21957#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21958_ACEOF
21959
21960fi
21961
21962done
21963
21964
21965for ac_func in getpagesize
21966do
21967as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21968echo "$as_me:$LINENO: checking for $ac_func" >&5
21969echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21970if eval "test \"\${$as_ac_var+set}\" = set"; then
21971 echo $ECHO_N "(cached) $ECHO_C" >&6
21972else
21973 cat >conftest.$ac_ext <<_ACEOF
21974#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021975/* confdefs.h. */
21976_ACEOF
21977cat confdefs.h >>conftest.$ac_ext
21978cat >>conftest.$ac_ext <<_ACEOF
21979/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021980/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000021981 which can conflict with char $ac_func (); below.
21982 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21983 <limits.h> exists even on freestanding compilers. */
21984#ifdef __STDC__
21985# include <limits.h>
21986#else
21987# include <assert.h>
21988#endif
John Criswell7a73b802003-06-30 21:59:07 +000021989/* Override any gcc2 internal prototype to avoid an error. */
21990#ifdef __cplusplus
21991extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000021992{
John Criswell7a73b802003-06-30 21:59:07 +000021993#endif
21994/* We use char because int might match the return type of a gcc2
21995 builtin and then its argument prototype would still apply. */
21996char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000021997/* The GNU C library defines this for functions which it implements
21998 to always fail with ENOSYS. Some functions are actually named
21999 something starting with __ and the normal name is an alias. */
22000#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22001choke me
22002#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022003char (*f) () = $ac_func;
22004#endif
22005#ifdef __cplusplus
22006}
John Criswell7a73b802003-06-30 21:59:07 +000022007#endif
22008
John Criswell0c38eaf2003-09-10 15:17:25 +000022009int
22010main ()
22011{
22012return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000022013 ;
22014 return 0;
22015}
22016_ACEOF
22017rm -f conftest.$ac_objext conftest$ac_exeext
22018if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22019 (eval $ac_link) 2>&5
22020 ac_status=$?
22021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22022 (exit $ac_status); } &&
22023 { ac_try='test -s conftest$ac_exeext'
22024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22025 (eval $ac_try) 2>&5
22026 ac_status=$?
22027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22028 (exit $ac_status); }; }; then
22029 eval "$as_ac_var=yes"
22030else
22031 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022032sed 's/^/| /' conftest.$ac_ext >&5
22033
John Criswell7a73b802003-06-30 21:59:07 +000022034eval "$as_ac_var=no"
22035fi
22036rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22037fi
22038echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22039echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22040if test `eval echo '${'$as_ac_var'}'` = yes; then
22041 cat >>confdefs.h <<_ACEOF
22042#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22043_ACEOF
22044
22045fi
22046done
22047
22048echo "$as_me:$LINENO: checking for working mmap" >&5
22049echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
22050if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
22051 echo $ECHO_N "(cached) $ECHO_C" >&6
22052else
22053 if test "$cross_compiling" = yes; then
22054 ac_cv_func_mmap_fixed_mapped=no
22055else
22056 cat >conftest.$ac_ext <<_ACEOF
22057#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022058/* confdefs.h. */
22059_ACEOF
22060cat confdefs.h >>conftest.$ac_ext
22061cat >>conftest.$ac_ext <<_ACEOF
22062/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022063$ac_includes_default
22064/* malloc might have been renamed as rpl_malloc. */
22065#undef malloc
22066
22067/* Thanks to Mike Haertel and Jim Avera for this test.
22068 Here is a matrix of mmap possibilities:
22069 mmap private not fixed
22070 mmap private fixed at somewhere currently unmapped
22071 mmap private fixed at somewhere already mapped
22072 mmap shared not fixed
22073 mmap shared fixed at somewhere currently unmapped
22074 mmap shared fixed at somewhere already mapped
22075 For private mappings, we should verify that changes cannot be read()
22076 back from the file, nor mmap's back from the file at a different
22077 address. (There have been systems where private was not correctly
22078 implemented like the infamous i386 svr4.0, and systems where the
22079 VM page cache was not coherent with the file system buffer cache
22080 like early versions of FreeBSD and possibly contemporary NetBSD.)
22081 For shared mappings, we should conversely verify that changes get
22082 propagated back to all the places they're supposed to be.
22083
22084 Grep wants private fixed already mapped.
22085 The main things grep needs to know about mmap are:
22086 * does it exist and is it safe to write into the mmap'd area
22087 * how to use it (BSD variants) */
22088
22089#include <fcntl.h>
22090#include <sys/mman.h>
22091
22092#if !STDC_HEADERS && !HAVE_STDLIB_H
22093char *malloc ();
22094#endif
22095
22096/* This mess was copied from the GNU getpagesize.h. */
22097#if !HAVE_GETPAGESIZE
22098/* Assume that all systems that can run configure have sys/param.h. */
22099# if !HAVE_SYS_PARAM_H
22100# define HAVE_SYS_PARAM_H 1
22101# endif
22102
22103# ifdef _SC_PAGESIZE
22104# define getpagesize() sysconf(_SC_PAGESIZE)
22105# else /* no _SC_PAGESIZE */
22106# if HAVE_SYS_PARAM_H
22107# include <sys/param.h>
22108# ifdef EXEC_PAGESIZE
22109# define getpagesize() EXEC_PAGESIZE
22110# else /* no EXEC_PAGESIZE */
22111# ifdef NBPG
22112# define getpagesize() NBPG * CLSIZE
22113# ifndef CLSIZE
22114# define CLSIZE 1
22115# endif /* no CLSIZE */
22116# else /* no NBPG */
22117# ifdef NBPC
22118# define getpagesize() NBPC
22119# else /* no NBPC */
22120# ifdef PAGESIZE
22121# define getpagesize() PAGESIZE
22122# endif /* PAGESIZE */
22123# endif /* no NBPC */
22124# endif /* no NBPG */
22125# endif /* no EXEC_PAGESIZE */
22126# else /* no HAVE_SYS_PARAM_H */
22127# define getpagesize() 8192 /* punt totally */
22128# endif /* no HAVE_SYS_PARAM_H */
22129# endif /* no _SC_PAGESIZE */
22130
22131#endif /* no HAVE_GETPAGESIZE */
22132
22133int
22134main ()
22135{
22136 char *data, *data2, *data3;
22137 int i, pagesize;
22138 int fd;
22139
22140 pagesize = getpagesize ();
22141
22142 /* First, make a file with some known garbage in it. */
22143 data = (char *) malloc (pagesize);
22144 if (!data)
22145 exit (1);
22146 for (i = 0; i < pagesize; ++i)
22147 *(data + i) = rand ();
22148 umask (0);
22149 fd = creat ("conftest.mmap", 0600);
22150 if (fd < 0)
22151 exit (1);
22152 if (write (fd, data, pagesize) != pagesize)
22153 exit (1);
22154 close (fd);
22155
22156 /* Next, try to mmap the file at a fixed address which already has
22157 something else allocated at it. If we can, also make sure that
22158 we see the same garbage. */
22159 fd = open ("conftest.mmap", O_RDWR);
22160 if (fd < 0)
22161 exit (1);
22162 data2 = (char *) malloc (2 * pagesize);
22163 if (!data2)
22164 exit (1);
22165 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
22166 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22167 MAP_PRIVATE | MAP_FIXED, fd, 0L))
22168 exit (1);
22169 for (i = 0; i < pagesize; ++i)
22170 if (*(data + i) != *(data2 + i))
22171 exit (1);
22172
22173 /* Finally, make sure that changes to the mapped area do not
22174 percolate back to the file as seen by read(). (This is a bug on
22175 some variants of i386 svr4.0.) */
22176 for (i = 0; i < pagesize; ++i)
22177 *(data2 + i) = *(data2 + i) + 1;
22178 data3 = (char *) malloc (pagesize);
22179 if (!data3)
22180 exit (1);
22181 if (read (fd, data3, pagesize) != pagesize)
22182 exit (1);
22183 for (i = 0; i < pagesize; ++i)
22184 if (*(data + i) != *(data3 + i))
22185 exit (1);
22186 close (fd);
22187 exit (0);
22188}
22189_ACEOF
22190rm -f conftest$ac_exeext
22191if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22192 (eval $ac_link) 2>&5
22193 ac_status=$?
22194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22195 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22197 (eval $ac_try) 2>&5
22198 ac_status=$?
22199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22200 (exit $ac_status); }; }; then
22201 ac_cv_func_mmap_fixed_mapped=yes
22202else
22203 echo "$as_me: program exited with status $ac_status" >&5
22204echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022205sed 's/^/| /' conftest.$ac_ext >&5
22206
John Criswell7a73b802003-06-30 21:59:07 +000022207( exit $ac_status )
22208ac_cv_func_mmap_fixed_mapped=no
22209fi
John Criswell0c38eaf2003-09-10 15:17:25 +000022210rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022211fi
22212fi
22213echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22214echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22215if test $ac_cv_func_mmap_fixed_mapped = yes; then
22216
22217cat >>confdefs.h <<\_ACEOF
22218#define HAVE_MMAP 1
22219_ACEOF
22220
22221fi
22222rm -f conftest.mmap
22223
22224echo "$as_me:$LINENO: checking for mmap of files" >&5
22225echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
22226if test "${ac_cv_func_mmap_file+set}" = set; then
22227 echo $ECHO_N "(cached) $ECHO_C" >&6
22228else
22229
22230
22231 ac_ext=c
22232ac_cpp='$CPP $CPPFLAGS'
22233ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22234ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22235ac_compiler_gnu=$ac_cv_c_compiler_gnu
22236
22237 if test "$cross_compiling" = yes; then
John Criswell0c38eaf2003-09-10 15:17:25 +000022238 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22239See \`config.log' for more details." >&5
22240echo "$as_me: error: cannot run test program while cross compiling
22241See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022242 { (exit 1); exit 1; }; }
22243else
22244 cat >conftest.$ac_ext <<_ACEOF
22245#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022246/* confdefs.h. */
22247_ACEOF
22248cat confdefs.h >>conftest.$ac_ext
22249cat >>conftest.$ac_ext <<_ACEOF
22250/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022251
22252#ifdef HAVE_SYS_MMAN_H
22253#include <sys/mman.h>
22254#endif
22255
22256#ifdef HAVE_SYS_TYPES_H
22257#include <sys/types.h>
22258#endif
22259
22260#ifdef HAVE_FCNTL_H
22261#include <fcntl.h>
22262#endif
22263
22264 int fd;
22265 int main () {
22266 fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != MAP_FAILED);}
22267_ACEOF
22268rm -f conftest$ac_exeext
22269if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22270 (eval $ac_link) 2>&5
22271 ac_status=$?
22272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22273 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22275 (eval $ac_try) 2>&5
22276 ac_status=$?
22277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22278 (exit $ac_status); }; }; then
22279 ac_cv_func_mmap_file=yes
22280else
22281 echo "$as_me: program exited with status $ac_status" >&5
22282echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022283sed 's/^/| /' conftest.$ac_ext >&5
22284
John Criswell7a73b802003-06-30 21:59:07 +000022285( exit $ac_status )
22286ac_cv_func_mmap_file=no
22287fi
John Criswell0c38eaf2003-09-10 15:17:25 +000022288rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022289fi
22290 ac_ext=c
22291ac_cpp='$CPP $CPPFLAGS'
22292ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22293ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22294ac_compiler_gnu=$ac_cv_c_compiler_gnu
22295
22296
22297fi
22298echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22299echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
22300if test "$ac_cv_func_mmap_file" = yes; then
22301 cat >>confdefs.h <<\_ACEOF
22302#define HAVE_MMAP_FILE 1
22303_ACEOF
22304
22305 MMAP_FILE=yes
22306
22307fi
22308
22309if test ${ac_cv_func_mmap_file} = "no"
22310then
22311 { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
22312echo "$as_me: error: mmap() of files required but not found" >&2;}
22313 { (exit 1); exit 1; }; }
22314fi
22315echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
22316echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
22317if test "${ac_cv_header_mmap_anon+set}" = set; then
22318 echo $ECHO_N "(cached) $ECHO_C" >&6
22319else
22320
22321
22322 ac_ext=c
22323ac_cpp='$CPP $CPPFLAGS'
22324ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22325ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22326ac_compiler_gnu=$ac_cv_c_compiler_gnu
22327
22328 cat >conftest.$ac_ext <<_ACEOF
22329#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022330/* confdefs.h. */
22331_ACEOF
22332cat confdefs.h >>conftest.$ac_ext
22333cat >>conftest.$ac_ext <<_ACEOF
22334/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022335#include <sys/mman.h>
22336 #include <unistd.h>
22337 #include <fcntl.h>
John Criswell7a73b802003-06-30 21:59:07 +000022338int
22339main ()
22340{
22341mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
22342 ;
22343 return 0;
22344}
22345_ACEOF
22346rm -f conftest.$ac_objext
22347if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22348 (eval $ac_compile) 2>&5
22349 ac_status=$?
22350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22351 (exit $ac_status); } &&
22352 { ac_try='test -s conftest.$ac_objext'
22353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22354 (eval $ac_try) 2>&5
22355 ac_status=$?
22356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22357 (exit $ac_status); }; }; then
22358 ac_cv_header_mmap_anon=yes
22359else
22360 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022361sed 's/^/| /' conftest.$ac_ext >&5
22362
John Criswell7a73b802003-06-30 21:59:07 +000022363ac_cv_header_mmap_anon=no
22364fi
22365rm -f conftest.$ac_objext conftest.$ac_ext
22366 ac_ext=c
22367ac_cpp='$CPP $CPPFLAGS'
22368ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22369ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22370ac_compiler_gnu=$ac_cv_c_compiler_gnu
22371
22372
22373fi
22374echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
22375echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
22376if test "$ac_cv_header_mmap_anon" = yes; then
22377 cat >>confdefs.h <<\_ACEOF
22378#define HAVE_MMAP_ANONYMOUS 1
22379_ACEOF
22380
22381fi
22382
22383echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22384echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22385if test "${ac_cv_type_signal+set}" = set; then
22386 echo $ECHO_N "(cached) $ECHO_C" >&6
22387else
22388 cat >conftest.$ac_ext <<_ACEOF
22389#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022390/* confdefs.h. */
22391_ACEOF
22392cat confdefs.h >>conftest.$ac_ext
22393cat >>conftest.$ac_ext <<_ACEOF
22394/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022395#include <sys/types.h>
22396#include <signal.h>
22397#ifdef signal
22398# undef signal
22399#endif
22400#ifdef __cplusplus
22401extern "C" void (*signal (int, void (*)(int)))(int);
22402#else
22403void (*signal ()) ();
22404#endif
22405
John Criswell7a73b802003-06-30 21:59:07 +000022406int
22407main ()
22408{
22409int i;
22410 ;
22411 return 0;
22412}
22413_ACEOF
22414rm -f conftest.$ac_objext
22415if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22416 (eval $ac_compile) 2>&5
22417 ac_status=$?
22418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22419 (exit $ac_status); } &&
22420 { ac_try='test -s conftest.$ac_objext'
22421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22422 (eval $ac_try) 2>&5
22423 ac_status=$?
22424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22425 (exit $ac_status); }; }; then
22426 ac_cv_type_signal=void
22427else
22428 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022429sed 's/^/| /' conftest.$ac_ext >&5
22430
John Criswell7a73b802003-06-30 21:59:07 +000022431ac_cv_type_signal=int
22432fi
22433rm -f conftest.$ac_objext conftest.$ac_ext
22434fi
22435echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22436echo "${ECHO_T}$ac_cv_type_signal" >&6
22437
22438cat >>confdefs.h <<_ACEOF
22439#define RETSIGTYPE $ac_cv_type_signal
22440_ACEOF
22441
22442
22443
22444
22445
22446
22447
22448
22449
22450
22451
22452for ac_func in getcwd gettimeofday strcspn strdup strerror strspn strstr strtod strtol
22453do
22454as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22455echo "$as_me:$LINENO: checking for $ac_func" >&5
22456echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22457if eval "test \"\${$as_ac_var+set}\" = set"; then
22458 echo $ECHO_N "(cached) $ECHO_C" >&6
22459else
22460 cat >conftest.$ac_ext <<_ACEOF
22461#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022462/* confdefs.h. */
22463_ACEOF
22464cat confdefs.h >>conftest.$ac_ext
22465cat >>conftest.$ac_ext <<_ACEOF
22466/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022467/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022468 which can conflict with char $ac_func (); below.
22469 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22470 <limits.h> exists even on freestanding compilers. */
22471#ifdef __STDC__
22472# include <limits.h>
22473#else
22474# include <assert.h>
22475#endif
John Criswell7a73b802003-06-30 21:59:07 +000022476/* Override any gcc2 internal prototype to avoid an error. */
22477#ifdef __cplusplus
22478extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022479{
John Criswell7a73b802003-06-30 21:59:07 +000022480#endif
22481/* We use char because int might match the return type of a gcc2
22482 builtin and then its argument prototype would still apply. */
22483char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000022484/* The GNU C library defines this for functions which it implements
22485 to always fail with ENOSYS. Some functions are actually named
22486 something starting with __ and the normal name is an alias. */
22487#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22488choke me
22489#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022490char (*f) () = $ac_func;
22491#endif
22492#ifdef __cplusplus
22493}
John Criswell7a73b802003-06-30 21:59:07 +000022494#endif
22495
John Criswell0c38eaf2003-09-10 15:17:25 +000022496int
22497main ()
22498{
22499return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000022500 ;
22501 return 0;
22502}
22503_ACEOF
22504rm -f conftest.$ac_objext conftest$ac_exeext
22505if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22506 (eval $ac_link) 2>&5
22507 ac_status=$?
22508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22509 (exit $ac_status); } &&
22510 { ac_try='test -s conftest$ac_exeext'
22511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22512 (eval $ac_try) 2>&5
22513 ac_status=$?
22514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22515 (exit $ac_status); }; }; then
22516 eval "$as_ac_var=yes"
22517else
22518 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022519sed 's/^/| /' conftest.$ac_ext >&5
22520
John Criswell7a73b802003-06-30 21:59:07 +000022521eval "$as_ac_var=no"
22522fi
22523rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22524fi
22525echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22526echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22527if test `eval echo '${'$as_ac_var'}'` = yes; then
22528 cat >>confdefs.h <<_ACEOF
22529#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22530_ACEOF
22531
22532fi
22533done
22534
22535
22536
22537echo "$as_me:$LINENO: checking for mmap" >&5
22538echo $ECHO_N "checking for mmap... $ECHO_C" >&6
22539if test "${ac_cv_func_mmap+set}" = set; then
22540 echo $ECHO_N "(cached) $ECHO_C" >&6
22541else
22542 cat >conftest.$ac_ext <<_ACEOF
22543#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022544/* confdefs.h. */
22545_ACEOF
22546cat confdefs.h >>conftest.$ac_ext
22547cat >>conftest.$ac_ext <<_ACEOF
22548/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022549/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022550 which can conflict with char mmap (); below.
22551 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22552 <limits.h> exists even on freestanding compilers. */
22553#ifdef __STDC__
22554# include <limits.h>
22555#else
22556# include <assert.h>
22557#endif
John Criswell7a73b802003-06-30 21:59:07 +000022558/* Override any gcc2 internal prototype to avoid an error. */
22559#ifdef __cplusplus
22560extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022561{
John Criswell7a73b802003-06-30 21:59:07 +000022562#endif
22563/* We use char because int might match the return type of a gcc2
22564 builtin and then its argument prototype would still apply. */
22565char mmap ();
John Criswell7a73b802003-06-30 21:59:07 +000022566/* The GNU C library defines this for functions which it implements
22567 to always fail with ENOSYS. Some functions are actually named
22568 something starting with __ and the normal name is an alias. */
22569#if defined (__stub_mmap) || defined (__stub___mmap)
22570choke me
22571#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022572char (*f) () = mmap;
22573#endif
22574#ifdef __cplusplus
22575}
John Criswell7a73b802003-06-30 21:59:07 +000022576#endif
22577
John Criswell0c38eaf2003-09-10 15:17:25 +000022578int
22579main ()
22580{
22581return f != mmap;
John Criswell7a73b802003-06-30 21:59:07 +000022582 ;
22583 return 0;
22584}
22585_ACEOF
22586rm -f conftest.$ac_objext conftest$ac_exeext
22587if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22588 (eval $ac_link) 2>&5
22589 ac_status=$?
22590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22591 (exit $ac_status); } &&
22592 { ac_try='test -s conftest$ac_exeext'
22593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22594 (eval $ac_try) 2>&5
22595 ac_status=$?
22596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22597 (exit $ac_status); }; }; then
22598 ac_cv_func_mmap=yes
22599else
22600 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022601sed 's/^/| /' conftest.$ac_ext >&5
22602
John Criswell7a73b802003-06-30 21:59:07 +000022603ac_cv_func_mmap=no
22604fi
22605rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22606fi
22607echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
22608echo "${ECHO_T}$ac_cv_func_mmap" >&6
22609if test $ac_cv_func_mmap = yes; then
22610 :
22611else
22612 { { echo "$as_me:$LINENO: error: Function mmap() required but not found" >&5
22613echo "$as_me: error: Function mmap() required but not found" >&2;}
22614 { (exit 1); exit 1; }; }
22615fi
22616
22617echo "$as_me:$LINENO: checking for mprotect" >&5
22618echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
22619if test "${ac_cv_func_mprotect+set}" = set; then
22620 echo $ECHO_N "(cached) $ECHO_C" >&6
22621else
22622 cat >conftest.$ac_ext <<_ACEOF
22623#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022624/* confdefs.h. */
22625_ACEOF
22626cat confdefs.h >>conftest.$ac_ext
22627cat >>conftest.$ac_ext <<_ACEOF
22628/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022629/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022630 which can conflict with char mprotect (); below.
22631 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22632 <limits.h> exists even on freestanding compilers. */
22633#ifdef __STDC__
22634# include <limits.h>
22635#else
22636# include <assert.h>
22637#endif
John Criswell7a73b802003-06-30 21:59:07 +000022638/* Override any gcc2 internal prototype to avoid an error. */
22639#ifdef __cplusplus
22640extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022641{
John Criswell7a73b802003-06-30 21:59:07 +000022642#endif
22643/* We use char because int might match the return type of a gcc2
22644 builtin and then its argument prototype would still apply. */
22645char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000022646/* The GNU C library defines this for functions which it implements
22647 to always fail with ENOSYS. Some functions are actually named
22648 something starting with __ and the normal name is an alias. */
22649#if defined (__stub_mprotect) || defined (__stub___mprotect)
22650choke me
22651#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022652char (*f) () = mprotect;
22653#endif
22654#ifdef __cplusplus
22655}
John Criswell7a73b802003-06-30 21:59:07 +000022656#endif
22657
John Criswell0c38eaf2003-09-10 15:17:25 +000022658int
22659main ()
22660{
22661return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000022662 ;
22663 return 0;
22664}
22665_ACEOF
22666rm -f conftest.$ac_objext conftest$ac_exeext
22667if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22668 (eval $ac_link) 2>&5
22669 ac_status=$?
22670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22671 (exit $ac_status); } &&
22672 { ac_try='test -s conftest$ac_exeext'
22673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22674 (eval $ac_try) 2>&5
22675 ac_status=$?
22676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22677 (exit $ac_status); }; }; then
22678 ac_cv_func_mprotect=yes
22679else
22680 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022681sed 's/^/| /' conftest.$ac_ext >&5
22682
John Criswell7a73b802003-06-30 21:59:07 +000022683ac_cv_func_mprotect=no
22684fi
22685rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22686fi
22687echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
22688echo "${ECHO_T}$ac_cv_func_mprotect" >&6
22689if test $ac_cv_func_mprotect = yes; then
22690 :
22691else
22692 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
22693echo "$as_me: error: Function mprotect() required but not found" >&2;}
22694 { (exit 1); exit 1; }; }
22695fi
22696
22697
John Criswellb13092b2003-07-22 21:00:24 +000022698
John Criswell7a73b802003-06-30 21:59:07 +000022699# Check whether --enable-purify or --disable-purify was given.
22700if test "${enable_purify+set}" = set; then
22701 enableval="$enable_purify"
John Criswell7a73b802003-06-30 21:59:07 +000022702
22703else
John Criswellb13092b2003-07-22 21:00:24 +000022704 enableval="no"
John Criswell7a73b802003-06-30 21:59:07 +000022705fi;
John Criswellb13092b2003-07-22 21:00:24 +000022706if test ${enableval} = "no"
22707then
22708 ENABLE_PURIFY=
22709
22710else
22711 ENABLE_PURIFY=ENABLE_PURIFY=1
22712
22713fi
22714
John Criswell7a73b802003-06-30 21:59:07 +000022715# Check whether --enable-optimized or --disable-optimized was given.
22716if test "${enable_optimized+set}" = set; then
22717 enableval="$enable_optimized"
John Criswell7a73b802003-06-30 21:59:07 +000022718
22719else
John Criswellb13092b2003-07-22 21:00:24 +000022720 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022721fi;
John Criswellb13092b2003-07-22 21:00:24 +000022722if test ${enableval} = "no"
22723then
22724 ENABLE_OPTIMIZED=
22725
22726else
22727 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
22728
22729fi
22730
John Criswell7a73b802003-06-30 21:59:07 +000022731# Check whether --enable-spec or --disable-spec was given.
22732if test "${enable_spec+set}" = set; then
22733 enableval="$enable_spec"
John Criswell7a73b802003-06-30 21:59:07 +000022734
22735else
John Criswellb13092b2003-07-22 21:00:24 +000022736 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022737fi;
John Criswellb13092b2003-07-22 21:00:24 +000022738if test ${enableval} = "no"
22739then
22740 USE_SPEC=
22741
22742else
22743 USE_SPEC=USE_SPEC=1
22744
22745fi
22746
John Criswell7a73b802003-06-30 21:59:07 +000022747# Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
22748if test "${enable_precompiled_bytecode+set}" = set; then
22749 enableval="$enable_precompiled_bytecode"
John Criswell7a73b802003-06-30 21:59:07 +000022750
22751else
John Criswellb13092b2003-07-22 21:00:24 +000022752 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022753fi;
John Criswellb13092b2003-07-22 21:00:24 +000022754if test ${enableval} = "no"
22755then
22756 UPB=
John Criswellf02dbf02003-07-22 20:07:49 +000022757
John Criswellb13092b2003-07-22 21:00:24 +000022758else
22759 UPB=USE_PRECOMPILED_BYTECODE=1
22760
22761fi
John Criswellf02dbf02003-07-22 20:07:49 +000022762
22763
22764# Check whether --enable-llc_diffs or --disable-llc_diffs was given.
22765if test "${enable_llc_diffs+set}" = set; then
22766 enableval="$enable_llc_diffs"
John Criswellf02dbf02003-07-22 20:07:49 +000022767
22768else
John Criswellb13092b2003-07-22 21:00:24 +000022769 enableval=yes
John Criswellf02dbf02003-07-22 20:07:49 +000022770fi;
John Criswellb13092b2003-07-22 21:00:24 +000022771if test ${enableval} = "no"
22772then
22773 DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
John Criswellf02dbf02003-07-22 20:07:49 +000022774
John Criswellb13092b2003-07-22 21:00:24 +000022775else
22776 DISABLE_LLC_DIFFS=
22777
22778fi
22779
22780# Check whether --enable-jit or --disable-jit was given.
John Criswell7a73b802003-06-30 21:59:07 +000022781if test "${enable_jit+set}" = set; then
22782 enableval="$enable_jit"
John Criswell7a73b802003-06-30 21:59:07 +000022783
22784else
John Criswellc78022e2003-07-29 19:11:58 +000022785 enableval=default
John Criswell7a73b802003-06-30 21:59:07 +000022786fi;
John Criswellb13092b2003-07-22 21:00:24 +000022787
22788if test ${enableval} = "no"
22789then
22790 JIT=
22791
22792else
John Criswellc78022e2003-07-29 19:11:58 +000022793 case $target in
22794 *i*86*)
22795 JIT=TARGET_HAS_JIT=1
John Criswellb13092b2003-07-22 21:00:24 +000022796
John Criswellc78022e2003-07-29 19:11:58 +000022797 ;;
22798 *sparc*)
22799 JIT=TARGET_HAS_JIT=1
22800
22801 ;;
22802 *)
22803 JIT=
22804
22805 ;;
22806 esac
John Criswellb13092b2003-07-22 21:00:24 +000022807fi
John Criswell7a73b802003-06-30 21:59:07 +000022808
22809
John Criswellc78022e2003-07-29 19:11:58 +000022810
John Criswell7a73b802003-06-30 21:59:07 +000022811# Check whether --with-spec or --without-spec was given.
22812if test "${with_spec+set}" = set; then
22813 withval="$with_spec"
22814 SPEC_ROOT=$withval
22815
22816else
22817 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
22818
22819fi;
22820
John Criswellc78022e2003-07-29 19:11:58 +000022821
John Criswell7a73b802003-06-30 21:59:07 +000022822# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
22823if test "${with_llvmgccdir+set}" = set; then
22824 withval="$with_llvmgccdir"
22825 LLVMGCCDIR=$withval
22826
22827fi;
22828
John Criswellc78022e2003-07-29 19:11:58 +000022829
John Criswell7a73b802003-06-30 21:59:07 +000022830# Check whether --with-bcrepos or --without-bcrepos was given.
22831if test "${with_bcrepos+set}" = set; then
22832 withval="$with_bcrepos"
22833 BCR=$withval
22834
22835else
22836 BCR=/home/vadve/lattner/LLVMPrograms
22837
22838fi;
22839
John Criswellc78022e2003-07-29 19:11:58 +000022840
John Criswell7a73b802003-06-30 21:59:07 +000022841# Check whether --with-papi or --without-papi was given.
22842if test "${with_papi+set}" = set; then
22843 withval="$with_papi"
22844 PAPIDIR=$withval
22845
22846else
John Criswellde00db22003-08-25 16:49:54 +000022847 PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
John Criswell7a73b802003-06-30 21:59:07 +000022848
22849fi;
22850
John Criswell7a73b802003-06-30 21:59:07 +000022851
22852# Check whether --with-purify or --without-purify was given.
22853if test "${with_purify+set}" = set; then
22854 withval="$with_purify"
22855 PURIFY=$withval
22856
22857fi;
22858
John Criswellde00db22003-08-25 16:49:54 +000022859
John Criswell0c38eaf2003-09-10 15:17:25 +000022860 ac_config_files="$ac_config_files Makefile.config"
John Criswell7a73b802003-06-30 21:59:07 +000022861cat >confcache <<\_ACEOF
22862# This file is a shell script that caches the results of configure
22863# tests run on this system so they can be shared between configure
22864# scripts and configure runs, see configure's option --config-cache.
22865# It is not useful on other systems. If it contains results you don't
22866# want to keep, you may remove or edit it.
22867#
22868# config.status only pays attention to the cache file if you give it
22869# the --recheck option to rerun configure.
22870#
John Criswell0c38eaf2003-09-10 15:17:25 +000022871# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000022872# loading this file, other *unset* `ac_cv_foo' will be assigned the
22873# following values.
22874
22875_ACEOF
22876
22877# The following way of writing the cache mishandles newlines in values,
22878# but we know of no workaround that is simple, portable, and efficient.
22879# So, don't put newlines in cache variables' values.
22880# Ultrix sh set writes to stderr and can't be redirected directly,
22881# and sets the high bit in the cache file unless we assign to the vars.
22882{
22883 (set) 2>&1 |
22884 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22885 *ac_space=\ *)
22886 # `set' does not quote correctly, so add quotes (double-quote
22887 # substitution turns \\\\ into \\, and sed turns \\ into \).
22888 sed -n \
22889 "s/'/'\\\\''/g;
22890 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22891 ;;
22892 *)
22893 # `set' quotes correctly as required by POSIX, so do not add quotes.
22894 sed -n \
22895 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22896 ;;
22897 esac;
22898} |
22899 sed '
22900 t clear
22901 : clear
22902 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22903 t end
22904 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22905 : end' >>confcache
John Criswell0c38eaf2003-09-10 15:17:25 +000022906if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000022907 if test -w $cache_file; then
22908 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22909 cat confcache >$cache_file
22910 else
22911 echo "not updating unwritable cache $cache_file"
22912 fi
22913fi
22914rm -f confcache
22915
22916test "x$prefix" = xNONE && prefix=$ac_default_prefix
22917# Let make expand exec_prefix.
22918test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22919
22920# VPATH may cause trouble with some makes, so we remove $(srcdir),
22921# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22922# trailing colons and then remove the whole line if VPATH becomes empty
22923# (actually we leave an empty line to preserve line numbers).
22924if test "x$srcdir" = x.; then
22925 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22926s/:*\$(srcdir):*/:/;
22927s/:*\${srcdir}:*/:/;
22928s/:*@srcdir@:*/:/;
22929s/^\([^=]*=[ ]*\):*/\1/;
22930s/:*$//;
22931s/^[^=]*=[ ]*$//;
22932}'
22933fi
22934
22935DEFS=-DHAVE_CONFIG_H
22936
John Criswell0c38eaf2003-09-10 15:17:25 +000022937ac_libobjs=
22938ac_ltlibobjs=
22939for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22940 # 1. Remove the extension, and $U if already installed.
22941 ac_i=`echo "$ac_i" |
22942 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22943 # 2. Add them.
22944 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22945 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22946done
22947LIBOBJS=$ac_libobjs
22948
22949LTLIBOBJS=$ac_ltlibobjs
22950
22951
John Criswell7a73b802003-06-30 21:59:07 +000022952
22953: ${CONFIG_STATUS=./config.status}
22954ac_clean_files_save=$ac_clean_files
22955ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22956{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22957echo "$as_me: creating $CONFIG_STATUS" >&6;}
22958cat >$CONFIG_STATUS <<_ACEOF
22959#! $SHELL
22960# Generated by $as_me.
22961# Run this file to recreate the current configuration.
22962# Compiler output produced by configure, useful for debugging
22963# configure, is in config.log if it exists.
22964
22965debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000022966ac_cs_recheck=false
22967ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000022968SHELL=\${CONFIG_SHELL-$SHELL}
22969_ACEOF
22970
22971cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022972## --------------------- ##
22973## M4sh Initialization. ##
22974## --------------------- ##
22975
22976# Be Bourne compatible
22977if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22978 emulate sh
22979 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022980 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22981 # is contrary to our usage. Disable this feature.
22982 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000022983elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22984 set -o posix
22985fi
22986
John Criswell7a73b802003-06-30 21:59:07 +000022987# Support unset when possible.
22988if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
22989 as_unset=unset
22990else
22991 as_unset=false
22992fi
22993
John Criswell0c38eaf2003-09-10 15:17:25 +000022994
22995# Work around bugs in pre-3.0 UWIN ksh.
22996$as_unset ENV MAIL MAILPATH
22997PS1='$ '
22998PS2='> '
22999PS4='+ '
23000
23001# NLS nuisances.
23002for as_var in \
23003 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23004 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23005 LC_TELEPHONE LC_TIME
23006do
23007 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
23008 eval $as_var=C; export $as_var
23009 else
23010 $as_unset $as_var
23011 fi
23012done
23013
23014# Required to use basename.
23015if expr a : '\(a\)' >/dev/null 2>&1; then
23016 as_expr=expr
23017else
23018 as_expr=false
23019fi
23020
23021if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23022 as_basename=basename
23023else
23024 as_basename=false
23025fi
John Criswell7a73b802003-06-30 21:59:07 +000023026
23027
23028# Name of the executable.
John Criswell0c38eaf2003-09-10 15:17:25 +000023029as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000023030$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23031 X"$0" : 'X\(//\)$' \| \
23032 X"$0" : 'X\(/\)$' \| \
23033 . : '\(.\)' 2>/dev/null ||
23034echo X/"$0" |
23035 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23036 /^X\/\(\/\/\)$/{ s//\1/; q; }
23037 /^X\/\(\/\).*/{ s//\1/; q; }
23038 s/.*/./; q'`
23039
John Criswell0c38eaf2003-09-10 15:17:25 +000023040
John Criswell7a73b802003-06-30 21:59:07 +000023041# PATH needs CR, and LINENO needs CR and PATH.
23042# Avoid depending upon Character Ranges.
23043as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23044as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23045as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23046as_cr_digits='0123456789'
23047as_cr_alnum=$as_cr_Letters$as_cr_digits
23048
23049# The user is always right.
23050if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000023051 echo "#! /bin/sh" >conf$$.sh
23052 echo "exit 0" >>conf$$.sh
23053 chmod +x conf$$.sh
23054 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000023055 PATH_SEPARATOR=';'
23056 else
23057 PATH_SEPARATOR=:
23058 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000023059 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000023060fi
23061
23062
23063 as_lineno_1=$LINENO
23064 as_lineno_2=$LINENO
23065 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23066 test "x$as_lineno_1" != "x$as_lineno_2" &&
23067 test "x$as_lineno_3" = "x$as_lineno_2" || {
23068 # Find who we are. Look in the path if we contain no path at all
23069 # relative or not.
23070 case $0 in
23071 *[\\/]* ) as_myself=$0 ;;
23072 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23073for as_dir in $PATH
23074do
23075 IFS=$as_save_IFS
23076 test -z "$as_dir" && as_dir=.
23077 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23078done
23079
23080 ;;
23081 esac
23082 # We did not find ourselves, most probably we were run as `sh COMMAND'
23083 # in which case we are not to be found in the path.
23084 if test "x$as_myself" = x; then
23085 as_myself=$0
23086 fi
23087 if test ! -f "$as_myself"; then
23088 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23089echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23090 { (exit 1); exit 1; }; }
23091 fi
23092 case $CONFIG_SHELL in
23093 '')
23094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23095for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23096do
23097 IFS=$as_save_IFS
23098 test -z "$as_dir" && as_dir=.
23099 for as_base in sh bash ksh sh5; do
23100 case $as_dir in
23101 /*)
23102 if ("$as_dir/$as_base" -c '
23103 as_lineno_1=$LINENO
23104 as_lineno_2=$LINENO
23105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23106 test "x$as_lineno_1" != "x$as_lineno_2" &&
23107 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell0c38eaf2003-09-10 15:17:25 +000023108 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23109 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000023110 CONFIG_SHELL=$as_dir/$as_base
23111 export CONFIG_SHELL
23112 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23113 fi;;
23114 esac
23115 done
23116done
23117;;
23118 esac
23119
23120 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23121 # uniformly replaced by the line number. The first 'sed' inserts a
23122 # line-number line before each line; the second 'sed' does the real
23123 # work. The second script uses 'N' to pair each line-number line
23124 # with the numbered line, and appends trailing '-' during
23125 # substitution so that $LINENO is not a special case at line end.
23126 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23127 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23128 sed '=' <$as_myself |
23129 sed '
23130 N
23131 s,$,-,
23132 : loop
23133 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23134 t loop
23135 s,-$,,
23136 s,^['$as_cr_digits']*\n,,
23137 ' >$as_me.lineno &&
23138 chmod +x $as_me.lineno ||
23139 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23140echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23141 { (exit 1); exit 1; }; }
23142
23143 # Don't try to exec as it changes $[0], causing all sort of problems
23144 # (the dirname of $[0] is not the place where we might find the
23145 # original and so on. Autoconf is especially sensible to this).
23146 . ./$as_me.lineno
23147 # Exit status is that of the last command.
23148 exit
23149}
23150
23151
23152case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23153 *c*,-n*) ECHO_N= ECHO_C='
23154' ECHO_T=' ' ;;
23155 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23156 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23157esac
23158
23159if expr a : '\(a\)' >/dev/null 2>&1; then
23160 as_expr=expr
23161else
23162 as_expr=false
23163fi
23164
23165rm -f conf$$ conf$$.exe conf$$.file
23166echo >conf$$.file
23167if ln -s conf$$.file conf$$ 2>/dev/null; then
23168 # We could just check for DJGPP; but this test a) works b) is more generic
23169 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23170 if test -f conf$$.exe; then
23171 # Don't use ln at all; we don't have any links
23172 as_ln_s='cp -p'
23173 else
23174 as_ln_s='ln -s'
23175 fi
23176elif ln conf$$.file conf$$ 2>/dev/null; then
23177 as_ln_s=ln
23178else
23179 as_ln_s='cp -p'
23180fi
23181rm -f conf$$ conf$$.exe conf$$.file
23182
John Criswell0c38eaf2003-09-10 15:17:25 +000023183if mkdir -p . 2>/dev/null; then
23184 as_mkdir_p=:
23185else
23186 as_mkdir_p=false
23187fi
23188
John Criswell7a73b802003-06-30 21:59:07 +000023189as_executable_p="test -f"
23190
23191# Sed expression to map a string onto a valid CPP name.
23192as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23193
23194# Sed expression to map a string onto a valid variable name.
23195as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23196
23197
23198# IFS
23199# We need space, tab and new line, in precisely that order.
23200as_nl='
23201'
23202IFS=" $as_nl"
23203
23204# CDPATH.
John Criswell0c38eaf2003-09-10 15:17:25 +000023205$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000023206
23207exec 6>&1
23208
23209# Open the log real soon, to keep \$[0] and so on meaningful, and to
23210# report actual input values of CONFIG_FILES etc. instead of their
23211# values after options handling. Logging --version etc. is OK.
23212exec 5>>config.log
23213{
23214 echo
23215 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23216## Running $as_me. ##
23217_ASBOX
23218} >&5
23219cat >&5 <<_CSEOF
23220
23221This file was extended by [LLVM] $as_me [1.0], which was
John Criswell0c38eaf2003-09-10 15:17:25 +000023222generated by GNU Autoconf 2.57. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000023223
23224 CONFIG_FILES = $CONFIG_FILES
23225 CONFIG_HEADERS = $CONFIG_HEADERS
23226 CONFIG_LINKS = $CONFIG_LINKS
23227 CONFIG_COMMANDS = $CONFIG_COMMANDS
23228 $ $0 $@
23229
23230_CSEOF
23231echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23232echo >&5
23233_ACEOF
23234
23235# Files that config.status was made for.
23236if test -n "$ac_config_files"; then
23237 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23238fi
23239
23240if test -n "$ac_config_headers"; then
23241 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23242fi
23243
23244if test -n "$ac_config_links"; then
23245 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23246fi
23247
23248if test -n "$ac_config_commands"; then
23249 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23250fi
23251
23252cat >>$CONFIG_STATUS <<\_ACEOF
23253
23254ac_cs_usage="\
23255\`$as_me' instantiates files from templates according to the
23256current configuration.
23257
23258Usage: $0 [OPTIONS] [FILE]...
23259
23260 -h, --help print this help, then exit
23261 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000023262 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000023263 -d, --debug don't remove temporary files
23264 --recheck update $as_me by reconfiguring in the same conditions
23265 --file=FILE[:TEMPLATE]
23266 instantiate the configuration file FILE
23267 --header=FILE[:TEMPLATE]
23268 instantiate the configuration header FILE
23269
23270Configuration files:
23271$config_files
23272
23273Configuration headers:
23274$config_headers
23275
John Criswellc764fbc2003-09-06 15:17:13 +000023276Configuration commands:
23277$config_commands
23278
John Criswell7a73b802003-06-30 21:59:07 +000023279Report bugs to <bug-autoconf@gnu.org>."
23280_ACEOF
23281
23282cat >>$CONFIG_STATUS <<_ACEOF
23283ac_cs_version="\\
23284[LLVM] config.status [1.0]
John Criswell0c38eaf2003-09-10 15:17:25 +000023285configured by $0, generated by GNU Autoconf 2.57,
John Criswell7a73b802003-06-30 21:59:07 +000023286 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23287
23288Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23289Free Software Foundation, Inc.
23290This config.status script is free software; the Free Software Foundation
23291gives unlimited permission to copy, distribute and modify it."
23292srcdir=$srcdir
23293INSTALL="$INSTALL"
23294_ACEOF
23295
23296cat >>$CONFIG_STATUS <<\_ACEOF
23297# If no file are specified by the user, then we need to provide default
23298# value. By we need to know if files were specified by the user.
23299ac_need_defaults=:
23300while test $# != 0
23301do
23302 case $1 in
23303 --*=*)
23304 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23305 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000023306 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000023307 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000023308 -*)
23309 ac_option=$1
23310 ac_optarg=$2
23311 ac_shift=shift
23312 ;;
John Criswell7a73b802003-06-30 21:59:07 +000023313 *) # This is not an option, so the user has probably given explicit
23314 # arguments.
John Criswell0c38eaf2003-09-10 15:17:25 +000023315 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000023316 ac_need_defaults=false;;
23317 esac
23318
John Criswell0c38eaf2003-09-10 15:17:25 +000023319 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000023320 # Handling of the options.
23321_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000023322cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023323 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23324 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000023325 --version | --vers* | -V )
23326 echo "$ac_cs_version"; exit 0 ;;
23327 --he | --h)
23328 # Conflict between --help and --header
23329 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23330Try \`$0 --help' for more information." >&5
23331echo "$as_me: error: ambiguous option: $1
23332Try \`$0 --help' for more information." >&2;}
23333 { (exit 1); exit 1; }; };;
23334 --help | --hel | -h )
23335 echo "$ac_cs_usage"; exit 0 ;;
23336 --debug | --d* | -d )
23337 debug=: ;;
23338 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000023339 $ac_shift
23340 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000023341 ac_need_defaults=false;;
23342 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000023343 $ac_shift
23344 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000023345 ac_need_defaults=false;;
John Criswell0c38eaf2003-09-10 15:17:25 +000023346 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23347 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23348 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000023349
23350 # This is an error.
23351 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23352Try \`$0 --help' for more information." >&5
23353echo "$as_me: error: unrecognized option: $1
23354Try \`$0 --help' for more information." >&2;}
23355 { (exit 1); exit 1; }; } ;;
23356
23357 *) ac_config_targets="$ac_config_targets $1" ;;
23358
23359 esac
23360 shift
23361done
23362
John Criswell0c38eaf2003-09-10 15:17:25 +000023363ac_configure_extra_args=
23364
23365if $ac_cs_silent; then
23366 exec 6>/dev/null
23367 ac_configure_extra_args="$ac_configure_extra_args --silent"
23368fi
23369
23370_ACEOF
23371cat >>$CONFIG_STATUS <<_ACEOF
23372if \$ac_cs_recheck; then
23373 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23374 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23375fi
23376
John Criswell7a73b802003-06-30 21:59:07 +000023377_ACEOF
23378
John Criswellc764fbc2003-09-06 15:17:13 +000023379cat >>$CONFIG_STATUS <<_ACEOF
23380#
23381# INIT-COMMANDS section.
23382#
John Criswell7a73b802003-06-30 21:59:07 +000023383
John Criswellc764fbc2003-09-06 15:17:13 +000023384${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
23385${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
23386${srcdir}/autoconf/mkinstalldirs `dirname Makefile.rules`
23387${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
23388${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/Makefile`
23389${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/DataStructure/Makefile`
23390${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/IPA/Makefile`
23391${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/LiveVar/Makefile`
23392${srcdir}/autoconf/mkinstalldirs `dirname lib/AsmParser/Makefile`
23393${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Makefile`
23394${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Reader/Makefile`
23395${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Writer/Makefile`
23396${srcdir}/autoconf/mkinstalldirs `dirname lib/CWriter/Makefile`
23397${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/Makefile`
23398${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSched/Makefile`
23399${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSelection/Makefile`
23400${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/ModuloScheduling/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023401${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/RegAlloc/Makefile`
23402${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/SelectionDAG/Makefile`
23403${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Makefile`
23404${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Interpreter/Makefile`
23405${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/JIT/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023406${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Makefile`
23407${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Sparc/Makefile`
23408${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/X86/Makefile`
23409${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Makefile`
23410${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Hello/Makefile`
23411${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/IPO/Makefile`
23412${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/Makefile`
23413${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/ProfilePaths/Makefile`
23414${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Scalar/Makefile`
23415${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Utils/Makefile`
23416${srcdir}/autoconf/mkinstalldirs `dirname lib/VMCore/Makefile`
23417${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23418${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/Makefile`
23419${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/crtend/Makefile`
23420${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libc/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023421${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libcurses/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023422${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libg/Makefile`
23423${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libgcc/Makefile`
23424${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libm/Makefile`
23425${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libmalloc/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023426${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libtermcap/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023427${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libucb/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023428${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutempter/Makefile`
23429${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutil/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023430${srcdir}/autoconf/mkinstalldirs `dirname runtime/libdummy/Makefile`
23431${srcdir}/autoconf/mkinstalldirs `dirname runtime/libtrace/Makefile`
23432${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
23433${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
John Criswell08acb9b2003-09-16 02:12:45 +000023434${srcdir}/autoconf/mkinstalldirs `dirname test/QMTestDB/QMTest/llvm.py`
John Criswellc764fbc2003-09-06 15:17:13 +000023435${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
23436${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
23437${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
23438${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
23439${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.report`
23440${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
23441${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
23442${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
23443${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
23444${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
23445${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
23446${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
23447${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
23448${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
23449${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
23450${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.Makefile`
23451${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
23452${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023453${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
John Criswellc764fbc2003-09-06 15:17:13 +000023454${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/Makefile`
23455${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/179.art/Makefile`
23456${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/183.equake/Makefile`
23457${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/188.ammp/Makefile`
23458${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/Makefile`
23459${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/164.gzip/Makefile`
23460${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/175.vpr/Makefile`
23461${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/176.gcc/Makefile`
23462${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/181.mcf/Makefile`
23463${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/186.crafty/Makefile`
23464${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/197.parser/Makefile`
23465${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/254.gap/Makefile`
23466${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/255.vortex/Makefile`
23467${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile`
23468${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/300.twolf/Makefile`
23469${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/LLVMSource/Makefile`
23470${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
23471${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
John Criswell48e3cb92003-09-12 16:31:43 +000023472${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Makefile`
23473${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Burg/Makefile`
John Criswell39e83892003-09-12 16:36:17 +000023474${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/aha/Makefile`
23475${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/sgefa/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023476${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Makefile`
23477${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile`
23478${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/Makefile`
23479${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile`
23480${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile`
23481${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile`
23482${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile`
23483${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile`
23484${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile`
23485${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile`
23486${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile`
23487${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile`
23488${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile`
23489${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/Makefile`
23490${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile`
23491${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile`
23492${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile`
23493${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/health/Makefile`
23494${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile`
23495${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile`
23496${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/power/Makefile`
23497${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile`
23498${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile`
23499${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile`
John Criswell39e83892003-09-12 16:36:17 +000023500${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023501${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile`
23502${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile`
23503${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile`
23504${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile`
23505${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile`
23506${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023507${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023508${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/sim/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023509${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Makefile`
23510${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Flex/Makefile`
23511${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Larn/Makefile`
23512${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Moria-5.5.2/Makefile`
23513${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Povray31/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023514${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/m4/Makefile`
23515${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
23516${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
John Criswellffaaf3b2003-09-10 18:38:44 +000023517${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Gizmos/Makefile`
23518${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Makefile`
23519${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile`
23520${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Shootout/Makefile`
23521${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Stanford/Makefile`
23522${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Misc/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023523${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/CustomChecked/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023524${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/Makefile`
John Criswell0afe8252003-09-11 20:53:48 +000023525${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile`
John Criswell67181ca2003-09-26 14:53:17 +000023526${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/Makefile`
John Criswell68886d42003-09-26 19:51:42 +000023527${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C/Makefile`
23528${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C++/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023529${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
23530${srcdir}/autoconf/mkinstalldirs `dirname tools/analyze/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023531${srcdir}/autoconf/mkinstalldirs `dirname tools/bugpoint/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023532${srcdir}/autoconf/mkinstalldirs `dirname tools/extract/Makefile`
23533${srcdir}/autoconf/mkinstalldirs `dirname tools/gccas/Makefile`
23534${srcdir}/autoconf/mkinstalldirs `dirname tools/gccld/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023535${srcdir}/autoconf/mkinstalldirs `dirname tools/llc/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023536${srcdir}/autoconf/mkinstalldirs `dirname tools/llee/Makefile`
John Criswellddb7b4e2003-09-16 15:54:19 +000023537${srcdir}/autoconf/mkinstalldirs `dirname tools/lli/Makefile`
Chris Lattnerebd70302003-09-13 03:29:53 +000023538${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-ar/Makefile`
John Criswellddb7b4e2003-09-16 15:54:19 +000023539${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-as/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023540${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-dis/Makefile`
John Criswellddb7b4e2003-09-16 15:54:19 +000023541${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-link/Makefile`
23542${srcdir}/autoconf/mkinstalldirs `dirname tools/opt/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023543${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023544${srcdir}/autoconf/mkinstalldirs `dirname www/docs/Makefile`
23545${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
23546${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile`
23547${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.common`
23548${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.config`
23549${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/Makefile`
23550${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/sample/Makefile`
23551${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/Makefile`
23552${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/sample/Makefile`
23553${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile`
23554${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile.common`
23555${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/Makefile`
23556${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/ModuleMaker/Makefile`
John Criswell4e079782003-09-29 14:52:28 +000023557${srcdir}/autoconf/mkinstalldirs `dirname support/Makefile`
23558${srcdir}/autoconf/mkinstalldirs `dirname support/lib/Makefile`
23559${srcdir}/autoconf/mkinstalldirs `dirname support/lib/Support/Makefile`
23560${srcdir}/autoconf/mkinstalldirs `dirname support/tools/Makefile`
23561${srcdir}/autoconf/mkinstalldirs `dirname support/tools/Burg/Makefile`
23562${srcdir}/autoconf/mkinstalldirs `dirname support/tools/Burg/Doc/Makefile`
23563${srcdir}/autoconf/mkinstalldirs `dirname support/tools/TableGen/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023564
23565_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023566
23567
23568
23569cat >>$CONFIG_STATUS <<\_ACEOF
23570for ac_config_target in $ac_config_targets
23571do
23572 case "$ac_config_target" in
23573 # Handling of arguments.
23574 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023575 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23576 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23577 "Makefile.rules" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.rules" ;;
23578 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23579 "lib/Analysis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/Makefile" ;;
23580 "lib/Analysis/DataStructure/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/DataStructure/Makefile" ;;
23581 "lib/Analysis/IPA/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/IPA/Makefile" ;;
23582 "lib/Analysis/LiveVar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/LiveVar/Makefile" ;;
23583 "lib/AsmParser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/AsmParser/Makefile" ;;
23584 "lib/Bytecode/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Makefile" ;;
23585 "lib/Bytecode/Reader/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Reader/Makefile" ;;
23586 "lib/Bytecode/Writer/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Writer/Makefile" ;;
23587 "lib/CWriter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CWriter/Makefile" ;;
23588 "lib/CodeGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/Makefile" ;;
23589 "lib/CodeGen/InstrSched/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSched/Makefile" ;;
23590 "lib/CodeGen/InstrSelection/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSelection/Makefile" ;;
23591 "lib/CodeGen/ModuloScheduling/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/ModuloScheduling/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023592 "lib/CodeGen/RegAlloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/RegAlloc/Makefile" ;;
23593 "lib/CodeGen/SelectionDAG/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/SelectionDAG/Makefile" ;;
23594 "lib/ExecutionEngine/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Makefile" ;;
23595 "lib/ExecutionEngine/Interpreter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Interpreter/Makefile" ;;
23596 "lib/ExecutionEngine/JIT/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/JIT/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023597 "lib/Target/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Makefile" ;;
23598 "lib/Target/Sparc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Sparc/Makefile" ;;
23599 "lib/Target/X86/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/X86/Makefile" ;;
23600 "lib/Transforms/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Makefile" ;;
23601 "lib/Transforms/Hello/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Hello/Makefile" ;;
23602 "lib/Transforms/IPO/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/IPO/Makefile" ;;
23603 "lib/Transforms/Instrumentation/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/Makefile" ;;
23604 "lib/Transforms/Instrumentation/ProfilePaths/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/ProfilePaths/Makefile" ;;
23605 "lib/Transforms/Scalar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Scalar/Makefile" ;;
23606 "lib/Transforms/Utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Utils/Makefile" ;;
23607 "lib/VMCore/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/VMCore/Makefile" ;;
23608 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23609 "runtime/GCCLibraries/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/Makefile" ;;
23610 "runtime/GCCLibraries/crtend/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/crtend/Makefile" ;;
23611 "runtime/GCCLibraries/libc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libc/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023612 "runtime/GCCLibraries/libcurses/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libcurses/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023613 "runtime/GCCLibraries/libg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libg/Makefile" ;;
23614 "runtime/GCCLibraries/libgcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libgcc/Makefile" ;;
23615 "runtime/GCCLibraries/libm/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libm/Makefile" ;;
23616 "runtime/GCCLibraries/libmalloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libmalloc/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023617 "runtime/GCCLibraries/libtermcap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libtermcap/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023618 "runtime/GCCLibraries/libucb/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libucb/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023619 "runtime/GCCLibraries/libutempter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutempter/Makefile" ;;
23620 "runtime/GCCLibraries/libutil/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutil/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023621 "runtime/libdummy/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libdummy/Makefile" ;;
23622 "runtime/libtrace/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libtrace/Makefile" ;;
23623 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23624 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
John Criswell08acb9b2003-09-16 02:12:45 +000023625 "test/QMTestDB/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTestDB/QMTest/llvm.py" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023626 "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
23627 "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
23628 "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
23629 "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
23630 "test/Programs/TEST.micro.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.report" ;;
23631 "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
23632 "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
23633 "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
23634 "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
23635 "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
23636 "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
23637 "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
23638 "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
23639 "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
23640 "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
23641 "test/Programs/TEST.micro.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.Makefile" ;;
23642 "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
23643 "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023644 "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023645 "test/Programs/External/SPEC/CFP2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/Makefile" ;;
23646 "test/Programs/External/SPEC/CFP2000/179.art/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/179.art/Makefile" ;;
23647 "test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ;;
23648 "test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ;;
23649 "test/Programs/External/SPEC/CINT2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/Makefile" ;;
23650 "test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ;;
23651 "test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ;;
23652 "test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ;;
23653 "test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ;;
23654 "test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ;;
23655 "test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ;;
23656 "test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ;;
23657 "test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ;;
23658 "test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ;;
23659 "test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ;;
23660 "test/Programs/LLVMSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/LLVMSource/Makefile" ;;
23661 "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
23662 "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023663 "test/Programs/MultiSource/Applications/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Makefile" ;;
23664 "test/Programs/MultiSource/Applications/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Burg/Makefile" ;;
John Criswell39e83892003-09-12 16:36:17 +000023665 "test/Programs/MultiSource/Applications/aha/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/aha/Makefile" ;;
23666 "test/Programs/MultiSource/Applications/sgefa/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/sgefa/Makefile" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023667 "test/Programs/MultiSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Makefile" ;;
23668 "test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ;;
23669 "test/Programs/MultiSource/Benchmarks/McCat/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/Makefile" ;;
23670 "test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ;;
23671 "test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ;;
23672 "test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ;;
23673 "test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ;;
23674 "test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ;;
23675 "test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ;;
23676 "test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ;;
23677 "test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ;;
23678 "test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ;;
23679 "test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ;;
23680 "test/Programs/MultiSource/Benchmarks/Olden/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/Makefile" ;;
23681 "test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ;;
23682 "test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ;;
23683 "test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ;;
23684 "test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ;;
23685 "test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ;;
23686 "test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ;;
23687 "test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ;;
23688 "test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ;;
23689 "test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ;;
23690 "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 +000023691 "test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023692 "test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ;;
23693 "test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ;;
23694 "test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ;;
23695 "test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ;;
23696 "test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ;;
23697 "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 +000023698 "test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023699 "test/Programs/MultiSource/Benchmarks/sim/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/sim/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023700 "test/Programs/NoSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Makefile" ;;
23701 "test/Programs/NoSource/Flex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Flex/Makefile" ;;
23702 "test/Programs/NoSource/Larn/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Larn/Makefile" ;;
23703 "test/Programs/NoSource/Moria-5.5.2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Moria-5.5.2/Makefile" ;;
23704 "test/Programs/NoSource/Povray31/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Povray31/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023705 "test/Programs/NoSource/m4/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/m4/Makefile" ;;
23706 "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
23707 "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
John Criswellffaaf3b2003-09-10 18:38:44 +000023708 "test/Programs/SingleSource/Gizmos/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Gizmos/Makefile" ;;
23709 "test/Programs/SingleSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Makefile" ;;
23710 "test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ;;
23711 "test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ;;
23712 "test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ;;
23713 "test/Programs/SingleSource/Benchmarks/Misc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Misc/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023714 "test/Programs/SingleSource/CustomChecked/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/CustomChecked/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023715 "test/Programs/SingleSource/UnitTests/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/Makefile" ;;
John Criswell0afe8252003-09-11 20:53:48 +000023716 "test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ;;
John Criswell67181ca2003-09-26 14:53:17 +000023717 "test/Programs/SingleSource/Regression/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/Makefile" ;;
John Criswell68886d42003-09-26 19:51:42 +000023718 "test/Programs/SingleSource/Regression/C/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C/Makefile" ;;
23719 "test/Programs/SingleSource/Regression/C++/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C++/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023720 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23721 "tools/analyze/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/analyze/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023722 "tools/bugpoint/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/bugpoint/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023723 "tools/extract/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/extract/Makefile" ;;
23724 "tools/gccas/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccas/Makefile" ;;
23725 "tools/gccld/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccld/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023726 "tools/llc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llc/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023727 "tools/llee/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llee/Makefile" ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000023728 "tools/lli/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/lli/Makefile" ;;
Chris Lattnerebd70302003-09-13 03:29:53 +000023729 "tools/llvm-ar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-ar/Makefile" ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000023730 "tools/llvm-as/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-as/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023731 "tools/llvm-dis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-dis/Makefile" ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000023732 "tools/llvm-link/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-link/Makefile" ;;
23733 "tools/opt/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/opt/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023734 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023735 "www/docs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS www/docs/Makefile" ;;
23736 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23737 "projects/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile" ;;
23738 "projects/sample/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.common" ;;
23739 "projects/sample/Makefile.config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.config" ;;
23740 "projects/sample/lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/Makefile" ;;
23741 "projects/sample/lib/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/sample/Makefile" ;;
23742 "projects/sample/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/Makefile" ;;
23743 "projects/sample/tools/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/sample/Makefile" ;;
23744 "projects/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile" ;;
23745 "projects/ModuleMaker/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile.common" ;;
23746 "projects/ModuleMaker/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/Makefile" ;;
23747 "projects/ModuleMaker/tools/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/ModuleMaker/Makefile" ;;
John Criswell4e079782003-09-29 14:52:28 +000023748 "support/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS support/Makefile" ;;
23749 "support/lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS support/lib/Makefile" ;;
23750 "support/lib/Support/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS support/lib/Support/Makefile" ;;
23751 "support/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS support/tools/Makefile" ;;
23752 "support/tools/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS support/tools/Burg/Makefile" ;;
23753 "support/tools/Burg/Doc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS support/tools/Burg/Doc/Makefile" ;;
23754 "support/tools/TableGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS support/tools/TableGen/Makefile" ;;
John Criswell7a73b802003-06-30 21:59:07 +000023755 "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
23756 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23757echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23758 { (exit 1); exit 1; }; };;
23759 esac
23760done
23761
23762# If the user did not use the arguments to specify the items to instantiate,
23763# then the envvar interface is used. Set only those that are not.
23764# We use the long form for the default assignment because of an extremely
23765# bizarre bug on SunOS 4.1.3.
23766if $ac_need_defaults; then
23767 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23768 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000023769 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000023770fi
23771
John Criswell0c38eaf2003-09-10 15:17:25 +000023772# Have a temporary directory for convenience. Make it in the build tree
23773# simply because there is no reason to put it here, and in addition,
23774# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000023775# Create a temporary directory, and hook for its removal unless debugging.
23776$debug ||
23777{
23778 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23779 trap '{ (exit 1); exit 1; }' 1 2 13 15
23780}
23781
23782# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000023783
John Criswell7a73b802003-06-30 21:59:07 +000023784{
John Criswell0c38eaf2003-09-10 15:17:25 +000023785 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000023786 test -n "$tmp" && test -d "$tmp"
23787} ||
23788{
John Criswell0c38eaf2003-09-10 15:17:25 +000023789 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000023790 (umask 077 && mkdir $tmp)
23791} ||
23792{
John Criswell0c38eaf2003-09-10 15:17:25 +000023793 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000023794 { (exit 1); exit 1; }
23795}
23796
23797_ACEOF
23798
23799cat >>$CONFIG_STATUS <<_ACEOF
23800
23801#
23802# CONFIG_FILES section.
23803#
23804
23805# No need to generate the scripts if there are no CONFIG_FILES.
23806# This happens for instance when ./config.status config.h
23807if test -n "\$CONFIG_FILES"; then
23808 # Protect against being on the right side of a sed subst in config.status.
23809 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23810 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23811s,@SHELL@,$SHELL,;t t
23812s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23813s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23814s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23815s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23816s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23817s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23818s,@exec_prefix@,$exec_prefix,;t t
23819s,@prefix@,$prefix,;t t
23820s,@program_transform_name@,$program_transform_name,;t t
23821s,@bindir@,$bindir,;t t
23822s,@sbindir@,$sbindir,;t t
23823s,@libexecdir@,$libexecdir,;t t
23824s,@datadir@,$datadir,;t t
23825s,@sysconfdir@,$sysconfdir,;t t
23826s,@sharedstatedir@,$sharedstatedir,;t t
23827s,@localstatedir@,$localstatedir,;t t
23828s,@libdir@,$libdir,;t t
23829s,@includedir@,$includedir,;t t
23830s,@oldincludedir@,$oldincludedir,;t t
23831s,@infodir@,$infodir,;t t
23832s,@mandir@,$mandir,;t t
23833s,@build_alias@,$build_alias,;t t
23834s,@host_alias@,$host_alias,;t t
23835s,@target_alias@,$target_alias,;t t
23836s,@DEFS@,$DEFS,;t t
23837s,@ECHO_C@,$ECHO_C,;t t
23838s,@ECHO_N@,$ECHO_N,;t t
23839s,@ECHO_T@,$ECHO_T,;t t
23840s,@LIBS@,$LIBS,;t t
23841s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23842s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23843s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23844s,@build@,$build,;t t
23845s,@build_cpu@,$build_cpu,;t t
23846s,@build_vendor@,$build_vendor,;t t
23847s,@build_os@,$build_os,;t t
23848s,@host@,$host,;t t
23849s,@host_cpu@,$host_cpu,;t t
23850s,@host_vendor@,$host_vendor,;t t
23851s,@host_os@,$host_os,;t t
23852s,@target@,$target,;t t
23853s,@target_cpu@,$target_cpu,;t t
23854s,@target_vendor@,$target_vendor,;t t
23855s,@target_os@,$target_os,;t t
23856s,@OS@,$OS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023857s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
John Criswell76595452003-07-01 22:07:39 +000023858s,@ARCH@,$ARCH,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023859s,@CXX@,$CXX,;t t
23860s,@CXXFLAGS@,$CXXFLAGS,;t t
23861s,@LDFLAGS@,$LDFLAGS,;t t
23862s,@CPPFLAGS@,$CPPFLAGS,;t t
23863s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23864s,@EXEEXT@,$EXEEXT,;t t
23865s,@OBJEXT@,$OBJEXT,;t t
23866s,@CC@,$CC,;t t
23867s,@CFLAGS@,$CFLAGS,;t t
23868s,@ac_ct_CC@,$ac_ct_CC,;t t
23869s,@CPP@,$CPP,;t t
23870s,@ifGNUmake@,$ifGNUmake,;t t
23871s,@LEX@,$LEX,;t t
23872s,@LEXLIB@,$LEXLIB,;t t
23873s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
23874s,@YACC@,$YACC,;t t
John Criswell47fdd832003-07-14 16:52:07 +000023875s,@EGREP@,$EGREP,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023876s,@LN_S@,$LN_S,;t t
23877s,@ECHO@,$ECHO,;t t
John Criswell47fdd832003-07-14 16:52:07 +000023878s,@AR@,$AR,;t t
23879s,@ac_ct_AR@,$ac_ct_AR,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023880s,@RANLIB@,$RANLIB,;t t
23881s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23882s,@STRIP@,$STRIP,;t t
23883s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
John Criswell47fdd832003-07-14 16:52:07 +000023884s,@CXXCPP@,$CXXCPP,;t t
23885s,@F77@,$F77,;t t
23886s,@FFLAGS@,$FFLAGS,;t t
23887s,@ac_ct_F77@,$ac_ct_F77,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023888s,@LIBTOOL@,$LIBTOOL,;t t
John Criswellde00db22003-08-25 16:49:54 +000023889s,@RPWD@,$RPWD,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023890s,@SED@,$SED,;t t
23891s,@RM@,$RM,;t t
23892s,@MKDIR@,$MKDIR,;t t
23893s,@DATE@,$DATE,;t t
23894s,@MV@,$MV,;t t
23895s,@DOT@,$DOT,;t t
23896s,@ETAGS@,$ETAGS,;t t
23897s,@PURIFY@,$PURIFY,;t t
John Criswellde00db22003-08-25 16:49:54 +000023898s,@PYTHON@,$PYTHON,;t t
23899s,@QMTEST@,$QMTEST,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023900s,@ALLOCA@,$ALLOCA,;t t
23901s,@LIBOBJS@,$LIBOBJS,;t t
23902s,@MMAP_FILE@,$MMAP_FILE,;t t
23903s,@ENABLE_PURIFY@,$ENABLE_PURIFY,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023904s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
23905s,@USE_SPEC@,$USE_SPEC,;t t
23906s,@UPB@,$UPB,;t t
John Criswellf02dbf02003-07-22 20:07:49 +000023907s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023908s,@JIT@,$JIT,;t t
23909s,@SPEC_ROOT@,$SPEC_ROOT,;t t
23910s,@BCR@,$BCR,;t t
23911s,@PAPIDIR@,$PAPIDIR,;t t
John Criswell0c38eaf2003-09-10 15:17:25 +000023912s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023913CEOF
23914
23915_ACEOF
23916
23917 cat >>$CONFIG_STATUS <<\_ACEOF
23918 # Split the substitutions into bite-sized pieces for seds with
23919 # small command number limits, like on Digital OSF/1 and HP-UX.
23920 ac_max_sed_lines=48
23921 ac_sed_frag=1 # Number of current file.
23922 ac_beg=1 # First line for current file.
23923 ac_end=$ac_max_sed_lines # Line after last line for current file.
23924 ac_more_lines=:
23925 ac_sed_cmds=
23926 while $ac_more_lines; do
23927 if test $ac_beg -gt 1; then
23928 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23929 else
23930 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23931 fi
23932 if test ! -s $tmp/subs.frag; then
23933 ac_more_lines=false
23934 else
23935 # The purpose of the label and of the branching condition is to
23936 # speed up the sed processing (if there are no `@' at all, there
23937 # is no need to browse any of the substitutions).
23938 # These are the two extra sed commands mentioned above.
23939 (echo ':t
23940 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23941 if test -z "$ac_sed_cmds"; then
23942 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23943 else
23944 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23945 fi
23946 ac_sed_frag=`expr $ac_sed_frag + 1`
23947 ac_beg=$ac_end
23948 ac_end=`expr $ac_end + $ac_max_sed_lines`
23949 fi
23950 done
23951 if test -z "$ac_sed_cmds"; then
23952 ac_sed_cmds=cat
23953 fi
23954fi # test -n "$CONFIG_FILES"
23955
23956_ACEOF
23957cat >>$CONFIG_STATUS <<\_ACEOF
23958for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23959 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23960 case $ac_file in
23961 - | *:- | *:-:* ) # input from stdin
23962 cat >$tmp/stdin
23963 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23964 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23965 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23966 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23967 * ) ac_file_in=$ac_file.in ;;
23968 esac
23969
23970 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23971 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23972$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23973 X"$ac_file" : 'X\(//\)[^/]' \| \
23974 X"$ac_file" : 'X\(//\)$' \| \
23975 X"$ac_file" : 'X\(/\)' \| \
23976 . : '\(.\)' 2>/dev/null ||
23977echo X"$ac_file" |
23978 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23979 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23980 /^X\(\/\/\)$/{ s//\1/; q; }
23981 /^X\(\/\).*/{ s//\1/; q; }
23982 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000023983 { if $as_mkdir_p; then
23984 mkdir -p "$ac_dir"
23985 else
23986 as_dir="$ac_dir"
23987 as_dirs=
23988 while test ! -d "$as_dir"; do
23989 as_dirs="$as_dir $as_dirs"
23990 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23991$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23992 X"$as_dir" : 'X\(//\)[^/]' \| \
23993 X"$as_dir" : 'X\(//\)$' \| \
23994 X"$as_dir" : 'X\(/\)' \| \
23995 . : '\(.\)' 2>/dev/null ||
23996echo X"$as_dir" |
23997 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23998 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23999 /^X\(\/\/\)$/{ s//\1/; q; }
24000 /^X\(\/\).*/{ s//\1/; q; }
24001 s/.*/./; q'`
24002 done
24003 test ! -n "$as_dirs" || mkdir $as_dirs
24004 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24005echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24006 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000024007
24008 ac_builddir=.
24009
24010if test "$ac_dir" != .; then
24011 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24012 # A "../" for each directory in $ac_dir_suffix.
24013 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24014else
24015 ac_dir_suffix= ac_top_builddir=
24016fi
24017
24018case $srcdir in
24019 .) # No --srcdir option. We are building in place.
24020 ac_srcdir=.
24021 if test -z "$ac_top_builddir"; then
24022 ac_top_srcdir=.
24023 else
24024 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24025 fi ;;
24026 [\\/]* | ?:[\\/]* ) # Absolute path.
24027 ac_srcdir=$srcdir$ac_dir_suffix;
24028 ac_top_srcdir=$srcdir ;;
24029 *) # Relative path.
24030 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24031 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24032esac
24033# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24034# absolute.
24035ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +000024036ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswell7a73b802003-06-30 21:59:07 +000024037ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24038ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24039
24040
24041 case $INSTALL in
24042 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24043 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24044 esac
24045
24046 if test x"$ac_file" != x-; then
24047 { echo "$as_me:$LINENO: creating $ac_file" >&5
24048echo "$as_me: creating $ac_file" >&6;}
24049 rm -f "$ac_file"
24050 fi
24051 # Let's still pretend it is `configure' which instantiates (i.e., don't
24052 # use $as_me), people would be surprised to read:
24053 # /* config.h. Generated by config.status. */
24054 if test x"$ac_file" = x-; then
24055 configure_input=
24056 else
24057 configure_input="$ac_file. "
24058 fi
24059 configure_input=$configure_input"Generated from `echo $ac_file_in |
24060 sed 's,.*/,,'` by configure."
24061
24062 # First look for the input files in the build tree, otherwise in the
24063 # src tree.
24064 ac_file_inputs=`IFS=:
24065 for f in $ac_file_in; do
24066 case $f in
24067 -) echo $tmp/stdin ;;
24068 [\\/$]*)
24069 # Absolute (can't be DOS-style, as IFS=:)
24070 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24071echo "$as_me: error: cannot find input file: $f" >&2;}
24072 { (exit 1); exit 1; }; }
24073 echo $f;;
24074 *) # Relative
24075 if test -f "$f"; then
24076 # Build tree
24077 echo $f
24078 elif test -f "$srcdir/$f"; then
24079 # Source tree
24080 echo $srcdir/$f
24081 else
24082 # /dev/null tree
24083 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24084echo "$as_me: error: cannot find input file: $f" >&2;}
24085 { (exit 1); exit 1; }; }
24086 fi;;
24087 esac
24088 done` || { (exit 1); exit 1; }
24089_ACEOF
24090cat >>$CONFIG_STATUS <<_ACEOF
24091 sed "$ac_vpsub
24092$extrasub
24093_ACEOF
24094cat >>$CONFIG_STATUS <<\_ACEOF
24095:t
24096/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24097s,@configure_input@,$configure_input,;t t
24098s,@srcdir@,$ac_srcdir,;t t
24099s,@abs_srcdir@,$ac_abs_srcdir,;t t
24100s,@top_srcdir@,$ac_top_srcdir,;t t
24101s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24102s,@builddir@,$ac_builddir,;t t
24103s,@abs_builddir@,$ac_abs_builddir,;t t
24104s,@top_builddir@,$ac_top_builddir,;t t
24105s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24106s,@INSTALL@,$ac_INSTALL,;t t
24107" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24108 rm -f $tmp/stdin
24109 if test x"$ac_file" != x-; then
24110 mv $tmp/out $ac_file
24111 else
24112 cat $tmp/out
24113 rm -f $tmp/out
24114 fi
24115
24116done
24117_ACEOF
24118cat >>$CONFIG_STATUS <<\_ACEOF
24119
24120#
24121# CONFIG_HEADER section.
24122#
24123
24124# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24125# NAME is the cpp macro being defined and VALUE is the value it is being given.
24126#
24127# ac_d sets the value in "#define NAME VALUE" lines.
24128ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24129ac_dB='[ ].*$,\1#\2'
24130ac_dC=' '
24131ac_dD=',;t'
24132# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24133ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24134ac_uB='$,\1#\2define\3'
24135ac_uC=' '
24136ac_uD=',;t'
24137
24138for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24139 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24140 case $ac_file in
24141 - | *:- | *:-:* ) # input from stdin
24142 cat >$tmp/stdin
24143 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24144 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24145 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24146 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24147 * ) ac_file_in=$ac_file.in ;;
24148 esac
24149
24150 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24151echo "$as_me: creating $ac_file" >&6;}
24152
24153 # First look for the input files in the build tree, otherwise in the
24154 # src tree.
24155 ac_file_inputs=`IFS=:
24156 for f in $ac_file_in; do
24157 case $f in
24158 -) echo $tmp/stdin ;;
24159 [\\/$]*)
24160 # Absolute (can't be DOS-style, as IFS=:)
24161 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24162echo "$as_me: error: cannot find input file: $f" >&2;}
24163 { (exit 1); exit 1; }; }
24164 echo $f;;
24165 *) # Relative
24166 if test -f "$f"; then
24167 # Build tree
24168 echo $f
24169 elif test -f "$srcdir/$f"; then
24170 # Source tree
24171 echo $srcdir/$f
24172 else
24173 # /dev/null tree
24174 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24175echo "$as_me: error: cannot find input file: $f" >&2;}
24176 { (exit 1); exit 1; }; }
24177 fi;;
24178 esac
24179 done` || { (exit 1); exit 1; }
24180 # Remove the trailing spaces.
24181 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24182
24183_ACEOF
24184
24185# Transform confdefs.h into two sed scripts, `conftest.defines' and
24186# `conftest.undefs', that substitutes the proper values into
24187# config.h.in to produce config.h. The first handles `#define'
24188# templates, and the second `#undef' templates.
24189# And first: Protect against being on the right side of a sed subst in
24190# config.status. Protect against being in an unquoted here document
24191# in config.status.
24192rm -f conftest.defines conftest.undefs
24193# Using a here document instead of a string reduces the quoting nightmare.
24194# Putting comments in sed scripts is not portable.
24195#
24196# `end' is used to avoid that the second main sed command (meant for
24197# 0-ary CPP macros) applies to n-ary macro definitions.
24198# See the Autoconf documentation for `clear'.
24199cat >confdef2sed.sed <<\_ACEOF
24200s/[\\&,]/\\&/g
24201s,[\\$`],\\&,g
24202t clear
24203: clear
24204s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24205t end
24206s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24207: end
24208_ACEOF
24209# If some macros were called several times there might be several times
24210# the same #defines, which is useless. Nevertheless, we may not want to
24211# sort them, since we want the *last* AC-DEFINE to be honored.
24212uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24213sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24214rm -f confdef2sed.sed
24215
24216# This sed command replaces #undef with comments. This is necessary, for
24217# example, in the case of _POSIX_SOURCE, which is predefined and required
24218# on some systems where configure will not decide to define it.
24219cat >>conftest.undefs <<\_ACEOF
24220s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24221_ACEOF
24222
24223# Break up conftest.defines because some shells have a limit on the size
24224# of here documents, and old seds have small limits too (100 cmds).
24225echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
John Criswell0c38eaf2003-09-10 15:17:25 +000024226echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000024227echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24228echo ' :' >>$CONFIG_STATUS
24229rm -f conftest.tail
24230while grep . conftest.defines >/dev/null
24231do
24232 # Write a limited-size here document to $tmp/defines.sed.
24233 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24234 # Speed up: don't consider the non `#define' lines.
24235 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24236 # Work around the forget-to-reset-the-flag bug.
24237 echo 't clr' >>$CONFIG_STATUS
24238 echo ': clr' >>$CONFIG_STATUS
24239 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24240 echo 'CEOF
24241 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24242 rm -f $tmp/in
24243 mv $tmp/out $tmp/in
24244' >>$CONFIG_STATUS
24245 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24246 rm -f conftest.defines
24247 mv conftest.tail conftest.defines
24248done
24249rm -f conftest.defines
John Criswell0c38eaf2003-09-10 15:17:25 +000024250echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000024251echo >>$CONFIG_STATUS
24252
24253# Break up conftest.undefs because some shells have a limit on the size
24254# of here documents, and old seds have small limits too (100 cmds).
24255echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24256rm -f conftest.tail
24257while grep . conftest.undefs >/dev/null
24258do
24259 # Write a limited-size here document to $tmp/undefs.sed.
24260 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24261 # Speed up: don't consider the non `#undef'
24262 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24263 # Work around the forget-to-reset-the-flag bug.
24264 echo 't clr' >>$CONFIG_STATUS
24265 echo ': clr' >>$CONFIG_STATUS
24266 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24267 echo 'CEOF
24268 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24269 rm -f $tmp/in
24270 mv $tmp/out $tmp/in
24271' >>$CONFIG_STATUS
24272 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24273 rm -f conftest.undefs
24274 mv conftest.tail conftest.undefs
24275done
24276rm -f conftest.undefs
24277
24278cat >>$CONFIG_STATUS <<\_ACEOF
24279 # Let's still pretend it is `configure' which instantiates (i.e., don't
24280 # use $as_me), people would be surprised to read:
24281 # /* config.h. Generated by config.status. */
24282 if test x"$ac_file" = x-; then
24283 echo "/* Generated by configure. */" >$tmp/config.h
24284 else
24285 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24286 fi
24287 cat $tmp/in >>$tmp/config.h
24288 rm -f $tmp/in
24289 if test x"$ac_file" != x-; then
John Criswell0c38eaf2003-09-10 15:17:25 +000024290 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000024291 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24292echo "$as_me: $ac_file is unchanged" >&6;}
24293 else
24294 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24295$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24296 X"$ac_file" : 'X\(//\)[^/]' \| \
24297 X"$ac_file" : 'X\(//\)$' \| \
24298 X"$ac_file" : 'X\(/\)' \| \
24299 . : '\(.\)' 2>/dev/null ||
24300echo X"$ac_file" |
24301 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24302 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24303 /^X\(\/\/\)$/{ s//\1/; q; }
24304 /^X\(\/\).*/{ s//\1/; q; }
24305 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000024306 { if $as_mkdir_p; then
24307 mkdir -p "$ac_dir"
24308 else
24309 as_dir="$ac_dir"
24310 as_dirs=
24311 while test ! -d "$as_dir"; do
24312 as_dirs="$as_dir $as_dirs"
24313 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24314$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24315 X"$as_dir" : 'X\(//\)[^/]' \| \
24316 X"$as_dir" : 'X\(//\)$' \| \
24317 X"$as_dir" : 'X\(/\)' \| \
24318 . : '\(.\)' 2>/dev/null ||
24319echo X"$as_dir" |
24320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24321 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24322 /^X\(\/\/\)$/{ s//\1/; q; }
24323 /^X\(\/\).*/{ s//\1/; q; }
24324 s/.*/./; q'`
24325 done
24326 test ! -n "$as_dirs" || mkdir $as_dirs
24327 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24328echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24329 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000024330
24331 rm -f $ac_file
24332 mv $tmp/config.h $ac_file
24333 fi
24334 else
24335 cat $tmp/config.h
24336 rm -f $tmp/config.h
24337 fi
24338done
24339_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000024340cat >>$CONFIG_STATUS <<\_ACEOF
24341
24342#
24343# CONFIG_COMMANDS section.
24344#
24345for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24346 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24347 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24348 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24349$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24350 X"$ac_dest" : 'X\(//\)[^/]' \| \
24351 X"$ac_dest" : 'X\(//\)$' \| \
24352 X"$ac_dest" : 'X\(/\)' \| \
24353 . : '\(.\)' 2>/dev/null ||
24354echo X"$ac_dest" |
24355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24356 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24357 /^X\(\/\/\)$/{ s//\1/; q; }
24358 /^X\(\/\).*/{ s//\1/; q; }
24359 s/.*/./; q'`
24360 ac_builddir=.
24361
24362if test "$ac_dir" != .; then
24363 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24364 # A "../" for each directory in $ac_dir_suffix.
24365 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24366else
24367 ac_dir_suffix= ac_top_builddir=
24368fi
24369
24370case $srcdir in
24371 .) # No --srcdir option. We are building in place.
24372 ac_srcdir=.
24373 if test -z "$ac_top_builddir"; then
24374 ac_top_srcdir=.
24375 else
24376 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24377 fi ;;
24378 [\\/]* | ?:[\\/]* ) # Absolute path.
24379 ac_srcdir=$srcdir$ac_dir_suffix;
24380 ac_top_srcdir=$srcdir ;;
24381 *) # Relative path.
24382 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24383 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24384esac
24385# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24386# absolute.
24387ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +000024388ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswellc764fbc2003-09-06 15:17:13 +000024389ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24390ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24391
24392
24393 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24394echo "$as_me: executing $ac_dest commands" >&6;}
24395 case $ac_dest in
24396 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
24397 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
24398 Makefile.rules ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.rules Makefile.rules ;;
24399 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
24400 lib/Analysis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/Makefile lib/Analysis/Makefile ;;
24401 lib/Analysis/DataStructure/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/DataStructure/Makefile lib/Analysis/DataStructure/Makefile ;;
24402 lib/Analysis/IPA/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/IPA/Makefile lib/Analysis/IPA/Makefile ;;
24403 lib/Analysis/LiveVar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/LiveVar/Makefile lib/Analysis/LiveVar/Makefile ;;
24404 lib/AsmParser/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/AsmParser/Makefile lib/AsmParser/Makefile ;;
24405 lib/Bytecode/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Makefile lib/Bytecode/Makefile ;;
24406 lib/Bytecode/Reader/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Reader/Makefile lib/Bytecode/Reader/Makefile ;;
24407 lib/Bytecode/Writer/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Writer/Makefile lib/Bytecode/Writer/Makefile ;;
24408 lib/CWriter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CWriter/Makefile lib/CWriter/Makefile ;;
24409 lib/CodeGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/Makefile lib/CodeGen/Makefile ;;
24410 lib/CodeGen/InstrSched/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSched/Makefile lib/CodeGen/InstrSched/Makefile ;;
24411 lib/CodeGen/InstrSelection/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSelection/Makefile lib/CodeGen/InstrSelection/Makefile ;;
24412 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 +000024413 lib/CodeGen/RegAlloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/RegAlloc/Makefile lib/CodeGen/RegAlloc/Makefile ;;
24414 lib/CodeGen/SelectionDAG/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/SelectionDAG/Makefile lib/CodeGen/SelectionDAG/Makefile ;;
24415 lib/ExecutionEngine/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Makefile lib/ExecutionEngine/Makefile ;;
24416 lib/ExecutionEngine/Interpreter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Interpreter/Makefile lib/ExecutionEngine/Interpreter/Makefile ;;
24417 lib/ExecutionEngine/JIT/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/JIT/Makefile lib/ExecutionEngine/JIT/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024418 lib/Target/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Makefile lib/Target/Makefile ;;
24419 lib/Target/Sparc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Sparc/Makefile lib/Target/Sparc/Makefile ;;
24420 lib/Target/X86/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/X86/Makefile lib/Target/X86/Makefile ;;
24421 lib/Transforms/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Makefile lib/Transforms/Makefile ;;
24422 lib/Transforms/Hello/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Hello/Makefile lib/Transforms/Hello/Makefile ;;
24423 lib/Transforms/IPO/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/IPO/Makefile lib/Transforms/IPO/Makefile ;;
24424 lib/Transforms/Instrumentation/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/Makefile lib/Transforms/Instrumentation/Makefile ;;
24425 lib/Transforms/Instrumentation/ProfilePaths/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/ProfilePaths/Makefile lib/Transforms/Instrumentation/ProfilePaths/Makefile ;;
24426 lib/Transforms/Scalar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Scalar/Makefile lib/Transforms/Scalar/Makefile ;;
24427 lib/Transforms/Utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Utils/Makefile lib/Transforms/Utils/Makefile ;;
24428 lib/VMCore/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/VMCore/Makefile lib/VMCore/Makefile ;;
24429 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
24430 runtime/GCCLibraries/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/Makefile runtime/GCCLibraries/Makefile ;;
24431 runtime/GCCLibraries/crtend/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/crtend/Makefile runtime/GCCLibraries/crtend/Makefile ;;
24432 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 +000024433 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 +000024434 runtime/GCCLibraries/libg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libg/Makefile runtime/GCCLibraries/libg/Makefile ;;
24435 runtime/GCCLibraries/libgcc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libgcc/Makefile runtime/GCCLibraries/libgcc/Makefile ;;
24436 runtime/GCCLibraries/libm/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libm/Makefile runtime/GCCLibraries/libm/Makefile ;;
24437 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 +000024438 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 +000024439 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 +000024440 runtime/GCCLibraries/libutempter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libutempter/Makefile runtime/GCCLibraries/libutempter/Makefile ;;
24441 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 +000024442 runtime/libdummy/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libdummy/Makefile runtime/libdummy/Makefile ;;
24443 runtime/libtrace/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libtrace/Makefile runtime/libtrace/Makefile ;;
24444 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
24445 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
John Criswell08acb9b2003-09-16 02:12:45 +000024446 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 +000024447 test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
24448 test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
24449 test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
24450 test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
24451 test/Programs/TEST.micro.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.report test/Programs/TEST.micro.report ;;
24452 test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
24453 test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
24454 test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
24455 test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
24456 test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
24457 test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
24458 test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
24459 test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
24460 test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
24461 test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
24462 test/Programs/TEST.micro.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.Makefile test/Programs/TEST.micro.Makefile ;;
24463 test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
24464 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 +000024465 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 +000024466 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 ;;
24467 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 ;;
24468 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 ;;
24469 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 ;;
24470 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 ;;
24471 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 ;;
24472 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 ;;
24473 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 ;;
24474 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 ;;
24475 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 ;;
24476 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 ;;
24477 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 ;;
24478 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 ;;
24479 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 ;;
24480 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 ;;
24481 test/Programs/LLVMSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/LLVMSource/Makefile test/Programs/LLVMSource/Makefile ;;
24482 test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
24483 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 +000024484 test/Programs/MultiSource/Applications/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Applications/Makefile test/Programs/MultiSource/Applications/Makefile ;;
24485 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 +000024486 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 ;;
24487 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 +000024488 test/Programs/MultiSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Makefile test/Programs/MultiSource/Benchmarks/Makefile ;;
24489 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 ;;
24490 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 ;;
24491 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 ;;
24492 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 ;;
24493 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 ;;
24494 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 ;;
24495 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 ;;
24496 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 ;;
24497 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 ;;
24498 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 ;;
24499 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 ;;
24500 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 ;;
24501 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 ;;
24502 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 ;;
24503 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 ;;
24504 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 ;;
24505 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 ;;
24506 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 ;;
24507 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 ;;
24508 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 ;;
24509 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 ;;
24510 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 ;;
24511 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 +000024512 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 +000024513 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 ;;
24514 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 ;;
24515 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 ;;
24516 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 ;;
24517 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 ;;
24518 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 +000024519 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 +000024520 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 +000024521 test/Programs/NoSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Makefile test/Programs/NoSource/Makefile ;;
24522 test/Programs/NoSource/Flex/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Flex/Makefile test/Programs/NoSource/Flex/Makefile ;;
24523 test/Programs/NoSource/Larn/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Larn/Makefile test/Programs/NoSource/Larn/Makefile ;;
24524 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 ;;
24525 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 +000024526 test/Programs/NoSource/m4/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/m4/Makefile test/Programs/NoSource/m4/Makefile ;;
24527 test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
24528 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 +000024529 test/Programs/SingleSource/Gizmos/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Gizmos/Makefile test/Programs/SingleSource/Gizmos/Makefile ;;
24530 test/Programs/SingleSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Makefile test/Programs/SingleSource/Benchmarks/Makefile ;;
24531 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 ;;
24532 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 ;;
24533 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 ;;
24534 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 +000024535 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 +000024536 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 +000024537 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 +000024538 test/Programs/SingleSource/Regression/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Regression/Makefile test/Programs/SingleSource/Regression/Makefile ;;
John Criswell68886d42003-09-26 19:51:42 +000024539 test/Programs/SingleSource/Regression/C/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Regression/C/Makefile test/Programs/SingleSource/Regression/C/Makefile ;;
24540 test/Programs/SingleSource/Regression/C++/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Regression/C++/Makefile test/Programs/SingleSource/Regression/C++/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024541 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
24542 tools/analyze/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/analyze/Makefile tools/analyze/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024543 tools/bugpoint/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/bugpoint/Makefile tools/bugpoint/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024544 tools/extract/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/extract/Makefile tools/extract/Makefile ;;
24545 tools/gccas/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccas/Makefile tools/gccas/Makefile ;;
24546 tools/gccld/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccld/Makefile tools/gccld/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024547 tools/llc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llc/Makefile tools/llc/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024548 tools/llee/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llee/Makefile tools/llee/Makefile ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000024549 tools/lli/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/lli/Makefile tools/lli/Makefile ;;
Chris Lattnerebd70302003-09-13 03:29:53 +000024550 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 +000024551 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 +000024552 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 +000024553 tools/llvm-link/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-link/Makefile tools/llvm-link/Makefile ;;
24554 tools/opt/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/opt/Makefile tools/opt/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024555 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024556 www/docs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/www/docs/Makefile www/docs/Makefile ;;
24557 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
24558 projects/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile projects/sample/Makefile ;;
24559 projects/sample/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.common projects/sample/Makefile.common ;;
24560 projects/sample/Makefile.config ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.config projects/sample/Makefile.config ;;
24561 projects/sample/lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/Makefile projects/sample/lib/Makefile ;;
24562 projects/sample/lib/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/sample/Makefile projects/sample/lib/sample/Makefile ;;
24563 projects/sample/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/Makefile projects/sample/tools/Makefile ;;
24564 projects/sample/tools/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/sample/Makefile projects/sample/tools/sample/Makefile ;;
24565 projects/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile projects/ModuleMaker/Makefile ;;
24566 projects/ModuleMaker/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile.common projects/ModuleMaker/Makefile.common ;;
24567 projects/ModuleMaker/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/Makefile projects/ModuleMaker/tools/Makefile ;;
24568 projects/ModuleMaker/tools/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/ModuleMaker/Makefile projects/ModuleMaker/tools/ModuleMaker/Makefile ;;
John Criswell4e079782003-09-29 14:52:28 +000024569 support/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/support/Makefile support/Makefile ;;
24570 support/lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/support/lib/Makefile support/lib/Makefile ;;
24571 support/lib/Support/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/support/lib/Support/Makefile support/lib/Support/Makefile ;;
24572 support/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/support/tools/Makefile support/tools/Makefile ;;
24573 support/tools/Burg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/support/tools/Burg/Makefile support/tools/Burg/Makefile ;;
24574 support/tools/Burg/Doc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/support/tools/Burg/Doc/Makefile support/tools/Burg/Doc/Makefile ;;
24575 support/tools/TableGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/support/tools/TableGen/Makefile support/tools/TableGen/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024576 esac
24577done
24578_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000024579
24580cat >>$CONFIG_STATUS <<\_ACEOF
24581
24582{ (exit 0); exit 0; }
24583_ACEOF
24584chmod +x $CONFIG_STATUS
24585ac_clean_files=$ac_clean_files_save
24586
24587
24588# configure is writing to config.log, and then calls config.status.
24589# config.status does its own redirection, appending to config.log.
24590# Unfortunately, on DOS this fails, as config.log is still kept open
24591# by configure, so config.status won't be able to write to it; its
24592# output is simply discarded. So we exec the FD to /dev/null,
24593# effectively closing config.log, so it can be properly (re)opened and
24594# appended to by config.status. When coming back to configure, we
24595# need to make the FD available again.
24596if test "$no_create" != yes; then
24597 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000024598 ac_config_status_args=
24599 test "$silent" = yes &&
24600 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000024601 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000024602 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000024603 exec 5>>config.log
24604 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24605 # would make configure fail if this is the last instruction.
24606 $ac_cs_success || { (exit 1); exit 1; }
24607fi
24608