blob: dfaca5432af2029cbb6cb9e5b8e5f389143a92c8 [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 Criswellc66bbd52003-09-29 21:35:32 +00001959 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C++/EH/Makefile"
1960
1961
1962 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C++/CompileFail/Makefile"
1963
1964
John Criswell0c38eaf2003-09-10 15:17:25 +00001965 ac_config_commands="$ac_config_commands tools/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/analyze/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/bugpoint/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/extract/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/gccas/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/gccld/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001981
1982
John Criswell0c38eaf2003-09-10 15:17:25 +00001983 ac_config_commands="$ac_config_commands tools/llc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001984
1985
John Criswell0c38eaf2003-09-10 15:17:25 +00001986 ac_config_commands="$ac_config_commands tools/llee/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001987
1988
John Criswellddb7b4e2003-09-16 15:54:19 +00001989 ac_config_commands="$ac_config_commands tools/lli/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001990
1991
Chris Lattnerebd70302003-09-13 03:29:53 +00001992 ac_config_commands="$ac_config_commands tools/llvm-ar/Makefile"
1993
1994
John Criswellddb7b4e2003-09-16 15:54:19 +00001995 ac_config_commands="$ac_config_commands tools/llvm-as/Makefile"
1996
1997
John Criswell0c38eaf2003-09-10 15:17:25 +00001998 ac_config_commands="$ac_config_commands tools/llvm-dis/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001999
2000
John Criswellddb7b4e2003-09-16 15:54:19 +00002001 ac_config_commands="$ac_config_commands tools/llvm-link/Makefile"
2002
2003
2004 ac_config_commands="$ac_config_commands tools/opt/Makefile"
2005
2006
John Criswell0c38eaf2003-09-10 15:17:25 +00002007 ac_config_commands="$ac_config_commands utils/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002008
2009
John Criswell0c38eaf2003-09-10 15:17:25 +00002010 ac_config_commands="$ac_config_commands www/docs/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002011
2012
John Criswell0c38eaf2003-09-10 15:17:25 +00002013 ac_config_commands="$ac_config_commands projects/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002014
2015
John Criswell0c38eaf2003-09-10 15:17:25 +00002016 ac_config_commands="$ac_config_commands projects/sample/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002017
2018
John Criswell0c38eaf2003-09-10 15:17:25 +00002019 ac_config_commands="$ac_config_commands projects/sample/Makefile.common"
John Criswellc764fbc2003-09-06 15:17:13 +00002020
2021
John Criswell0c38eaf2003-09-10 15:17:25 +00002022 ac_config_commands="$ac_config_commands projects/sample/Makefile.config"
John Criswellc764fbc2003-09-06 15:17:13 +00002023
2024
John Criswell0c38eaf2003-09-10 15:17:25 +00002025 ac_config_commands="$ac_config_commands projects/sample/lib/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002026
2027
John Criswell0c38eaf2003-09-10 15:17:25 +00002028 ac_config_commands="$ac_config_commands projects/sample/lib/sample/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002029
2030
John Criswell0c38eaf2003-09-10 15:17:25 +00002031 ac_config_commands="$ac_config_commands projects/sample/tools/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002032
2033
John Criswell0c38eaf2003-09-10 15:17:25 +00002034 ac_config_commands="$ac_config_commands projects/sample/tools/sample/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002035
2036
John Criswell0c38eaf2003-09-10 15:17:25 +00002037 ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002038
2039
John Criswell0c38eaf2003-09-10 15:17:25 +00002040 ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile.common"
John Criswellc764fbc2003-09-06 15:17:13 +00002041
2042
John Criswell0c38eaf2003-09-10 15:17:25 +00002043 ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002044
2045
John Criswell0c38eaf2003-09-10 15:17:25 +00002046 ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/ModuleMaker/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002047
2048
John Criswell4e079782003-09-29 14:52:28 +00002049 ac_config_commands="$ac_config_commands support/Makefile"
2050
2051
2052 ac_config_commands="$ac_config_commands support/lib/Makefile"
2053
2054
2055 ac_config_commands="$ac_config_commands support/lib/Support/Makefile"
2056
2057
2058 ac_config_commands="$ac_config_commands support/tools/Makefile"
2059
2060
2061 ac_config_commands="$ac_config_commands support/tools/Burg/Makefile"
2062
2063
2064 ac_config_commands="$ac_config_commands support/tools/Burg/Doc/Makefile"
2065
2066
2067 ac_config_commands="$ac_config_commands support/tools/TableGen/Makefile"
2068
2069
John Criswell392aaa32003-07-22 19:18:09 +00002070
2071
John Criswell7a73b802003-06-30 21:59:07 +00002072# Find a good install program. We prefer a C program (faster),
2073# so one script is as good as another. But avoid the broken or
2074# incompatible versions:
2075# SysV /etc/install, /usr/sbin/install
2076# SunOS /usr/etc/install
2077# IRIX /sbin/install
2078# AIX /bin/install
2079# AmigaOS /C/install, which installs bootblocks on floppy discs
2080# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2081# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2082# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2083# ./install, which can be erroneously created by make from ./install.sh.
2084echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2085echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2086if test -z "$INSTALL"; then
2087if test "${ac_cv_path_install+set}" = set; then
2088 echo $ECHO_N "(cached) $ECHO_C" >&6
2089else
2090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2091for as_dir in $PATH
2092do
2093 IFS=$as_save_IFS
2094 test -z "$as_dir" && as_dir=.
2095 # Account for people who put trailing slashes in PATH elements.
2096case $as_dir/ in
2097 ./ | .// | /cC/* | \
2098 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2099 /usr/ucb/* ) ;;
2100 *)
2101 # OSF1 and SCO ODT 3.0 have their own names for install.
2102 # Don't use installbsd from OSF since it installs stuff as root
2103 # by default.
2104 for ac_prog in ginstall scoinst install; do
2105 for ac_exec_ext in '' $ac_executable_extensions; do
2106 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2107 if test $ac_prog = install &&
2108 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2109 # AIX install. It has an incompatible calling convention.
2110 :
2111 elif test $ac_prog = install &&
2112 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2113 # program-specific install script used by HP pwplus--don't use.
2114 :
2115 else
2116 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2117 break 3
2118 fi
2119 fi
2120 done
2121 done
2122 ;;
2123esac
2124done
2125
2126
2127fi
2128 if test "${ac_cv_path_install+set}" = set; then
2129 INSTALL=$ac_cv_path_install
2130 else
2131 # As a last resort, use the slow shell script. We don't cache a
2132 # path for INSTALL within a source directory, because that will
2133 # break other packages using the cache if that directory is
2134 # removed, or if the path is relative.
2135 INSTALL=$ac_install_sh
2136 fi
2137fi
2138echo "$as_me:$LINENO: result: $INSTALL" >&5
2139echo "${ECHO_T}$INSTALL" >&6
2140
2141# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2142# It thinks the first close brace ends the variable substitution.
2143test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2144
2145test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2146
2147test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2148
2149
2150# Make sure we can run config.sub.
2151$ac_config_sub sun4 >/dev/null 2>&1 ||
2152 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2153echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2154 { (exit 1); exit 1; }; }
2155
2156echo "$as_me:$LINENO: checking build system type" >&5
2157echo $ECHO_N "checking build system type... $ECHO_C" >&6
2158if test "${ac_cv_build+set}" = set; then
2159 echo $ECHO_N "(cached) $ECHO_C" >&6
2160else
2161 ac_cv_build_alias=$build_alias
2162test -z "$ac_cv_build_alias" &&
2163 ac_cv_build_alias=`$ac_config_guess`
2164test -z "$ac_cv_build_alias" &&
2165 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2166echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2167 { (exit 1); exit 1; }; }
2168ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2169 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2170echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2171 { (exit 1); exit 1; }; }
2172
2173fi
2174echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2175echo "${ECHO_T}$ac_cv_build" >&6
2176build=$ac_cv_build
2177build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2178build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2179build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2180
2181
2182echo "$as_me:$LINENO: checking host system type" >&5
2183echo $ECHO_N "checking host system type... $ECHO_C" >&6
2184if test "${ac_cv_host+set}" = set; then
2185 echo $ECHO_N "(cached) $ECHO_C" >&6
2186else
2187 ac_cv_host_alias=$host_alias
2188test -z "$ac_cv_host_alias" &&
2189 ac_cv_host_alias=$ac_cv_build_alias
2190ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2191 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2192echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2193 { (exit 1); exit 1; }; }
2194
2195fi
2196echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2197echo "${ECHO_T}$ac_cv_host" >&6
2198host=$ac_cv_host
2199host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2200host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2201host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2202
2203
2204echo "$as_me:$LINENO: checking target system type" >&5
2205echo $ECHO_N "checking target system type... $ECHO_C" >&6
2206if test "${ac_cv_target+set}" = set; then
2207 echo $ECHO_N "(cached) $ECHO_C" >&6
2208else
2209 ac_cv_target_alias=$target_alias
2210test "x$ac_cv_target_alias" = "x" &&
2211 ac_cv_target_alias=$ac_cv_host_alias
2212ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2213 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2214echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2215 { (exit 1); exit 1; }; }
2216
2217fi
2218echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2219echo "${ECHO_T}$ac_cv_target" >&6
2220target=$ac_cv_target
2221target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2222target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2223target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2224
2225
2226# The aliases save the names the user supplied, while $host etc.
2227# will get canonicalized.
2228test -n "$target_alias" &&
2229 test "$program_prefix$program_suffix$program_transform_name" = \
2230 NONENONEs,x,x, &&
2231 program_prefix=${target_alias}-
2232
2233case $build in
2234 *i*86*) OS=Linux
2235
John Criswellf02dbf02003-07-22 20:07:49 +00002236 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
John Criswell7a73b802003-06-30 21:59:07 +00002237
2238 ;;
2239
2240 *sparc*) OS=SunOS
2241
2242 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
2243
2244 ;;
2245
2246 *) OS=Unknown
2247
2248 ;;
2249esac
2250
2251case $target in
2252 *sparc*solaris*) target=sparcv9-sun-solaris2.8
2253
2254 ;;
2255esac
2256
John Criswell76595452003-07-01 22:07:39 +00002257case $target in
2258 *i*86*) ARCH=x86
2259
2260 ;;
2261 *sparc*solaris*) ARCH=Sparc
2262
2263 ;;
2264esac
2265
John Criswell7a73b802003-06-30 21:59:07 +00002266
2267ac_ext=cc
2268ac_cpp='$CXXCPP $CPPFLAGS'
2269ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2270ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2271ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2272if test -n "$ac_tool_prefix"; then
2273 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2274 do
2275 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2276set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2277echo "$as_me:$LINENO: checking for $ac_word" >&5
2278echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2279if test "${ac_cv_prog_CXX+set}" = set; then
2280 echo $ECHO_N "(cached) $ECHO_C" >&6
2281else
2282 if test -n "$CXX"; then
2283 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2284else
2285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2286for as_dir in $PATH
2287do
2288 IFS=$as_save_IFS
2289 test -z "$as_dir" && as_dir=.
2290 for ac_exec_ext in '' $ac_executable_extensions; do
2291 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2292 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2294 break 2
2295 fi
2296done
2297done
2298
2299fi
2300fi
2301CXX=$ac_cv_prog_CXX
2302if test -n "$CXX"; then
2303 echo "$as_me:$LINENO: result: $CXX" >&5
2304echo "${ECHO_T}$CXX" >&6
2305else
2306 echo "$as_me:$LINENO: result: no" >&5
2307echo "${ECHO_T}no" >&6
2308fi
2309
2310 test -n "$CXX" && break
2311 done
2312fi
2313if test -z "$CXX"; then
2314 ac_ct_CXX=$CXX
2315 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2316do
2317 # Extract the first word of "$ac_prog", so it can be a program name with args.
2318set dummy $ac_prog; ac_word=$2
2319echo "$as_me:$LINENO: checking for $ac_word" >&5
2320echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2321if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2322 echo $ECHO_N "(cached) $ECHO_C" >&6
2323else
2324 if test -n "$ac_ct_CXX"; then
2325 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2326else
2327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2328for as_dir in $PATH
2329do
2330 IFS=$as_save_IFS
2331 test -z "$as_dir" && as_dir=.
2332 for ac_exec_ext in '' $ac_executable_extensions; do
2333 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2334 ac_cv_prog_ac_ct_CXX="$ac_prog"
2335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2336 break 2
2337 fi
2338done
2339done
2340
2341fi
2342fi
2343ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2344if test -n "$ac_ct_CXX"; then
2345 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2346echo "${ECHO_T}$ac_ct_CXX" >&6
2347else
2348 echo "$as_me:$LINENO: result: no" >&5
2349echo "${ECHO_T}no" >&6
2350fi
2351
2352 test -n "$ac_ct_CXX" && break
2353done
2354test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2355
2356 CXX=$ac_ct_CXX
2357fi
2358
2359
2360# Provide some information about the compiler.
2361echo "$as_me:$LINENO:" \
2362 "checking for C++ compiler version" >&5
2363ac_compiler=`set X $ac_compile; echo $2`
2364{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2365 (eval $ac_compiler --version </dev/null >&5) 2>&5
2366 ac_status=$?
2367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368 (exit $ac_status); }
2369{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2370 (eval $ac_compiler -v </dev/null >&5) 2>&5
2371 ac_status=$?
2372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2373 (exit $ac_status); }
2374{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2375 (eval $ac_compiler -V </dev/null >&5) 2>&5
2376 ac_status=$?
2377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378 (exit $ac_status); }
2379
2380cat >conftest.$ac_ext <<_ACEOF
2381#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002382/* confdefs.h. */
2383_ACEOF
2384cat confdefs.h >>conftest.$ac_ext
2385cat >>conftest.$ac_ext <<_ACEOF
2386/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002387
John Criswell7a73b802003-06-30 21:59:07 +00002388int
2389main ()
2390{
2391
2392 ;
2393 return 0;
2394}
2395_ACEOF
2396ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002397ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002398# Try to create an executable without -o first, disregard a.out.
2399# It will help us diagnose broken compilers, and finding out an intuition
2400# of exeext.
2401echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2402echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2403ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2404if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2405 (eval $ac_link_default) 2>&5
2406 ac_status=$?
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); }; then
2409 # Find the output, starting from the most likely. This scheme is
2410# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2411# resort.
2412
2413# Be careful to initialize this variable, since it used to be cached.
2414# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2415ac_cv_exeext=
John Criswell0c38eaf2003-09-10 15:17:25 +00002416# b.out is created by i960 compilers.
2417for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2418do
2419 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002420 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002421 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2422 ;;
2423 conftest.$ac_ext )
2424 # This is the source file.
2425 ;;
2426 [ab].out )
2427 # We found the default executable, but exeext='' is most
2428 # certainly right.
2429 break;;
2430 *.* )
2431 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2432 # FIXME: I believe we export ac_cv_exeext for Libtool,
2433 # but it would be cool to find out if it's true. Does anybody
2434 # maintain Libtool? --akim.
2435 export ac_cv_exeext
2436 break;;
2437 * )
2438 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002439 esac
2440done
2441else
2442 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002443sed 's/^/| /' conftest.$ac_ext >&5
2444
2445{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2446See \`config.log' for more details." >&5
2447echo "$as_me: error: C++ compiler cannot create executables
2448See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002449 { (exit 77); exit 77; }; }
2450fi
2451
2452ac_exeext=$ac_cv_exeext
2453echo "$as_me:$LINENO: result: $ac_file" >&5
2454echo "${ECHO_T}$ac_file" >&6
2455
2456# Check the compiler produces executables we can run. If not, either
2457# the compiler is broken, or we cross compile.
2458echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2459echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2460# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2461# If not cross compiling, check that we can run a simple program.
2462if test "$cross_compiling" != yes; then
2463 if { ac_try='./$ac_file'
2464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2465 (eval $ac_try) 2>&5
2466 ac_status=$?
2467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468 (exit $ac_status); }; }; then
2469 cross_compiling=no
2470 else
2471 if test "$cross_compiling" = maybe; then
2472 cross_compiling=yes
2473 else
2474 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002475If you meant to cross compile, use \`--host'.
2476See \`config.log' for more details." >&5
John Criswell7a73b802003-06-30 21:59:07 +00002477echo "$as_me: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002478If you meant to cross compile, use \`--host'.
2479See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002480 { (exit 1); exit 1; }; }
2481 fi
2482 fi
2483fi
2484echo "$as_me:$LINENO: result: yes" >&5
2485echo "${ECHO_T}yes" >&6
2486
John Criswell0c38eaf2003-09-10 15:17:25 +00002487rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002488ac_clean_files=$ac_clean_files_save
2489# Check the compiler produces executables we can run. If not, either
2490# the compiler is broken, or we cross compile.
2491echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2492echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2493echo "$as_me:$LINENO: result: $cross_compiling" >&5
2494echo "${ECHO_T}$cross_compiling" >&6
2495
2496echo "$as_me:$LINENO: checking for suffix of executables" >&5
2497echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2498if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2499 (eval $ac_link) 2>&5
2500 ac_status=$?
2501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502 (exit $ac_status); }; then
2503 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2504# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2505# work properly (i.e., refer to `conftest.exe'), while it won't with
2506# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002507for ac_file in conftest.exe conftest conftest.*; do
2508 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002509 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002510 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002511 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2512 export ac_cv_exeext
2513 break;;
2514 * ) break;;
2515 esac
2516done
2517else
John Criswell0c38eaf2003-09-10 15:17:25 +00002518 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2519See \`config.log' for more details." >&5
2520echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2521See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002522 { (exit 1); exit 1; }; }
2523fi
2524
2525rm -f conftest$ac_cv_exeext
2526echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2527echo "${ECHO_T}$ac_cv_exeext" >&6
2528
2529rm -f conftest.$ac_ext
2530EXEEXT=$ac_cv_exeext
2531ac_exeext=$EXEEXT
2532echo "$as_me:$LINENO: checking for suffix of object files" >&5
2533echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2534if test "${ac_cv_objext+set}" = set; then
2535 echo $ECHO_N "(cached) $ECHO_C" >&6
2536else
2537 cat >conftest.$ac_ext <<_ACEOF
2538#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002539/* confdefs.h. */
2540_ACEOF
2541cat confdefs.h >>conftest.$ac_ext
2542cat >>conftest.$ac_ext <<_ACEOF
2543/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002544
John Criswell7a73b802003-06-30 21:59:07 +00002545int
2546main ()
2547{
2548
2549 ;
2550 return 0;
2551}
2552_ACEOF
2553rm -f conftest.o conftest.obj
2554if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2555 (eval $ac_compile) 2>&5
2556 ac_status=$?
2557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558 (exit $ac_status); }; then
2559 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2560 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002561 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002562 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2563 break;;
2564 esac
2565done
2566else
2567 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002568sed 's/^/| /' conftest.$ac_ext >&5
2569
2570{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2571See \`config.log' for more details." >&5
2572echo "$as_me: error: cannot compute suffix of object files: cannot compile
2573See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002574 { (exit 1); exit 1; }; }
2575fi
2576
2577rm -f conftest.$ac_cv_objext conftest.$ac_ext
2578fi
2579echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2580echo "${ECHO_T}$ac_cv_objext" >&6
2581OBJEXT=$ac_cv_objext
2582ac_objext=$OBJEXT
2583echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2584echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2585if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2586 echo $ECHO_N "(cached) $ECHO_C" >&6
2587else
2588 cat >conftest.$ac_ext <<_ACEOF
2589#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002590/* confdefs.h. */
2591_ACEOF
2592cat confdefs.h >>conftest.$ac_ext
2593cat >>conftest.$ac_ext <<_ACEOF
2594/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002595
John Criswell7a73b802003-06-30 21:59:07 +00002596int
2597main ()
2598{
2599#ifndef __GNUC__
2600 choke me
2601#endif
2602
2603 ;
2604 return 0;
2605}
2606_ACEOF
2607rm -f conftest.$ac_objext
2608if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2609 (eval $ac_compile) 2>&5
2610 ac_status=$?
2611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612 (exit $ac_status); } &&
2613 { ac_try='test -s conftest.$ac_objext'
2614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2615 (eval $ac_try) 2>&5
2616 ac_status=$?
2617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618 (exit $ac_status); }; }; then
2619 ac_compiler_gnu=yes
2620else
2621 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002622sed 's/^/| /' conftest.$ac_ext >&5
2623
John Criswell7a73b802003-06-30 21:59:07 +00002624ac_compiler_gnu=no
2625fi
2626rm -f conftest.$ac_objext conftest.$ac_ext
2627ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2628
2629fi
2630echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2631echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2632GXX=`test $ac_compiler_gnu = yes && echo yes`
2633ac_test_CXXFLAGS=${CXXFLAGS+set}
2634ac_save_CXXFLAGS=$CXXFLAGS
2635CXXFLAGS="-g"
2636echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2637echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2638if test "${ac_cv_prog_cxx_g+set}" = set; then
2639 echo $ECHO_N "(cached) $ECHO_C" >&6
2640else
2641 cat >conftest.$ac_ext <<_ACEOF
2642#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002643/* confdefs.h. */
2644_ACEOF
2645cat confdefs.h >>conftest.$ac_ext
2646cat >>conftest.$ac_ext <<_ACEOF
2647/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002648
John Criswell7a73b802003-06-30 21:59:07 +00002649int
2650main ()
2651{
2652
2653 ;
2654 return 0;
2655}
2656_ACEOF
2657rm -f conftest.$ac_objext
2658if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2659 (eval $ac_compile) 2>&5
2660 ac_status=$?
2661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662 (exit $ac_status); } &&
2663 { ac_try='test -s conftest.$ac_objext'
2664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2665 (eval $ac_try) 2>&5
2666 ac_status=$?
2667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668 (exit $ac_status); }; }; then
2669 ac_cv_prog_cxx_g=yes
2670else
2671 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002672sed 's/^/| /' conftest.$ac_ext >&5
2673
John Criswell7a73b802003-06-30 21:59:07 +00002674ac_cv_prog_cxx_g=no
2675fi
2676rm -f conftest.$ac_objext conftest.$ac_ext
2677fi
2678echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2679echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2680if test "$ac_test_CXXFLAGS" = set; then
2681 CXXFLAGS=$ac_save_CXXFLAGS
2682elif test $ac_cv_prog_cxx_g = yes; then
2683 if test "$GXX" = yes; then
2684 CXXFLAGS="-g -O2"
2685 else
2686 CXXFLAGS="-g"
2687 fi
2688else
2689 if test "$GXX" = yes; then
2690 CXXFLAGS="-O2"
2691 else
2692 CXXFLAGS=
2693 fi
2694fi
2695for ac_declaration in \
2696 ''\
2697 '#include <stdlib.h>' \
2698 'extern "C" void std::exit (int) throw (); using std::exit;' \
2699 'extern "C" void std::exit (int); using std::exit;' \
2700 'extern "C" void exit (int) throw ();' \
2701 'extern "C" void exit (int);' \
2702 'void exit (int);'
2703do
2704 cat >conftest.$ac_ext <<_ACEOF
2705#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002706/* confdefs.h. */
2707_ACEOF
2708cat confdefs.h >>conftest.$ac_ext
2709cat >>conftest.$ac_ext <<_ACEOF
2710/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002711#include <stdlib.h>
2712$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002713int
2714main ()
2715{
2716exit (42);
2717 ;
2718 return 0;
2719}
2720_ACEOF
2721rm -f conftest.$ac_objext
2722if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2723 (eval $ac_compile) 2>&5
2724 ac_status=$?
2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726 (exit $ac_status); } &&
2727 { ac_try='test -s conftest.$ac_objext'
2728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2729 (eval $ac_try) 2>&5
2730 ac_status=$?
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); }; }; then
2733 :
2734else
2735 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002736sed 's/^/| /' conftest.$ac_ext >&5
2737
John Criswell7a73b802003-06-30 21:59:07 +00002738continue
2739fi
2740rm -f conftest.$ac_objext conftest.$ac_ext
2741 cat >conftest.$ac_ext <<_ACEOF
2742#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002743/* confdefs.h. */
2744_ACEOF
2745cat confdefs.h >>conftest.$ac_ext
2746cat >>conftest.$ac_ext <<_ACEOF
2747/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002748$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002749int
2750main ()
2751{
2752exit (42);
2753 ;
2754 return 0;
2755}
2756_ACEOF
2757rm -f conftest.$ac_objext
2758if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2759 (eval $ac_compile) 2>&5
2760 ac_status=$?
2761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762 (exit $ac_status); } &&
2763 { ac_try='test -s conftest.$ac_objext'
2764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2765 (eval $ac_try) 2>&5
2766 ac_status=$?
2767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768 (exit $ac_status); }; }; then
2769 break
2770else
2771 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002772sed 's/^/| /' conftest.$ac_ext >&5
2773
John Criswell7a73b802003-06-30 21:59:07 +00002774fi
2775rm -f conftest.$ac_objext conftest.$ac_ext
2776done
2777rm -f conftest*
2778if test -n "$ac_declaration"; then
2779 echo '#ifdef __cplusplus' >>confdefs.h
2780 echo $ac_declaration >>confdefs.h
2781 echo '#endif' >>confdefs.h
2782fi
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
2789
2790ac_ext=c
2791ac_cpp='$CPP $CPPFLAGS'
2792ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2793ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2794ac_compiler_gnu=$ac_cv_c_compiler_gnu
2795if test -n "$ac_tool_prefix"; then
2796 for ac_prog in gcc
2797 do
2798 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2799set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2800echo "$as_me:$LINENO: checking for $ac_word" >&5
2801echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2802if test "${ac_cv_prog_CC+set}" = set; then
2803 echo $ECHO_N "(cached) $ECHO_C" >&6
2804else
2805 if test -n "$CC"; then
2806 ac_cv_prog_CC="$CC" # Let the user override the test.
2807else
2808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2809for as_dir in $PATH
2810do
2811 IFS=$as_save_IFS
2812 test -z "$as_dir" && as_dir=.
2813 for ac_exec_ext in '' $ac_executable_extensions; do
2814 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2815 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2817 break 2
2818 fi
2819done
2820done
2821
2822fi
2823fi
2824CC=$ac_cv_prog_CC
2825if test -n "$CC"; then
2826 echo "$as_me:$LINENO: result: $CC" >&5
2827echo "${ECHO_T}$CC" >&6
2828else
2829 echo "$as_me:$LINENO: result: no" >&5
2830echo "${ECHO_T}no" >&6
2831fi
2832
2833 test -n "$CC" && break
2834 done
2835fi
2836if test -z "$CC"; then
2837 ac_ct_CC=$CC
2838 for ac_prog in gcc
2839do
2840 # Extract the first word of "$ac_prog", so it can be a program name with args.
2841set dummy $ac_prog; ac_word=$2
2842echo "$as_me:$LINENO: checking for $ac_word" >&5
2843echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2844if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2845 echo $ECHO_N "(cached) $ECHO_C" >&6
2846else
2847 if test -n "$ac_ct_CC"; then
2848 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2849else
2850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2851for as_dir in $PATH
2852do
2853 IFS=$as_save_IFS
2854 test -z "$as_dir" && as_dir=.
2855 for ac_exec_ext in '' $ac_executable_extensions; do
2856 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2857 ac_cv_prog_ac_ct_CC="$ac_prog"
2858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2859 break 2
2860 fi
2861done
2862done
2863
2864fi
2865fi
2866ac_ct_CC=$ac_cv_prog_ac_ct_CC
2867if test -n "$ac_ct_CC"; then
2868 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2869echo "${ECHO_T}$ac_ct_CC" >&6
2870else
2871 echo "$as_me:$LINENO: result: no" >&5
2872echo "${ECHO_T}no" >&6
2873fi
2874
2875 test -n "$ac_ct_CC" && break
2876done
2877
2878 CC=$ac_ct_CC
2879fi
2880
2881
John Criswell0c38eaf2003-09-10 15:17:25 +00002882test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2883See \`config.log' for more details." >&5
2884echo "$as_me: error: no acceptable C compiler found in \$PATH
2885See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002886 { (exit 1); exit 1; }; }
2887
2888# Provide some information about the compiler.
2889echo "$as_me:$LINENO:" \
2890 "checking for C compiler version" >&5
2891ac_compiler=`set X $ac_compile; echo $2`
2892{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2893 (eval $ac_compiler --version </dev/null >&5) 2>&5
2894 ac_status=$?
2895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896 (exit $ac_status); }
2897{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2898 (eval $ac_compiler -v </dev/null >&5) 2>&5
2899 ac_status=$?
2900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901 (exit $ac_status); }
2902{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2903 (eval $ac_compiler -V </dev/null >&5) 2>&5
2904 ac_status=$?
2905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906 (exit $ac_status); }
2907
2908echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2909echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2910if test "${ac_cv_c_compiler_gnu+set}" = set; then
2911 echo $ECHO_N "(cached) $ECHO_C" >&6
2912else
2913 cat >conftest.$ac_ext <<_ACEOF
2914#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002915/* confdefs.h. */
2916_ACEOF
2917cat confdefs.h >>conftest.$ac_ext
2918cat >>conftest.$ac_ext <<_ACEOF
2919/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002920
John Criswell7a73b802003-06-30 21:59:07 +00002921int
2922main ()
2923{
2924#ifndef __GNUC__
2925 choke me
2926#endif
2927
2928 ;
2929 return 0;
2930}
2931_ACEOF
2932rm -f conftest.$ac_objext
2933if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2934 (eval $ac_compile) 2>&5
2935 ac_status=$?
2936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937 (exit $ac_status); } &&
2938 { ac_try='test -s conftest.$ac_objext'
2939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2940 (eval $ac_try) 2>&5
2941 ac_status=$?
2942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943 (exit $ac_status); }; }; then
2944 ac_compiler_gnu=yes
2945else
2946 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002947sed 's/^/| /' conftest.$ac_ext >&5
2948
John Criswell7a73b802003-06-30 21:59:07 +00002949ac_compiler_gnu=no
2950fi
2951rm -f conftest.$ac_objext conftest.$ac_ext
2952ac_cv_c_compiler_gnu=$ac_compiler_gnu
2953
2954fi
2955echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2956echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2957GCC=`test $ac_compiler_gnu = yes && echo yes`
2958ac_test_CFLAGS=${CFLAGS+set}
2959ac_save_CFLAGS=$CFLAGS
2960CFLAGS="-g"
2961echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2962echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2963if test "${ac_cv_prog_cc_g+set}" = set; then
2964 echo $ECHO_N "(cached) $ECHO_C" >&6
2965else
2966 cat >conftest.$ac_ext <<_ACEOF
2967#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002968/* confdefs.h. */
2969_ACEOF
2970cat confdefs.h >>conftest.$ac_ext
2971cat >>conftest.$ac_ext <<_ACEOF
2972/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002973
John Criswell7a73b802003-06-30 21:59:07 +00002974int
2975main ()
2976{
2977
2978 ;
2979 return 0;
2980}
2981_ACEOF
2982rm -f conftest.$ac_objext
2983if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2984 (eval $ac_compile) 2>&5
2985 ac_status=$?
2986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987 (exit $ac_status); } &&
2988 { ac_try='test -s conftest.$ac_objext'
2989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2990 (eval $ac_try) 2>&5
2991 ac_status=$?
2992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993 (exit $ac_status); }; }; then
2994 ac_cv_prog_cc_g=yes
2995else
2996 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002997sed 's/^/| /' conftest.$ac_ext >&5
2998
John Criswell7a73b802003-06-30 21:59:07 +00002999ac_cv_prog_cc_g=no
3000fi
3001rm -f conftest.$ac_objext conftest.$ac_ext
3002fi
3003echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3004echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3005if test "$ac_test_CFLAGS" = set; then
3006 CFLAGS=$ac_save_CFLAGS
3007elif test $ac_cv_prog_cc_g = yes; then
3008 if test "$GCC" = yes; then
3009 CFLAGS="-g -O2"
3010 else
3011 CFLAGS="-g"
3012 fi
3013else
3014 if test "$GCC" = yes; then
3015 CFLAGS="-O2"
3016 else
3017 CFLAGS=
3018 fi
3019fi
John Criswell0c38eaf2003-09-10 15:17:25 +00003020echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3021echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3022if test "${ac_cv_prog_cc_stdc+set}" = set; then
3023 echo $ECHO_N "(cached) $ECHO_C" >&6
3024else
3025 ac_cv_prog_cc_stdc=no
3026ac_save_CC=$CC
3027cat >conftest.$ac_ext <<_ACEOF
3028#line $LINENO "configure"
3029/* confdefs.h. */
3030_ACEOF
3031cat confdefs.h >>conftest.$ac_ext
3032cat >>conftest.$ac_ext <<_ACEOF
3033/* end confdefs.h. */
3034#include <stdarg.h>
3035#include <stdio.h>
3036#include <sys/types.h>
3037#include <sys/stat.h>
3038/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3039struct buf { int x; };
3040FILE * (*rcsopen) (struct buf *, struct stat *, int);
3041static char *e (p, i)
3042 char **p;
3043 int i;
3044{
3045 return p[i];
3046}
3047static char *f (char * (*g) (char **, int), char **p, ...)
3048{
3049 char *s;
3050 va_list v;
3051 va_start (v,p);
3052 s = g (p, va_arg (v,int));
3053 va_end (v);
3054 return s;
3055}
3056int test (int i, double x);
3057struct s1 {int (*f) (int a);};
3058struct s2 {int (*f) (double a);};
3059int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3060int argc;
3061char **argv;
3062int
3063main ()
3064{
3065return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3066 ;
3067 return 0;
3068}
3069_ACEOF
3070# Don't try gcc -ansi; that turns off useful extensions and
3071# breaks some systems' header files.
3072# AIX -qlanglvl=ansi
3073# Ultrix and OSF/1 -std1
3074# HP-UX 10.20 and later -Ae
3075# HP-UX older versions -Aa -D_HPUX_SOURCE
3076# SVR4 -Xc -D__EXTENSIONS__
3077for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3078do
3079 CC="$ac_save_CC $ac_arg"
3080 rm -f conftest.$ac_objext
3081if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3082 (eval $ac_compile) 2>&5
3083 ac_status=$?
3084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085 (exit $ac_status); } &&
3086 { ac_try='test -s conftest.$ac_objext'
3087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3088 (eval $ac_try) 2>&5
3089 ac_status=$?
3090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091 (exit $ac_status); }; }; then
3092 ac_cv_prog_cc_stdc=$ac_arg
3093break
3094else
3095 echo "$as_me: failed program was:" >&5
3096sed 's/^/| /' conftest.$ac_ext >&5
3097
3098fi
3099rm -f conftest.$ac_objext
3100done
3101rm -f conftest.$ac_ext conftest.$ac_objext
3102CC=$ac_save_CC
3103
3104fi
3105
3106case "x$ac_cv_prog_cc_stdc" in
3107 x|xno)
3108 echo "$as_me:$LINENO: result: none needed" >&5
3109echo "${ECHO_T}none needed" >&6 ;;
3110 *)
3111 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3112echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3113 CC="$CC $ac_cv_prog_cc_stdc" ;;
3114esac
3115
John Criswell7a73b802003-06-30 21:59:07 +00003116# Some people use a C++ compiler to compile C. Since we use `exit',
3117# in C++ we need to declare it. In case someone uses the same compiler
3118# for both compiling C and C++ we need to have the C++ compiler decide
3119# the declaration of exit, since it's the most demanding environment.
3120cat >conftest.$ac_ext <<_ACEOF
3121#ifndef __cplusplus
3122 choke me
3123#endif
3124_ACEOF
3125rm -f conftest.$ac_objext
3126if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3127 (eval $ac_compile) 2>&5
3128 ac_status=$?
3129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3130 (exit $ac_status); } &&
3131 { ac_try='test -s conftest.$ac_objext'
3132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3133 (eval $ac_try) 2>&5
3134 ac_status=$?
3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); }; }; then
3137 for ac_declaration in \
3138 ''\
3139 '#include <stdlib.h>' \
3140 'extern "C" void std::exit (int) throw (); using std::exit;' \
3141 'extern "C" void std::exit (int); using std::exit;' \
3142 'extern "C" void exit (int) throw ();' \
3143 'extern "C" void exit (int);' \
3144 'void exit (int);'
3145do
3146 cat >conftest.$ac_ext <<_ACEOF
3147#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003148/* confdefs.h. */
3149_ACEOF
3150cat confdefs.h >>conftest.$ac_ext
3151cat >>conftest.$ac_ext <<_ACEOF
3152/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003153#include <stdlib.h>
3154$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00003155int
3156main ()
3157{
3158exit (42);
3159 ;
3160 return 0;
3161}
3162_ACEOF
3163rm -f conftest.$ac_objext
3164if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3165 (eval $ac_compile) 2>&5
3166 ac_status=$?
3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168 (exit $ac_status); } &&
3169 { ac_try='test -s conftest.$ac_objext'
3170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3171 (eval $ac_try) 2>&5
3172 ac_status=$?
3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); }; }; then
3175 :
3176else
3177 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003178sed 's/^/| /' conftest.$ac_ext >&5
3179
John Criswell7a73b802003-06-30 21:59:07 +00003180continue
3181fi
3182rm -f conftest.$ac_objext conftest.$ac_ext
3183 cat >conftest.$ac_ext <<_ACEOF
3184#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003185/* confdefs.h. */
3186_ACEOF
3187cat confdefs.h >>conftest.$ac_ext
3188cat >>conftest.$ac_ext <<_ACEOF
3189/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003190$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00003191int
3192main ()
3193{
3194exit (42);
3195 ;
3196 return 0;
3197}
3198_ACEOF
3199rm -f conftest.$ac_objext
3200if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3201 (eval $ac_compile) 2>&5
3202 ac_status=$?
3203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204 (exit $ac_status); } &&
3205 { ac_try='test -s conftest.$ac_objext'
3206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3207 (eval $ac_try) 2>&5
3208 ac_status=$?
3209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210 (exit $ac_status); }; }; then
3211 break
3212else
3213 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003214sed 's/^/| /' conftest.$ac_ext >&5
3215
John Criswell7a73b802003-06-30 21:59:07 +00003216fi
3217rm -f conftest.$ac_objext conftest.$ac_ext
3218done
3219rm -f conftest*
3220if test -n "$ac_declaration"; then
3221 echo '#ifdef __cplusplus' >>confdefs.h
3222 echo $ac_declaration >>confdefs.h
3223 echo '#endif' >>confdefs.h
3224fi
3225
3226else
3227 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003228sed 's/^/| /' conftest.$ac_ext >&5
3229
John Criswell7a73b802003-06-30 21:59:07 +00003230fi
3231rm -f conftest.$ac_objext conftest.$ac_ext
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
3237
3238ac_ext=c
3239ac_cpp='$CPP $CPPFLAGS'
3240ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3241ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3242ac_compiler_gnu=$ac_cv_c_compiler_gnu
3243echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3244echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3245# On Suns, sometimes $CPP names a directory.
3246if test -n "$CPP" && test -d "$CPP"; then
3247 CPP=
3248fi
3249if test -z "$CPP"; then
3250 if test "${ac_cv_prog_CPP+set}" = set; then
3251 echo $ECHO_N "(cached) $ECHO_C" >&6
3252else
3253 # Double quotes because CPP needs to be expanded
3254 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3255 do
3256 ac_preproc_ok=false
3257for ac_c_preproc_warn_flag in '' yes
3258do
3259 # Use a header file that comes with gcc, so configuring glibc
3260 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00003261 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3262 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00003263 # On the NeXT, cc -E runs the code through the compiler's parser,
3264 # not just through cpp. "Syntax error" is here to catch this case.
3265 cat >conftest.$ac_ext <<_ACEOF
3266#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003267/* confdefs.h. */
3268_ACEOF
3269cat confdefs.h >>conftest.$ac_ext
3270cat >>conftest.$ac_ext <<_ACEOF
3271/* end confdefs.h. */
3272#ifdef __STDC__
3273# include <limits.h>
3274#else
3275# include <assert.h>
3276#endif
John Criswell7a73b802003-06-30 21:59:07 +00003277 Syntax error
3278_ACEOF
3279if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3280 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3281 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003282 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003283 rm -f conftest.er1
3284 cat conftest.err >&5
3285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286 (exit $ac_status); } >/dev/null; then
3287 if test -s conftest.err; then
3288 ac_cpp_err=$ac_c_preproc_warn_flag
3289 else
3290 ac_cpp_err=
3291 fi
3292else
3293 ac_cpp_err=yes
3294fi
3295if test -z "$ac_cpp_err"; then
3296 :
3297else
3298 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003299sed 's/^/| /' conftest.$ac_ext >&5
3300
John Criswell7a73b802003-06-30 21:59:07 +00003301 # Broken: fails on valid input.
3302continue
3303fi
3304rm -f conftest.err conftest.$ac_ext
3305
3306 # OK, works on sane cases. Now check whether non-existent headers
3307 # can be detected and how.
3308 cat >conftest.$ac_ext <<_ACEOF
3309#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003310/* confdefs.h. */
3311_ACEOF
3312cat confdefs.h >>conftest.$ac_ext
3313cat >>conftest.$ac_ext <<_ACEOF
3314/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003315#include <ac_nonexistent.h>
3316_ACEOF
3317if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3318 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3319 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003320 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003321 rm -f conftest.er1
3322 cat conftest.err >&5
3323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324 (exit $ac_status); } >/dev/null; then
3325 if test -s conftest.err; then
3326 ac_cpp_err=$ac_c_preproc_warn_flag
3327 else
3328 ac_cpp_err=
3329 fi
3330else
3331 ac_cpp_err=yes
3332fi
3333if test -z "$ac_cpp_err"; then
3334 # Broken: success on invalid input.
3335continue
3336else
3337 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003338sed 's/^/| /' conftest.$ac_ext >&5
3339
John Criswell7a73b802003-06-30 21:59:07 +00003340 # Passes both tests.
3341ac_preproc_ok=:
3342break
3343fi
3344rm -f conftest.err conftest.$ac_ext
3345
3346done
3347# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3348rm -f conftest.err conftest.$ac_ext
3349if $ac_preproc_ok; then
3350 break
3351fi
3352
3353 done
3354 ac_cv_prog_CPP=$CPP
3355
3356fi
3357 CPP=$ac_cv_prog_CPP
3358else
3359 ac_cv_prog_CPP=$CPP
3360fi
3361echo "$as_me:$LINENO: result: $CPP" >&5
3362echo "${ECHO_T}$CPP" >&6
3363ac_preproc_ok=false
3364for ac_c_preproc_warn_flag in '' yes
3365do
3366 # Use a header file that comes with gcc, so configuring glibc
3367 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00003368 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3369 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00003370 # On the NeXT, cc -E runs the code through the compiler's parser,
3371 # not just through cpp. "Syntax error" is here to catch this case.
3372 cat >conftest.$ac_ext <<_ACEOF
3373#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003374/* confdefs.h. */
3375_ACEOF
3376cat confdefs.h >>conftest.$ac_ext
3377cat >>conftest.$ac_ext <<_ACEOF
3378/* end confdefs.h. */
3379#ifdef __STDC__
3380# include <limits.h>
3381#else
3382# include <assert.h>
3383#endif
John Criswell7a73b802003-06-30 21:59:07 +00003384 Syntax error
3385_ACEOF
3386if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3387 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3388 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003389 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003390 rm -f conftest.er1
3391 cat conftest.err >&5
3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393 (exit $ac_status); } >/dev/null; then
3394 if test -s conftest.err; then
3395 ac_cpp_err=$ac_c_preproc_warn_flag
3396 else
3397 ac_cpp_err=
3398 fi
3399else
3400 ac_cpp_err=yes
3401fi
3402if test -z "$ac_cpp_err"; then
3403 :
3404else
3405 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003406sed 's/^/| /' conftest.$ac_ext >&5
3407
John Criswell7a73b802003-06-30 21:59:07 +00003408 # Broken: fails on valid input.
3409continue
3410fi
3411rm -f conftest.err conftest.$ac_ext
3412
3413 # OK, works on sane cases. Now check whether non-existent headers
3414 # can be detected and how.
3415 cat >conftest.$ac_ext <<_ACEOF
3416#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003417/* confdefs.h. */
3418_ACEOF
3419cat confdefs.h >>conftest.$ac_ext
3420cat >>conftest.$ac_ext <<_ACEOF
3421/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003422#include <ac_nonexistent.h>
3423_ACEOF
3424if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3425 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3426 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003427 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003428 rm -f conftest.er1
3429 cat conftest.err >&5
3430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431 (exit $ac_status); } >/dev/null; then
3432 if test -s conftest.err; then
3433 ac_cpp_err=$ac_c_preproc_warn_flag
3434 else
3435 ac_cpp_err=
3436 fi
3437else
3438 ac_cpp_err=yes
3439fi
3440if test -z "$ac_cpp_err"; then
3441 # Broken: success on invalid input.
3442continue
3443else
3444 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003445sed 's/^/| /' conftest.$ac_ext >&5
3446
John Criswell7a73b802003-06-30 21:59:07 +00003447 # Passes both tests.
3448ac_preproc_ok=:
3449break
3450fi
3451rm -f conftest.err conftest.$ac_ext
3452
3453done
3454# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3455rm -f conftest.err conftest.$ac_ext
3456if $ac_preproc_ok; then
3457 :
3458else
John Criswell0c38eaf2003-09-10 15:17:25 +00003459 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3460See \`config.log' for more details." >&5
3461echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3462See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003463 { (exit 1); exit 1; }; }
3464fi
3465
3466ac_ext=c
3467ac_cpp='$CPP $CPPFLAGS'
3468ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3469ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3470ac_compiler_gnu=$ac_cv_c_compiler_gnu
3471
3472
3473if test "$GCC" != "yes"
3474then
3475 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3476echo "$as_me: error: gcc required but not found" >&2;}
3477 { (exit 1); exit 1; }; }
3478fi
3479
3480if test "$GXX" != "yes"
3481then
3482 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3483echo "$as_me: error: g++ required but not found" >&2;}
3484 { (exit 1); exit 1; }; }
3485fi
3486
John Criswellde00db22003-08-25 16:49:54 +00003487gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3488if test "$gccmajor" -lt "3"
3489then
3490 { { echo "$as_me:$LINENO: error: gcc 3.x required" >&5
3491echo "$as_me: error: gcc 3.x required" >&2;}
3492 { (exit 1); exit 1; }; }
3493fi
3494
John Criswell7a73b802003-06-30 21:59:07 +00003495 echo "$as_me:$LINENO: checking for GNU make" >&5
3496echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3497if test "${_cv_gnu_make_command+set}" = set; then
3498 echo $ECHO_N "(cached) $ECHO_C" >&6
3499else
3500 _cv_gnu_make_command='' ;
3501 for a in "$MAKE" make gmake gnumake ; do
3502 if test -z "$a" ; then continue ; fi ;
3503 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
3504 _cv_gnu_make_command=$a ;
3505 break;
3506 fi
3507 done ;
3508
3509fi
3510echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3511echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3512 if test "x$_cv_gnu_make_command" != "x" ; then
3513 ifGNUmake='' ;
3514 else
3515 ifGNUmake='#' ;
3516 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3517echo "${ECHO_T}\"Not found\"" >&6;
3518 fi
3519
3520
3521if test -z "$_cv_gnu_make_command"
3522then
3523 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3524echo "$as_me: error: GNU Make required but not found" >&2;}
3525 { (exit 1); exit 1; }; }
3526fi
3527
3528
3529echo "$as_me:$LINENO: checking " >&5
3530echo $ECHO_N "checking ... $ECHO_C" >&6
3531if test "${ac_cv_has_flex+set}" = set; then
3532 echo $ECHO_N "(cached) $ECHO_C" >&6
3533else
3534 for ac_prog in flex lex
3535do
3536 # Extract the first word of "$ac_prog", so it can be a program name with args.
3537set dummy $ac_prog; ac_word=$2
3538echo "$as_me:$LINENO: checking for $ac_word" >&5
3539echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3540if test "${ac_cv_prog_LEX+set}" = set; then
3541 echo $ECHO_N "(cached) $ECHO_C" >&6
3542else
3543 if test -n "$LEX"; then
3544 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3545else
3546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3547for as_dir in $PATH
3548do
3549 IFS=$as_save_IFS
3550 test -z "$as_dir" && as_dir=.
3551 for ac_exec_ext in '' $ac_executable_extensions; do
3552 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3553 ac_cv_prog_LEX="$ac_prog"
3554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3555 break 2
3556 fi
3557done
3558done
3559
3560fi
3561fi
3562LEX=$ac_cv_prog_LEX
3563if test -n "$LEX"; then
3564 echo "$as_me:$LINENO: result: $LEX" >&5
3565echo "${ECHO_T}$LEX" >&6
3566else
3567 echo "$as_me:$LINENO: result: no" >&5
3568echo "${ECHO_T}no" >&6
3569fi
3570
3571 test -n "$LEX" && break
3572done
3573test -n "$LEX" || LEX=":"
3574
3575if test -z "$LEXLIB"
3576then
3577 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3578echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3579if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3580 echo $ECHO_N "(cached) $ECHO_C" >&6
3581else
3582 ac_check_lib_save_LIBS=$LIBS
3583LIBS="-lfl $LIBS"
3584cat >conftest.$ac_ext <<_ACEOF
3585#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003586/* confdefs.h. */
3587_ACEOF
3588cat confdefs.h >>conftest.$ac_ext
3589cat >>conftest.$ac_ext <<_ACEOF
3590/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003591
3592/* Override any gcc2 internal prototype to avoid an error. */
3593#ifdef __cplusplus
3594extern "C"
3595#endif
3596/* We use char because int might match the return type of a gcc2
3597 builtin and then its argument prototype would still apply. */
3598char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003599int
3600main ()
3601{
3602yywrap ();
3603 ;
3604 return 0;
3605}
3606_ACEOF
3607rm -f conftest.$ac_objext conftest$ac_exeext
3608if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3609 (eval $ac_link) 2>&5
3610 ac_status=$?
3611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612 (exit $ac_status); } &&
3613 { ac_try='test -s conftest$ac_exeext'
3614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3615 (eval $ac_try) 2>&5
3616 ac_status=$?
3617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618 (exit $ac_status); }; }; then
3619 ac_cv_lib_fl_yywrap=yes
3620else
3621 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003622sed 's/^/| /' conftest.$ac_ext >&5
3623
John Criswell7a73b802003-06-30 21:59:07 +00003624ac_cv_lib_fl_yywrap=no
3625fi
3626rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3627LIBS=$ac_check_lib_save_LIBS
3628fi
3629echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3630echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3631if test $ac_cv_lib_fl_yywrap = yes; then
3632 LEXLIB="-lfl"
3633else
3634 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3635echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3636if test "${ac_cv_lib_l_yywrap+set}" = set; then
3637 echo $ECHO_N "(cached) $ECHO_C" >&6
3638else
3639 ac_check_lib_save_LIBS=$LIBS
3640LIBS="-ll $LIBS"
3641cat >conftest.$ac_ext <<_ACEOF
3642#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003643/* confdefs.h. */
3644_ACEOF
3645cat confdefs.h >>conftest.$ac_ext
3646cat >>conftest.$ac_ext <<_ACEOF
3647/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003648
3649/* Override any gcc2 internal prototype to avoid an error. */
3650#ifdef __cplusplus
3651extern "C"
3652#endif
3653/* We use char because int might match the return type of a gcc2
3654 builtin and then its argument prototype would still apply. */
3655char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003656int
3657main ()
3658{
3659yywrap ();
3660 ;
3661 return 0;
3662}
3663_ACEOF
3664rm -f conftest.$ac_objext conftest$ac_exeext
3665if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3666 (eval $ac_link) 2>&5
3667 ac_status=$?
3668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669 (exit $ac_status); } &&
3670 { ac_try='test -s conftest$ac_exeext'
3671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3672 (eval $ac_try) 2>&5
3673 ac_status=$?
3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675 (exit $ac_status); }; }; then
3676 ac_cv_lib_l_yywrap=yes
3677else
3678 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003679sed 's/^/| /' conftest.$ac_ext >&5
3680
John Criswell7a73b802003-06-30 21:59:07 +00003681ac_cv_lib_l_yywrap=no
3682fi
3683rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3684LIBS=$ac_check_lib_save_LIBS
3685fi
3686echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3687echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3688if test $ac_cv_lib_l_yywrap = yes; then
3689 LEXLIB="-ll"
3690fi
3691
3692fi
3693
3694fi
3695
3696if test "x$LEX" != "x:"; then
3697 echo "$as_me:$LINENO: checking lex output file root" >&5
3698echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3699if test "${ac_cv_prog_lex_root+set}" = set; then
3700 echo $ECHO_N "(cached) $ECHO_C" >&6
3701else
3702 # The minimal lex program is just a single line: %%. But some broken lexes
3703# (Solaris, I think it was) want two %% lines, so accommodate them.
3704cat >conftest.l <<_ACEOF
3705%%
3706%%
3707_ACEOF
3708{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3709 (eval $LEX conftest.l) 2>&5
3710 ac_status=$?
3711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3712 (exit $ac_status); }
3713if test -f lex.yy.c; then
3714 ac_cv_prog_lex_root=lex.yy
3715elif test -f lexyy.c; then
3716 ac_cv_prog_lex_root=lexyy
3717else
3718 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3719echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3720 { (exit 1); exit 1; }; }
3721fi
3722fi
3723echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3724echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3725rm -f conftest.l
3726LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3727
3728echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3729echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3730if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3731 echo $ECHO_N "(cached) $ECHO_C" >&6
3732else
3733 # POSIX says lex can declare yytext either as a pointer or an array; the
3734# default is implementation-dependent. Figure out which it is, since
3735# not all implementations provide the %pointer and %array declarations.
3736ac_cv_prog_lex_yytext_pointer=no
3737echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3738ac_save_LIBS=$LIBS
3739LIBS="$LIBS $LEXLIB"
3740cat >conftest.$ac_ext <<_ACEOF
3741`cat $LEX_OUTPUT_ROOT.c`
3742_ACEOF
3743rm -f conftest.$ac_objext conftest$ac_exeext
3744if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3745 (eval $ac_link) 2>&5
3746 ac_status=$?
3747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748 (exit $ac_status); } &&
3749 { ac_try='test -s conftest$ac_exeext'
3750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3751 (eval $ac_try) 2>&5
3752 ac_status=$?
3753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3754 (exit $ac_status); }; }; then
3755 ac_cv_prog_lex_yytext_pointer=yes
3756else
3757 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003758sed 's/^/| /' conftest.$ac_ext >&5
3759
John Criswell7a73b802003-06-30 21:59:07 +00003760fi
3761rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3762LIBS=$ac_save_LIBS
3763rm -f "${LEX_OUTPUT_ROOT}.c"
3764
3765fi
3766echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3767echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3768if test $ac_cv_prog_lex_yytext_pointer = yes; then
3769
3770cat >>confdefs.h <<\_ACEOF
3771#define YYTEXT_POINTER 1
3772_ACEOF
3773
3774fi
3775
3776fi
3777
3778fi
3779echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3780echo "${ECHO_T}$ac_cv_has_flex" >&6
3781if test "$LEX" != "flex"; then
3782 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3783echo "$as_me: error: flex not found but required" >&2;}
3784 { (exit 1); exit 1; }; }
3785fi
3786
3787echo "$as_me:$LINENO: checking " >&5
3788echo $ECHO_N "checking ... $ECHO_C" >&6
3789if test "${ac_cv_has_bison+set}" = set; then
3790 echo $ECHO_N "(cached) $ECHO_C" >&6
3791else
3792 for ac_prog in 'bison -y' byacc
3793do
3794 # Extract the first word of "$ac_prog", so it can be a program name with args.
3795set dummy $ac_prog; ac_word=$2
3796echo "$as_me:$LINENO: checking for $ac_word" >&5
3797echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3798if test "${ac_cv_prog_YACC+set}" = set; then
3799 echo $ECHO_N "(cached) $ECHO_C" >&6
3800else
3801 if test -n "$YACC"; then
3802 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3803else
3804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3805for as_dir in $PATH
3806do
3807 IFS=$as_save_IFS
3808 test -z "$as_dir" && as_dir=.
3809 for ac_exec_ext in '' $ac_executable_extensions; do
3810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3811 ac_cv_prog_YACC="$ac_prog"
3812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3813 break 2
3814 fi
3815done
3816done
3817
3818fi
3819fi
3820YACC=$ac_cv_prog_YACC
3821if test -n "$YACC"; then
3822 echo "$as_me:$LINENO: result: $YACC" >&5
3823echo "${ECHO_T}$YACC" >&6
3824else
3825 echo "$as_me:$LINENO: result: no" >&5
3826echo "${ECHO_T}no" >&6
3827fi
3828
3829 test -n "$YACC" && break
3830done
3831test -n "$YACC" || YACC="yacc"
3832
3833
3834fi
3835echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3836echo "${ECHO_T}$ac_cv_has_bison" >&6
3837if test "$YACC" != "bison -y"; then
3838 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3839echo "$as_me: error: bison not found but required" >&2;}
3840 { (exit 1); exit 1; }; }
3841else
3842 YACC=bison
3843
3844fi
3845
3846
3847# Check whether --enable-shared or --disable-shared was given.
3848if test "${enable_shared+set}" = set; then
3849 enableval="$enable_shared"
3850 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003851 case $enableval in
3852 yes) enable_shared=yes ;;
3853 no) enable_shared=no ;;
3854 *)
3855 enable_shared=no
3856 # Look at the argument we got. We use all the common list separators.
3857 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3858 for pkg in $enableval; do
3859 IFS="$lt_save_ifs"
3860 if test "X$pkg" = "X$p"; then
3861 enable_shared=yes
3862 fi
3863 done
3864 IFS="$lt_save_ifs"
3865 ;;
3866 esac
John Criswell7a73b802003-06-30 21:59:07 +00003867else
3868 enable_shared=yes
3869fi;
John Criswell47fdd832003-07-14 16:52:07 +00003870
John Criswell7a73b802003-06-30 21:59:07 +00003871# Check whether --enable-static or --disable-static was given.
3872if test "${enable_static+set}" = set; then
3873 enableval="$enable_static"
3874 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003875 case $enableval in
3876 yes) enable_static=yes ;;
3877 no) enable_static=no ;;
3878 *)
3879 enable_static=no
3880 # Look at the argument we got. We use all the common list separators.
3881 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3882 for pkg in $enableval; do
3883 IFS="$lt_save_ifs"
3884 if test "X$pkg" = "X$p"; then
3885 enable_static=yes
3886 fi
3887 done
3888 IFS="$lt_save_ifs"
3889 ;;
3890 esac
John Criswell7a73b802003-06-30 21:59:07 +00003891else
3892 enable_static=yes
3893fi;
John Criswell47fdd832003-07-14 16:52:07 +00003894
John Criswell7a73b802003-06-30 21:59:07 +00003895# Check whether --enable-fast-install or --disable-fast-install was given.
3896if test "${enable_fast_install+set}" = set; then
3897 enableval="$enable_fast_install"
3898 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003899 case $enableval in
3900 yes) enable_fast_install=yes ;;
3901 no) enable_fast_install=no ;;
3902 *)
3903 enable_fast_install=no
3904 # Look at the argument we got. We use all the common list separators.
3905 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3906 for pkg in $enableval; do
3907 IFS="$lt_save_ifs"
3908 if test "X$pkg" = "X$p"; then
3909 enable_fast_install=yes
3910 fi
3911 done
3912 IFS="$lt_save_ifs"
3913 ;;
3914 esac
John Criswell7a73b802003-06-30 21:59:07 +00003915else
3916 enable_fast_install=yes
3917fi;
John Criswell47fdd832003-07-14 16:52:07 +00003918
3919echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3920echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3921if test "${lt_cv_path_SED+set}" = set; then
3922 echo $ECHO_N "(cached) $ECHO_C" >&6
3923else
3924 # Loop through the user's path and test for sed and gsed.
3925# Then use that list of sed's as ones to test for truncation.
3926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3927for as_dir in $PATH
3928do
3929 IFS=$as_save_IFS
3930 test -z "$as_dir" && as_dir=.
3931 for lt_ac_prog in sed gsed; do
3932 for ac_exec_ext in '' $ac_executable_extensions; do
3933 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3934 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3935 fi
3936 done
3937 done
3938done
3939lt_ac_max=0
3940lt_ac_count=0
3941# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3942# along with /bin/sed that truncates output.
3943for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3944 test ! -f $lt_ac_sed && break
3945 cat /dev/null > conftest.in
3946 lt_ac_count=0
3947 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3948 # Check for GNU sed and select it if it is found.
3949 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3950 lt_cv_path_SED=$lt_ac_sed
3951 break
3952 fi
3953 while true; do
3954 cat conftest.in conftest.in >conftest.tmp
3955 mv conftest.tmp conftest.in
3956 cp conftest.in conftest.nl
3957 echo >>conftest.nl
3958 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3959 cmp -s conftest.out conftest.nl || break
3960 # 10000 chars as input seems more than enough
3961 test $lt_ac_count -gt 10 && break
3962 lt_ac_count=`expr $lt_ac_count + 1`
3963 if test $lt_ac_count -gt $lt_ac_max; then
3964 lt_ac_max=$lt_ac_count
3965 lt_cv_path_SED=$lt_ac_sed
3966 fi
3967 done
3968done
3969SED=$lt_cv_path_SED
3970
John Criswell7a73b802003-06-30 21:59:07 +00003971fi
3972
John Criswell47fdd832003-07-14 16:52:07 +00003973echo "$as_me:$LINENO: result: $SED" >&5
3974echo "${ECHO_T}$SED" >&6
3975
3976echo "$as_me:$LINENO: checking for egrep" >&5
3977echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3978if test "${ac_cv_prog_egrep+set}" = set; then
3979 echo $ECHO_N "(cached) $ECHO_C" >&6
3980else
3981 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3982 then ac_cv_prog_egrep='grep -E'
3983 else ac_cv_prog_egrep='egrep'
3984 fi
3985fi
3986echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3987echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3988 EGREP=$ac_cv_prog_egrep
3989
3990
John Criswell7a73b802003-06-30 21:59:07 +00003991
3992# Check whether --with-gnu-ld or --without-gnu-ld was given.
3993if test "${with_gnu_ld+set}" = set; then
3994 withval="$with_gnu_ld"
3995 test "$withval" = no || with_gnu_ld=yes
3996else
3997 with_gnu_ld=no
3998fi;
3999ac_prog=ld
4000if test "$GCC" = yes; then
4001 # Check if gcc -print-prog-name=ld gives a path.
John Criswell47fdd832003-07-14 16:52:07 +00004002 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4003echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004004 case $host in
4005 *-*-mingw*)
4006 # gcc leaves a trailing carriage return which upsets mingw
4007 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4008 *)
4009 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4010 esac
4011 case $ac_prog in
4012 # Accept absolute paths.
John Criswell47fdd832003-07-14 16:52:07 +00004013 [\\/]* | ?:[\\/]*)
John Criswell7a73b802003-06-30 21:59:07 +00004014 re_direlt='/[^/][^/]*/\.\./'
4015 # Canonicalize the path of ld
John Criswell47fdd832003-07-14 16:52:07 +00004016 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
John Criswell7a73b802003-06-30 21:59:07 +00004017 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
John Criswell47fdd832003-07-14 16:52:07 +00004018 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
John Criswell7a73b802003-06-30 21:59:07 +00004019 done
4020 test -z "$LD" && LD="$ac_prog"
4021 ;;
4022 "")
4023 # If it fails, then pretend we aren't using GCC.
4024 ac_prog=ld
4025 ;;
4026 *)
4027 # If it is relative, then search for the first ld in PATH.
4028 with_gnu_ld=unknown
4029 ;;
4030 esac
4031elif test "$with_gnu_ld" = yes; then
4032 echo "$as_me:$LINENO: checking for GNU ld" >&5
4033echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4034else
4035 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4036echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4037fi
4038if test "${lt_cv_path_LD+set}" = set; then
4039 echo $ECHO_N "(cached) $ECHO_C" >&6
4040else
4041 if test -z "$LD"; then
John Criswell47fdd832003-07-14 16:52:07 +00004042 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00004043 for ac_dir in $PATH; do
John Criswell47fdd832003-07-14 16:52:07 +00004044 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004045 test -z "$ac_dir" && ac_dir=.
4046 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4047 lt_cv_path_LD="$ac_dir/$ac_prog"
4048 # Check to see if the program is GNU ld. I'd rather use --version,
4049 # but apparently some GNU ld's only accept -v.
4050 # Break only if it was the GNU/non-GNU ld that we prefer.
John Criswell47fdd832003-07-14 16:52:07 +00004051 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4052 *GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00004053 test "$with_gnu_ld" != no && break
John Criswell47fdd832003-07-14 16:52:07 +00004054 ;;
4055 *)
John Criswell7a73b802003-06-30 21:59:07 +00004056 test "$with_gnu_ld" != yes && break
John Criswell47fdd832003-07-14 16:52:07 +00004057 ;;
4058 esac
John Criswell7a73b802003-06-30 21:59:07 +00004059 fi
4060 done
John Criswell47fdd832003-07-14 16:52:07 +00004061 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004062else
4063 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4064fi
4065fi
4066
4067LD="$lt_cv_path_LD"
4068if test -n "$LD"; then
4069 echo "$as_me:$LINENO: result: $LD" >&5
4070echo "${ECHO_T}$LD" >&6
4071else
4072 echo "$as_me:$LINENO: result: no" >&5
4073echo "${ECHO_T}no" >&6
4074fi
4075test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4076echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4077 { (exit 1); exit 1; }; }
4078echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4079echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4080if test "${lt_cv_prog_gnu_ld+set}" = set; then
4081 echo $ECHO_N "(cached) $ECHO_C" >&6
4082else
4083 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +00004084case `"$LD" -v 2>&1 </dev/null` in
4085*GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00004086 lt_cv_prog_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +00004087 ;;
4088*)
John Criswell7a73b802003-06-30 21:59:07 +00004089 lt_cv_prog_gnu_ld=no
John Criswell47fdd832003-07-14 16:52:07 +00004090 ;;
4091esac
John Criswell7a73b802003-06-30 21:59:07 +00004092fi
4093echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4094echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4095with_gnu_ld=$lt_cv_prog_gnu_ld
4096
4097
4098echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4099echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4100if test "${lt_cv_ld_reload_flag+set}" = set; then
4101 echo $ECHO_N "(cached) $ECHO_C" >&6
4102else
4103 lt_cv_ld_reload_flag='-r'
4104fi
4105echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4106echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4107reload_flag=$lt_cv_ld_reload_flag
John Criswell47fdd832003-07-14 16:52:07 +00004108case $reload_flag in
4109"" | " "*) ;;
4110*) reload_flag=" $reload_flag" ;;
4111esac
4112reload_cmds='$LD$reload_flag -o $output$reload_objs'
John Criswell7a73b802003-06-30 21:59:07 +00004113
4114echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4115echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4116if test "${lt_cv_path_NM+set}" = set; then
4117 echo $ECHO_N "(cached) $ECHO_C" >&6
4118else
4119 if test -n "$NM"; then
4120 # Let the user override the test.
4121 lt_cv_path_NM="$NM"
4122else
John Criswell47fdd832003-07-14 16:52:07 +00004123 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00004124 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
John Criswell47fdd832003-07-14 16:52:07 +00004125 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004126 test -z "$ac_dir" && ac_dir=.
John Criswell47fdd832003-07-14 16:52:07 +00004127 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4128 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
John Criswell7a73b802003-06-30 21:59:07 +00004129 # Check to see if the nm accepts a BSD-compat flag.
4130 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4131 # nm: unknown option "B" ignored
4132 # Tru64's nm complains that /dev/null is an invalid object file
John Criswell47fdd832003-07-14 16:52:07 +00004133 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4134 */dev/null* | *'Invalid file or object type'*)
John Criswell7a73b802003-06-30 21:59:07 +00004135 lt_cv_path_NM="$tmp_nm -B"
4136 break
John Criswell47fdd832003-07-14 16:52:07 +00004137 ;;
4138 *)
4139 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4140 */dev/null*)
4141 lt_cv_path_NM="$tmp_nm -p"
4142 break
4143 ;;
4144 *)
4145 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4146 continue # so that we can try to find one that supports BSD flags
4147 ;;
4148 esac
4149 esac
John Criswell7a73b802003-06-30 21:59:07 +00004150 fi
4151 done
John Criswell47fdd832003-07-14 16:52:07 +00004152 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004153 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4154fi
4155fi
John Criswell47fdd832003-07-14 16:52:07 +00004156echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4157echo "${ECHO_T}$lt_cv_path_NM" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004158NM="$lt_cv_path_NM"
John Criswell7a73b802003-06-30 21:59:07 +00004159
4160echo "$as_me:$LINENO: checking whether ln -s works" >&5
4161echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4162LN_S=$as_ln_s
4163if test "$LN_S" = "ln -s"; then
4164 echo "$as_me:$LINENO: result: yes" >&5
4165echo "${ECHO_T}yes" >&6
4166else
4167 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4168echo "${ECHO_T}no, using $LN_S" >&6
4169fi
4170
John Criswell47fdd832003-07-14 16:52:07 +00004171echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4172echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004173if test "${lt_cv_deplibs_check_method+set}" = set; then
4174 echo $ECHO_N "(cached) $ECHO_C" >&6
4175else
4176 lt_cv_file_magic_cmd='$MAGIC_CMD'
4177lt_cv_file_magic_test_file=
4178lt_cv_deplibs_check_method='unknown'
4179# Need to set the preceding variable on all platforms that support
4180# interlibrary dependencies.
4181# 'none' -- dependencies not supported.
4182# `unknown' -- same as none, but documents that we really don't know.
4183# 'pass_all' -- all dependencies passed with no checks.
4184# 'test_compile' -- check by making test program.
4185# 'file_magic [[regex]]' -- check by looking for files in library path
John Criswell47fdd832003-07-14 16:52:07 +00004186# which responds to the $file_magic_cmd with a given extended regex.
John Criswell7a73b802003-06-30 21:59:07 +00004187# If you have `file' or equivalent on your system and you're not sure
4188# whether `pass_all' will *always* work, you probably want this one.
4189
4190case $host_os in
4191aix4* | aix5*)
4192 lt_cv_deplibs_check_method=pass_all
4193 ;;
4194
4195beos*)
4196 lt_cv_deplibs_check_method=pass_all
4197 ;;
4198
4199bsdi4*)
4200 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4201 lt_cv_file_magic_cmd='/usr/bin/file -L'
4202 lt_cv_file_magic_test_file=/shlib/libc.so
4203 ;;
4204
4205cygwin* | mingw* | pw32*)
John Criswell47fdd832003-07-14 16:52:07 +00004206 # win32_libid is a shell function defined in ltmain.sh
4207 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4208 lt_cv_file_magic_cmd='win32_libid'
John Criswell7a73b802003-06-30 21:59:07 +00004209 ;;
4210
4211darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +00004212 # this will be overwritten by pass_all, but leave it in just in case
John Criswell7a73b802003-06-30 21:59:07 +00004213 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4214 lt_cv_file_magic_cmd='/usr/bin/file -L'
4215 case "$host_os" in
4216 rhapsody* | darwin1.[012])
John Criswell47fdd832003-07-14 16:52:07 +00004217 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
John Criswell7a73b802003-06-30 21:59:07 +00004218 ;;
4219 *) # Darwin 1.3 on
4220 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4221 ;;
4222 esac
John Criswell47fdd832003-07-14 16:52:07 +00004223 lt_cv_deplibs_check_method=pass_all
John Criswell7a73b802003-06-30 21:59:07 +00004224 ;;
4225
4226freebsd*)
4227 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4228 case $host_cpu in
4229 i*86 )
4230 # Not sure whether the presence of OpenBSD here was a mistake.
4231 # Let's accept both of them until this is cleared up.
4232 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4233 lt_cv_file_magic_cmd=/usr/bin/file
4234 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4235 ;;
4236 esac
4237 else
4238 lt_cv_deplibs_check_method=pass_all
4239 fi
4240 ;;
4241
4242gnu*)
4243 lt_cv_deplibs_check_method=pass_all
4244 ;;
4245
John Criswell47fdd832003-07-14 16:52:07 +00004246hpux10.20* | hpux11*)
John Criswell7a73b802003-06-30 21:59:07 +00004247 lt_cv_file_magic_cmd=/usr/bin/file
John Criswell47fdd832003-07-14 16:52:07 +00004248 case "$host_cpu" in
4249 ia64*)
4250 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4251 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4252 ;;
4253 hppa*64*)
4254 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]'
4255 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4256 ;;
4257 *)
4258 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4259 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4260 ;;
4261 esac
John Criswell7a73b802003-06-30 21:59:07 +00004262 ;;
4263
John Criswell47fdd832003-07-14 16:52:07 +00004264irix5* | irix6* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00004265 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00004266 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00004267 # this will be overridden with pass_all, but let us keep it just in case
4268 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4269 ;;
4270 *)
4271 case $LD in
4272 *-32|*"-32 ") libmagic=32-bit;;
4273 *-n32|*"-n32 ") libmagic=N32;;
4274 *-64|*"-64 ") libmagic=64-bit;;
4275 *) libmagic=never-match;;
4276 esac
4277 # this will be overridden with pass_all, but let us keep it just in case
4278 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4279 ;;
4280 esac
4281 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4282 lt_cv_deplibs_check_method=pass_all
4283 ;;
4284
4285# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00004286linux*)
John Criswell7a73b802003-06-30 21:59:07 +00004287 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +00004288 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
John Criswell7a73b802003-06-30 21:59:07 +00004289 lt_cv_deplibs_check_method=pass_all ;;
4290 *)
4291 # glibc up to 2.1.1 does not perform some relocations on ARM
4292 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4293 esac
4294 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4295 ;;
4296
4297netbsd*)
4298 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00004299 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004300 else
John Criswell47fdd832003-07-14 16:52:07 +00004301 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004302 fi
4303 ;;
4304
4305newos6*)
4306 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4307 lt_cv_file_magic_cmd=/usr/bin/file
4308 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4309 ;;
4310
John Criswell47fdd832003-07-14 16:52:07 +00004311nto-qnx)
4312 lt_cv_deplibs_check_method=unknown
4313 ;;
4314
John Criswell7a73b802003-06-30 21:59:07 +00004315openbsd*)
4316 lt_cv_file_magic_cmd=/usr/bin/file
4317 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4318 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4319 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4320 else
4321 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4322 fi
4323 ;;
4324
4325osf3* | osf4* | osf5*)
4326 # this will be overridden with pass_all, but let us keep it just in case
4327 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4328 lt_cv_file_magic_test_file=/shlib/libc.so
4329 lt_cv_deplibs_check_method=pass_all
4330 ;;
4331
4332sco3.2v5*)
4333 lt_cv_deplibs_check_method=pass_all
4334 ;;
4335
4336solaris*)
4337 lt_cv_deplibs_check_method=pass_all
4338 lt_cv_file_magic_test_file=/lib/libc.so
4339 ;;
4340
John Criswell7a73b802003-06-30 21:59:07 +00004341sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4342 case $host_vendor in
4343 motorola)
4344 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]'
4345 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4346 ;;
4347 ncr)
4348 lt_cv_deplibs_check_method=pass_all
4349 ;;
4350 sequent)
4351 lt_cv_file_magic_cmd='/bin/file'
4352 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4353 ;;
4354 sni)
4355 lt_cv_file_magic_cmd='/bin/file'
4356 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4357 lt_cv_file_magic_test_file=/lib/libc.so
4358 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004359 siemens)
4360 lt_cv_deplibs_check_method=pass_all
4361 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004362 esac
4363 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004364
4365sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4366 lt_cv_deplibs_check_method=pass_all
4367 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004368esac
4369
4370fi
4371echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4372echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4373file_magic_cmd=$lt_cv_file_magic_cmd
4374deplibs_check_method=$lt_cv_deplibs_check_method
John Criswell47fdd832003-07-14 16:52:07 +00004375test -z "$deplibs_check_method" && deplibs_check_method=unknown
John Criswell7a73b802003-06-30 21:59:07 +00004376
4377
4378
4379
John Criswell47fdd832003-07-14 16:52:07 +00004380# If no C compiler was specified, use CC.
4381LTCC=${LTCC-"$CC"}
John Criswell7a73b802003-06-30 21:59:07 +00004382
John Criswell47fdd832003-07-14 16:52:07 +00004383# Allow CC to be a program name with arguments.
4384compiler=$CC
John Criswell7a73b802003-06-30 21:59:07 +00004385
John Criswell47fdd832003-07-14 16:52:07 +00004386# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4387if test "${enable_libtool_lock+set}" = set; then
4388 enableval="$enable_libtool_lock"
John Criswell7a73b802003-06-30 21:59:07 +00004389
John Criswell47fdd832003-07-14 16:52:07 +00004390fi;
4391test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
John Criswell7a73b802003-06-30 21:59:07 +00004392
John Criswell47fdd832003-07-14 16:52:07 +00004393# Some flags need to be propagated to the compiler or linker for good
4394# libtool support.
4395case $host in
4396ia64-*-hpux*)
4397 # Find out which ABI we are using.
4398 echo 'int i;' > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4400 (eval $ac_compile) 2>&5
4401 ac_status=$?
4402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403 (exit $ac_status); }; then
John Criswell47fdd832003-07-14 16:52:07 +00004404 case `/usr/bin/file conftest.$ac_objext` in
4405 *ELF-32*)
4406 HPUX_IA64_MODE="32"
4407 ;;
4408 *ELF-64*)
4409 HPUX_IA64_MODE="64"
4410 ;;
4411 esac
4412 fi
4413 rm -rf conftest*
4414 ;;
4415*-*-irix6*)
4416 # Find out which ABI we are using.
John Criswellc66bbd52003-09-29 21:35:32 +00004417 echo '#line 4417 "configure"' > conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00004418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4419 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004420 ac_status=$?
4421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004422 (exit $ac_status); }; then
4423 if test "$lt_cv_prog_gnu_ld" = yes; then
4424 case `/usr/bin/file conftest.$ac_objext` in
4425 *32-bit*)
4426 LD="${LD-ld} -melf32bsmip"
4427 ;;
4428 *N32*)
4429 LD="${LD-ld} -melf32bmipn32"
4430 ;;
4431 *64-bit*)
4432 LD="${LD-ld} -melf64bmip"
4433 ;;
4434 esac
4435 else
4436 case `/usr/bin/file conftest.$ac_objext` in
4437 *32-bit*)
4438 LD="${LD-ld} -32"
4439 ;;
4440 *N32*)
4441 LD="${LD-ld} -n32"
4442 ;;
4443 *64-bit*)
4444 LD="${LD-ld} -64"
4445 ;;
4446 esac
4447 fi
4448 fi
4449 rm -rf conftest*
4450 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004451
John Criswell47fdd832003-07-14 16:52:07 +00004452x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4453 # Find out which ABI we are using.
4454 echo 'int i;' > conftest.$ac_ext
4455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4456 (eval $ac_compile) 2>&5
4457 ac_status=$?
4458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459 (exit $ac_status); }; then
4460 case "`/usr/bin/file conftest.o`" in
4461 *32-bit*)
4462 case $host in
4463 x86_64-*linux*)
4464 LD="${LD-ld} -m elf_i386"
4465 ;;
4466 ppc64-*linux*)
4467 LD="${LD-ld} -m elf32ppclinux"
4468 ;;
4469 s390x-*linux*)
4470 LD="${LD-ld} -m elf_s390"
4471 ;;
4472 sparc64-*linux*)
4473 LD="${LD-ld} -m elf32_sparc"
4474 ;;
4475 esac
4476 ;;
4477 *64-bit*)
4478 case $host in
4479 x86_64-*linux*)
4480 LD="${LD-ld} -m elf_x86_64"
4481 ;;
4482 ppc*-*linux*|powerpc*-*linux*)
4483 LD="${LD-ld} -m elf64ppc"
4484 ;;
4485 s390*-*linux*)
4486 LD="${LD-ld} -m elf64_s390"
4487 ;;
4488 sparc*-*linux*)
4489 LD="${LD-ld} -m elf64_sparc"
4490 ;;
4491 esac
4492 ;;
4493 esac
4494 fi
4495 rm -rf conftest*
4496 ;;
4497
4498*-*-sco3.2v5*)
4499 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4500 SAVE_CFLAGS="$CFLAGS"
4501 CFLAGS="$CFLAGS -belf"
4502 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4503echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4504if test "${lt_cv_cc_needs_belf+set}" = set; then
4505 echo $ECHO_N "(cached) $ECHO_C" >&6
4506else
4507 ac_ext=c
4508ac_cpp='$CPP $CPPFLAGS'
4509ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4510ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4511ac_compiler_gnu=$ac_cv_c_compiler_gnu
4512
4513 cat >conftest.$ac_ext <<_ACEOF
4514#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004515/* confdefs.h. */
4516_ACEOF
4517cat confdefs.h >>conftest.$ac_ext
4518cat >>conftest.$ac_ext <<_ACEOF
4519/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004520
John Criswell47fdd832003-07-14 16:52:07 +00004521int
4522main ()
John Criswell7a73b802003-06-30 21:59:07 +00004523{
John Criswell7a73b802003-06-30 21:59:07 +00004524
John Criswell47fdd832003-07-14 16:52:07 +00004525 ;
4526 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004527}
John Criswell47fdd832003-07-14 16:52:07 +00004528_ACEOF
4529rm -f conftest.$ac_objext conftest$ac_exeext
4530if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
John Criswell7a73b802003-06-30 21:59:07 +00004531 (eval $ac_link) 2>&5
4532 ac_status=$?
4533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004534 (exit $ac_status); } &&
4535 { ac_try='test -s conftest$ac_exeext'
4536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4537 (eval $ac_try) 2>&5
4538 ac_status=$?
4539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540 (exit $ac_status); }; }; then
4541 lt_cv_cc_needs_belf=yes
John Criswell7a73b802003-06-30 21:59:07 +00004542else
John Criswell47fdd832003-07-14 16:52:07 +00004543 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004544sed 's/^/| /' conftest.$ac_ext >&5
4545
John Criswell47fdd832003-07-14 16:52:07 +00004546lt_cv_cc_needs_belf=no
John Criswell7a73b802003-06-30 21:59:07 +00004547fi
John Criswell47fdd832003-07-14 16:52:07 +00004548rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4549 ac_ext=c
4550ac_cpp='$CPP $CPPFLAGS'
4551ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4552ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4553ac_compiler_gnu=$ac_cv_c_compiler_gnu
4554
John Criswell7a73b802003-06-30 21:59:07 +00004555fi
John Criswell47fdd832003-07-14 16:52:07 +00004556echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4557echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4558 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4559 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4560 CFLAGS="$SAVE_CFLAGS"
4561 fi
4562 ;;
4563
4564esac
4565
4566need_locks="$enable_libtool_lock"
4567
John Criswell7a73b802003-06-30 21:59:07 +00004568
4569
4570echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4571echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4572if test "${ac_cv_header_stdc+set}" = set; then
4573 echo $ECHO_N "(cached) $ECHO_C" >&6
4574else
4575 cat >conftest.$ac_ext <<_ACEOF
4576#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004577/* confdefs.h. */
4578_ACEOF
4579cat confdefs.h >>conftest.$ac_ext
4580cat >>conftest.$ac_ext <<_ACEOF
4581/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004582#include <stdlib.h>
4583#include <stdarg.h>
4584#include <string.h>
4585#include <float.h>
4586
John Criswell0c38eaf2003-09-10 15:17:25 +00004587int
4588main ()
4589{
4590
4591 ;
4592 return 0;
4593}
John Criswell7a73b802003-06-30 21:59:07 +00004594_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004595rm -f conftest.$ac_objext
4596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4597 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004598 ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00004599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004600 (exit $ac_status); } &&
4601 { ac_try='test -s conftest.$ac_objext'
4602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4603 (eval $ac_try) 2>&5
4604 ac_status=$?
4605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004607 ac_cv_header_stdc=yes
4608else
4609 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004610sed 's/^/| /' conftest.$ac_ext >&5
4611
4612ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004613fi
John Criswell0c38eaf2003-09-10 15:17:25 +00004614rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004615
4616if test $ac_cv_header_stdc = yes; then
4617 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4618 cat >conftest.$ac_ext <<_ACEOF
4619#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004620/* confdefs.h. */
4621_ACEOF
4622cat confdefs.h >>conftest.$ac_ext
4623cat >>conftest.$ac_ext <<_ACEOF
4624/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004625#include <string.h>
4626
4627_ACEOF
4628if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004629 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004630 :
4631else
4632 ac_cv_header_stdc=no
4633fi
4634rm -f conftest*
4635
4636fi
4637
4638if test $ac_cv_header_stdc = yes; then
4639 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4640 cat >conftest.$ac_ext <<_ACEOF
4641#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004642/* confdefs.h. */
4643_ACEOF
4644cat confdefs.h >>conftest.$ac_ext
4645cat >>conftest.$ac_ext <<_ACEOF
4646/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004647#include <stdlib.h>
4648
4649_ACEOF
4650if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004651 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004652 :
4653else
4654 ac_cv_header_stdc=no
4655fi
4656rm -f conftest*
4657
4658fi
4659
4660if test $ac_cv_header_stdc = yes; then
4661 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4662 if test "$cross_compiling" = yes; then
4663 :
4664else
4665 cat >conftest.$ac_ext <<_ACEOF
4666#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004667/* confdefs.h. */
4668_ACEOF
4669cat confdefs.h >>conftest.$ac_ext
4670cat >>conftest.$ac_ext <<_ACEOF
4671/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004672#include <ctype.h>
4673#if ((' ' & 0x0FF) == 0x020)
4674# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4675# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4676#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004677# define ISLOWER(c) \
4678 (('a' <= (c) && (c) <= 'i') \
John Criswell7a73b802003-06-30 21:59:07 +00004679 || ('j' <= (c) && (c) <= 'r') \
4680 || ('s' <= (c) && (c) <= 'z'))
4681# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4682#endif
4683
4684#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4685int
4686main ()
4687{
4688 int i;
4689 for (i = 0; i < 256; i++)
4690 if (XOR (islower (i), ISLOWER (i))
4691 || toupper (i) != TOUPPER (i))
4692 exit(2);
4693 exit (0);
4694}
4695_ACEOF
4696rm -f conftest$ac_exeext
4697if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4698 (eval $ac_link) 2>&5
4699 ac_status=$?
4700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4703 (eval $ac_try) 2>&5
4704 ac_status=$?
4705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4706 (exit $ac_status); }; }; then
4707 :
4708else
4709 echo "$as_me: program exited with status $ac_status" >&5
4710echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004711sed 's/^/| /' conftest.$ac_ext >&5
4712
John Criswell7a73b802003-06-30 21:59:07 +00004713( exit $ac_status )
4714ac_cv_header_stdc=no
4715fi
John Criswell0c38eaf2003-09-10 15:17:25 +00004716rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004717fi
4718fi
4719fi
4720echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4721echo "${ECHO_T}$ac_cv_header_stdc" >&6
4722if test $ac_cv_header_stdc = yes; then
4723
4724cat >>confdefs.h <<\_ACEOF
4725#define STDC_HEADERS 1
4726_ACEOF
4727
4728fi
4729
4730# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4741 inttypes.h stdint.h unistd.h
4742do
4743as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4744echo "$as_me:$LINENO: checking for $ac_header" >&5
4745echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4746if eval "test \"\${$as_ac_Header+set}\" = set"; then
4747 echo $ECHO_N "(cached) $ECHO_C" >&6
4748else
4749 cat >conftest.$ac_ext <<_ACEOF
4750#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004751/* confdefs.h. */
4752_ACEOF
4753cat confdefs.h >>conftest.$ac_ext
4754cat >>conftest.$ac_ext <<_ACEOF
4755/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004756$ac_includes_default
4757
4758#include <$ac_header>
4759_ACEOF
4760rm -f conftest.$ac_objext
4761if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4762 (eval $ac_compile) 2>&5
4763 ac_status=$?
4764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765 (exit $ac_status); } &&
4766 { ac_try='test -s conftest.$ac_objext'
4767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4768 (eval $ac_try) 2>&5
4769 ac_status=$?
4770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771 (exit $ac_status); }; }; then
4772 eval "$as_ac_Header=yes"
4773else
4774 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004775sed 's/^/| /' conftest.$ac_ext >&5
4776
John Criswell7a73b802003-06-30 21:59:07 +00004777eval "$as_ac_Header=no"
4778fi
4779rm -f conftest.$ac_objext conftest.$ac_ext
4780fi
4781echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4782echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4783if test `eval echo '${'$as_ac_Header'}'` = yes; then
4784 cat >>confdefs.h <<_ACEOF
4785#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4786_ACEOF
4787
4788fi
4789
4790done
4791
4792
4793
4794for ac_header in dlfcn.h
4795do
4796as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4797if eval "test \"\${$as_ac_Header+set}\" = set"; then
4798 echo "$as_me:$LINENO: checking for $ac_header" >&5
4799echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4800if eval "test \"\${$as_ac_Header+set}\" = set"; then
4801 echo $ECHO_N "(cached) $ECHO_C" >&6
4802fi
4803echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4804echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4805else
4806 # Is the header compilable?
4807echo "$as_me:$LINENO: checking $ac_header usability" >&5
4808echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4809cat >conftest.$ac_ext <<_ACEOF
4810#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004811/* confdefs.h. */
4812_ACEOF
4813cat confdefs.h >>conftest.$ac_ext
4814cat >>conftest.$ac_ext <<_ACEOF
4815/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004816$ac_includes_default
4817#include <$ac_header>
4818_ACEOF
4819rm -f conftest.$ac_objext
4820if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4821 (eval $ac_compile) 2>&5
4822 ac_status=$?
4823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824 (exit $ac_status); } &&
4825 { ac_try='test -s conftest.$ac_objext'
4826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4827 (eval $ac_try) 2>&5
4828 ac_status=$?
4829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830 (exit $ac_status); }; }; then
4831 ac_header_compiler=yes
4832else
4833 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004834sed 's/^/| /' conftest.$ac_ext >&5
4835
John Criswell7a73b802003-06-30 21:59:07 +00004836ac_header_compiler=no
4837fi
4838rm -f conftest.$ac_objext conftest.$ac_ext
4839echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4840echo "${ECHO_T}$ac_header_compiler" >&6
4841
4842# Is the header present?
4843echo "$as_me:$LINENO: checking $ac_header presence" >&5
4844echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4845cat >conftest.$ac_ext <<_ACEOF
4846#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004847/* confdefs.h. */
4848_ACEOF
4849cat confdefs.h >>conftest.$ac_ext
4850cat >>conftest.$ac_ext <<_ACEOF
4851/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004852#include <$ac_header>
4853_ACEOF
4854if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4855 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4856 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004857 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004858 rm -f conftest.er1
4859 cat conftest.err >&5
4860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4861 (exit $ac_status); } >/dev/null; then
4862 if test -s conftest.err; then
4863 ac_cpp_err=$ac_c_preproc_warn_flag
4864 else
4865 ac_cpp_err=
4866 fi
4867else
4868 ac_cpp_err=yes
4869fi
4870if test -z "$ac_cpp_err"; then
4871 ac_header_preproc=yes
4872else
4873 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004874sed 's/^/| /' conftest.$ac_ext >&5
4875
John Criswell7a73b802003-06-30 21:59:07 +00004876 ac_header_preproc=no
4877fi
4878rm -f conftest.err conftest.$ac_ext
4879echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4880echo "${ECHO_T}$ac_header_preproc" >&6
4881
4882# So? What about this header?
4883case $ac_header_compiler:$ac_header_preproc in
4884 yes:no )
4885 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4886echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4887 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004888echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4889 (
4890 cat <<\_ASBOX
4891## ------------------------------------ ##
4892## Report this to bug-autoconf@gnu.org. ##
4893## ------------------------------------ ##
4894_ASBOX
4895 ) |
4896 sed "s/^/$as_me: WARNING: /" >&2
4897 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004898 no:yes )
4899 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4900echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4901 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4902echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4903 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004904echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4905 (
4906 cat <<\_ASBOX
4907## ------------------------------------ ##
4908## Report this to bug-autoconf@gnu.org. ##
4909## ------------------------------------ ##
4910_ASBOX
4911 ) |
4912 sed "s/^/$as_me: WARNING: /" >&2
4913 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004914esac
4915echo "$as_me:$LINENO: checking for $ac_header" >&5
4916echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4917if eval "test \"\${$as_ac_Header+set}\" = set"; then
4918 echo $ECHO_N "(cached) $ECHO_C" >&6
4919else
4920 eval "$as_ac_Header=$ac_header_preproc"
4921fi
4922echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4923echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4924
4925fi
4926if test `eval echo '${'$as_ac_Header'}'` = yes; then
4927 cat >>confdefs.h <<_ACEOF
4928#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4929_ACEOF
4930
4931fi
4932
4933done
4934
John Criswell47fdd832003-07-14 16:52:07 +00004935ac_ext=cc
4936ac_cpp='$CXXCPP $CPPFLAGS'
4937ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4938ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4939ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4940echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4941echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4942if test -z "$CXXCPP"; then
4943 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004944 echo $ECHO_N "(cached) $ECHO_C" >&6
4945else
John Criswell47fdd832003-07-14 16:52:07 +00004946 # Double quotes because CXXCPP needs to be expanded
4947 for CXXCPP in "$CXX -E" "/lib/cpp"
4948 do
4949 ac_preproc_ok=false
4950for ac_cxx_preproc_warn_flag in '' yes
4951do
4952 # Use a header file that comes with gcc, so configuring glibc
4953 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00004954 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4955 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00004956 # On the NeXT, cc -E runs the code through the compiler's parser,
4957 # not just through cpp. "Syntax error" is here to catch this case.
4958 cat >conftest.$ac_ext <<_ACEOF
4959#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004960/* confdefs.h. */
4961_ACEOF
4962cat confdefs.h >>conftest.$ac_ext
4963cat >>conftest.$ac_ext <<_ACEOF
4964/* end confdefs.h. */
4965#ifdef __STDC__
4966# include <limits.h>
4967#else
4968# include <assert.h>
4969#endif
John Criswell47fdd832003-07-14 16:52:07 +00004970 Syntax error
4971_ACEOF
4972if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4973 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4974 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004975 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004976 rm -f conftest.er1
4977 cat conftest.err >&5
4978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979 (exit $ac_status); } >/dev/null; then
4980 if test -s conftest.err; then
4981 ac_cpp_err=$ac_cxx_preproc_warn_flag
John Criswell7a73b802003-06-30 21:59:07 +00004982 else
John Criswell47fdd832003-07-14 16:52:07 +00004983 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +00004984 fi
John Criswell47fdd832003-07-14 16:52:07 +00004985else
4986 ac_cpp_err=yes
4987fi
4988if test -z "$ac_cpp_err"; then
4989 :
4990else
4991 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004992sed 's/^/| /' conftest.$ac_ext >&5
4993
John Criswell47fdd832003-07-14 16:52:07 +00004994 # Broken: fails on valid input.
4995continue
4996fi
4997rm -f conftest.err conftest.$ac_ext
4998
4999 # OK, works on sane cases. Now check whether non-existent headers
5000 # can be detected and how.
5001 cat >conftest.$ac_ext <<_ACEOF
5002#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00005003/* confdefs.h. */
5004_ACEOF
5005cat confdefs.h >>conftest.$ac_ext
5006cat >>conftest.$ac_ext <<_ACEOF
5007/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00005008#include <ac_nonexistent.h>
5009_ACEOF
5010if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5011 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5012 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00005013 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00005014 rm -f conftest.er1
5015 cat conftest.err >&5
5016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017 (exit $ac_status); } >/dev/null; then
5018 if test -s conftest.err; then
5019 ac_cpp_err=$ac_cxx_preproc_warn_flag
5020 else
5021 ac_cpp_err=
5022 fi
5023else
5024 ac_cpp_err=yes
5025fi
5026if test -z "$ac_cpp_err"; then
5027 # Broken: success on invalid input.
5028continue
5029else
5030 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005031sed 's/^/| /' conftest.$ac_ext >&5
5032
John Criswell47fdd832003-07-14 16:52:07 +00005033 # Passes both tests.
5034ac_preproc_ok=:
5035break
5036fi
5037rm -f conftest.err conftest.$ac_ext
5038
5039done
5040# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5041rm -f conftest.err conftest.$ac_ext
5042if $ac_preproc_ok; then
5043 break
John Criswell7a73b802003-06-30 21:59:07 +00005044fi
5045
John Criswell47fdd832003-07-14 16:52:07 +00005046 done
5047 ac_cv_prog_CXXCPP=$CXXCPP
5048
5049fi
5050 CXXCPP=$ac_cv_prog_CXXCPP
5051else
5052 ac_cv_prog_CXXCPP=$CXXCPP
5053fi
5054echo "$as_me:$LINENO: result: $CXXCPP" >&5
5055echo "${ECHO_T}$CXXCPP" >&6
5056ac_preproc_ok=false
5057for ac_cxx_preproc_warn_flag in '' yes
5058do
5059 # Use a header file that comes with gcc, so configuring glibc
5060 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00005061 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5062 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00005063 # On the NeXT, cc -E runs the code through the compiler's parser,
5064 # not just through cpp. "Syntax error" is here to catch this case.
5065 cat >conftest.$ac_ext <<_ACEOF
5066#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00005067/* confdefs.h. */
5068_ACEOF
5069cat confdefs.h >>conftest.$ac_ext
5070cat >>conftest.$ac_ext <<_ACEOF
5071/* end confdefs.h. */
5072#ifdef __STDC__
5073# include <limits.h>
5074#else
5075# include <assert.h>
5076#endif
John Criswell47fdd832003-07-14 16:52:07 +00005077 Syntax error
5078_ACEOF
5079if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5080 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5081 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00005082 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00005083 rm -f conftest.er1
5084 cat conftest.err >&5
5085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086 (exit $ac_status); } >/dev/null; then
5087 if test -s conftest.err; then
5088 ac_cpp_err=$ac_cxx_preproc_warn_flag
5089 else
5090 ac_cpp_err=
5091 fi
5092else
5093 ac_cpp_err=yes
5094fi
5095if test -z "$ac_cpp_err"; then
5096 :
5097else
5098 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005099sed 's/^/| /' conftest.$ac_ext >&5
5100
John Criswell47fdd832003-07-14 16:52:07 +00005101 # Broken: fails on valid input.
5102continue
5103fi
5104rm -f conftest.err conftest.$ac_ext
5105
5106 # OK, works on sane cases. Now check whether non-existent headers
5107 # can be detected and how.
5108 cat >conftest.$ac_ext <<_ACEOF
5109#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00005110/* confdefs.h. */
5111_ACEOF
5112cat confdefs.h >>conftest.$ac_ext
5113cat >>conftest.$ac_ext <<_ACEOF
5114/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00005115#include <ac_nonexistent.h>
5116_ACEOF
5117if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5118 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5119 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00005120 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00005121 rm -f conftest.er1
5122 cat conftest.err >&5
5123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5124 (exit $ac_status); } >/dev/null; then
5125 if test -s conftest.err; then
5126 ac_cpp_err=$ac_cxx_preproc_warn_flag
5127 else
5128 ac_cpp_err=
5129 fi
5130else
5131 ac_cpp_err=yes
5132fi
5133if test -z "$ac_cpp_err"; then
5134 # Broken: success on invalid input.
5135continue
5136else
5137 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005138sed 's/^/| /' conftest.$ac_ext >&5
5139
John Criswell47fdd832003-07-14 16:52:07 +00005140 # Passes both tests.
5141ac_preproc_ok=:
5142break
5143fi
5144rm -f conftest.err conftest.$ac_ext
5145
5146done
5147# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5148rm -f conftest.err conftest.$ac_ext
5149if $ac_preproc_ok; then
5150 :
5151else
John Criswell0c38eaf2003-09-10 15:17:25 +00005152 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5153See \`config.log' for more details." >&5
5154echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5155See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +00005156 { (exit 1); exit 1; }; }
5157fi
5158
5159ac_ext=cc
5160ac_cpp='$CXXCPP $CPPFLAGS'
5161ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5162ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5163ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5164
5165
5166ac_ext=f
5167ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5168ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5169ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5170if test -n "$ac_tool_prefix"; then
John Criswell0c38eaf2003-09-10 15:17:25 +00005171 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 +00005172 do
5173 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5174set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5175echo "$as_me:$LINENO: checking for $ac_word" >&5
5176echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5177if test "${ac_cv_prog_F77+set}" = set; then
5178 echo $ECHO_N "(cached) $ECHO_C" >&6
5179else
5180 if test -n "$F77"; then
5181 ac_cv_prog_F77="$F77" # Let the user override the test.
5182else
5183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5184for as_dir in $PATH
5185do
5186 IFS=$as_save_IFS
5187 test -z "$as_dir" && as_dir=.
5188 for ac_exec_ext in '' $ac_executable_extensions; do
5189 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5190 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5192 break 2
5193 fi
5194done
5195done
5196
5197fi
5198fi
5199F77=$ac_cv_prog_F77
5200if test -n "$F77"; then
5201 echo "$as_me:$LINENO: result: $F77" >&5
5202echo "${ECHO_T}$F77" >&6
5203else
5204 echo "$as_me:$LINENO: result: no" >&5
5205echo "${ECHO_T}no" >&6
5206fi
5207
5208 test -n "$F77" && break
5209 done
5210fi
5211if test -z "$F77"; then
5212 ac_ct_F77=$F77
John Criswell0c38eaf2003-09-10 15:17:25 +00005213 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 +00005214do
5215 # Extract the first word of "$ac_prog", so it can be a program name with args.
5216set dummy $ac_prog; ac_word=$2
5217echo "$as_me:$LINENO: checking for $ac_word" >&5
5218echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5219if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5220 echo $ECHO_N "(cached) $ECHO_C" >&6
5221else
5222 if test -n "$ac_ct_F77"; then
5223 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5224else
5225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5226for as_dir in $PATH
5227do
5228 IFS=$as_save_IFS
5229 test -z "$as_dir" && as_dir=.
5230 for ac_exec_ext in '' $ac_executable_extensions; do
5231 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5232 ac_cv_prog_ac_ct_F77="$ac_prog"
5233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5234 break 2
5235 fi
5236done
5237done
5238
5239fi
5240fi
5241ac_ct_F77=$ac_cv_prog_ac_ct_F77
5242if test -n "$ac_ct_F77"; then
5243 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5244echo "${ECHO_T}$ac_ct_F77" >&6
5245else
5246 echo "$as_me:$LINENO: result: no" >&5
5247echo "${ECHO_T}no" >&6
5248fi
5249
5250 test -n "$ac_ct_F77" && break
5251done
5252
5253 F77=$ac_ct_F77
5254fi
5255
5256
5257# Provide some information about the compiler.
John Criswellc66bbd52003-09-29 21:35:32 +00005258echo "$as_me:5258:" \
John Criswell47fdd832003-07-14 16:52:07 +00005259 "checking for Fortran 77 compiler version" >&5
5260ac_compiler=`set X $ac_compile; echo $2`
5261{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5262 (eval $ac_compiler --version </dev/null >&5) 2>&5
5263 ac_status=$?
5264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265 (exit $ac_status); }
5266{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5267 (eval $ac_compiler -v </dev/null >&5) 2>&5
5268 ac_status=$?
5269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270 (exit $ac_status); }
5271{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5272 (eval $ac_compiler -V </dev/null >&5) 2>&5
5273 ac_status=$?
5274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275 (exit $ac_status); }
5276
5277# If we don't use `.F' as extension, the preprocessor is not run on the
5278# input file.
5279ac_save_ext=$ac_ext
5280ac_ext=F
5281echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5282echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5283if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5284 echo $ECHO_N "(cached) $ECHO_C" >&6
5285else
5286 cat >conftest.$ac_ext <<_ACEOF
5287 program main
5288#ifndef __GNUC__
5289 choke me
5290#endif
5291
5292 end
5293_ACEOF
5294rm -f conftest.$ac_objext
5295if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5296 (eval $ac_compile) 2>&5
5297 ac_status=$?
5298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299 (exit $ac_status); } &&
5300 { ac_try='test -s conftest.$ac_objext'
5301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5302 (eval $ac_try) 2>&5
5303 ac_status=$?
5304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305 (exit $ac_status); }; }; then
5306 ac_compiler_gnu=yes
5307else
5308 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005309sed 's/^/| /' conftest.$ac_ext >&5
5310
John Criswell47fdd832003-07-14 16:52:07 +00005311ac_compiler_gnu=no
5312fi
5313rm -f conftest.$ac_objext conftest.$ac_ext
5314ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5315
5316fi
5317echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5318echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5319ac_ext=$ac_save_ext
5320G77=`test $ac_compiler_gnu = yes && echo yes`
5321ac_test_FFLAGS=${FFLAGS+set}
5322ac_save_FFLAGS=$FFLAGS
5323FFLAGS=
5324echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5325echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5326if test "${ac_cv_prog_f77_g+set}" = set; then
5327 echo $ECHO_N "(cached) $ECHO_C" >&6
5328else
5329 FFLAGS=-g
5330cat >conftest.$ac_ext <<_ACEOF
5331 program main
5332
5333 end
5334_ACEOF
5335rm -f conftest.$ac_objext
5336if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5337 (eval $ac_compile) 2>&5
5338 ac_status=$?
5339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340 (exit $ac_status); } &&
5341 { ac_try='test -s conftest.$ac_objext'
5342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5343 (eval $ac_try) 2>&5
5344 ac_status=$?
5345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346 (exit $ac_status); }; }; then
5347 ac_cv_prog_f77_g=yes
5348else
5349 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005350sed 's/^/| /' conftest.$ac_ext >&5
5351
John Criswell47fdd832003-07-14 16:52:07 +00005352ac_cv_prog_f77_g=no
5353fi
5354rm -f conftest.$ac_objext conftest.$ac_ext
5355
5356fi
5357echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5358echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5359if test "$ac_test_FFLAGS" = set; then
5360 FFLAGS=$ac_save_FFLAGS
5361elif test $ac_cv_prog_f77_g = yes; then
5362 if test "$G77" = yes; then
5363 FFLAGS="-g -O2"
5364 else
5365 FFLAGS="-g"
5366 fi
5367else
5368 if test "$G77" = yes; then
5369 FFLAGS="-O2"
5370 else
5371 FFLAGS=
5372 fi
5373fi
5374ac_ext=c
5375ac_cpp='$CPP $CPPFLAGS'
5376ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5377ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5378ac_compiler_gnu=$ac_cv_c_compiler_gnu
5379
5380
5381
5382# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5383
5384# find the maximum length of command line arguments
5385echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5386echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5387if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5388 echo $ECHO_N "(cached) $ECHO_C" >&6
5389else
5390 i=0
5391 testring="ABCD"
5392
5393 case $build_os in
5394 msdosdjgpp*)
5395 # On DJGPP, this test can blow up pretty badly due to problems in libc
5396 # (any single argument exceeding 2000 bytes causes a buffer overrun
5397 # during glob expansion). Even if it were fixed, the result of this
5398 # check would be larger than it should be.
5399 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5400 ;;
5401
5402 gnu*)
5403 # Under GNU Hurd, this test is not required because there is
5404 # no limit to the length of command line arguments.
5405 # Libtool will interpret -1 as no limit whatsoever
5406 lt_cv_sys_max_cmd_len=-1;
5407 ;;
5408
5409 cygwin* | mingw*)
5410 # On Win9x/ME, this test blows up -- it succeeds, but takes
5411 # about 5 minutes as the teststring grows exponentially.
5412 # Worse, since 9x/ME are not pre-emptively multitasking,
5413 # you end up with a "frozen" computer, even though with patience
5414 # the test eventually succeeds (with a max line length of 256k).
5415 # Instead, let's just punt: use the minimum linelength reported by
5416 # all of the supported platforms: 8192 (on NT/2K/XP).
5417 lt_cv_sys_max_cmd_len=8192;
5418 ;;
5419
5420 *)
5421 # If test is not a shell built-in, we'll probably end up computing a
5422 # maximum length that is only half of the actual maximum length, but
5423 # we can't tell.
5424 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5425 = "XX$testring") >/dev/null 2>&1 &&
5426 new_result=`expr "X$testring" : ".*" 2>&1` &&
5427 lt_cv_sys_max_cmd_len=$new_result &&
5428 test $i != 17 # 1/2 MB should be enough
5429 do
5430 i=`expr $i + 1`
5431 testring=$testring$testring
5432 done
5433 testring=
5434 # Add a significant safety factor because C++ compilers can tack on massive
5435 # amounts of additional arguments before passing them to the linker.
5436 # It appears as though 1/2 is a usable value.
5437 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5438 ;;
5439 esac
5440
5441fi
5442
5443if test -n $lt_cv_sys_max_cmd_len ; then
5444 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5445echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5446else
5447 echo "$as_me:$LINENO: result: none" >&5
5448echo "${ECHO_T}none" >&6
5449fi
5450
5451
5452
5453
5454# Check for command to grab the raw symbol name followed by C symbol from nm.
5455echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5456echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5457if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5458 echo $ECHO_N "(cached) $ECHO_C" >&6
5459else
5460
5461# These are sane defaults that work on at least a few old systems.
5462# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5463
5464# Character class describing NM global symbol codes.
5465symcode='[BCDEGRST]'
5466
5467# Regexp to match symbols that can be accessed directly from C.
5468sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5469
5470# Transform the above into a raw symbol and a C symbol.
5471symxfrm='\1 \2\3 \3'
5472
5473# Transform an extracted symbol line into a proper C declaration
5474lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5475
5476# Transform an extracted symbol line into symbol name and symbol address
5477lt_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'"
5478
5479# Define system-specific variables.
5480case $host_os in
5481aix*)
5482 symcode='[BCDT]'
5483 ;;
5484cygwin* | mingw* | pw32*)
5485 symcode='[ABCDGISTW]'
5486 ;;
5487hpux*) # Its linker distinguishes data from code symbols
5488 if test "$host_cpu" = ia64; then
5489 symcode='[ABCDEGRST]'
5490 fi
5491 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5492 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'"
5493 ;;
5494irix* | nonstopux*)
5495 symcode='[BCDEGRST]'
5496 ;;
5497osf*)
5498 symcode='[BCDEGQRST]'
5499 ;;
5500solaris* | sysv5*)
5501 symcode='[BDT]'
5502 ;;
5503sysv4)
5504 symcode='[DFNSTU]'
5505 ;;
5506esac
5507
5508# Handle CRLF in mingw tool chain
5509opt_cr=
5510case $build_os in
5511mingw*)
5512 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5513 ;;
5514esac
5515
5516# If we're using GNU nm, then use its standard symbol codes.
5517case `$NM -V 2>&1` in
5518*GNU* | *'with BFD'*)
5519 symcode='[ABCDGISTW]' ;;
5520esac
5521
5522# Try without a prefix undercore, then with it.
5523for ac_symprfx in "" "_"; do
5524
5525 # Write the raw and C identifiers.
5526 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5527
5528 # Check to see that the pipe works correctly.
5529 pipe_works=no
5530
5531 rm -f conftest*
5532 cat > conftest.$ac_ext <<EOF
5533#ifdef __cplusplus
5534extern "C" {
5535#endif
5536char nm_test_var;
5537void nm_test_func(){}
5538#ifdef __cplusplus
5539}
5540#endif
5541int main(){nm_test_var='a';nm_test_func();return(0);}
5542EOF
5543
5544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5545 (eval $ac_compile) 2>&5
5546 ac_status=$?
5547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548 (exit $ac_status); }; then
5549 # Now try to grab the symbols.
5550 nlist=conftest.nm
5551 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5552 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5553 ac_status=$?
5554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555 (exit $ac_status); } && test -s "$nlist"; then
5556 # Try sorting and uniquifying the output.
5557 if sort "$nlist" | uniq > "$nlist"T; then
5558 mv -f "$nlist"T "$nlist"
5559 else
5560 rm -f "$nlist"T
5561 fi
5562
5563 # Make sure that we snagged all the symbols we need.
5564 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5565 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5566 cat <<EOF > conftest.$ac_ext
5567#ifdef __cplusplus
5568extern "C" {
5569#endif
5570
5571EOF
5572 # Now generate the symbol file.
5573 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5574
5575 cat <<EOF >> conftest.$ac_ext
5576#if defined (__STDC__) && __STDC__
5577# define lt_ptr_t void *
5578#else
5579# define lt_ptr_t char *
5580# define const
5581#endif
5582
5583/* The mapping between symbol names and symbols. */
5584const struct {
5585 const char *name;
5586 lt_ptr_t address;
5587}
5588lt_preloaded_symbols[] =
5589{
5590EOF
5591 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5592 cat <<\EOF >> conftest.$ac_ext
5593 {0, (lt_ptr_t) 0}
5594};
5595
5596#ifdef __cplusplus
5597}
5598#endif
5599EOF
5600 # Now try linking the two files.
5601 mv conftest.$ac_objext conftstm.$ac_objext
5602 lt_save_LIBS="$LIBS"
5603 lt_save_CFLAGS="$CFLAGS"
5604 LIBS="conftstm.$ac_objext"
5605 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5607 (eval $ac_link) 2>&5
5608 ac_status=$?
5609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5611 pipe_works=yes
5612 fi
5613 LIBS="$lt_save_LIBS"
5614 CFLAGS="$lt_save_CFLAGS"
5615 else
5616 echo "cannot find nm_test_func in $nlist" >&5
5617 fi
5618 else
5619 echo "cannot find nm_test_var in $nlist" >&5
5620 fi
5621 else
5622 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5623 fi
5624 else
5625 echo "$progname: failed program was:" >&5
5626 cat conftest.$ac_ext >&5
5627 fi
5628 rm -f conftest* conftst*
5629
5630 # Do not use the global_symbol_pipe unless it works.
5631 if test "$pipe_works" = yes; then
5632 break
5633 else
5634 lt_cv_sys_global_symbol_pipe=
5635 fi
5636done
5637
5638fi
5639
5640if test -z "$lt_cv_sys_global_symbol_pipe"; then
5641 lt_cv_sys_global_symbol_to_cdecl=
5642fi
5643if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5644 echo "$as_me:$LINENO: result: failed" >&5
5645echo "${ECHO_T}failed" >&6
5646else
5647 echo "$as_me:$LINENO: result: ok" >&5
5648echo "${ECHO_T}ok" >&6
5649fi
5650
5651echo "$as_me:$LINENO: checking for objdir" >&5
5652echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5653if test "${lt_cv_objdir+set}" = set; then
5654 echo $ECHO_N "(cached) $ECHO_C" >&6
5655else
5656 rm -f .libs 2>/dev/null
5657mkdir .libs 2>/dev/null
5658if test -d .libs; then
5659 lt_cv_objdir=.libs
5660else
5661 # MS-DOS does not allow filenames that begin with a dot.
5662 lt_cv_objdir=_libs
5663fi
5664rmdir .libs 2>/dev/null
5665fi
5666echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5667echo "${ECHO_T}$lt_cv_objdir" >&6
5668objdir=$lt_cv_objdir
5669
5670
5671
5672
5673
5674case $host_os in
5675aix3*)
5676 # AIX sometimes has problems with the GCC collect2 program. For some
5677 # reason, if we set the COLLECT_NAMES environment variable, the problems
5678 # vanish in a puff of smoke.
5679 if test "X${COLLECT_NAMES+set}" != Xset; then
5680 COLLECT_NAMES=
5681 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +00005682 fi
5683 ;;
5684esac
5685
John Criswell47fdd832003-07-14 16:52:07 +00005686# Sed substitution that helps us do robust quoting. It backslashifies
5687# metacharacters that are still active within double-quoted strings.
5688Xsed='sed -e s/^X//'
5689sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5690
5691# Same as above, but do not quote variable references.
5692double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5693
5694# Sed substitution to delay expansion of an escaped shell variable in a
5695# double_quote_subst'ed string.
5696delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5697
5698# Sed substitution to avoid accidental globbing in evaled expressions
5699no_glob_subst='s/\*/\\\*/g'
5700
5701# Constants:
5702rm="rm -f"
5703
5704# Global variables:
John Criswell8d4221e2003-07-23 16:52:50 +00005705default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +00005706can_build_shared=yes
5707
5708# All known linkers require a `.a' archive for static linking (except M$VC,
5709# which needs '.lib').
5710libext=a
5711ltmain="$ac_aux_dir/ltmain.sh"
5712ofile="$default_ofile"
5713with_gnu_ld="$lt_cv_prog_gnu_ld"
5714
5715if test -n "$ac_tool_prefix"; then
5716 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5717set dummy ${ac_tool_prefix}ar; ac_word=$2
5718echo "$as_me:$LINENO: checking for $ac_word" >&5
5719echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5720if test "${ac_cv_prog_AR+set}" = set; then
5721 echo $ECHO_N "(cached) $ECHO_C" >&6
5722else
5723 if test -n "$AR"; then
5724 ac_cv_prog_AR="$AR" # Let the user override the test.
5725else
5726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5727for as_dir in $PATH
5728do
5729 IFS=$as_save_IFS
5730 test -z "$as_dir" && as_dir=.
5731 for ac_exec_ext in '' $ac_executable_extensions; do
5732 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5733 ac_cv_prog_AR="${ac_tool_prefix}ar"
5734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5735 break 2
5736 fi
5737done
5738done
5739
5740fi
5741fi
5742AR=$ac_cv_prog_AR
5743if test -n "$AR"; then
5744 echo "$as_me:$LINENO: result: $AR" >&5
5745echo "${ECHO_T}$AR" >&6
5746else
5747 echo "$as_me:$LINENO: result: no" >&5
5748echo "${ECHO_T}no" >&6
5749fi
5750
5751fi
5752if test -z "$ac_cv_prog_AR"; then
5753 ac_ct_AR=$AR
5754 # Extract the first word of "ar", so it can be a program name with args.
5755set dummy ar; ac_word=$2
5756echo "$as_me:$LINENO: checking for $ac_word" >&5
5757echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5758if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5759 echo $ECHO_N "(cached) $ECHO_C" >&6
5760else
5761 if test -n "$ac_ct_AR"; then
5762 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5763else
5764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5765for as_dir in $PATH
5766do
5767 IFS=$as_save_IFS
5768 test -z "$as_dir" && as_dir=.
5769 for ac_exec_ext in '' $ac_executable_extensions; do
5770 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5771 ac_cv_prog_ac_ct_AR="ar"
5772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5773 break 2
5774 fi
5775done
5776done
5777
5778 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5779fi
5780fi
5781ac_ct_AR=$ac_cv_prog_ac_ct_AR
5782if test -n "$ac_ct_AR"; then
5783 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5784echo "${ECHO_T}$ac_ct_AR" >&6
5785else
5786 echo "$as_me:$LINENO: result: no" >&5
5787echo "${ECHO_T}no" >&6
5788fi
5789
5790 AR=$ac_ct_AR
5791else
5792 AR="$ac_cv_prog_AR"
5793fi
5794
John Criswell7a73b802003-06-30 21:59:07 +00005795if test -n "$ac_tool_prefix"; then
5796 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5797set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5798echo "$as_me:$LINENO: checking for $ac_word" >&5
5799echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5800if test "${ac_cv_prog_RANLIB+set}" = set; then
5801 echo $ECHO_N "(cached) $ECHO_C" >&6
5802else
5803 if test -n "$RANLIB"; then
5804 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5805else
5806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5807for as_dir in $PATH
5808do
5809 IFS=$as_save_IFS
5810 test -z "$as_dir" && as_dir=.
5811 for ac_exec_ext in '' $ac_executable_extensions; do
5812 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5813 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5815 break 2
5816 fi
5817done
5818done
5819
5820fi
5821fi
5822RANLIB=$ac_cv_prog_RANLIB
5823if test -n "$RANLIB"; then
5824 echo "$as_me:$LINENO: result: $RANLIB" >&5
5825echo "${ECHO_T}$RANLIB" >&6
5826else
5827 echo "$as_me:$LINENO: result: no" >&5
5828echo "${ECHO_T}no" >&6
5829fi
5830
5831fi
5832if test -z "$ac_cv_prog_RANLIB"; then
5833 ac_ct_RANLIB=$RANLIB
5834 # Extract the first word of "ranlib", so it can be a program name with args.
5835set dummy ranlib; ac_word=$2
5836echo "$as_me:$LINENO: checking for $ac_word" >&5
5837echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5838if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5839 echo $ECHO_N "(cached) $ECHO_C" >&6
5840else
5841 if test -n "$ac_ct_RANLIB"; then
5842 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5843else
5844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5845for as_dir in $PATH
5846do
5847 IFS=$as_save_IFS
5848 test -z "$as_dir" && as_dir=.
5849 for ac_exec_ext in '' $ac_executable_extensions; do
5850 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5851 ac_cv_prog_ac_ct_RANLIB="ranlib"
5852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5853 break 2
5854 fi
5855done
5856done
5857
5858 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5859fi
5860fi
5861ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5862if test -n "$ac_ct_RANLIB"; then
5863 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5864echo "${ECHO_T}$ac_ct_RANLIB" >&6
5865else
5866 echo "$as_me:$LINENO: result: no" >&5
5867echo "${ECHO_T}no" >&6
5868fi
5869
5870 RANLIB=$ac_ct_RANLIB
5871else
5872 RANLIB="$ac_cv_prog_RANLIB"
5873fi
5874
5875if test -n "$ac_tool_prefix"; then
5876 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5877set dummy ${ac_tool_prefix}strip; ac_word=$2
5878echo "$as_me:$LINENO: checking for $ac_word" >&5
5879echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5880if test "${ac_cv_prog_STRIP+set}" = set; then
5881 echo $ECHO_N "(cached) $ECHO_C" >&6
5882else
5883 if test -n "$STRIP"; then
5884 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5885else
5886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5887for as_dir in $PATH
5888do
5889 IFS=$as_save_IFS
5890 test -z "$as_dir" && as_dir=.
5891 for ac_exec_ext in '' $ac_executable_extensions; do
5892 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5893 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5895 break 2
5896 fi
5897done
5898done
5899
5900fi
5901fi
5902STRIP=$ac_cv_prog_STRIP
5903if test -n "$STRIP"; then
5904 echo "$as_me:$LINENO: result: $STRIP" >&5
5905echo "${ECHO_T}$STRIP" >&6
5906else
5907 echo "$as_me:$LINENO: result: no" >&5
5908echo "${ECHO_T}no" >&6
5909fi
5910
5911fi
5912if test -z "$ac_cv_prog_STRIP"; then
5913 ac_ct_STRIP=$STRIP
5914 # Extract the first word of "strip", so it can be a program name with args.
5915set dummy strip; ac_word=$2
5916echo "$as_me:$LINENO: checking for $ac_word" >&5
5917echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5918if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5919 echo $ECHO_N "(cached) $ECHO_C" >&6
5920else
5921 if test -n "$ac_ct_STRIP"; then
5922 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5923else
5924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5925for as_dir in $PATH
5926do
5927 IFS=$as_save_IFS
5928 test -z "$as_dir" && as_dir=.
5929 for ac_exec_ext in '' $ac_executable_extensions; do
5930 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5931 ac_cv_prog_ac_ct_STRIP="strip"
5932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5933 break 2
5934 fi
5935done
5936done
5937
5938 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5939fi
5940fi
5941ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5942if test -n "$ac_ct_STRIP"; then
5943 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5944echo "${ECHO_T}$ac_ct_STRIP" >&6
5945else
5946 echo "$as_me:$LINENO: result: no" >&5
5947echo "${ECHO_T}no" >&6
5948fi
5949
5950 STRIP=$ac_ct_STRIP
5951else
5952 STRIP="$ac_cv_prog_STRIP"
5953fi
5954
5955
John Criswell7a73b802003-06-30 21:59:07 +00005956old_CC="$CC"
5957old_CFLAGS="$CFLAGS"
5958
5959# Set sane defaults for various variables
5960test -z "$AR" && AR=ar
5961test -z "$AR_FLAGS" && AR_FLAGS=cru
5962test -z "$AS" && AS=as
5963test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +00005964test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +00005965test -z "$DLLTOOL" && DLLTOOL=dlltool
5966test -z "$LD" && LD=ld
5967test -z "$LN_S" && LN_S="ln -s"
5968test -z "$MAGIC_CMD" && MAGIC_CMD=file
5969test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +00005970test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +00005971test -z "$OBJDUMP" && OBJDUMP=objdump
5972test -z "$RANLIB" && RANLIB=:
5973test -z "$STRIP" && STRIP=:
5974test -z "$ac_objext" && ac_objext=o
5975
John Criswell7a73b802003-06-30 21:59:07 +00005976# Determine commands to create old-style static archives.
5977old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5978old_postinstall_cmds='chmod 644 $oldlib'
5979old_postuninstall_cmds=
5980
5981if test -n "$RANLIB"; then
5982 case $host_os in
5983 openbsd*)
5984 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5985 ;;
5986 *)
5987 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5988 ;;
5989 esac
5990 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5991fi
5992
John Criswell47fdd832003-07-14 16:52:07 +00005993# Only perform the check for file, if the check method requires it
5994case $deplibs_check_method in
5995file_magic*)
5996 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5997 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5998echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5999if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6000 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006001else
John Criswell47fdd832003-07-14 16:52:07 +00006002 case $MAGIC_CMD in
6003[\\/*] | ?:[\\/]*)
6004 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6005 ;;
6006*)
6007 lt_save_MAGIC_CMD="$MAGIC_CMD"
6008 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6009 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6010 for ac_dir in $ac_dummy; do
6011 IFS="$lt_save_ifs"
6012 test -z "$ac_dir" && ac_dir=.
6013 if test -f $ac_dir/${ac_tool_prefix}file; then
6014 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6015 if test -n "$file_magic_test_file"; then
6016 case $deplibs_check_method in
6017 "file_magic "*)
6018 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6019 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6020 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6021 $EGREP "$file_magic_regex" > /dev/null; then
6022 :
6023 else
6024 cat <<EOF 1>&2
6025
6026*** Warning: the command libtool uses to detect shared libraries,
6027*** $file_magic_cmd, produces output that libtool cannot recognize.
6028*** The result is that libtool may fail to recognize shared libraries
6029*** as such. This will affect the creation of libtool libraries that
6030*** depend on shared libraries, but programs linked with such libtool
6031*** libraries will work regardless of this problem. Nevertheless, you
6032*** may want to report the problem to your system manager and/or to
6033*** bug-libtool@gnu.org
6034
6035EOF
6036 fi ;;
6037 esac
6038 fi
6039 break
6040 fi
6041 done
6042 IFS="$lt_save_ifs"
6043 MAGIC_CMD="$lt_save_MAGIC_CMD"
6044 ;;
6045esac
John Criswell7a73b802003-06-30 21:59:07 +00006046fi
John Criswell7a73b802003-06-30 21:59:07 +00006047
John Criswell47fdd832003-07-14 16:52:07 +00006048MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6049if test -n "$MAGIC_CMD"; then
6050 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6051echo "${ECHO_T}$MAGIC_CMD" >&6
6052else
6053 echo "$as_me:$LINENO: result: no" >&5
6054echo "${ECHO_T}no" >&6
6055fi
John Criswell7a73b802003-06-30 21:59:07 +00006056
John Criswell47fdd832003-07-14 16:52:07 +00006057if test -z "$lt_cv_path_MAGIC_CMD"; then
6058 if test -n "$ac_tool_prefix"; then
6059 echo "$as_me:$LINENO: checking for file" >&5
6060echo $ECHO_N "checking for file... $ECHO_C" >&6
6061if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6062 echo $ECHO_N "(cached) $ECHO_C" >&6
6063else
6064 case $MAGIC_CMD in
6065[\\/*] | ?:[\\/]*)
6066 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6067 ;;
6068*)
6069 lt_save_MAGIC_CMD="$MAGIC_CMD"
6070 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6071 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6072 for ac_dir in $ac_dummy; do
6073 IFS="$lt_save_ifs"
6074 test -z "$ac_dir" && ac_dir=.
6075 if test -f $ac_dir/file; then
6076 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6077 if test -n "$file_magic_test_file"; then
6078 case $deplibs_check_method in
6079 "file_magic "*)
6080 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6081 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6082 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6083 $EGREP "$file_magic_regex" > /dev/null; then
6084 :
6085 else
6086 cat <<EOF 1>&2
6087
6088*** Warning: the command libtool uses to detect shared libraries,
6089*** $file_magic_cmd, produces output that libtool cannot recognize.
6090*** The result is that libtool may fail to recognize shared libraries
6091*** as such. This will affect the creation of libtool libraries that
6092*** depend on shared libraries, but programs linked with such libtool
6093*** libraries will work regardless of this problem. Nevertheless, you
6094*** may want to report the problem to your system manager and/or to
6095*** bug-libtool@gnu.org
6096
6097EOF
6098 fi ;;
6099 esac
6100 fi
6101 break
6102 fi
6103 done
6104 IFS="$lt_save_ifs"
6105 MAGIC_CMD="$lt_save_MAGIC_CMD"
6106 ;;
6107esac
6108fi
6109
6110MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6111if test -n "$MAGIC_CMD"; then
6112 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6113echo "${ECHO_T}$MAGIC_CMD" >&6
6114else
6115 echo "$as_me:$LINENO: result: no" >&5
6116echo "${ECHO_T}no" >&6
6117fi
6118
6119 else
6120 MAGIC_CMD=:
6121 fi
6122fi
6123
6124 fi
6125 ;;
6126esac
6127
6128enable_dlopen=no
6129enable_win32_dll=no
6130
6131# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6132if test "${enable_libtool_lock+set}" = set; then
6133 enableval="$enable_libtool_lock"
6134
6135fi;
6136test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6137
John Criswell7a73b802003-06-30 21:59:07 +00006138
6139# Check whether --with-pic or --without-pic was given.
6140if test "${with_pic+set}" = set; then
6141 withval="$with_pic"
6142 pic_mode="$withval"
6143else
6144 pic_mode=default
6145fi;
6146test -z "$pic_mode" && pic_mode=default
6147
John Criswell47fdd832003-07-14 16:52:07 +00006148# Use C for the default configuration in the libtool script
6149tagname=
6150lt_save_CC="$CC"
6151ac_ext=c
6152ac_cpp='$CPP $CPPFLAGS'
6153ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6154ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6155ac_compiler_gnu=$ac_cv_c_compiler_gnu
6156
6157
6158# Source file extension for C test sources.
6159ac_ext=c
6160
6161# Object file extension for compiled C test sources.
6162objext=o
6163objext=$objext
6164
6165# Code to be used in simple compile tests
6166lt_simple_compile_test_code="int some_variable = 0;\n"
6167
6168# Code to be used in simple link tests
6169lt_simple_link_test_code='int main(){return(0);}\n'
6170
6171
6172# If no C compiler was specified, use CC.
6173LTCC=${LTCC-"$CC"}
6174
6175# Allow CC to be a program name with arguments.
6176compiler=$CC
6177
6178
6179#
6180# Check for any special shared library compilation flags.
6181#
6182lt_prog_cc_shlib=
6183if test "$GCC" = no; then
6184 case $host_os in
6185 sco3.2v5*)
6186 lt_prog_cc_shlib='-belf'
6187 ;;
6188 esac
6189fi
6190if test -n "$lt_prog_cc_shlib"; then
6191 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6192echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6193 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6194 else
6195 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6196echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6197 lt_cv_prog_cc_can_build_shared=no
6198 fi
6199fi
6200
6201
6202#
6203# Check to make sure the static flag actually works.
6204#
6205echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6206echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6207if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006208 echo $ECHO_N "(cached) $ECHO_C" >&6
6209else
John Criswell47fdd832003-07-14 16:52:07 +00006210 lt_prog_compiler_static_works=no
6211 save_LDFLAGS="$LDFLAGS"
6212 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6213 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6214 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6215 # The compiler can only warn and ignore the option if not recognized
6216 # So say no if there are warnings
6217 if test -s conftest.err; then
6218 # Append any errors to the config.log.
6219 cat conftest.err 1>&5
6220 else
6221 lt_prog_compiler_static_works=yes
6222 fi
6223 fi
6224 $rm conftest*
6225 LDFLAGS="$save_LDFLAGS"
6226
6227fi
6228echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6229echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6230
6231if test x"$lt_prog_compiler_static_works" = xyes; then
6232 :
6233else
6234 lt_prog_compiler_static=
6235fi
6236
6237
6238
6239## CAVEAT EMPTOR:
6240## There is no encapsulation within the following macros, do not change
6241## the running order or otherwise move them around unless you know exactly
6242## what you are doing...
6243
6244lt_prog_compiler_no_builtin_flag=
6245
6246if test "$GCC" = yes; then
6247 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6248
6249 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6250echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6251if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6252 echo $ECHO_N "(cached) $ECHO_C" >&6
6253else
6254 lt_cv_prog_compiler_rtti_exceptions=no
6255 ac_outfile=conftest.$ac_objext
6256 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6257 lt_compiler_flag="-fno-rtti -fno-exceptions"
6258 # Insert the option either (1) after the last *FLAGS variable, or
6259 # (2) before a word containing "conftest.", or (3) at the end.
6260 # Note that $ac_compile itself does not contain backslashes and begins
6261 # with a dollar sign (not a hyphen), so the echo should work correctly.
6262 # The option is referenced via a variable to avoid confusing sed.
6263 lt_compile=`echo "$ac_compile" | $SED \
6264 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6265 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6266 -e 's:$: $lt_compiler_flag:'`
John Criswellc66bbd52003-09-29 21:35:32 +00006267 (eval echo "\"\$as_me:6267: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006268 (eval "$lt_compile" 2>conftest.err)
6269 ac_status=$?
6270 cat conftest.err >&5
John Criswellc66bbd52003-09-29 21:35:32 +00006271 echo "$as_me:6271: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006272 if (exit $ac_status) && test -s "$ac_outfile"; then
6273 # The compiler can only warn and ignore the option if not recognized
6274 # So say no if there are warnings
6275 if test ! -s conftest.err; then
6276 lt_cv_prog_compiler_rtti_exceptions=yes
6277 fi
6278 fi
6279 $rm conftest*
6280
6281fi
6282echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6283echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6284
6285if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6286 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6287else
6288 :
6289fi
6290
6291fi
6292
6293lt_prog_compiler_wl=
6294lt_prog_compiler_pic=
6295lt_prog_compiler_static=
6296
6297echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6298echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006299
6300 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +00006301 lt_prog_compiler_wl='-Wl,'
6302 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +00006303
6304 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006305 aix*)
6306 # All AIX code is PIC.
6307 if test "$host_cpu" = ia64; then
6308 # AIX 5 now supports IA64 processor
6309 lt_prog_compiler_static='-Bstatic'
6310 fi
John Criswell7a73b802003-06-30 21:59:07 +00006311 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006312
John Criswell7a73b802003-06-30 21:59:07 +00006313 amigaos*)
6314 # FIXME: we need at least 68020 code to build shared libraries, but
6315 # adding the `-m68020' flag to GCC prevents building anything better,
6316 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +00006317 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +00006318 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006319
6320 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +00006321 # PIC is the default for these OSes.
6322 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006323
6324 mingw* | pw32* | os2*)
6325 # This hack is so that the source file can tell whether it is being
6326 # built for inclusion in a dll (and should export symbols for example).
6327 lt_prog_compiler_pic='-DDLL_EXPORT'
6328 ;;
6329
John Criswell7a73b802003-06-30 21:59:07 +00006330 darwin* | rhapsody*)
6331 # PIC is the default on this platform
6332 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +00006333 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +00006334 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006335
6336 msdosdjgpp*)
6337 # Just because we use GCC doesn't mean we suddenly get shared libraries
6338 # on systems that don't support them.
6339 lt_prog_compiler_can_build_shared=no
6340 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006341 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006342
John Criswell7a73b802003-06-30 21:59:07 +00006343 sysv4*MP*)
6344 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +00006345 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +00006346 fi
6347 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006348
6349 hpux*)
6350 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6351 # not for PA HP-UX.
6352 case "$host_cpu" in
6353 hppa*64*|ia64*)
6354 # +Z the default
6355 ;;
6356 *)
6357 lt_prog_compiler_pic='-fPIC'
6358 ;;
6359 esac
6360 ;;
6361
John Criswell7a73b802003-06-30 21:59:07 +00006362 *)
John Criswell47fdd832003-07-14 16:52:07 +00006363 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +00006364 ;;
6365 esac
6366 else
John Criswell47fdd832003-07-14 16:52:07 +00006367 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +00006368 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006369 aix*)
6370 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006371 if test "$host_cpu" = ia64; then
6372 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +00006373 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006374 else
John Criswell47fdd832003-07-14 16:52:07 +00006375 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +00006376 fi
6377 ;;
6378
John Criswell47fdd832003-07-14 16:52:07 +00006379 mingw* | pw32* | os2*)
6380 # This hack is so that the source file can tell whether it is being
6381 # built for inclusion in a dll (and should export symbols for example).
6382 lt_prog_compiler_pic='-DDLL_EXPORT'
6383 ;;
6384
John Criswell7a73b802003-06-30 21:59:07 +00006385 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +00006386 lt_prog_compiler_wl='-Wl,'
6387 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6388 # not for PA HP-UX.
6389 case "$host_cpu" in
6390 hppa*64*|ia64*)
6391 # +Z the default
6392 ;;
6393 *)
6394 lt_prog_compiler_pic='+Z'
6395 ;;
6396 esac
6397 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6398 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +00006399 ;;
6400
John Criswell47fdd832003-07-14 16:52:07 +00006401 irix5* | irix6* | nonstopux*)
6402 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006403 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +00006404 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006405 ;;
6406
6407 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +00006408 lt_prog_compiler_pic='-KPIC'
6409 lt_prog_compiler_static='-Bstatic'
6410 ;;
6411
6412 linux*)
6413 case $CC in
6414 icc|ecc)
6415 lt_prog_compiler_wl='-Wl,'
6416 lt_prog_compiler_pic='-KPIC'
6417 lt_prog_compiler_static='-static'
6418 ;;
6419 ccc)
6420 lt_prog_compiler_wl='-Wl,'
6421 # All Alpha code is PIC.
6422 lt_prog_compiler_static='-non_shared'
6423 ;;
6424 esac
John Criswell7a73b802003-06-30 21:59:07 +00006425 ;;
6426
6427 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +00006428 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006429 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +00006430 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006431 ;;
6432
6433 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +00006434 lt_prog_compiler_pic='-Kpic'
6435 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +00006436 ;;
6437
6438 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +00006439 lt_prog_compiler_wl='-Wl,'
6440 lt_prog_compiler_pic='-KPIC'
6441 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006442 ;;
6443
6444 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +00006445 lt_prog_compiler_wl='-Qoption ld '
6446 lt_prog_compiler_pic='-PIC'
6447 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006448 ;;
6449
6450 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +00006451 lt_prog_compiler_wl='-Wl,'
6452 lt_prog_compiler_pic='-KPIC'
6453 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006454 ;;
6455
6456 sysv4*MP*)
6457 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +00006458 lt_prog_compiler_pic='-Kconform_pic'
6459 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006460 fi
6461 ;;
6462
John Criswell47fdd832003-07-14 16:52:07 +00006463 uts4*)
6464 lt_prog_compiler_pic='-pic'
6465 lt_prog_compiler_static='-Bstatic'
6466 ;;
6467
John Criswell7a73b802003-06-30 21:59:07 +00006468 *)
John Criswell47fdd832003-07-14 16:52:07 +00006469 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006470 ;;
6471 esac
6472 fi
6473
John Criswell47fdd832003-07-14 16:52:07 +00006474echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6475echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006476
John Criswell47fdd832003-07-14 16:52:07 +00006477#
6478# Check to make sure the PIC flag actually works.
6479#
6480if test -n "$lt_prog_compiler_pic"; then
6481 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6482echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6483if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006484 echo $ECHO_N "(cached) $ECHO_C" >&6
6485else
John Criswell47fdd832003-07-14 16:52:07 +00006486 lt_prog_compiler_pic_works=no
6487 ac_outfile=conftest.$ac_objext
6488 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6489 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6490 # Insert the option either (1) after the last *FLAGS variable, or
6491 # (2) before a word containing "conftest.", or (3) at the end.
6492 # Note that $ac_compile itself does not contain backslashes and begins
6493 # with a dollar sign (not a hyphen), so the echo should work correctly.
6494 # The option is referenced via a variable to avoid confusing sed.
6495 lt_compile=`echo "$ac_compile" | $SED \
6496 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6497 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6498 -e 's:$: $lt_compiler_flag:'`
John Criswellc66bbd52003-09-29 21:35:32 +00006499 (eval echo "\"\$as_me:6499: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006500 (eval "$lt_compile" 2>conftest.err)
6501 ac_status=$?
6502 cat conftest.err >&5
John Criswellc66bbd52003-09-29 21:35:32 +00006503 echo "$as_me:6503: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006504 if (exit $ac_status) && test -s "$ac_outfile"; then
6505 # The compiler can only warn and ignore the option if not recognized
6506 # So say no if there are warnings
6507 if test ! -s conftest.err; then
6508 lt_prog_compiler_pic_works=yes
6509 fi
6510 fi
6511 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006512
John Criswell47fdd832003-07-14 16:52:07 +00006513fi
6514echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6515echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006516
John Criswell47fdd832003-07-14 16:52:07 +00006517if test x"$lt_prog_compiler_pic_works" = xyes; then
6518 case $lt_prog_compiler_pic in
6519 "" | " "*) ;;
6520 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6521 esac
John Criswell7a73b802003-06-30 21:59:07 +00006522else
John Criswell47fdd832003-07-14 16:52:07 +00006523 lt_prog_compiler_pic=
6524 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006525fi
6526
John Criswell7a73b802003-06-30 21:59:07 +00006527fi
John Criswell47fdd832003-07-14 16:52:07 +00006528case "$host_os" in
6529 # For platforms which do not support PIC, -DPIC is meaningless:
6530 *djgpp*)
6531 lt_prog_compiler_pic=
6532 ;;
6533 *)
6534 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6535 ;;
6536esac
John Criswell7a73b802003-06-30 21:59:07 +00006537
John Criswell7a73b802003-06-30 21:59:07 +00006538echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6539echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +00006540if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006541 echo $ECHO_N "(cached) $ECHO_C" >&6
6542else
John Criswell47fdd832003-07-14 16:52:07 +00006543 lt_cv_prog_compiler_c_o=no
6544 $rm -r conftest 2>/dev/null
6545 mkdir conftest
6546 cd conftest
6547 mkdir out
6548 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006549
John Criswell47fdd832003-07-14 16:52:07 +00006550 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6551 # that will create temporary files in the current directory regardless of
6552 # the output directory. Thus, making CWD read-only will cause this test
6553 # to fail, enabling locking or at least warning the user not to do parallel
6554 # builds.
6555 chmod -w .
6556
6557 lt_compiler_flag="-o out/conftest2.$ac_objext"
6558 # Insert the option either (1) after the last *FLAGS variable, or
6559 # (2) before a word containing "conftest.", or (3) at the end.
6560 # Note that $ac_compile itself does not contain backslashes and begins
6561 # with a dollar sign (not a hyphen), so the echo should work correctly.
6562 lt_compile=`echo "$ac_compile" | $SED \
6563 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6564 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6565 -e 's:$: $lt_compiler_flag:'`
John Criswellc66bbd52003-09-29 21:35:32 +00006566 (eval echo "\"\$as_me:6566: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006567 (eval "$lt_compile" 2>out/conftest.err)
6568 ac_status=$?
6569 cat out/conftest.err >&5
John Criswellc66bbd52003-09-29 21:35:32 +00006570 echo "$as_me:6570: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006571 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6572 then
6573 # The compiler can only warn and ignore the option if not recognized
6574 # So say no if there are warnings
6575 if test ! -s out/conftest.err; then
6576 lt_cv_prog_compiler_c_o=yes
6577 fi
6578 fi
6579 chmod u+w .
6580 $rm conftest* out/*
6581 rmdir out
6582 cd ..
6583 rmdir conftest
6584 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006585
6586fi
John Criswell47fdd832003-07-14 16:52:07 +00006587echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6588echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006589
John Criswell7a73b802003-06-30 21:59:07 +00006590
John Criswell7a73b802003-06-30 21:59:07 +00006591hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +00006592if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +00006593 # do not overwrite the value of need_locks provided by the user
6594 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6595echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6596 hard_links=yes
6597 $rm conftest*
6598 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6599 touch conftest.a
6600 ln conftest.a conftest.b 2>&5 || hard_links=no
6601 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6602 echo "$as_me:$LINENO: result: $hard_links" >&5
6603echo "${ECHO_T}$hard_links" >&6
6604 if test "$hard_links" = no; then
6605 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6606echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6607 need_locks=warn
6608 fi
6609else
6610 need_locks=no
6611fi
John Criswell7a73b802003-06-30 21:59:07 +00006612
John Criswell47fdd832003-07-14 16:52:07 +00006613echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6614echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6615
6616 runpath_var=
6617 allow_undefined_flag=
6618 enable_shared_with_static_runtimes=no
6619 archive_cmds=
6620 archive_expsym_cmds=
6621 old_archive_From_new_cmds=
6622 old_archive_from_expsyms_cmds=
6623 export_dynamic_flag_spec=
6624 whole_archive_flag_spec=
6625 thread_safe_flag_spec=
6626 hardcode_libdir_flag_spec=
6627 hardcode_libdir_flag_spec_ld=
6628 hardcode_libdir_separator=
6629 hardcode_direct=no
6630 hardcode_minus_L=no
6631 hardcode_shlibpath_var=unsupported
6632 link_all_deplibs=unknown
6633 hardcode_automatic=no
6634 module_cmds=
6635 module_expsym_cmds=
6636 always_export_symbols=no
6637 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6638 # include_expsyms should be a list of space-separated symbols to be *always*
6639 # included in the symbol list
6640 include_expsyms=
6641 # exclude_expsyms can be an extended regexp of symbols to exclude
6642 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6643 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6644 # as well as any symbol that contains `d'.
6645 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6646 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6647 # platforms (ab)use it in PIC code, but their linkers get confused if
6648 # the symbol is explicitly referenced. Since portable code cannot
6649 # rely on this symbol name, it's probably fine to never include it in
6650 # preloaded symbol tables.
6651 extract_expsyms_cmds=
6652
6653 case $host_os in
6654 cygwin* | mingw* | pw32*)
6655 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6656 # When not using gcc, we currently assume that we are using
6657 # Microsoft Visual C++.
6658 if test "$GCC" != yes; then
6659 with_gnu_ld=no
6660 fi
6661 ;;
6662 openbsd*)
6663 with_gnu_ld=no
6664 ;;
6665 esac
6666
6667 ld_shlibs=yes
6668 if test "$with_gnu_ld" = yes; then
6669 # If archive_cmds runs LD, not CC, wlarc should be empty
6670 wlarc='${wl}'
6671
6672 # See if GNU ld supports shared libraries.
6673 case $host_os in
6674 aix3* | aix4* | aix5*)
6675 # On AIX/PPC, the GNU linker is very broken
6676 if test "$host_cpu" != ia64; then
6677 ld_shlibs=no
6678 cat <<EOF 1>&2
6679
6680*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6681*** to be unable to reliably create shared libraries on AIX.
6682*** Therefore, libtool is disabling shared libraries support. If you
6683*** really care for shared libraries, you may want to modify your PATH
6684*** so that a non-GNU linker is found, and then restart.
6685
6686EOF
6687 fi
6688 ;;
6689
6690 amigaos*)
6691 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)'
6692 hardcode_libdir_flag_spec='-L$libdir'
6693 hardcode_minus_L=yes
6694
6695 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6696 # that the semantics of dynamic libraries on AmigaOS, at least up
6697 # to version 4, is to share data among multiple programs linked
6698 # with the same dynamic library. Since this doesn't match the
6699 # behavior of shared libraries on other platforms, we can't use
6700 # them.
6701 ld_shlibs=no
6702 ;;
6703
6704 beos*)
6705 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6706 allow_undefined_flag=unsupported
6707 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6708 # support --undefined. This deserves some investigation. FIXME
6709 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6710 else
6711 ld_shlibs=no
6712 fi
6713 ;;
6714
6715 cygwin* | mingw* | pw32*)
6716 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6717 # as there is no search path for DLLs.
6718 hardcode_libdir_flag_spec='-L$libdir'
6719 allow_undefined_flag=unsupported
6720 always_export_symbols=no
6721 enable_shared_with_static_runtimes=yes
6722 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6723
6724 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6725 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6726 # If the export-symbols file already is a .def file (1st line
6727 # is EXPORTS), use it as is; otherwise, prepend...
6728 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6729 cp $export_symbols $output_objdir/$soname.def;
6730 else
6731 echo EXPORTS > $output_objdir/$soname.def;
6732 cat $export_symbols >> $output_objdir/$soname.def;
6733 fi~
6734 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6735 else
6736 ld_shlibs=no
6737 fi
6738 ;;
6739
6740 netbsd*)
6741 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6742 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6743 wlarc=
6744 else
6745 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6746 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6747 fi
6748 ;;
6749
6750 solaris* | sysv5*)
6751 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6752 ld_shlibs=no
6753 cat <<EOF 1>&2
6754
6755*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6756*** create shared libraries on Solaris systems. Therefore, libtool
6757*** is disabling shared libraries support. We urge you to upgrade GNU
6758*** binutils to release 2.9.1 or newer. Another option is to modify
6759*** your PATH or compiler configuration so that the native linker is
6760*** used, and then restart.
6761
6762EOF
6763 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6764 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6765 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6766 else
6767 ld_shlibs=no
6768 fi
6769 ;;
6770
6771 sunos4*)
6772 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6773 wlarc=
6774 hardcode_direct=yes
6775 hardcode_shlibpath_var=no
6776 ;;
6777
6778 *)
6779 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6780 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6781 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6782 else
6783 ld_shlibs=no
6784 fi
6785 ;;
6786 esac
6787
6788 if test "$ld_shlibs" = yes; then
6789 runpath_var=LD_RUN_PATH
6790 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6791 export_dynamic_flag_spec='${wl}--export-dynamic'
6792 # ancient GNU ld didn't support --whole-archive et. al.
6793 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6794 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6795 else
6796 whole_archive_flag_spec=
6797 fi
6798 fi
6799 else
6800 # PORTME fill in a description of your system's linker (not GNU ld)
6801 case $host_os in
6802 aix3*)
6803 allow_undefined_flag=unsupported
6804 always_export_symbols=yes
6805 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'
6806 # Note: this linker hardcodes the directories in LIBPATH if there
6807 # are no directories specified by -L.
6808 hardcode_minus_L=yes
6809 if test "$GCC" = yes && test -z "$link_static_flag"; then
6810 # Neither direct hardcoding nor static linking is supported with a
6811 # broken collect2.
6812 hardcode_direct=unsupported
6813 fi
6814 ;;
6815
6816 aix4* | aix5*)
6817 if test "$host_cpu" = ia64; then
6818 # On IA64, the linker does run time linking by default, so we don't
6819 # have to do anything special.
6820 aix_use_runtimelinking=no
6821 exp_sym_flag='-Bexport'
6822 no_entry_flag=""
6823 else
6824 # If we're using GNU nm, then we don't want the "-C" option.
6825 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6826 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6827 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'
6828 else
6829 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'
6830 fi
6831 aix_use_runtimelinking=no
6832
6833 # Test if we are trying to use run time linking or normal
6834 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6835 # need to do runtime linking.
6836 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6837 for ld_flag in $LDFLAGS; do
6838 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6839 aix_use_runtimelinking=yes
6840 break
6841 fi
6842 done
6843 esac
6844
6845 exp_sym_flag='-bexport'
6846 no_entry_flag='-bnoentry'
6847 fi
6848
6849 # When large executables or shared objects are built, AIX ld can
6850 # have problems creating the table of contents. If linking a library
6851 # or program results in "error TOC overflow" add -mminimal-toc to
6852 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6853 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6854
6855 archive_cmds=''
6856 hardcode_direct=yes
6857 hardcode_libdir_separator=':'
6858 link_all_deplibs=yes
6859
6860 if test "$GCC" = yes; then
6861 case $host_os in aix4.012|aix4.012.*)
6862 # We only want to do this on AIX 4.2 and lower, the check
6863 # below for broken collect2 doesn't work under 4.3+
6864 collect2name=`${CC} -print-prog-name=collect2`
6865 if test -f "$collect2name" && \
6866 strings "$collect2name" | grep resolve_lib_name >/dev/null
6867 then
6868 # We have reworked collect2
6869 hardcode_direct=yes
6870 else
6871 # We have old collect2
6872 hardcode_direct=unsupported
6873 # It fails to find uninstalled libraries when the uninstalled
6874 # path is not listed in the libpath. Setting hardcode_minus_L
6875 # to unsupported forces relinking
6876 hardcode_minus_L=yes
6877 hardcode_libdir_flag_spec='-L$libdir'
6878 hardcode_libdir_separator=
6879 fi
6880 esac
6881 shared_flag='-shared'
6882 else
6883 # not using gcc
6884 if test "$host_cpu" = ia64; then
6885 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6886 # chokes on -Wl,-G. The following line is correct:
6887 shared_flag='-G'
6888 else
6889 if test "$aix_use_runtimelinking" = yes; then
6890 shared_flag='${wl}-G'
6891 else
6892 shared_flag='${wl}-bM:SRE'
6893 fi
6894 fi
6895 fi
6896
6897 # It seems that -bexpall does not export symbols beginning with
6898 # underscore (_), so it is better to generate a list of symbols to export.
6899 always_export_symbols=yes
6900 if test "$aix_use_runtimelinking" = yes; then
6901 # Warning - without using the other runtime loading flags (-brtl),
6902 # -berok will link without error, but may produce a broken library.
6903 allow_undefined_flag='-berok'
6904 # Determine the default libpath from the value encoded in an empty executable.
6905 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00006906#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00006907/* confdefs.h. */
6908_ACEOF
6909cat confdefs.h >>conftest.$ac_ext
6910cat >>conftest.$ac_ext <<_ACEOF
6911/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006912
John Criswell7a73b802003-06-30 21:59:07 +00006913int
6914main ()
6915{
John Criswell47fdd832003-07-14 16:52:07 +00006916
John Criswell7a73b802003-06-30 21:59:07 +00006917 ;
6918 return 0;
6919}
6920_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +00006921rm -f conftest.$ac_objext conftest$ac_exeext
6922if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6923 (eval $ac_link) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00006924 ac_status=$?
6925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6926 (exit $ac_status); } &&
John Criswell47fdd832003-07-14 16:52:07 +00006927 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00006928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6929 (eval $ac_try) 2>&5
6930 ac_status=$?
6931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6932 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006933
John Criswell47fdd832003-07-14 16:52:07 +00006934aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6935}'`
6936# Check for a 64-bit object if we didn't find anything.
6937if 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; }
6938}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006939else
6940 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006941sed 's/^/| /' conftest.$ac_ext >&5
6942
John Criswell7a73b802003-06-30 21:59:07 +00006943fi
John Criswell47fdd832003-07-14 16:52:07 +00006944rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6945if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006946
John Criswell47fdd832003-07-14 16:52:07 +00006947 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6948 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"
6949 else
6950 if test "$host_cpu" = ia64; then
6951 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6952 allow_undefined_flag="-z nodefs"
6953 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"
6954 else
6955 # Determine the default libpath from the value encoded in an empty executable.
6956 cat >conftest.$ac_ext <<_ACEOF
6957#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00006958/* confdefs.h. */
6959_ACEOF
6960cat confdefs.h >>conftest.$ac_ext
6961cat >>conftest.$ac_ext <<_ACEOF
6962/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006963
John Criswell47fdd832003-07-14 16:52:07 +00006964int
6965main ()
6966{
John Criswell7a73b802003-06-30 21:59:07 +00006967
John Criswell47fdd832003-07-14 16:52:07 +00006968 ;
6969 return 0;
6970}
6971_ACEOF
6972rm -f conftest.$ac_objext conftest$ac_exeext
6973if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6974 (eval $ac_link) 2>&5
6975 ac_status=$?
6976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977 (exit $ac_status); } &&
6978 { ac_try='test -s conftest$ac_exeext'
6979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6980 (eval $ac_try) 2>&5
6981 ac_status=$?
6982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006984
John Criswell47fdd832003-07-14 16:52:07 +00006985aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6986}'`
6987# Check for a 64-bit object if we didn't find anything.
6988if 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; }
6989}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006990else
John Criswell47fdd832003-07-14 16:52:07 +00006991 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006992sed 's/^/| /' conftest.$ac_ext >&5
6993
John Criswell47fdd832003-07-14 16:52:07 +00006994fi
6995rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6996if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006997
John Criswell47fdd832003-07-14 16:52:07 +00006998 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6999 # Warning - without using the other run time loading flags,
7000 # -berok will link without error, but may produce a broken library.
7001 no_undefined_flag=' ${wl}-bernotok'
7002 allow_undefined_flag=' ${wl}-berok'
7003 # -bexpall does not export symbols beginning with underscore (_)
7004 always_export_symbols=yes
7005 # Exported symbols can be pulled into shared objects from archives
7006 whole_archive_flag_spec=' '
7007 archive_cmds_need_lc=yes
7008 # This is similar to how AIX traditionally builds it's shared libraries.
7009 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 +00007010 fi
7011 fi
John Criswell7a73b802003-06-30 21:59:07 +00007012 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007013
7014 amigaos*)
7015 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)'
7016 hardcode_libdir_flag_spec='-L$libdir'
7017 hardcode_minus_L=yes
7018 # see comment about different semantics on the GNU ld section
7019 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +00007020 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007021
John Criswell47fdd832003-07-14 16:52:07 +00007022 bsdi4*)
7023 export_dynamic_flag_spec=-rdynamic
7024 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007025
John Criswell47fdd832003-07-14 16:52:07 +00007026 cygwin* | mingw* | pw32*)
7027 # When not using gcc, we currently assume that we are using
7028 # Microsoft Visual C++.
7029 # hardcode_libdir_flag_spec is actually meaningless, as there is
7030 # no search path for DLLs.
7031 hardcode_libdir_flag_spec=' '
7032 allow_undefined_flag=unsupported
7033 # Tell ltmain to make .lib files, not .a files.
7034 libext=lib
7035 # Tell ltmain to make .dll files, not .so files.
7036 shrext=".dll"
7037 # FIXME: Setting linknames here is a bad hack.
7038 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7039 # The linker will automatically build a .lib file if we build a DLL.
7040 old_archive_From_new_cmds='true'
7041 # FIXME: Should let the user specify the lib program.
7042 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7043 fix_srcfile_path='`cygpath -w "$srcfile"`'
7044 enable_shared_with_static_runtimes=yes
7045 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007046
John Criswell47fdd832003-07-14 16:52:07 +00007047 darwin* | rhapsody*)
7048 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7049 archive_cmds_need_lc=no
John Criswell7a73b802003-06-30 21:59:07 +00007050 case "$host_os" in
John Criswell47fdd832003-07-14 16:52:07 +00007051 rhapsody* | darwin1.[012])
7052 allow_undefined_flag='-undefined suppress'
7053 ;;
7054 *) # Darwin 1.3 on
7055 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
John Criswell7a73b802003-06-30 21:59:07 +00007056 ;;
7057 esac
John Criswell47fdd832003-07-14 16:52:07 +00007058 # FIXME: Relying on posixy $() will cause problems for
7059 # cross-compilation, but unfortunately the echo tests do not
7060 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
7061 # `"' quotes if we put them in here... so don't!
7062 lt_int_apple_cc_single_mod=no
7063 output_verbose_link_cmd='echo'
7064 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7065 lt_int_apple_cc_single_mod=yes
7066 fi
7067 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7068 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7069 else
7070 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'
7071 fi
7072 module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
7073 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7074 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7075 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}'
7076 else
7077 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}'
7078 fi
7079 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}'
7080 hardcode_direct=no
7081 hardcode_automatic=yes
7082 hardcode_shlibpath_var=unsupported
7083 whole_archive_flag_spec='-all_load $convenience'
7084 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007085 fi
John Criswell47fdd832003-07-14 16:52:07 +00007086 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007087
John Criswell47fdd832003-07-14 16:52:07 +00007088 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +00007089 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +00007090 hardcode_libdir_flag_spec='-L$libdir'
7091 hardcode_shlibpath_var=no
7092 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007093
John Criswell47fdd832003-07-14 16:52:07 +00007094 freebsd1*)
7095 ld_shlibs=no
7096 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007097
John Criswell47fdd832003-07-14 16:52:07 +00007098 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7099 # support. Future versions do this automatically, but an explicit c++rt0.o
7100 # does not break anything, and helps significantly (at the cost of a little
7101 # extra space).
7102 freebsd2.2*)
7103 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7104 hardcode_libdir_flag_spec='-R$libdir'
7105 hardcode_direct=yes
7106 hardcode_shlibpath_var=no
7107 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007108
John Criswell47fdd832003-07-14 16:52:07 +00007109 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7110 freebsd2*)
7111 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7112 hardcode_direct=yes
7113 hardcode_minus_L=yes
7114 hardcode_shlibpath_var=no
7115 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007116
John Criswell47fdd832003-07-14 16:52:07 +00007117 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7118 freebsd*)
7119 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7120 hardcode_libdir_flag_spec='-R$libdir'
7121 hardcode_direct=yes
7122 hardcode_shlibpath_var=no
7123 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007124
John Criswell47fdd832003-07-14 16:52:07 +00007125 hpux9*)
7126 if test "$GCC" = yes; then
7127 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'
7128 else
7129 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'
7130 fi
7131 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7132 hardcode_libdir_separator=:
7133 hardcode_direct=yes
7134
7135 # hardcode_minus_L: Not really in the search PATH,
7136 # but as the default location of the library.
7137 hardcode_minus_L=yes
7138 export_dynamic_flag_spec='${wl}-E'
7139 ;;
7140
7141 hpux10* | hpux11*)
7142 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7143 case "$host_cpu" in
7144 hppa*64*|ia64*)
7145 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7146 ;;
7147 *)
7148 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7149 ;;
7150 esac
7151 else
7152 case "$host_cpu" in
7153 hppa*64*|ia64*)
7154 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7155 ;;
7156 *)
7157 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7158 ;;
7159 esac
7160 fi
7161 if test "$with_gnu_ld" = no; then
7162 case "$host_cpu" in
7163 hppa*64*)
7164 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7165 hardcode_libdir_flag_spec_ld='+b $libdir'
7166 hardcode_libdir_separator=:
7167 hardcode_direct=no
7168 hardcode_shlibpath_var=no
7169 ;;
7170 ia64*)
7171 hardcode_libdir_flag_spec='-L$libdir'
7172 hardcode_direct=no
7173 hardcode_shlibpath_var=no
7174
7175 # hardcode_minus_L: Not really in the search PATH,
7176 # but as the default location of the library.
7177 hardcode_minus_L=yes
7178 ;;
7179 *)
7180 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7181 hardcode_libdir_separator=:
7182 hardcode_direct=yes
7183 export_dynamic_flag_spec='${wl}-E'
7184
7185 # hardcode_minus_L: Not really in the search PATH,
7186 # but as the default location of the library.
7187 hardcode_minus_L=yes
7188 ;;
7189 esac
7190 fi
7191 ;;
7192
7193 irix5* | irix6* | nonstopux*)
7194 if test "$GCC" = yes; then
7195 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'
7196 else
7197 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'
7198 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7199 fi
7200 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7201 hardcode_libdir_separator=:
7202 link_all_deplibs=yes
7203 ;;
7204
7205 netbsd*)
7206 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7207 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7208 else
7209 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7210 fi
7211 hardcode_libdir_flag_spec='-R$libdir'
7212 hardcode_direct=yes
7213 hardcode_shlibpath_var=no
7214 ;;
7215
7216 newsos6)
7217 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7218 hardcode_direct=yes
7219 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7220 hardcode_libdir_separator=:
7221 hardcode_shlibpath_var=no
7222 ;;
7223
7224 openbsd*)
7225 hardcode_direct=yes
7226 hardcode_shlibpath_var=no
7227 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7228 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7229 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7230 export_dynamic_flag_spec='${wl}-E'
7231 else
7232 case $host_os in
7233 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7234 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7235 hardcode_libdir_flag_spec='-R$libdir'
7236 ;;
7237 *)
7238 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7239 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7240 ;;
7241 esac
7242 fi
7243 ;;
7244
7245 os2*)
7246 hardcode_libdir_flag_spec='-L$libdir'
7247 hardcode_minus_L=yes
7248 allow_undefined_flag=unsupported
7249 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'
7250 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7251 ;;
7252
7253 osf3*)
7254 if test "$GCC" = yes; then
7255 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7256 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'
7257 else
7258 allow_undefined_flag=' -expect_unresolved \*'
7259 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'
7260 fi
7261 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7262 hardcode_libdir_separator=:
7263 ;;
7264
7265 osf4* | osf5*) # as osf3* with the addition of -msym flag
7266 if test "$GCC" = yes; then
7267 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7268 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'
7269 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7270 else
7271 allow_undefined_flag=' -expect_unresolved \*'
7272 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'
7273 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7274 $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'
7275
7276 # Both c and cxx compiler support -rpath directly
7277 hardcode_libdir_flag_spec='-rpath $libdir'
7278 fi
7279 hardcode_libdir_separator=:
7280 ;;
7281
7282 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +00007283 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7284 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +00007285 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +00007286 runpath_var=LD_RUN_PATH
7287 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +00007288 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007289
John Criswell47fdd832003-07-14 16:52:07 +00007290 solaris*)
7291 no_undefined_flag=' -z text'
7292 if test "$GCC" = yes; then
7293 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7294 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7295 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7296 else
7297 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7298 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7299 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7300 fi
7301 hardcode_libdir_flag_spec='-R$libdir'
7302 hardcode_shlibpath_var=no
7303 case $host_os in
7304 solaris2.[0-5] | solaris2.[0-5].*) ;;
7305 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7306 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7307 esac
7308 link_all_deplibs=yes
7309 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007310
John Criswell47fdd832003-07-14 16:52:07 +00007311 sunos4*)
7312 if test "x$host_vendor" = xsequent; then
7313 # Use $CC to link under sequent, because it throws in some extra .o
7314 # files that make .init and .fini sections work.
7315 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7316 else
7317 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7318 fi
7319 hardcode_libdir_flag_spec='-L$libdir'
7320 hardcode_direct=yes
7321 hardcode_minus_L=yes
7322 hardcode_shlibpath_var=no
7323 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007324
John Criswell47fdd832003-07-14 16:52:07 +00007325 sysv4)
7326 case $host_vendor in
7327 sni)
7328 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7329 hardcode_direct=yes # is this really true???
7330 ;;
7331 siemens)
7332 ## LD is ld it makes a PLAMLIB
7333 ## CC just makes a GrossModule.
7334 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7335 reload_cmds='$CC -r -o $output$reload_objs'
7336 hardcode_direct=no
7337 ;;
7338 motorola)
7339 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7340 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7341 ;;
7342 esac
7343 runpath_var='LD_RUN_PATH'
7344 hardcode_shlibpath_var=no
7345 ;;
7346
7347 sysv4.3*)
7348 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7349 hardcode_shlibpath_var=no
7350 export_dynamic_flag_spec='-Bexport'
7351 ;;
7352
7353 sysv4*MP*)
7354 if test -d /usr/nec; then
7355 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7356 hardcode_shlibpath_var=no
7357 runpath_var=LD_RUN_PATH
7358 hardcode_runpath_var=yes
7359 ld_shlibs=yes
7360 fi
7361 ;;
7362
7363 sysv4.2uw2*)
7364 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7365 hardcode_direct=yes
7366 hardcode_minus_L=no
7367 hardcode_shlibpath_var=no
7368 hardcode_runpath_var=yes
7369 runpath_var=LD_RUN_PATH
7370 ;;
7371
7372 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7373 no_undefined_flag='${wl}-z ${wl}text'
7374 if test "$GCC" = yes; then
7375 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7376 else
7377 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7378 fi
7379 runpath_var='LD_RUN_PATH'
7380 hardcode_shlibpath_var=no
7381 ;;
7382
7383 sysv5*)
7384 no_undefined_flag=' -z text'
7385 # $CC -shared without GNU ld will not create a library from C++
7386 # object files and a static libstdc++, better avoid it by now
7387 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7388 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7389 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7390 hardcode_libdir_flag_spec=
7391 hardcode_shlibpath_var=no
7392 runpath_var='LD_RUN_PATH'
7393 ;;
7394
7395 uts4*)
7396 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7397 hardcode_libdir_flag_spec='-L$libdir'
7398 hardcode_shlibpath_var=no
7399 ;;
7400
7401 *)
7402 ld_shlibs=no
7403 ;;
7404 esac
7405 fi
7406
John Criswell7a73b802003-06-30 21:59:07 +00007407echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7408echo "${ECHO_T}$ld_shlibs" >&6
7409test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00007410
John Criswell47fdd832003-07-14 16:52:07 +00007411variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7412if test "$GCC" = yes; then
7413 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7414fi
7415
7416#
7417# Do we need to explicitly link libc?
7418#
7419case "x$archive_cmds_need_lc" in
7420x|xyes)
7421 # Assume -lc should be added
7422 archive_cmds_need_lc=yes
7423
7424 if test "$enable_shared" = yes && test "$GCC" = yes; then
7425 case $archive_cmds in
7426 *'~'*)
7427 # FIXME: we may have to deal with multi-command sequences.
7428 ;;
7429 '$CC '*)
7430 # Test whether the compiler implicitly links with -lc since on some
7431 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7432 # to ld, don't add -lc before -lgcc.
7433 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7434echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7435 $rm conftest*
7436 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7437
7438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7439 (eval $ac_compile) 2>&5
7440 ac_status=$?
7441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7442 (exit $ac_status); } 2>conftest.err; then
7443 soname=conftest
7444 lib=conftest
7445 libobjs=conftest.$ac_objext
7446 deplibs=
7447 wl=$lt_prog_compiler_wl
7448 compiler_flags=-v
7449 linker_flags=-v
7450 verstring=
7451 output_objdir=.
7452 libname=conftest
7453 lt_save_allow_undefined_flag=$allow_undefined_flag
7454 allow_undefined_flag=
7455 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7456 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7457 ac_status=$?
7458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7459 (exit $ac_status); }
7460 then
7461 archive_cmds_need_lc=no
7462 else
7463 archive_cmds_need_lc=yes
7464 fi
7465 allow_undefined_flag=$lt_save_allow_undefined_flag
7466 else
7467 cat conftest.err 1>&5
7468 fi
7469 $rm conftest*
7470 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7471echo "${ECHO_T}$archive_cmds_need_lc" >&6
7472 ;;
7473 esac
7474 fi
7475 ;;
7476esac
7477
John Criswell7a73b802003-06-30 21:59:07 +00007478echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7479echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7480hardcode_action=
7481if test -n "$hardcode_libdir_flag_spec" || \
John Criswell47fdd832003-07-14 16:52:07 +00007482 test -n "$runpath_var " || \
7483 test "X$hardcode_automatic"="Xyes" ; then
John Criswell7a73b802003-06-30 21:59:07 +00007484
7485 # We can hardcode non-existant directories.
7486 if test "$hardcode_direct" != no &&
7487 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7488 # have to relink, otherwise we might link with an installed library
7489 # when we should be linking with a yet-to-be-installed one
John Criswell47fdd832003-07-14 16:52:07 +00007490 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
John Criswell7a73b802003-06-30 21:59:07 +00007491 test "$hardcode_minus_L" != no; then
7492 # Linking always hardcodes the temporary library directory.
7493 hardcode_action=relink
7494 else
7495 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7496 hardcode_action=immediate
7497 fi
7498else
7499 # We cannot hardcode anything, or else we can only hardcode existing
7500 # directories.
7501 hardcode_action=unsupported
7502fi
7503echo "$as_me:$LINENO: result: $hardcode_action" >&5
7504echo "${ECHO_T}$hardcode_action" >&6
John Criswell7a73b802003-06-30 21:59:07 +00007505
John Criswell47fdd832003-07-14 16:52:07 +00007506if test "$hardcode_action" = relink; then
7507 # Fast installation is not supported
7508 enable_fast_install=no
7509elif test "$shlibpath_overrides_runpath" = yes ||
7510 test "$enable_shared" = no; then
7511 # Fast installation is not necessary
7512 enable_fast_install=needless
7513fi
7514
John Criswell7a73b802003-06-30 21:59:07 +00007515striplib=
7516old_striplib=
7517echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7518echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7519if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7520 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7521 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7522 echo "$as_me:$LINENO: result: yes" >&5
7523echo "${ECHO_T}yes" >&6
7524else
John Criswell47fdd832003-07-14 16:52:07 +00007525# FIXME - insert some real tests, host_os isn't really good enough
7526 case $host_os in
7527 darwin*)
7528 if test -n "$STRIP" ; then
7529 striplib="$STRIP -x"
7530 echo "$as_me:$LINENO: result: yes" >&5
7531echo "${ECHO_T}yes" >&6
7532 else
John Criswell7a73b802003-06-30 21:59:07 +00007533 echo "$as_me:$LINENO: result: no" >&5
7534echo "${ECHO_T}no" >&6
7535fi
John Criswell47fdd832003-07-14 16:52:07 +00007536 ;;
7537 *)
7538 echo "$as_me:$LINENO: result: no" >&5
7539echo "${ECHO_T}no" >&6
7540 ;;
7541 esac
7542fi
John Criswell7a73b802003-06-30 21:59:07 +00007543
John Criswell7a73b802003-06-30 21:59:07 +00007544echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7545echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7546library_names_spec=
7547libname_spec='lib$name'
7548soname_spec=
John Criswell47fdd832003-07-14 16:52:07 +00007549shrext=".so"
John Criswell7a73b802003-06-30 21:59:07 +00007550postinstall_cmds=
7551postuninstall_cmds=
7552finish_cmds=
7553finish_eval=
7554shlibpath_var=
7555shlibpath_overrides_runpath=unknown
7556version_type=none
7557dynamic_linker="$host_os ld.so"
7558sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +00007559if test "$GCC" = yes; then
7560 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7561 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7562 # if the path contains ";" then we assume it to be the separator
7563 # otherwise default to the standard path separator (i.e. ":") - it is
7564 # assumed that no part of a normal pathname contains ";" but that should
7565 # okay in the real world where ";" in dirpaths is itself problematic.
7566 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7567 else
7568 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7569 fi
7570else
7571 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7572fi
7573need_lib_prefix=unknown
7574hardcode_into_libs=no
7575
7576# when you set need_version to no, make sure it does not cause -set_version
7577# flags to be left without arguments
7578need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +00007579
7580case $host_os in
7581aix3*)
7582 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007583 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007584 shlibpath_var=LIBPATH
7585
John Criswell47fdd832003-07-14 16:52:07 +00007586 # AIX 3 has no versioning support, so we append a major version to the name.
7587 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007588 ;;
7589
7590aix4* | aix5*)
7591 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007592 need_lib_prefix=no
7593 need_version=no
7594 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007595 if test "$host_cpu" = ia64; then
7596 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +00007597 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007598 shlibpath_var=LD_LIBRARY_PATH
7599 else
7600 # With GCC up to 2.95.x, collect2 would create an import file
7601 # for dependence libraries. The import file would start with
7602 # the line `#! .'. This would cause the generated library to
7603 # depend on `.', always an invalid library. This was fixed in
7604 # development snapshots of GCC prior to 3.0.
7605 case $host_os in
7606 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +00007607 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7608 echo ' yes '
7609 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7610 :
7611 else
7612 can_build_shared=no
7613 fi
7614 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007615 esac
John Criswell47fdd832003-07-14 16:52:07 +00007616 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7617 # soname into executable. Probably we can add versioning support to
7618 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +00007619 if test "$aix_use_runtimelinking" = yes; then
7620 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7621 # instead of lib<name>.a to let people know that these are not
7622 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00007623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007624 else
7625 # We preserve .a as extension for shared libraries through AIX4.2
7626 # and later when we are not doing run time linking.
7627 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +00007628 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007629 fi
7630 shlibpath_var=LIBPATH
7631 fi
7632 ;;
7633
7634amigaos*)
7635 library_names_spec='$libname.ixlibrary $libname.a'
7636 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7637 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'
7638 ;;
7639
7640beos*)
John Criswell47fdd832003-07-14 16:52:07 +00007641 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007642 dynamic_linker="$host_os ld.so"
7643 shlibpath_var=LIBRARY_PATH
7644 ;;
7645
7646bsdi4*)
7647 version_type=linux
7648 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7650 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007651 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7652 shlibpath_var=LD_LIBRARY_PATH
7653 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7654 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +00007655 # the default ld.so.conf also contains /usr/contrib/lib and
7656 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7657 # libtool to hard-code these into programs
7658 ;;
7659
7660cygwin* | mingw* | pw32*)
7661 version_type=windows
John Criswell47fdd832003-07-14 16:52:07 +00007662 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007663 need_version=no
7664 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007665
John Criswell7a73b802003-06-30 21:59:07 +00007666 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007667 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00007668 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +00007669 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7670 postinstall_cmds='base_file=`basename \${file}`~
7671 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007672 dldir=$destdir/`dirname \$dlpath`~
7673 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +00007674 $install_prog $dir/$dlname \$dldir/$dlname'
7675 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007676 dlpath=$dir/\$dldll~
7677 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +00007678 shlibpath_overrides_runpath=yes
7679
7680 case $host_os in
7681 cygwin*)
7682 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7683 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7684 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7685 ;;
7686 mingw*)
7687 # MinGW DLLs use traditional 'lib' prefix
7688 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7689 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7690 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7691 # It is most probably a Windows format PATH printed by
7692 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7693 # path with ; separators, and with drive letters. We can handle the
7694 # drive letters (cygwin fileutils understands them), so leave them,
7695 # especially as we might pass files found there to a mingw objdump,
7696 # which wouldn't understand a cygwinified path. Ahh.
7697 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7698 else
7699 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7700 fi
7701 ;;
7702 pw32*)
7703 # pw32 DLLs use 'pw' prefix rather than 'lib'
7704 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7705 ;;
7706 esac
John Criswell7a73b802003-06-30 21:59:07 +00007707 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007708
John Criswell7a73b802003-06-30 21:59:07 +00007709 *)
John Criswell47fdd832003-07-14 16:52:07 +00007710 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +00007711 ;;
7712 esac
7713 dynamic_linker='Win32 ld.exe'
7714 # FIXME: first we should search . and the directory the executable is in
7715 shlibpath_var=PATH
7716 ;;
7717
7718darwin* | rhapsody*)
7719 dynamic_linker="$host_os dyld"
7720 version_type=darwin
7721 need_lib_prefix=no
7722 need_version=no
7723 # FIXME: Relying on posixy $() will cause problems for
7724 # cross-compilation, but unfortunately the echo tests do not
7725 # yet detect zsh echo's removal of \ escapes.
John Criswell47fdd832003-07-14 16:52:07 +00007726 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7727 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +00007728 shlibpath_overrides_runpath=yes
7729 shlibpath_var=DYLD_LIBRARY_PATH
John Criswell47fdd832003-07-14 16:52:07 +00007730 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7731 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7732 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7733 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"`
7734 fi
7735 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7736 ;;
7737
7738dgux*)
7739 version_type=linux
7740 need_lib_prefix=no
7741 need_version=no
7742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7743 soname_spec='${libname}${release}${shared_ext}$major'
7744 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007745 ;;
7746
7747freebsd1*)
7748 dynamic_linker=no
7749 ;;
7750
7751freebsd*)
7752 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7753 version_type=freebsd-$objformat
7754 case $version_type in
7755 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +00007756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007757 need_version=no
7758 need_lib_prefix=no
7759 ;;
7760 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +00007761 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007762 need_version=yes
7763 ;;
7764 esac
7765 shlibpath_var=LD_LIBRARY_PATH
7766 case $host_os in
7767 freebsd2*)
7768 shlibpath_overrides_runpath=yes
7769 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007770 freebsd3.01* | freebsdelf3.01*)
7771 shlibpath_overrides_runpath=yes
7772 hardcode_into_libs=yes
7773 ;;
7774 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +00007775 shlibpath_overrides_runpath=no
7776 hardcode_into_libs=yes
7777 ;;
7778 esac
7779 ;;
7780
7781gnu*)
7782 version_type=linux
7783 need_lib_prefix=no
7784 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7786 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007787 shlibpath_var=LD_LIBRARY_PATH
7788 hardcode_into_libs=yes
7789 ;;
7790
7791hpux9* | hpux10* | hpux11*)
7792 # Give a soname corresponding to the major version so that dld.sl refuses to
7793 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +00007794 version_type=sunos
7795 need_lib_prefix=no
7796 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007797 case "$host_cpu" in
7798 ia64*)
7799 shrext='.so'
7800 hardcode_into_libs=yes
7801 dynamic_linker="$host_os dld.so"
7802 shlibpath_var=LD_LIBRARY_PATH
7803 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7805 soname_spec='${libname}${release}${shared_ext}$major'
7806 if test "X$HPUX_IA64_MODE" = X32; then
7807 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7808 else
7809 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7810 fi
7811 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7812 ;;
7813 hppa*64*)
7814 shrext='.sl'
7815 hardcode_into_libs=yes
7816 dynamic_linker="$host_os dld.sl"
7817 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7818 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7820 soname_spec='${libname}${release}${shared_ext}$major'
7821 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7822 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7823 ;;
7824 *)
7825 shrext='.sl'
7826 dynamic_linker="$host_os dld.sl"
7827 shlibpath_var=SHLIB_PATH
7828 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7830 soname_spec='${libname}${release}${shared_ext}$major'
7831 ;;
7832 esac
John Criswell7a73b802003-06-30 21:59:07 +00007833 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7834 postinstall_cmds='chmod 555 $lib'
7835 ;;
7836
John Criswell47fdd832003-07-14 16:52:07 +00007837irix5* | irix6* | nonstopux*)
7838 case $host_os in
7839 nonstopux*) version_type=nonstopux ;;
7840 *)
7841 if test "$lt_cv_prog_gnu_ld" = yes; then
7842 version_type=linux
7843 else
7844 version_type=irix
7845 fi ;;
7846 esac
John Criswell7a73b802003-06-30 21:59:07 +00007847 need_lib_prefix=no
7848 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007849 soname_spec='${libname}${release}${shared_ext}$major'
7850 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 +00007851 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007852 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00007853 libsuff= shlibsuff=
7854 ;;
7855 *)
7856 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +00007857 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7858 libsuff= shlibsuff= libmagic=32-bit;;
7859 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7860 libsuff=32 shlibsuff=N32 libmagic=N32;;
7861 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7862 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +00007863 *) libsuff= shlibsuff= libmagic=never-match;;
7864 esac
7865 ;;
7866 esac
7867 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7868 shlibpath_overrides_runpath=no
7869 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7870 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +00007871 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007872 ;;
7873
7874# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +00007875linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +00007876 dynamic_linker=no
7877 ;;
7878
7879# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00007880linux*)
John Criswell7a73b802003-06-30 21:59:07 +00007881 version_type=linux
7882 need_lib_prefix=no
7883 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7885 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007886 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7887 shlibpath_var=LD_LIBRARY_PATH
7888 shlibpath_overrides_runpath=no
7889 # This implies no fast_install, which is unacceptable.
7890 # Some rework will be needed to allow for fast_install
7891 # before this can be enabled.
7892 hardcode_into_libs=yes
7893
7894 # We used to test for /lib/ld.so.1 and disable shared libraries on
7895 # powerpc, because MkLinux only supported shared libraries with the
7896 # GNU dynamic linker. Since this was broken with cross compilers,
7897 # most powerpc-linux boxes support dynamic linking these days and
7898 # people can always --disable-shared, the test was removed, and we
7899 # assume the GNU/Linux dynamic linker is in use.
7900 dynamic_linker='GNU/Linux ld.so'
7901 ;;
7902
7903netbsd*)
7904 version_type=sunos
7905 need_lib_prefix=no
7906 need_version=no
7907 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00007908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007909 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7910 dynamic_linker='NetBSD (a.out) ld.so'
7911 else
John Criswell47fdd832003-07-14 16:52:07 +00007912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7913 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007914 dynamic_linker='NetBSD ld.elf_so'
7915 fi
7916 shlibpath_var=LD_LIBRARY_PATH
7917 shlibpath_overrides_runpath=yes
7918 hardcode_into_libs=yes
7919 ;;
7920
7921newsos6)
7922 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7924 shlibpath_var=LD_LIBRARY_PATH
7925 shlibpath_overrides_runpath=yes
7926 ;;
7927
7928nto-qnx)
7929 version_type=linux
7930 need_lib_prefix=no
7931 need_version=no
7932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7933 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007934 shlibpath_var=LD_LIBRARY_PATH
7935 shlibpath_overrides_runpath=yes
7936 ;;
7937
7938openbsd*)
7939 version_type=sunos
7940 need_lib_prefix=no
7941 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7943 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7944 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007945 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 +00007946 case $host_os in
7947 openbsd2.[89] | openbsd2.[89].*)
7948 shlibpath_overrides_runpath=no
7949 ;;
7950 *)
7951 shlibpath_overrides_runpath=yes
7952 ;;
7953 esac
John Criswell7a73b802003-06-30 21:59:07 +00007954 else
7955 shlibpath_overrides_runpath=yes
7956 fi
John Criswell7a73b802003-06-30 21:59:07 +00007957 ;;
7958
7959os2*)
7960 libname_spec='$name'
John Criswell47fdd832003-07-14 16:52:07 +00007961 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007962 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007963 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007964 dynamic_linker='OS/2 ld.exe'
7965 shlibpath_var=LIBPATH
7966 ;;
7967
7968osf3* | osf4* | osf5*)
7969 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007970 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00007971 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007972 soname_spec='${libname}${release}${shared_ext}$major'
7973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007974 shlibpath_var=LD_LIBRARY_PATH
7975 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7976 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7977 ;;
7978
7979sco3.2v5*)
7980 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007981 soname_spec='${libname}${release}${shared_ext}$major'
7982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007983 shlibpath_var=LD_LIBRARY_PATH
7984 ;;
7985
7986solaris*)
7987 version_type=linux
7988 need_lib_prefix=no
7989 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7991 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007992 shlibpath_var=LD_LIBRARY_PATH
7993 shlibpath_overrides_runpath=yes
7994 hardcode_into_libs=yes
7995 # ldd complains unless libraries are executable
7996 postinstall_cmds='chmod +x $lib'
7997 ;;
7998
7999sunos4*)
8000 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +00008001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00008002 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8003 shlibpath_var=LD_LIBRARY_PATH
8004 shlibpath_overrides_runpath=yes
8005 if test "$with_gnu_ld" = yes; then
8006 need_lib_prefix=no
8007 fi
8008 need_version=yes
8009 ;;
8010
8011sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8012 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00008013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8014 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00008015 shlibpath_var=LD_LIBRARY_PATH
8016 case $host_vendor in
8017 sni)
8018 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +00008019 need_lib_prefix=no
8020 export_dynamic_flag_spec='${wl}-Blargedynsym'
8021 runpath_var=LD_RUN_PATH
8022 ;;
8023 siemens)
8024 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00008025 ;;
8026 motorola)
8027 need_lib_prefix=no
8028 need_version=no
8029 shlibpath_overrides_runpath=no
8030 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8031 ;;
8032 esac
8033 ;;
8034
John Criswell7a73b802003-06-30 21:59:07 +00008035sysv4*MP*)
8036 if test -d /usr/nec ;then
8037 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00008038 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8039 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +00008040 shlibpath_var=LD_LIBRARY_PATH
8041 fi
8042 ;;
8043
John Criswell47fdd832003-07-14 16:52:07 +00008044uts4*)
8045 version_type=linux
8046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8047 soname_spec='${libname}${release}${shared_ext}$major'
8048 shlibpath_var=LD_LIBRARY_PATH
8049 ;;
8050
John Criswell7a73b802003-06-30 21:59:07 +00008051*)
8052 dynamic_linker=no
8053 ;;
8054esac
8055echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8056echo "${ECHO_T}$dynamic_linker" >&6
8057test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00008058
8059if test "x$enable_dlopen" != xyes; then
8060 enable_dlopen=unknown
8061 enable_dlopen_self=unknown
8062 enable_dlopen_self_static=unknown
8063else
8064 lt_cv_dlopen=no
8065 lt_cv_dlopen_libs=
8066
8067 case $host_os in
8068 beos*)
8069 lt_cv_dlopen="load_add_on"
8070 lt_cv_dlopen_libs=
8071 lt_cv_dlopen_self=yes
8072 ;;
8073
John Criswell47fdd832003-07-14 16:52:07 +00008074 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00008075 lt_cv_dlopen="LoadLibrary"
8076 lt_cv_dlopen_libs=
8077 ;;
8078
John Criswell47fdd832003-07-14 16:52:07 +00008079 cygwin*)
8080 lt_cv_dlopen="dlopen"
8081 lt_cv_dlopen_libs=
8082 ;;
8083
8084 darwin*)
8085 # if libdl is installed we need to link against it
8086 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8087echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8088if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8089 echo $ECHO_N "(cached) $ECHO_C" >&6
8090else
8091 ac_check_lib_save_LIBS=$LIBS
8092LIBS="-ldl $LIBS"
8093cat >conftest.$ac_ext <<_ACEOF
8094#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008095/* confdefs.h. */
8096_ACEOF
8097cat confdefs.h >>conftest.$ac_ext
8098cat >>conftest.$ac_ext <<_ACEOF
8099/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00008100
8101/* Override any gcc2 internal prototype to avoid an error. */
8102#ifdef __cplusplus
8103extern "C"
8104#endif
8105/* We use char because int might match the return type of a gcc2
8106 builtin and then its argument prototype would still apply. */
8107char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +00008108int
8109main ()
8110{
8111dlopen ();
8112 ;
8113 return 0;
8114}
8115_ACEOF
8116rm -f conftest.$ac_objext conftest$ac_exeext
8117if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8118 (eval $ac_link) 2>&5
8119 ac_status=$?
8120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121 (exit $ac_status); } &&
8122 { ac_try='test -s conftest$ac_exeext'
8123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8124 (eval $ac_try) 2>&5
8125 ac_status=$?
8126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127 (exit $ac_status); }; }; then
8128 ac_cv_lib_dl_dlopen=yes
8129else
8130 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008131sed 's/^/| /' conftest.$ac_ext >&5
8132
John Criswell47fdd832003-07-14 16:52:07 +00008133ac_cv_lib_dl_dlopen=no
8134fi
8135rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8136LIBS=$ac_check_lib_save_LIBS
8137fi
8138echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8139echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8140if test $ac_cv_lib_dl_dlopen = yes; then
8141 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8142else
8143
8144 lt_cv_dlopen="dyld"
8145 lt_cv_dlopen_libs=
8146 lt_cv_dlopen_self=yes
8147
8148fi
8149
8150 ;;
8151
John Criswell7a73b802003-06-30 21:59:07 +00008152 *)
8153 echo "$as_me:$LINENO: checking for shl_load" >&5
8154echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8155if test "${ac_cv_func_shl_load+set}" = set; then
8156 echo $ECHO_N "(cached) $ECHO_C" >&6
8157else
8158 cat >conftest.$ac_ext <<_ACEOF
8159#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008160/* confdefs.h. */
8161_ACEOF
8162cat confdefs.h >>conftest.$ac_ext
8163cat >>conftest.$ac_ext <<_ACEOF
8164/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008165/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00008166 which can conflict with char shl_load (); below.
8167 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8168 <limits.h> exists even on freestanding compilers. */
8169#ifdef __STDC__
8170# include <limits.h>
8171#else
8172# include <assert.h>
8173#endif
John Criswell7a73b802003-06-30 21:59:07 +00008174/* Override any gcc2 internal prototype to avoid an error. */
8175#ifdef __cplusplus
8176extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00008177{
John Criswell7a73b802003-06-30 21:59:07 +00008178#endif
8179/* We use char because int might match the return type of a gcc2
8180 builtin and then its argument prototype would still apply. */
8181char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00008182/* The GNU C library defines this for functions which it implements
8183 to always fail with ENOSYS. Some functions are actually named
8184 something starting with __ and the normal name is an alias. */
8185#if defined (__stub_shl_load) || defined (__stub___shl_load)
8186choke me
8187#else
John Criswell0c38eaf2003-09-10 15:17:25 +00008188char (*f) () = shl_load;
8189#endif
8190#ifdef __cplusplus
8191}
John Criswell7a73b802003-06-30 21:59:07 +00008192#endif
8193
John Criswell0c38eaf2003-09-10 15:17:25 +00008194int
8195main ()
8196{
8197return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +00008198 ;
8199 return 0;
8200}
8201_ACEOF
8202rm -f conftest.$ac_objext conftest$ac_exeext
8203if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8204 (eval $ac_link) 2>&5
8205 ac_status=$?
8206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207 (exit $ac_status); } &&
8208 { ac_try='test -s conftest$ac_exeext'
8209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8210 (eval $ac_try) 2>&5
8211 ac_status=$?
8212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213 (exit $ac_status); }; }; then
8214 ac_cv_func_shl_load=yes
8215else
8216 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008217sed 's/^/| /' conftest.$ac_ext >&5
8218
John Criswell7a73b802003-06-30 21:59:07 +00008219ac_cv_func_shl_load=no
8220fi
8221rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8222fi
8223echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8224echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8225if test $ac_cv_func_shl_load = yes; then
8226 lt_cv_dlopen="shl_load"
8227else
8228 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8229echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8230if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8231 echo $ECHO_N "(cached) $ECHO_C" >&6
8232else
8233 ac_check_lib_save_LIBS=$LIBS
8234LIBS="-ldld $LIBS"
8235cat >conftest.$ac_ext <<_ACEOF
8236#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008237/* confdefs.h. */
8238_ACEOF
8239cat confdefs.h >>conftest.$ac_ext
8240cat >>conftest.$ac_ext <<_ACEOF
8241/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008242
8243/* Override any gcc2 internal prototype to avoid an error. */
8244#ifdef __cplusplus
8245extern "C"
8246#endif
8247/* We use char because int might match the return type of a gcc2
8248 builtin and then its argument prototype would still apply. */
8249char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00008250int
8251main ()
8252{
8253shl_load ();
8254 ;
8255 return 0;
8256}
8257_ACEOF
8258rm -f conftest.$ac_objext conftest$ac_exeext
8259if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8260 (eval $ac_link) 2>&5
8261 ac_status=$?
8262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263 (exit $ac_status); } &&
8264 { ac_try='test -s conftest$ac_exeext'
8265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8266 (eval $ac_try) 2>&5
8267 ac_status=$?
8268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8269 (exit $ac_status); }; }; then
8270 ac_cv_lib_dld_shl_load=yes
8271else
8272 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008273sed 's/^/| /' conftest.$ac_ext >&5
8274
John Criswell7a73b802003-06-30 21:59:07 +00008275ac_cv_lib_dld_shl_load=no
8276fi
8277rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8278LIBS=$ac_check_lib_save_LIBS
8279fi
8280echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8281echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8282if test $ac_cv_lib_dld_shl_load = yes; then
8283 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8284else
8285 echo "$as_me:$LINENO: checking for dlopen" >&5
8286echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8287if test "${ac_cv_func_dlopen+set}" = set; then
8288 echo $ECHO_N "(cached) $ECHO_C" >&6
8289else
8290 cat >conftest.$ac_ext <<_ACEOF
8291#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008292/* confdefs.h. */
8293_ACEOF
8294cat confdefs.h >>conftest.$ac_ext
8295cat >>conftest.$ac_ext <<_ACEOF
8296/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008297/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00008298 which can conflict with char dlopen (); below.
8299 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8300 <limits.h> exists even on freestanding compilers. */
8301#ifdef __STDC__
8302# include <limits.h>
8303#else
8304# include <assert.h>
8305#endif
John Criswell7a73b802003-06-30 21:59:07 +00008306/* Override any gcc2 internal prototype to avoid an error. */
8307#ifdef __cplusplus
8308extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00008309{
John Criswell7a73b802003-06-30 21:59:07 +00008310#endif
8311/* We use char because int might match the return type of a gcc2
8312 builtin and then its argument prototype would still apply. */
8313char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008314/* The GNU C library defines this for functions which it implements
8315 to always fail with ENOSYS. Some functions are actually named
8316 something starting with __ and the normal name is an alias. */
8317#if defined (__stub_dlopen) || defined (__stub___dlopen)
8318choke me
8319#else
John Criswell0c38eaf2003-09-10 15:17:25 +00008320char (*f) () = dlopen;
8321#endif
8322#ifdef __cplusplus
8323}
John Criswell7a73b802003-06-30 21:59:07 +00008324#endif
8325
John Criswell0c38eaf2003-09-10 15:17:25 +00008326int
8327main ()
8328{
8329return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +00008330 ;
8331 return 0;
8332}
8333_ACEOF
8334rm -f conftest.$ac_objext conftest$ac_exeext
8335if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8336 (eval $ac_link) 2>&5
8337 ac_status=$?
8338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339 (exit $ac_status); } &&
8340 { ac_try='test -s conftest$ac_exeext'
8341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8342 (eval $ac_try) 2>&5
8343 ac_status=$?
8344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345 (exit $ac_status); }; }; then
8346 ac_cv_func_dlopen=yes
8347else
8348 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008349sed 's/^/| /' conftest.$ac_ext >&5
8350
John Criswell7a73b802003-06-30 21:59:07 +00008351ac_cv_func_dlopen=no
8352fi
8353rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8354fi
8355echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8356echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8357if test $ac_cv_func_dlopen = yes; then
8358 lt_cv_dlopen="dlopen"
8359else
8360 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8361echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8362if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8363 echo $ECHO_N "(cached) $ECHO_C" >&6
8364else
8365 ac_check_lib_save_LIBS=$LIBS
8366LIBS="-ldl $LIBS"
8367cat >conftest.$ac_ext <<_ACEOF
8368#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008369/* confdefs.h. */
8370_ACEOF
8371cat confdefs.h >>conftest.$ac_ext
8372cat >>conftest.$ac_ext <<_ACEOF
8373/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008374
8375/* Override any gcc2 internal prototype to avoid an error. */
8376#ifdef __cplusplus
8377extern "C"
8378#endif
8379/* We use char because int might match the return type of a gcc2
8380 builtin and then its argument prototype would still apply. */
8381char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008382int
8383main ()
8384{
8385dlopen ();
8386 ;
8387 return 0;
8388}
8389_ACEOF
8390rm -f conftest.$ac_objext conftest$ac_exeext
8391if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8392 (eval $ac_link) 2>&5
8393 ac_status=$?
8394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8395 (exit $ac_status); } &&
8396 { ac_try='test -s conftest$ac_exeext'
8397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8398 (eval $ac_try) 2>&5
8399 ac_status=$?
8400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401 (exit $ac_status); }; }; then
8402 ac_cv_lib_dl_dlopen=yes
8403else
8404 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008405sed 's/^/| /' conftest.$ac_ext >&5
8406
John Criswell7a73b802003-06-30 21:59:07 +00008407ac_cv_lib_dl_dlopen=no
8408fi
8409rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8410LIBS=$ac_check_lib_save_LIBS
8411fi
8412echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8413echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8414if test $ac_cv_lib_dl_dlopen = yes; then
8415 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8416else
8417 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8418echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8419if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8420 echo $ECHO_N "(cached) $ECHO_C" >&6
8421else
8422 ac_check_lib_save_LIBS=$LIBS
8423LIBS="-lsvld $LIBS"
8424cat >conftest.$ac_ext <<_ACEOF
8425#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008426/* confdefs.h. */
8427_ACEOF
8428cat confdefs.h >>conftest.$ac_ext
8429cat >>conftest.$ac_ext <<_ACEOF
8430/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008431
8432/* Override any gcc2 internal prototype to avoid an error. */
8433#ifdef __cplusplus
8434extern "C"
8435#endif
8436/* We use char because int might match the return type of a gcc2
8437 builtin and then its argument prototype would still apply. */
8438char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008439int
8440main ()
8441{
8442dlopen ();
8443 ;
8444 return 0;
8445}
8446_ACEOF
8447rm -f conftest.$ac_objext conftest$ac_exeext
8448if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8449 (eval $ac_link) 2>&5
8450 ac_status=$?
8451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452 (exit $ac_status); } &&
8453 { ac_try='test -s conftest$ac_exeext'
8454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8455 (eval $ac_try) 2>&5
8456 ac_status=$?
8457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8458 (exit $ac_status); }; }; then
8459 ac_cv_lib_svld_dlopen=yes
8460else
8461 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008462sed 's/^/| /' conftest.$ac_ext >&5
8463
John Criswell7a73b802003-06-30 21:59:07 +00008464ac_cv_lib_svld_dlopen=no
8465fi
8466rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8467LIBS=$ac_check_lib_save_LIBS
8468fi
8469echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8470echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8471if test $ac_cv_lib_svld_dlopen = yes; then
8472 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8473else
8474 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8475echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8476if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8477 echo $ECHO_N "(cached) $ECHO_C" >&6
8478else
8479 ac_check_lib_save_LIBS=$LIBS
8480LIBS="-ldld $LIBS"
8481cat >conftest.$ac_ext <<_ACEOF
8482#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008483/* confdefs.h. */
8484_ACEOF
8485cat confdefs.h >>conftest.$ac_ext
8486cat >>conftest.$ac_ext <<_ACEOF
8487/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008488
8489/* Override any gcc2 internal prototype to avoid an error. */
8490#ifdef __cplusplus
8491extern "C"
8492#endif
8493/* We use char because int might match the return type of a gcc2
8494 builtin and then its argument prototype would still apply. */
8495char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +00008496int
8497main ()
8498{
8499dld_link ();
8500 ;
8501 return 0;
8502}
8503_ACEOF
8504rm -f conftest.$ac_objext conftest$ac_exeext
8505if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8506 (eval $ac_link) 2>&5
8507 ac_status=$?
8508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509 (exit $ac_status); } &&
8510 { ac_try='test -s conftest$ac_exeext'
8511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8512 (eval $ac_try) 2>&5
8513 ac_status=$?
8514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515 (exit $ac_status); }; }; then
8516 ac_cv_lib_dld_dld_link=yes
8517else
8518 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008519sed 's/^/| /' conftest.$ac_ext >&5
8520
John Criswell7a73b802003-06-30 21:59:07 +00008521ac_cv_lib_dld_dld_link=no
8522fi
8523rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8524LIBS=$ac_check_lib_save_LIBS
8525fi
8526echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8527echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8528if test $ac_cv_lib_dld_dld_link = yes; then
8529 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8530fi
8531
8532
8533fi
8534
8535
8536fi
8537
8538
8539fi
8540
8541
8542fi
8543
8544
8545fi
8546
8547 ;;
8548 esac
8549
8550 if test "x$lt_cv_dlopen" != xno; then
8551 enable_dlopen=yes
8552 else
8553 enable_dlopen=no
8554 fi
8555
8556 case $lt_cv_dlopen in
8557 dlopen)
8558 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +00008559 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +00008560
8561 save_LDFLAGS="$LDFLAGS"
8562 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8563
8564 save_LIBS="$LIBS"
8565 LIBS="$lt_cv_dlopen_libs $LIBS"
8566
8567 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8568echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8569if test "${lt_cv_dlopen_self+set}" = set; then
8570 echo $ECHO_N "(cached) $ECHO_C" >&6
8571else
8572 if test "$cross_compiling" = yes; then :
8573 lt_cv_dlopen_self=cross
8574else
John Criswell47fdd832003-07-14 16:52:07 +00008575 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008576 lt_status=$lt_dlunknown
8577 cat > conftest.$ac_ext <<EOF
John Criswellc66bbd52003-09-29 21:35:32 +00008578#line 8578 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008579#include "confdefs.h"
8580
8581#if HAVE_DLFCN_H
8582#include <dlfcn.h>
8583#endif
8584
8585#include <stdio.h>
8586
8587#ifdef RTLD_GLOBAL
8588# define LT_DLGLOBAL RTLD_GLOBAL
8589#else
8590# ifdef DL_GLOBAL
8591# define LT_DLGLOBAL DL_GLOBAL
8592# else
8593# define LT_DLGLOBAL 0
8594# endif
8595#endif
8596
8597/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8598 find out it does not work in some platform. */
8599#ifndef LT_DLLAZY_OR_NOW
8600# ifdef RTLD_LAZY
8601# define LT_DLLAZY_OR_NOW RTLD_LAZY
8602# else
8603# ifdef DL_LAZY
8604# define LT_DLLAZY_OR_NOW DL_LAZY
8605# else
8606# ifdef RTLD_NOW
8607# define LT_DLLAZY_OR_NOW RTLD_NOW
8608# else
8609# ifdef DL_NOW
8610# define LT_DLLAZY_OR_NOW DL_NOW
8611# else
8612# define LT_DLLAZY_OR_NOW 0
8613# endif
8614# endif
8615# endif
8616# endif
8617#endif
8618
8619#ifdef __cplusplus
8620extern "C" void exit (int);
8621#endif
8622
8623void fnord() { int i=42;}
8624int main ()
8625{
8626 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8627 int status = $lt_dlunknown;
8628
8629 if (self)
8630 {
8631 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8632 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8633 /* dlclose (self); */
8634 }
8635
8636 exit (status);
8637}
8638EOF
8639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8640 (eval $ac_link) 2>&5
8641 ac_status=$?
8642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8643 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8644 (./conftest; exit; ) 2>/dev/null
8645 lt_status=$?
8646 case x$lt_status in
8647 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8648 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8649 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8650 esac
8651 else :
8652 # compilation failed
8653 lt_cv_dlopen_self=no
8654 fi
8655fi
8656rm -fr conftest*
8657
8658
8659fi
8660echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8661echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8662
8663 if test "x$lt_cv_dlopen_self" = xyes; then
8664 LDFLAGS="$LDFLAGS $link_static_flag"
8665 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8666echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8667if test "${lt_cv_dlopen_self_static+set}" = set; then
8668 echo $ECHO_N "(cached) $ECHO_C" >&6
8669else
8670 if test "$cross_compiling" = yes; then :
8671 lt_cv_dlopen_self_static=cross
8672else
John Criswell47fdd832003-07-14 16:52:07 +00008673 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008674 lt_status=$lt_dlunknown
8675 cat > conftest.$ac_ext <<EOF
John Criswellc66bbd52003-09-29 21:35:32 +00008676#line 8676 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008677#include "confdefs.h"
8678
8679#if HAVE_DLFCN_H
8680#include <dlfcn.h>
8681#endif
8682
8683#include <stdio.h>
8684
8685#ifdef RTLD_GLOBAL
8686# define LT_DLGLOBAL RTLD_GLOBAL
8687#else
8688# ifdef DL_GLOBAL
8689# define LT_DLGLOBAL DL_GLOBAL
8690# else
8691# define LT_DLGLOBAL 0
8692# endif
8693#endif
8694
8695/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8696 find out it does not work in some platform. */
8697#ifndef LT_DLLAZY_OR_NOW
8698# ifdef RTLD_LAZY
8699# define LT_DLLAZY_OR_NOW RTLD_LAZY
8700# else
8701# ifdef DL_LAZY
8702# define LT_DLLAZY_OR_NOW DL_LAZY
8703# else
8704# ifdef RTLD_NOW
8705# define LT_DLLAZY_OR_NOW RTLD_NOW
8706# else
8707# ifdef DL_NOW
8708# define LT_DLLAZY_OR_NOW DL_NOW
8709# else
8710# define LT_DLLAZY_OR_NOW 0
8711# endif
8712# endif
8713# endif
8714# endif
8715#endif
8716
8717#ifdef __cplusplus
8718extern "C" void exit (int);
8719#endif
8720
8721void fnord() { int i=42;}
8722int main ()
8723{
8724 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8725 int status = $lt_dlunknown;
8726
8727 if (self)
8728 {
8729 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8730 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8731 /* dlclose (self); */
8732 }
8733
8734 exit (status);
8735}
8736EOF
8737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8738 (eval $ac_link) 2>&5
8739 ac_status=$?
8740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8741 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8742 (./conftest; exit; ) 2>/dev/null
8743 lt_status=$?
8744 case x$lt_status in
8745 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8746 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8747 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8748 esac
8749 else :
8750 # compilation failed
8751 lt_cv_dlopen_self_static=no
8752 fi
8753fi
8754rm -fr conftest*
8755
8756
8757fi
8758echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8759echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8760 fi
8761
8762 CPPFLAGS="$save_CPPFLAGS"
8763 LDFLAGS="$save_LDFLAGS"
8764 LIBS="$save_LIBS"
8765 ;;
8766 esac
8767
8768 case $lt_cv_dlopen_self in
8769 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8770 *) enable_dlopen_self=unknown ;;
8771 esac
8772
8773 case $lt_cv_dlopen_self_static in
8774 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8775 *) enable_dlopen_self_static=unknown ;;
8776 esac
8777fi
8778
8779
John Criswell47fdd832003-07-14 16:52:07 +00008780# Report which librarie types wil actually be built
8781echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8782echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8783echo "$as_me:$LINENO: result: $can_build_shared" >&5
8784echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008785
John Criswell47fdd832003-07-14 16:52:07 +00008786echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8787echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8788test "$can_build_shared" = "no" && enable_shared=no
8789
8790# On AIX, shared libraries and static libraries use the same namespace, and
8791# are all built from PIC.
8792case "$host_os" in
8793aix3*)
8794 test "$enable_shared" = yes && enable_static=no
8795 if test -n "$RANLIB"; then
8796 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8797 postinstall_cmds='$RANLIB $lib'
8798 fi
8799 ;;
8800
8801aix4*)
8802 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8803 test "$enable_shared" = yes && enable_static=no
8804 fi
8805 ;;
8806 darwin* | rhapsody*)
8807 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8808 archive_cmds_need_lc=no
8809 case "$host_os" in
8810 rhapsody* | darwin1.[012])
8811 allow_undefined_flag='-undefined suppress'
8812 ;;
8813 *) # Darwin 1.3 on
8814 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8815 ;;
8816 esac
8817 # FIXME: Relying on posixy $() will cause problems for
8818 # cross-compilation, but unfortunately the echo tests do not
8819 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
8820 # `"' quotes if we put them in here... so don't!
8821 output_verbose_link_cmd='echo'
8822 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8823 module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8824 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8825 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}'
8826 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}'
8827 hardcode_direct=no
8828 hardcode_automatic=yes
8829 hardcode_shlibpath_var=unsupported
8830 whole_archive_flag_spec='-all_load $convenience'
8831 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00008832 fi
John Criswell7a73b802003-06-30 21:59:07 +00008833 ;;
John Criswell47fdd832003-07-14 16:52:07 +00008834esac
8835echo "$as_me:$LINENO: result: $enable_shared" >&5
8836echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008837
John Criswell47fdd832003-07-14 16:52:07 +00008838echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8839echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8840# Make sure either enable_shared or enable_static is yes.
8841test "$enable_shared" = yes || enable_static=yes
8842echo "$as_me:$LINENO: result: $enable_static" >&5
8843echo "${ECHO_T}$enable_static" >&6
8844
8845# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +00008846# libtool distribution, otherwise you forgot to ship ltmain.sh
8847# with your package, and you will get complaints that there are
8848# no rules to generate ltmain.sh.
8849if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +00008850 # See if we are running on zsh, and set the options which allow our commands through
8851 # without removal of \ escapes.
8852 if test -n "${ZSH_VERSION+set}" ; then
8853 setopt NO_GLOB_SUBST
8854 fi
John Criswell7a73b802003-06-30 21:59:07 +00008855 # Now quote all the things that may contain metacharacters while being
8856 # careful not to overquote the AC_SUBSTed values. We take copies of the
8857 # variables and quote the copies for generation of the libtool script.
John Criswell47fdd832003-07-14 16:52:07 +00008858 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8859 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8860 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8861 deplibs_check_method reload_flag reload_cmds need_locks \
8862 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8863 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +00008864 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +00008865 old_postinstall_cmds old_postuninstall_cmds \
8866 compiler \
8867 CC \
8868 LD \
8869 lt_prog_compiler_wl \
8870 lt_prog_compiler_pic \
8871 lt_prog_compiler_static \
8872 lt_prog_compiler_no_builtin_flag \
8873 export_dynamic_flag_spec \
8874 thread_safe_flag_spec \
8875 whole_archive_flag_spec \
8876 enable_shared_with_static_runtimes \
8877 old_archive_cmds \
8878 old_archive_from_new_cmds \
8879 predep_objects \
8880 postdep_objects \
8881 predeps \
8882 postdeps \
8883 compiler_lib_search_path \
8884 archive_cmds \
8885 archive_expsym_cmds \
8886 postinstall_cmds \
8887 postuninstall_cmds \
8888 old_archive_from_expsyms_cmds \
8889 allow_undefined_flag \
8890 no_undefined_flag \
8891 export_symbols_cmds \
8892 hardcode_libdir_flag_spec \
8893 hardcode_libdir_flag_spec_ld \
8894 hardcode_libdir_separator \
8895 hardcode_automatic \
8896 module_cmds \
8897 module_expsym_cmds \
8898 lt_cv_prog_compiler_c_o \
8899 exclude_expsyms \
8900 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +00008901
8902 case $var in
John Criswell47fdd832003-07-14 16:52:07 +00008903 old_archive_cmds | \
8904 old_archive_from_new_cmds | \
8905 archive_cmds | \
8906 archive_expsym_cmds | \
8907 module_cmds | \
8908 module_expsym_cmds | \
8909 old_archive_from_expsyms_cmds | \
8910 export_symbols_cmds | \
8911 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +00008912 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +00008913 old_postinstall_cmds | old_postuninstall_cmds | \
8914 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +00008915 # Double-quote double-evaled strings.
8916 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8917 ;;
8918 *)
8919 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8920 ;;
8921 esac
8922 done
8923
John Criswell47fdd832003-07-14 16:52:07 +00008924 case $lt_echo in
8925 *'\$0 --fallback-echo"')
8926 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8927 ;;
8928 esac
8929
8930cfgfile="${ofile}T"
8931 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8932 $rm -f "$cfgfile"
8933 { echo "$as_me:$LINENO: creating $ofile" >&5
8934echo "$as_me: creating $ofile" >&6;}
8935
8936 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00008937#! $SHELL
8938
John Criswell47fdd832003-07-14 16:52:07 +00008939# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +00008940# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8941# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8942#
John Criswell47fdd832003-07-14 16:52:07 +00008943# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8944# Free Software Foundation, Inc.
8945#
8946# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +00008947# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8948#
8949# This program is free software; you can redistribute it and/or modify
8950# it under the terms of the GNU General Public License as published by
8951# the Free Software Foundation; either version 2 of the License, or
8952# (at your option) any later version.
8953#
8954# This program is distributed in the hope that it will be useful, but
8955# WITHOUT ANY WARRANTY; without even the implied warranty of
8956# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8957# General Public License for more details.
8958#
8959# You should have received a copy of the GNU General Public License
8960# along with this program; if not, write to the Free Software
8961# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8962#
8963# As a special exception to the GNU General Public License, if you
8964# distribute this file as part of a program that contains a
8965# configuration script generated by Autoconf, you may include it under
8966# the same distribution terms that you use for the rest of that program.
8967
John Criswell47fdd832003-07-14 16:52:07 +00008968# A sed program that does not truncate output.
8969SED=$lt_SED
8970
John Criswell7a73b802003-06-30 21:59:07 +00008971# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +00008972Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +00008973
8974# The HP-UX ksh and POSIX shell print the target directory to stdout
8975# if CDPATH is set.
8976if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8977
John Criswell47fdd832003-07-14 16:52:07 +00008978# The names of the tagged configurations supported by this script.
8979available_tags=
8980
John Criswell7a73b802003-06-30 21:59:07 +00008981# ### BEGIN LIBTOOL CONFIG
8982
8983# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8984
8985# Shell to use when invoking shell scripts.
8986SHELL=$lt_SHELL
8987
8988# Whether or not to build shared libraries.
8989build_libtool_libs=$enable_shared
8990
8991# Whether or not to build static libraries.
8992build_old_libs=$enable_static
8993
8994# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00008995build_libtool_need_lc=$archive_cmds_need_lc
8996
8997# Whether or not to disallow shared libs when runtime libs are static
8998allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +00008999
9000# Whether or not to optimize for fast installation.
9001fast_install=$enable_fast_install
9002
9003# The host system.
9004host_alias=$host_alias
9005host=$host
9006
9007# An echo program that does not interpret backslashes.
9008echo=$lt_echo
9009
9010# The archiver.
9011AR=$lt_AR
9012AR_FLAGS=$lt_AR_FLAGS
9013
John Criswell47fdd832003-07-14 16:52:07 +00009014# A C compiler.
9015LTCC=$lt_LTCC
9016
9017# A language-specific compiler.
9018CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +00009019
9020# Is the compiler the GNU C compiler?
9021with_gcc=$GCC
9022
John Criswell47fdd832003-07-14 16:52:07 +00009023# An ERE matcher.
9024EGREP=$lt_EGREP
9025
John Criswell7a73b802003-06-30 21:59:07 +00009026# The linker used to build libraries.
9027LD=$lt_LD
9028
9029# Whether we need hard or soft links.
9030LN_S=$lt_LN_S
9031
9032# A BSD-compatible nm program.
9033NM=$lt_NM
9034
9035# A symbol stripping program
9036STRIP=$STRIP
9037
9038# Used to examine libraries when file_magic_cmd begins "file"
9039MAGIC_CMD=$MAGIC_CMD
9040
9041# Used on cygwin: DLL creation program.
9042DLLTOOL="$DLLTOOL"
9043
9044# Used on cygwin: object dumper.
9045OBJDUMP="$OBJDUMP"
9046
9047# Used on cygwin: assembler.
9048AS="$AS"
9049
9050# The name of the directory that contains temporary libtool files.
9051objdir=$objdir
9052
9053# How to create reloadable object files.
9054reload_flag=$lt_reload_flag
9055reload_cmds=$lt_reload_cmds
9056
9057# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +00009058wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +00009059
9060# Object file suffix (normally "o").
9061objext="$ac_objext"
9062
9063# Old archive suffix (normally "a").
9064libext="$libext"
9065
John Criswell47fdd832003-07-14 16:52:07 +00009066# Shared library suffix (normally ".so").
9067shrext='$shrext'
9068
John Criswell7a73b802003-06-30 21:59:07 +00009069# Executable file suffix (normally "").
9070exeext="$exeext"
9071
9072# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +00009073pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +00009074pic_mode=$pic_mode
9075
John Criswell47fdd832003-07-14 16:52:07 +00009076# What is the maximum length of a command?
9077max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +00009078
John Criswell47fdd832003-07-14 16:52:07 +00009079# Does compiler simultaneously support -c and -o options?
9080compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +00009081
9082# Must we lock files when doing compilation ?
9083need_locks=$lt_need_locks
9084
9085# Do we need the lib prefix for modules?
9086need_lib_prefix=$need_lib_prefix
9087
9088# Do we need a version for libraries?
9089need_version=$need_version
9090
9091# Whether dlopen is supported.
9092dlopen_support=$enable_dlopen
9093
9094# Whether dlopen of programs is supported.
9095dlopen_self=$enable_dlopen_self
9096
9097# Whether dlopen of statically linked programs is supported.
9098dlopen_self_static=$enable_dlopen_self_static
9099
9100# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +00009101link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +00009102
9103# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +00009104no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +00009105
9106# Compiler flag to allow reflexive dlopens.
9107export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9108
9109# Compiler flag to generate shared objects directly from archives.
9110whole_archive_flag_spec=$lt_whole_archive_flag_spec
9111
9112# Compiler flag to generate thread-safe objects.
9113thread_safe_flag_spec=$lt_thread_safe_flag_spec
9114
9115# Library versioning type.
9116version_type=$version_type
9117
9118# Format of library name prefix.
9119libname_spec=$lt_libname_spec
9120
9121# List of archive names. First name is the real one, the rest are links.
9122# The last name is the one that the linker finds with -lNAME.
9123library_names_spec=$lt_library_names_spec
9124
9125# The coded name of the library, if different from the real name.
9126soname_spec=$lt_soname_spec
9127
9128# Commands used to build and install an old-style archive.
9129RANLIB=$lt_RANLIB
9130old_archive_cmds=$lt_old_archive_cmds
9131old_postinstall_cmds=$lt_old_postinstall_cmds
9132old_postuninstall_cmds=$lt_old_postuninstall_cmds
9133
9134# Create an old-style archive from a shared archive.
9135old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9136
9137# Create a temporary old-style archive to link instead of a shared archive.
9138old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9139
9140# Commands used to build and install a shared archive.
9141archive_cmds=$lt_archive_cmds
9142archive_expsym_cmds=$lt_archive_expsym_cmds
9143postinstall_cmds=$lt_postinstall_cmds
9144postuninstall_cmds=$lt_postuninstall_cmds
9145
John Criswell47fdd832003-07-14 16:52:07 +00009146# Commands used to build a loadable module (assumed same as above if empty)
9147module_cmds=$lt_module_cmds
9148module_expsym_cmds=$lt_module_expsym_cmds
9149
John Criswell7a73b802003-06-30 21:59:07 +00009150# Commands to strip libraries.
9151old_striplib=$lt_old_striplib
9152striplib=$lt_striplib
9153
John Criswell47fdd832003-07-14 16:52:07 +00009154# Dependencies to place before the objects being linked to create a
9155# shared library.
9156predep_objects=$lt_predep_objects
9157
9158# Dependencies to place after the objects being linked to create a
9159# shared library.
9160postdep_objects=$lt_postdep_objects
9161
9162# Dependencies to place before the objects being linked to create a
9163# shared library.
9164predeps=$lt_predeps
9165
9166# Dependencies to place after the objects being linked to create a
9167# shared library.
9168postdeps=$lt_postdeps
9169
9170# The library search path used internally by the compiler when linking
9171# a shared library.
9172compiler_lib_search_path=$lt_compiler_lib_search_path
9173
John Criswell7a73b802003-06-30 21:59:07 +00009174# Method to check whether dependent libraries are shared objects.
9175deplibs_check_method=$lt_deplibs_check_method
9176
9177# Command to use when deplibs_check_method == file_magic.
9178file_magic_cmd=$lt_file_magic_cmd
9179
9180# Flag that allows shared libraries with undefined symbols to be built.
9181allow_undefined_flag=$lt_allow_undefined_flag
9182
9183# Flag that forces no undefined symbols.
9184no_undefined_flag=$lt_no_undefined_flag
9185
9186# Commands used to finish a libtool library installation in a directory.
9187finish_cmds=$lt_finish_cmds
9188
9189# Same as above, but a single script fragment to be evaled but not shown.
9190finish_eval=$lt_finish_eval
9191
9192# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +00009193global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +00009194
9195# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +00009196global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +00009197
9198# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +00009199global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +00009200
9201# This is the shared library runtime path variable.
9202runpath_var=$runpath_var
9203
9204# This is the shared library path variable.
9205shlibpath_var=$shlibpath_var
9206
9207# Is shlibpath searched before the hard-coded library search path?
9208shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9209
9210# How to hardcode a shared library path into an executable.
9211hardcode_action=$hardcode_action
9212
9213# Whether we should hardcode library paths into libraries.
9214hardcode_into_libs=$hardcode_into_libs
9215
9216# Flag to hardcode \$libdir into a binary during linking.
9217# This must work even if \$libdir does not exist.
9218hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9219
John Criswell47fdd832003-07-14 16:52:07 +00009220# If ld is used when linking, flag to hardcode \$libdir into
9221# a binary during linking. This must work even if \$libdir does
9222# not exist.
9223hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9224
John Criswell7a73b802003-06-30 21:59:07 +00009225# Whether we need a single -rpath flag with a separated argument.
9226hardcode_libdir_separator=$lt_hardcode_libdir_separator
9227
John Criswell47fdd832003-07-14 16:52:07 +00009228# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +00009229# resulting binary.
9230hardcode_direct=$hardcode_direct
9231
9232# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9233# resulting binary.
9234hardcode_minus_L=$hardcode_minus_L
9235
9236# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9237# the resulting binary.
9238hardcode_shlibpath_var=$hardcode_shlibpath_var
9239
John Criswell47fdd832003-07-14 16:52:07 +00009240# Set to yes if building a shared library automatically hardcodes DIR into the library
9241# and all subsequent libraries and executables linked against it.
9242hardcode_automatic=$hardcode_automatic
9243
John Criswell7a73b802003-06-30 21:59:07 +00009244# Variables whose values should be saved in libtool wrapper scripts and
9245# restored at relink time.
9246variables_saved_for_relink="$variables_saved_for_relink"
9247
9248# Whether libtool must link a program against all its dependency libraries.
9249link_all_deplibs=$link_all_deplibs
9250
9251# Compile-time system search path for libraries
9252sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9253
9254# Run-time system search path for libraries
9255sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9256
9257# Fix the shell variable \$srcfile for the compiler.
9258fix_srcfile_path="$fix_srcfile_path"
9259
9260# Set to yes if exported symbols are required.
9261always_export_symbols=$always_export_symbols
9262
9263# The commands to list exported symbols.
9264export_symbols_cmds=$lt_export_symbols_cmds
9265
9266# The commands to extract the exported symbol list from a shared archive.
9267extract_expsyms_cmds=$lt_extract_expsyms_cmds
9268
9269# Symbols that should not be listed in the preloaded symbols.
9270exclude_expsyms=$lt_exclude_expsyms
9271
9272# Symbols that must always be exported.
9273include_expsyms=$lt_include_expsyms
9274
9275# ### END LIBTOOL CONFIG
9276
9277__EOF__
9278
John Criswell47fdd832003-07-14 16:52:07 +00009279
John Criswell7a73b802003-06-30 21:59:07 +00009280 case $host_os in
9281 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +00009282 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00009283
9284# AIX sometimes has problems with the GCC collect2 program. For some
9285# reason, if we set the COLLECT_NAMES environment variable, the problems
9286# vanish in a puff of smoke.
9287if test "X${COLLECT_NAMES+set}" != Xset; then
9288 COLLECT_NAMES=
9289 export COLLECT_NAMES
9290fi
9291EOF
9292 ;;
9293 esac
9294
John Criswell7a73b802003-06-30 21:59:07 +00009295 # We use sed instead of cat because bash on DJGPP gets confused if
9296 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9297 # text mode, it properly converts lines to CR/LF. This bash problem
9298 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +00009299 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +00009300
John Criswell47fdd832003-07-14 16:52:07 +00009301 mv -f "$cfgfile" "$ofile" || \
9302 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +00009303 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +00009304
9305else
9306 # If there is no Makefile yet, we rely on a make rule to execute
9307 # `config.status --recheck' to rerun these tests and create the
9308 # libtool script then.
9309 test -f Makefile && make "$ltmain"
John Criswell7a73b802003-06-30 21:59:07 +00009310fi
John Criswell7a73b802003-06-30 21:59:07 +00009311
9312
John Criswell47fdd832003-07-14 16:52:07 +00009313ac_ext=c
9314ac_cpp='$CPP $CPPFLAGS'
9315ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9316ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9317ac_compiler_gnu=$ac_cv_c_compiler_gnu
9318
9319CC="$lt_save_CC"
9320
9321
9322# Check whether --with-tags or --without-tags was given.
9323if test "${with_tags+set}" = set; then
9324 withval="$with_tags"
9325 tagnames="$withval"
9326fi;
9327
9328if test -f "$ltmain" && test -n "$tagnames"; then
9329 if test ! -f "${ofile}"; then
9330 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9331echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9332 fi
9333
9334 if test -z "$LTCC"; then
9335 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9336 if test -z "$LTCC"; then
9337 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9338echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9339 else
9340 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9341echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9342 fi
9343 fi
9344
9345 # Extract list of available tagged configurations in $ofile.
9346 # Note that this assumes the entire list is on one line.
9347 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9348
9349 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9350 for tagname in $tagnames; do
9351 IFS="$lt_save_ifs"
9352 # Check whether tagname contains only valid characters
9353 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9354 "") ;;
9355 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9356echo "$as_me: error: invalid tag name: $tagname" >&2;}
9357 { (exit 1); exit 1; }; }
9358 ;;
9359 esac
9360
9361 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9362 then
9363 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9364echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9365 { (exit 1); exit 1; }; }
9366 fi
9367
9368 # Update the list of available tags.
9369 if test -n "$tagname"; then
9370 echo appending configuration tag \"$tagname\" to $ofile
9371
9372 case $tagname in
9373 CXX)
9374 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9375 ac_ext=cc
9376ac_cpp='$CXXCPP $CPPFLAGS'
9377ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9378ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9379ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9380
9381
9382
9383
9384archive_cmds_need_lc_CXX=no
9385allow_undefined_flag_CXX=
9386always_export_symbols_CXX=no
9387archive_expsym_cmds_CXX=
9388export_dynamic_flag_spec_CXX=
9389hardcode_direct_CXX=no
9390hardcode_libdir_flag_spec_CXX=
9391hardcode_libdir_flag_spec_ld_CXX=
9392hardcode_libdir_separator_CXX=
9393hardcode_minus_L_CXX=no
9394hardcode_automatic_CXX=no
9395module_cmds_CXX=
9396module_expsym_cmds_CXX=
9397link_all_deplibs_CXX=unknown
9398old_archive_cmds_CXX=$old_archive_cmds
9399no_undefined_flag_CXX=
9400whole_archive_flag_spec_CXX=
9401enable_shared_with_static_runtimes_CXX=no
9402
9403# Dependencies to place before and after the object being linked:
9404predep_objects_CXX=
9405postdep_objects_CXX=
9406predeps_CXX=
9407postdeps_CXX=
9408compiler_lib_search_path_CXX=
9409
9410# Source file extension for C++ test sources.
9411ac_ext=cc
9412
9413# Object file extension for compiled C++ test sources.
9414objext=o
9415objext_CXX=$objext
9416
9417# Code to be used in simple compile tests
9418lt_simple_compile_test_code="int some_variable = 0;\n"
9419
9420# Code to be used in simple link tests
9421lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9422
9423# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9424
9425# If no C compiler was specified, use CC.
9426LTCC=${LTCC-"$CC"}
9427
9428# Allow CC to be a program name with arguments.
9429compiler=$CC
9430
9431
9432# Allow CC to be a program name with arguments.
9433lt_save_CC=$CC
9434lt_save_LD=$LD
9435lt_save_GCC=$GCC
9436GCC=$GXX
9437lt_save_with_gnu_ld=$with_gnu_ld
9438lt_save_path_LD=$lt_cv_path_LD
9439if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9440 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9441else
9442 unset lt_cv_prog_gnu_ld
9443fi
9444if test -n "${lt_cv_path_LDCXX+set}"; then
9445 lt_cv_path_LD=$lt_cv_path_LDCXX
9446else
9447 unset lt_cv_path_LD
9448fi
9449test -z "${LDCXX+set}" || LD=$LDCXX
9450CC=${CXX-"c++"}
9451compiler=$CC
9452compiler_CXX=$CC
9453cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9454
9455# We don't want -fno-exception wen compiling C++ code, so set the
9456# no_builtin_flag separately
9457if test "$GXX" = yes; then
9458 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9459else
9460 lt_prog_compiler_no_builtin_flag_CXX=
9461fi
9462
9463if test "$GXX" = yes; then
9464 # Set up default GNU C++ configuration
9465
9466
9467# Check whether --with-gnu-ld or --without-gnu-ld was given.
9468if test "${with_gnu_ld+set}" = set; then
9469 withval="$with_gnu_ld"
9470 test "$withval" = no || with_gnu_ld=yes
9471else
9472 with_gnu_ld=no
9473fi;
9474ac_prog=ld
9475if test "$GCC" = yes; then
9476 # Check if gcc -print-prog-name=ld gives a path.
9477 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9478echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9479 case $host in
9480 *-*-mingw*)
9481 # gcc leaves a trailing carriage return which upsets mingw
9482 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9483 *)
9484 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9485 esac
9486 case $ac_prog in
9487 # Accept absolute paths.
9488 [\\/]* | ?:[\\/]*)
9489 re_direlt='/[^/][^/]*/\.\./'
9490 # Canonicalize the path of ld
9491 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9492 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9493 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9494 done
9495 test -z "$LD" && LD="$ac_prog"
9496 ;;
9497 "")
9498 # If it fails, then pretend we aren't using GCC.
9499 ac_prog=ld
9500 ;;
9501 *)
9502 # If it is relative, then search for the first ld in PATH.
9503 with_gnu_ld=unknown
9504 ;;
9505 esac
9506elif test "$with_gnu_ld" = yes; then
9507 echo "$as_me:$LINENO: checking for GNU ld" >&5
9508echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9509else
9510 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9511echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9512fi
9513if test "${lt_cv_path_LD+set}" = set; then
9514 echo $ECHO_N "(cached) $ECHO_C" >&6
9515else
9516 if test -z "$LD"; then
9517 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9518 for ac_dir in $PATH; do
9519 IFS="$lt_save_ifs"
9520 test -z "$ac_dir" && ac_dir=.
9521 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9522 lt_cv_path_LD="$ac_dir/$ac_prog"
9523 # Check to see if the program is GNU ld. I'd rather use --version,
9524 # but apparently some GNU ld's only accept -v.
9525 # Break only if it was the GNU/non-GNU ld that we prefer.
9526 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9527 *GNU* | *'with BFD'*)
9528 test "$with_gnu_ld" != no && break
9529 ;;
9530 *)
9531 test "$with_gnu_ld" != yes && break
9532 ;;
9533 esac
9534 fi
9535 done
9536 IFS="$lt_save_ifs"
9537else
9538 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9539fi
9540fi
9541
9542LD="$lt_cv_path_LD"
9543if test -n "$LD"; then
9544 echo "$as_me:$LINENO: result: $LD" >&5
9545echo "${ECHO_T}$LD" >&6
9546else
9547 echo "$as_me:$LINENO: result: no" >&5
9548echo "${ECHO_T}no" >&6
9549fi
9550test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9551echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9552 { (exit 1); exit 1; }; }
9553echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9554echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9555if test "${lt_cv_prog_gnu_ld+set}" = set; then
9556 echo $ECHO_N "(cached) $ECHO_C" >&6
9557else
9558 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9559case `"$LD" -v 2>&1 </dev/null` in
9560*GNU* | *'with BFD'*)
9561 lt_cv_prog_gnu_ld=yes
9562 ;;
9563*)
9564 lt_cv_prog_gnu_ld=no
9565 ;;
9566esac
9567fi
9568echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9569echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9570with_gnu_ld=$lt_cv_prog_gnu_ld
9571
9572
9573
9574 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9575 # archiving commands below assume that GNU ld is being used.
9576 if test "$with_gnu_ld" = yes; then
9577 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9578 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'
9579
9580 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9581 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9582
9583 # If archive_cmds runs LD, not CC, wlarc should be empty
9584 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9585 # investigate it a little bit more. (MM)
9586 wlarc='${wl}'
9587
9588 # ancient GNU ld didn't support --whole-archive et. al.
9589 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9590 grep 'no-whole-archive' > /dev/null; then
9591 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9592 else
9593 whole_archive_flag_spec_CXX=
9594 fi
9595 else
9596 with_gnu_ld=no
9597 wlarc=
9598
9599 # A generic and very simple default shared library creation
9600 # command for GNU C++ for the case where it uses the native
9601 # linker, instead of GNU ld. If possible, this setting should
9602 # overridden to take advantage of the native linker features on
9603 # the platform it is being used on.
9604 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9605 fi
9606
9607 # Commands to make compiler produce verbose output that lists
9608 # what "hidden" libraries, object files and flags are used when
9609 # linking a shared library.
9610 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9611
9612else
9613 GXX=no
9614 with_gnu_ld=no
9615 wlarc=
9616fi
9617
9618# PORTME: fill in a description of your system's C++ link characteristics
9619echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9620echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9621ld_shlibs_CXX=yes
9622case $host_os in
9623 aix3*)
9624 # FIXME: insert proper C++ library support
9625 ld_shlibs_CXX=no
9626 ;;
9627 aix4* | aix5*)
9628 if test "$host_cpu" = ia64; then
9629 # On IA64, the linker does run time linking by default, so we don't
9630 # have to do anything special.
9631 aix_use_runtimelinking=no
9632 exp_sym_flag='-Bexport'
9633 no_entry_flag=""
9634 else
9635 aix_use_runtimelinking=no
9636
9637 # Test if we are trying to use run time linking or normal
9638 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9639 # need to do runtime linking.
9640 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9641 for ld_flag in $LDFLAGS; do
9642 case $ld_flag in
9643 *-brtl*)
9644 aix_use_runtimelinking=yes
9645 break
9646 ;;
9647 esac
9648 done
9649 esac
9650
9651 exp_sym_flag='-bexport'
9652 no_entry_flag='-bnoentry'
9653 fi
9654
9655 # When large executables or shared objects are built, AIX ld can
9656 # have problems creating the table of contents. If linking a library
9657 # or program results in "error TOC overflow" add -mminimal-toc to
9658 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9659 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9660
9661 archive_cmds_CXX=''
9662 hardcode_direct_CXX=yes
9663 hardcode_libdir_separator_CXX=':'
9664 link_all_deplibs_CXX=yes
9665
9666 if test "$GXX" = yes; then
9667 case $host_os in aix4.012|aix4.012.*)
9668 # We only want to do this on AIX 4.2 and lower, the check
9669 # below for broken collect2 doesn't work under 4.3+
9670 collect2name=`${CC} -print-prog-name=collect2`
9671 if test -f "$collect2name" && \
9672 strings "$collect2name" | grep resolve_lib_name >/dev/null
9673 then
9674 # We have reworked collect2
9675 hardcode_direct_CXX=yes
9676 else
9677 # We have old collect2
9678 hardcode_direct_CXX=unsupported
9679 # It fails to find uninstalled libraries when the uninstalled
9680 # path is not listed in the libpath. Setting hardcode_minus_L
9681 # to unsupported forces relinking
9682 hardcode_minus_L_CXX=yes
9683 hardcode_libdir_flag_spec_CXX='-L$libdir'
9684 hardcode_libdir_separator_CXX=
9685 fi
9686 esac
9687 shared_flag='-shared'
9688 else
9689 # not using gcc
9690 if test "$host_cpu" = ia64; then
9691 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9692 # chokes on -Wl,-G. The following line is correct:
9693 shared_flag='-G'
9694 else
9695 if test "$aix_use_runtimelinking" = yes; then
9696 shared_flag='${wl}-G'
9697 else
9698 shared_flag='${wl}-bM:SRE'
9699 fi
9700 fi
9701 fi
9702
9703 # It seems that -bexpall does not export symbols beginning with
9704 # underscore (_), so it is better to generate a list of symbols to export.
9705 always_export_symbols_CXX=yes
9706 if test "$aix_use_runtimelinking" = yes; then
9707 # Warning - without using the other runtime loading flags (-brtl),
9708 # -berok will link without error, but may produce a broken library.
9709 allow_undefined_flag_CXX='-berok'
9710 # Determine the default libpath from the value encoded in an empty executable.
9711 cat >conftest.$ac_ext <<_ACEOF
9712#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00009713/* confdefs.h. */
9714_ACEOF
9715cat confdefs.h >>conftest.$ac_ext
9716cat >>conftest.$ac_ext <<_ACEOF
9717/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009718
John Criswell47fdd832003-07-14 16:52:07 +00009719int
9720main ()
9721{
9722
9723 ;
9724 return 0;
9725}
9726_ACEOF
9727rm -f conftest.$ac_objext conftest$ac_exeext
9728if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9729 (eval $ac_link) 2>&5
9730 ac_status=$?
9731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732 (exit $ac_status); } &&
9733 { ac_try='test -s conftest$ac_exeext'
9734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9735 (eval $ac_try) 2>&5
9736 ac_status=$?
9737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738 (exit $ac_status); }; }; then
9739
9740aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9741}'`
9742# Check for a 64-bit object if we didn't find anything.
9743if 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; }
9744}'`; fi
9745else
9746 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009747sed 's/^/| /' conftest.$ac_ext >&5
9748
John Criswell47fdd832003-07-14 16:52:07 +00009749fi
9750rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9751if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9752
9753 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9754
9755 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"
9756 else
9757 if test "$host_cpu" = ia64; then
9758 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9759 allow_undefined_flag_CXX="-z nodefs"
9760 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"
9761 else
9762 # Determine the default libpath from the value encoded in an empty executable.
9763 cat >conftest.$ac_ext <<_ACEOF
9764#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00009765/* confdefs.h. */
9766_ACEOF
9767cat confdefs.h >>conftest.$ac_ext
9768cat >>conftest.$ac_ext <<_ACEOF
9769/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009770
John Criswell47fdd832003-07-14 16:52:07 +00009771int
9772main ()
9773{
9774
9775 ;
9776 return 0;
9777}
9778_ACEOF
9779rm -f conftest.$ac_objext conftest$ac_exeext
9780if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9781 (eval $ac_link) 2>&5
9782 ac_status=$?
9783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9784 (exit $ac_status); } &&
9785 { ac_try='test -s conftest$ac_exeext'
9786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9787 (eval $ac_try) 2>&5
9788 ac_status=$?
9789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9790 (exit $ac_status); }; }; then
9791
9792aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9793}'`
9794# Check for a 64-bit object if we didn't find anything.
9795if 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; }
9796}'`; fi
9797else
9798 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009799sed 's/^/| /' conftest.$ac_ext >&5
9800
John Criswell47fdd832003-07-14 16:52:07 +00009801fi
9802rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9803if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9804
9805 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9806 # Warning - without using the other run time loading flags,
9807 # -berok will link without error, but may produce a broken library.
9808 no_undefined_flag_CXX=' ${wl}-bernotok'
9809 allow_undefined_flag_CXX=' ${wl}-berok'
9810 # -bexpall does not export symbols beginning with underscore (_)
9811 always_export_symbols_CXX=yes
9812 # Exported symbols can be pulled into shared objects from archives
9813 whole_archive_flag_spec_CXX=' '
9814 archive_cmds_need_lc_CXX=yes
9815 # This is similar to how AIX traditionally builds it's shared libraries.
9816 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'
9817 fi
9818 fi
9819 ;;
9820 chorus*)
9821 case $cc_basename in
9822 *)
9823 # FIXME: insert proper C++ library support
9824 ld_shlibs_CXX=no
9825 ;;
9826 esac
9827 ;;
9828
9829 cygwin* | mingw* | pw32*)
9830 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9831 # as there is no search path for DLLs.
9832 hardcode_libdir_flag_spec_CXX='-L$libdir'
9833 allow_undefined_flag_CXX=unsupported
9834 always_export_symbols_CXX=no
9835 enable_shared_with_static_runtimes_CXX=yes
9836
9837 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9838 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'
9839 # If the export-symbols file already is a .def file (1st line
9840 # is EXPORTS), use it as is; otherwise, prepend...
9841 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9842 cp $export_symbols $output_objdir/$soname.def;
9843 else
9844 echo EXPORTS > $output_objdir/$soname.def;
9845 cat $export_symbols >> $output_objdir/$soname.def;
9846 fi~
9847 $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'
9848 else
9849 ld_shlibs_CXX=no
9850 fi
9851 ;;
9852
9853 darwin* | rhapsody*)
9854 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9855 archive_cmds_need_lc_CXX=no
9856 case "$host_os" in
9857 rhapsody* | darwin1.[012])
9858 allow_undefined_flag_CXX='-undefined suppress'
9859 ;;
9860 *) # Darwin 1.3 on
9861 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9862 ;;
9863 esac
9864 lt_int_apple_cc_single_mod=no
9865 output_verbose_link_cmd='echo'
9866 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9867 lt_int_apple_cc_single_mod=yes
9868 fi
9869 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9870 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9871 else
9872 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'
9873 fi
9874 module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9875
9876 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9877 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9878 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}'
9879 else
9880 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}'
9881 fi
9882 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}'
9883 hardcode_direct_CXX=no
9884 hardcode_automatic_CXX=yes
9885 hardcode_shlibpath_var_CXX=unsupported
9886 whole_archive_flag_spec_CXX='-all_load $convenience'
9887 link_all_deplibs_CXX=yes
9888 fi
9889 ;;
9890
9891 dgux*)
9892 case $cc_basename in
9893 ec++)
9894 # FIXME: insert proper C++ library support
9895 ld_shlibs_CXX=no
9896 ;;
9897 ghcx)
9898 # Green Hills C++ Compiler
9899 # FIXME: insert proper C++ library support
9900 ld_shlibs_CXX=no
9901 ;;
9902 *)
9903 # FIXME: insert proper C++ library support
9904 ld_shlibs_CXX=no
9905 ;;
9906 esac
9907 ;;
9908 freebsd12*)
9909 # C++ shared libraries reported to be fairly broken before switch to ELF
9910 ld_shlibs_CXX=no
9911 ;;
9912 freebsd-elf*)
9913 archive_cmds_need_lc_CXX=no
9914 ;;
9915 freebsd*)
9916 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9917 # conventions
9918 ld_shlibs_CXX=yes
9919 ;;
9920 gnu*)
9921 ;;
9922 hpux9*)
9923 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9924 hardcode_libdir_separator_CXX=:
9925 export_dynamic_flag_spec_CXX='${wl}-E'
9926 hardcode_direct_CXX=yes
9927 hardcode_minus_L_CXX=yes # Not in the search PATH,
9928 # but as the default
9929 # location of the library.
9930
9931 case $cc_basename in
9932 CC)
9933 # FIXME: insert proper C++ library support
9934 ld_shlibs_CXX=no
9935 ;;
9936 aCC)
9937 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'
9938 # Commands to make compiler produce verbose output that lists
9939 # what "hidden" libraries, object files and flags are used when
9940 # linking a shared library.
9941 #
9942 # There doesn't appear to be a way to prevent this compiler from
9943 # explicitly linking system object files so we need to strip them
9944 # from the output so that they don't get included in the library
9945 # dependencies.
9946 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'
9947 ;;
9948 *)
9949 if test "$GXX" = yes; then
9950 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'
9951 else
9952 # FIXME: insert proper C++ library support
9953 ld_shlibs_CXX=no
9954 fi
9955 ;;
9956 esac
9957 ;;
9958 hpux10*|hpux11*)
9959 if test $with_gnu_ld = no; then
9960 case "$host_cpu" in
9961 hppa*64*)
9962 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9963 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9964 hardcode_libdir_separator_CXX=:
9965 ;;
9966 ia64*)
9967 hardcode_libdir_flag_spec_CXX='-L$libdir'
9968 ;;
9969 *)
9970 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9971 hardcode_libdir_separator_CXX=:
9972 export_dynamic_flag_spec_CXX='${wl}-E'
9973 ;;
9974 esac
9975 fi
9976 case "$host_cpu" in
9977 hppa*64*)
9978 hardcode_direct_CXX=no
9979 hardcode_shlibpath_var_CXX=no
9980 ;;
9981 ia64*)
9982 hardcode_direct_CXX=no
9983 hardcode_shlibpath_var_CXX=no
9984 hardcode_minus_L_CXX=yes # Not in the search PATH,
9985 # but as the default
9986 # location of the library.
9987 ;;
9988 *)
9989 hardcode_direct_CXX=yes
9990 hardcode_minus_L_CXX=yes # Not in the search PATH,
9991 # but as the default
9992 # location of the library.
9993 ;;
9994 esac
9995
9996 case $cc_basename in
9997 CC)
9998 # FIXME: insert proper C++ library support
9999 ld_shlibs_CXX=no
10000 ;;
10001 aCC)
10002 case "$host_cpu" in
10003 hppa*64*|ia64*)
10004 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10005 ;;
10006 *)
10007 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10008 ;;
10009 esac
10010 # Commands to make compiler produce verbose output that lists
10011 # what "hidden" libraries, object files and flags are used when
10012 # linking a shared library.
10013 #
10014 # There doesn't appear to be a way to prevent this compiler from
10015 # explicitly linking system object files so we need to strip them
10016 # from the output so that they don't get included in the library
10017 # dependencies.
10018 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'
10019 ;;
10020 *)
10021 if test "$GXX" = yes; then
10022 if test $with_gnu_ld = no; then
10023 case "$host_cpu" in
10024 ia64*|hppa*64*)
10025 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10026 ;;
10027 *)
10028 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'
10029 ;;
10030 esac
10031 fi
10032 else
10033 # FIXME: insert proper C++ library support
10034 ld_shlibs_CXX=no
10035 fi
10036 ;;
10037 esac
10038 ;;
10039 irix5* | irix6*)
10040 case $cc_basename in
10041 CC)
10042 # SGI C++
10043 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'
10044
10045 # Archives containing C++ object files must be created using
10046 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10047 # necessary to make sure instantiated templates are included
10048 # in the archive.
10049 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10050 ;;
10051 *)
10052 if test "$GXX" = yes; then
10053 if test "$with_gnu_ld" = no; then
10054 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'
10055 else
10056 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'
10057 fi
10058 fi
10059 link_all_deplibs_CXX=yes
10060 ;;
10061 esac
10062 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10063 hardcode_libdir_separator_CXX=:
10064 ;;
10065 linux*)
10066 case $cc_basename in
10067 KCC)
10068 # Kuck and Associates, Inc. (KAI) C++ Compiler
10069
10070 # KCC will only create a shared library if the output file
10071 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10072 # to its proper name (with version) after linking.
10073 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'
10074 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'
10075 # Commands to make compiler produce verbose output that lists
10076 # what "hidden" libraries, object files and flags are used when
10077 # linking a shared library.
10078 #
10079 # There doesn't appear to be a way to prevent this compiler from
10080 # explicitly linking system object files so we need to strip them
10081 # from the output so that they don't get included in the library
10082 # dependencies.
10083 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'
10084
10085 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10086 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10087
10088 # Archives containing C++ object files must be created using
10089 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10090 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10091 ;;
10092 icpc)
10093 # Intel C++
10094 with_gnu_ld=yes
10095 archive_cmds_need_lc_CXX=no
10096 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10097 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'
10098 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10099 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10100 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10101 ;;
10102 cxx)
10103 # Compaq C++
10104 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10105 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'
10106
10107 runpath_var=LD_RUN_PATH
10108 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10109 hardcode_libdir_separator_CXX=:
10110
10111 # Commands to make compiler produce verbose output that lists
10112 # what "hidden" libraries, object files and flags are used when
10113 # linking a shared library.
10114 #
10115 # There doesn't appear to be a way to prevent this compiler from
10116 # explicitly linking system object files so we need to strip them
10117 # from the output so that they don't get included in the library
10118 # dependencies.
10119 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'
10120 ;;
10121 esac
10122 ;;
10123 lynxos*)
10124 # FIXME: insert proper C++ library support
10125 ld_shlibs_CXX=no
10126 ;;
10127 m88k*)
10128 # FIXME: insert proper C++ library support
10129 ld_shlibs_CXX=no
10130 ;;
10131 mvs*)
10132 case $cc_basename in
10133 cxx)
10134 # FIXME: insert proper C++ library support
10135 ld_shlibs_CXX=no
10136 ;;
10137 *)
10138 # FIXME: insert proper C++ library support
10139 ld_shlibs_CXX=no
10140 ;;
10141 esac
10142 ;;
10143 netbsd*)
10144 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10145 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10146 wlarc=
10147 hardcode_libdir_flag_spec_CXX='-R$libdir'
10148 hardcode_direct_CXX=yes
10149 hardcode_shlibpath_var_CXX=no
10150 fi
10151 # Workaround some broken pre-1.5 toolchains
10152 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10153 ;;
10154 osf3*)
10155 case $cc_basename in
10156 KCC)
10157 # Kuck and Associates, Inc. (KAI) C++ Compiler
10158
10159 # KCC will only create a shared library if the output file
10160 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10161 # to its proper name (with version) after linking.
10162 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'
10163
10164 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10165 hardcode_libdir_separator_CXX=:
10166
10167 # Archives containing C++ object files must be created using
10168 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10169 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10170
10171 ;;
10172 RCC)
10173 # Rational C++ 2.4.1
10174 # FIXME: insert proper C++ library support
10175 ld_shlibs_CXX=no
10176 ;;
10177 cxx)
10178 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10179 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'
10180
10181 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10182 hardcode_libdir_separator_CXX=:
10183
10184 # Commands to make compiler produce verbose output that lists
10185 # what "hidden" libraries, object files and flags are used when
10186 # linking a shared library.
10187 #
10188 # There doesn't appear to be a way to prevent this compiler from
10189 # explicitly linking system object files so we need to strip them
10190 # from the output so that they don't get included in the library
10191 # dependencies.
10192 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'
10193 ;;
10194 *)
10195 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10196 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10197 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'
10198
10199 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10200 hardcode_libdir_separator_CXX=:
10201
10202 # Commands to make compiler produce verbose output that lists
10203 # what "hidden" libraries, object files and flags are used when
10204 # linking a shared library.
10205 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10206
10207 else
10208 # FIXME: insert proper C++ library support
10209 ld_shlibs_CXX=no
10210 fi
10211 ;;
10212 esac
10213 ;;
10214 osf4* | osf5*)
10215 case $cc_basename in
10216 KCC)
10217 # Kuck and Associates, Inc. (KAI) C++ Compiler
10218
10219 # KCC will only create a shared library if the output file
10220 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10221 # to its proper name (with version) after linking.
10222 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'
10223
10224 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10225 hardcode_libdir_separator_CXX=:
10226
10227 # Archives containing C++ object files must be created using
10228 # the KAI C++ compiler.
10229 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10230 ;;
10231 RCC)
10232 # Rational C++ 2.4.1
10233 # FIXME: insert proper C++ library support
10234 ld_shlibs_CXX=no
10235 ;;
10236 cxx)
10237 allow_undefined_flag_CXX=' -expect_unresolved \*'
10238 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'
10239 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10240 echo "-hidden">> $lib.exp~
10241 $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~
10242 $rm $lib.exp'
10243
10244 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10245 hardcode_libdir_separator_CXX=:
10246
10247 # Commands to make compiler produce verbose output that lists
10248 # what "hidden" libraries, object files and flags are used when
10249 # linking a shared library.
10250 #
10251 # There doesn't appear to be a way to prevent this compiler from
10252 # explicitly linking system object files so we need to strip them
10253 # from the output so that they don't get included in the library
10254 # dependencies.
10255 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'
10256 ;;
10257 *)
10258 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10259 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10260 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'
10261
10262 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10263 hardcode_libdir_separator_CXX=:
10264
10265 # Commands to make compiler produce verbose output that lists
10266 # what "hidden" libraries, object files and flags are used when
10267 # linking a shared library.
10268 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10269
10270 else
10271 # FIXME: insert proper C++ library support
10272 ld_shlibs_CXX=no
10273 fi
10274 ;;
10275 esac
10276 ;;
10277 psos*)
10278 # FIXME: insert proper C++ library support
10279 ld_shlibs_CXX=no
10280 ;;
10281 sco*)
10282 archive_cmds_need_lc_CXX=no
10283 case $cc_basename in
10284 CC)
10285 # FIXME: insert proper C++ library support
10286 ld_shlibs_CXX=no
10287 ;;
10288 *)
10289 # FIXME: insert proper C++ library support
10290 ld_shlibs_CXX=no
10291 ;;
10292 esac
10293 ;;
10294 sunos4*)
10295 case $cc_basename in
10296 CC)
10297 # Sun C++ 4.x
10298 # FIXME: insert proper C++ library support
10299 ld_shlibs_CXX=no
10300 ;;
10301 lcc)
10302 # Lucid
10303 # FIXME: insert proper C++ library support
10304 ld_shlibs_CXX=no
10305 ;;
10306 *)
10307 # FIXME: insert proper C++ library support
10308 ld_shlibs_CXX=no
10309 ;;
10310 esac
10311 ;;
10312 solaris*)
10313 case $cc_basename in
10314 CC)
10315 # Sun C++ 4.2, 5.x and Centerline C++
10316 no_undefined_flag_CXX=' -zdefs'
10317 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10318 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10319 $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'
10320
10321 hardcode_libdir_flag_spec_CXX='-R$libdir'
10322 hardcode_shlibpath_var_CXX=no
10323 case $host_os in
10324 solaris2.0-5 | solaris2.0-5.*) ;;
10325 *)
10326 # The C++ compiler is used as linker so we must use $wl
10327 # flag to pass the commands to the underlying system
10328 # linker.
10329 # Supported since Solaris 2.6 (maybe 2.5.1?)
10330 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10331 ;;
10332 esac
10333 link_all_deplibs_CXX=yes
10334
10335 # Commands to make compiler produce verbose output that lists
10336 # what "hidden" libraries, object files and flags are used when
10337 # linking a shared library.
10338 #
10339 # There doesn't appear to be a way to prevent this compiler from
10340 # explicitly linking system object files so we need to strip them
10341 # from the output so that they don't get included in the library
10342 # dependencies.
10343 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'
10344
10345 # Archives containing C++ object files must be created using
10346 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10347 # necessary to make sure instantiated templates are included
10348 # in the archive.
10349 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10350 ;;
10351 gcx)
10352 # Green Hills C++ Compiler
10353 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10354
10355 # The C++ compiler must be used to create the archive.
10356 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10357 ;;
10358 *)
10359 # GNU C++ compiler with Solaris linker
10360 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10361 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10362 if $CC --version | grep -v '^2\.7' > /dev/null; then
10363 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10364 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10365 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10366
10367 # Commands to make compiler produce verbose output that lists
10368 # what "hidden" libraries, object files and flags are used when
10369 # linking a shared library.
10370 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10371 else
10372 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10373 # platform.
10374 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10375 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10376 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10377
10378 # Commands to make compiler produce verbose output that lists
10379 # what "hidden" libraries, object files and flags are used when
10380 # linking a shared library.
10381 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10382 fi
10383
10384 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10385 fi
10386 ;;
10387 esac
10388 ;;
10389 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10390 archive_cmds_need_lc_CXX=no
10391 ;;
10392 tandem*)
10393 case $cc_basename in
10394 NCC)
10395 # NonStop-UX NCC 3.20
10396 # FIXME: insert proper C++ library support
10397 ld_shlibs_CXX=no
10398 ;;
10399 *)
10400 # FIXME: insert proper C++ library support
10401 ld_shlibs_CXX=no
10402 ;;
10403 esac
10404 ;;
10405 vxworks*)
10406 # FIXME: insert proper C++ library support
10407 ld_shlibs_CXX=no
10408 ;;
10409 *)
10410 # FIXME: insert proper C++ library support
10411 ld_shlibs_CXX=no
10412 ;;
10413esac
10414echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10415echo "${ECHO_T}$ld_shlibs_CXX" >&6
10416test "$ld_shlibs_CXX" = no && can_build_shared=no
10417
10418GCC_CXX="$GXX"
10419LD_CXX="$LD"
10420
10421## CAVEAT EMPTOR:
10422## There is no encapsulation within the following macros, do not change
10423## the running order or otherwise move them around unless you know exactly
10424## what you are doing...
10425
10426cat > conftest.$ac_ext <<EOF
10427class Foo
10428{
10429public:
10430 Foo (void) { a = 0; }
10431private:
10432 int a;
10433};
10434EOF
10435
10436if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10437 (eval $ac_compile) 2>&5
10438 ac_status=$?
10439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10440 (exit $ac_status); }; then
10441 # Parse the compiler output and extract the necessary
10442 # objects, libraries and library flags.
10443
10444 # Sentinel used to keep track of whether or not we are before
10445 # the conftest object file.
10446 pre_test_object_deps_done=no
10447
10448 # The `*' in the case matches for architectures that use `case' in
10449 # $output_verbose_cmd can trigger glob expansion during the loop
10450 # eval without this substitution.
10451 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10452
10453 for p in `eval $output_verbose_link_cmd`; do
10454 case $p in
10455
10456 -L* | -R* | -l*)
10457 # Some compilers place space between "-{L,R}" and the path.
10458 # Remove the space.
10459 if test $p = "-L" \
10460 || test $p = "-R"; then
10461 prev=$p
10462 continue
10463 else
10464 prev=
10465 fi
10466
10467 if test "$pre_test_object_deps_done" = no; then
10468 case $p in
10469 -L* | -R*)
10470 # Internal compiler library paths should come after those
10471 # provided the user. The postdeps already come after the
10472 # user supplied libs so there is no need to process them.
10473 if test -z "$compiler_lib_search_path_CXX"; then
10474 compiler_lib_search_path_CXX="${prev}${p}"
10475 else
10476 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10477 fi
10478 ;;
10479 # The "-l" case would never come before the object being
10480 # linked, so don't bother handling this case.
10481 esac
10482 else
10483 if test -z "$postdeps_CXX"; then
10484 postdeps_CXX="${prev}${p}"
10485 else
10486 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10487 fi
10488 fi
10489 ;;
10490
10491 *.$objext)
10492 # This assumes that the test object file only shows up
10493 # once in the compiler output.
10494 if test "$p" = "conftest.$objext"; then
10495 pre_test_object_deps_done=yes
10496 continue
10497 fi
10498
10499 if test "$pre_test_object_deps_done" = no; then
10500 if test -z "$predep_objects_CXX"; then
10501 predep_objects_CXX="$p"
10502 else
10503 predep_objects_CXX="$predep_objects_CXX $p"
10504 fi
10505 else
10506 if test -z "$postdep_objects_CXX"; then
10507 postdep_objects_CXX="$p"
10508 else
10509 postdep_objects_CXX="$postdep_objects_CXX $p"
10510 fi
10511 fi
10512 ;;
10513
10514 *) ;; # Ignore the rest.
10515
10516 esac
10517 done
10518
10519 # Clean up.
10520 rm -f a.out a.exe
10521else
10522 echo "libtool.m4: error: problem compiling CXX test program"
10523fi
10524
10525$rm -f confest.$objext
10526
10527case " $postdeps_CXX " in
10528*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10529esac
10530
10531lt_prog_compiler_wl_CXX=
10532lt_prog_compiler_pic_CXX=
10533lt_prog_compiler_static_CXX=
10534
10535echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10536echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10537
10538 # C++ specific cases for pic, static, wl, etc.
10539 if test "$GXX" = yes; then
10540 lt_prog_compiler_wl_CXX='-Wl,'
10541 lt_prog_compiler_static_CXX='-static'
10542
10543 case $host_os in
10544 aix*)
10545 # All AIX code is PIC.
10546 if test "$host_cpu" = ia64; then
10547 # AIX 5 now supports IA64 processor
10548 lt_prog_compiler_static_CXX='-Bstatic'
10549 fi
10550 ;;
10551 amigaos*)
10552 # FIXME: we need at least 68020 code to build shared libraries, but
10553 # adding the `-m68020' flag to GCC prevents building anything better,
10554 # like `-m68040'.
10555 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10556 ;;
10557 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10558 # PIC is the default for these OSes.
10559 ;;
10560 mingw* | os2* | pw32*)
10561 # This hack is so that the source file can tell whether it is being
10562 # built for inclusion in a dll (and should export symbols for example).
10563 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10564 ;;
10565 darwin* | rhapsody*)
10566 # PIC is the default on this platform
10567 # Common symbols not allowed in MH_DYLIB files
10568 lt_prog_compiler_pic_CXX='-fno-common'
10569 ;;
10570 *djgpp*)
10571 # DJGPP does not support shared libraries at all
10572 lt_prog_compiler_pic_CXX=
10573 ;;
10574 sysv4*MP*)
10575 if test -d /usr/nec; then
10576 lt_prog_compiler_pic_CXX=-Kconform_pic
10577 fi
10578 ;;
10579 hpux*)
10580 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10581 # not for PA HP-UX.
10582 case "$host_cpu" in
10583 hppa*64*|ia64*)
10584 ;;
10585 *)
10586 lt_prog_compiler_pic_CXX='-fPIC'
10587 ;;
10588 esac
10589 ;;
10590 *)
10591 lt_prog_compiler_pic_CXX='-fPIC'
10592 ;;
10593 esac
10594 else
10595 case $host_os in
10596 aix4* | aix5*)
10597 # All AIX code is PIC.
10598 if test "$host_cpu" = ia64; then
10599 # AIX 5 now supports IA64 processor
10600 lt_prog_compiler_static_CXX='-Bstatic'
10601 else
10602 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10603 fi
10604 ;;
10605 chorus*)
10606 case $cc_basename in
10607 cxch68)
10608 # Green Hills C++ Compiler
10609 # _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"
10610 ;;
10611 esac
10612 ;;
10613 dgux*)
10614 case $cc_basename in
10615 ec++)
10616 lt_prog_compiler_pic_CXX='-KPIC'
10617 ;;
10618 ghcx)
10619 # Green Hills C++ Compiler
10620 lt_prog_compiler_pic_CXX='-pic'
10621 ;;
10622 *)
10623 ;;
10624 esac
10625 ;;
10626 freebsd*)
10627 # FreeBSD uses GNU C++
10628 ;;
10629 hpux9* | hpux10* | hpux11*)
10630 case $cc_basename in
10631 CC)
10632 lt_prog_compiler_wl_CXX='-Wl,'
10633 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10634 if test "$host_cpu" != ia64; then
10635 lt_prog_compiler_pic_CXX='+Z'
10636 fi
10637 ;;
10638 aCC)
10639 lt_prog_compiler_wl_CXX='-Wl,'
10640 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10641 case "$host_cpu" in
10642 hppa*64*|ia64*)
10643 # +Z the default
10644 ;;
10645 *)
10646 lt_prog_compiler_pic_CXX='+Z'
10647 ;;
10648 esac
10649 ;;
10650 *)
10651 ;;
10652 esac
10653 ;;
10654 irix5* | irix6* | nonstopux*)
10655 case $cc_basename in
10656 CC)
10657 lt_prog_compiler_wl_CXX='-Wl,'
10658 lt_prog_compiler_static_CXX='-non_shared'
10659 # CC pic flag -KPIC is the default.
10660 ;;
10661 *)
10662 ;;
10663 esac
10664 ;;
10665 linux*)
10666 case $cc_basename in
10667 KCC)
10668 # KAI C++ Compiler
10669 lt_prog_compiler_wl_CXX='--backend -Wl,'
10670 lt_prog_compiler_pic_CXX='-fPIC'
10671 ;;
10672 icpc)
10673 # Intel C++
10674 lt_prog_compiler_wl_CXX='-Wl,'
10675 lt_prog_compiler_pic_CXX='-KPIC'
10676 lt_prog_compiler_static_CXX='-static'
10677 ;;
10678 cxx)
10679 # Compaq C++
10680 # Make sure the PIC flag is empty. It appears that all Alpha
10681 # Linux and Compaq Tru64 Unix objects are PIC.
10682 lt_prog_compiler_pic_CXX=
10683 lt_prog_compiler_static_CXX='-non_shared'
10684 ;;
10685 *)
10686 ;;
10687 esac
10688 ;;
10689 lynxos*)
10690 ;;
10691 m88k*)
10692 ;;
10693 mvs*)
10694 case $cc_basename in
10695 cxx)
10696 lt_prog_compiler_pic_CXX='-W c,exportall'
10697 ;;
10698 *)
10699 ;;
10700 esac
10701 ;;
10702 netbsd*)
10703 ;;
10704 osf3* | osf4* | osf5*)
10705 case $cc_basename in
10706 KCC)
10707 lt_prog_compiler_wl_CXX='--backend -Wl,'
10708 ;;
10709 RCC)
10710 # Rational C++ 2.4.1
10711 lt_prog_compiler_pic_CXX='-pic'
10712 ;;
10713 cxx)
10714 # Digital/Compaq C++
10715 lt_prog_compiler_wl_CXX='-Wl,'
10716 # Make sure the PIC flag is empty. It appears that all Alpha
10717 # Linux and Compaq Tru64 Unix objects are PIC.
10718 lt_prog_compiler_pic_CXX=
10719 lt_prog_compiler_static_CXX='-non_shared'
10720 ;;
10721 *)
10722 ;;
10723 esac
10724 ;;
10725 psos*)
10726 ;;
10727 sco*)
10728 case $cc_basename in
10729 CC)
10730 lt_prog_compiler_pic_CXX='-fPIC'
10731 ;;
10732 *)
10733 ;;
10734 esac
10735 ;;
10736 solaris*)
10737 case $cc_basename in
10738 CC)
10739 # Sun C++ 4.2, 5.x and Centerline C++
10740 lt_prog_compiler_pic_CXX='-KPIC'
10741 lt_prog_compiler_static_CXX='-Bstatic'
10742 lt_prog_compiler_wl_CXX='-Qoption ld '
10743 ;;
10744 gcx)
10745 # Green Hills C++ Compiler
10746 lt_prog_compiler_pic_CXX='-PIC'
10747 ;;
10748 *)
10749 ;;
10750 esac
10751 ;;
10752 sunos4*)
10753 case $cc_basename in
10754 CC)
10755 # Sun C++ 4.x
10756 lt_prog_compiler_pic_CXX='-pic'
10757 lt_prog_compiler_static_CXX='-Bstatic'
10758 ;;
10759 lcc)
10760 # Lucid
10761 lt_prog_compiler_pic_CXX='-pic'
10762 ;;
10763 *)
10764 ;;
10765 esac
10766 ;;
10767 tandem*)
10768 case $cc_basename in
10769 NCC)
10770 # NonStop-UX NCC 3.20
10771 lt_prog_compiler_pic_CXX='-KPIC'
10772 ;;
10773 *)
10774 ;;
10775 esac
10776 ;;
10777 unixware*)
10778 ;;
10779 vxworks*)
10780 ;;
10781 *)
10782 lt_prog_compiler_can_build_shared_CXX=no
10783 ;;
10784 esac
10785 fi
10786
10787echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10788echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10789
10790#
10791# Check to make sure the PIC flag actually works.
10792#
10793if test -n "$lt_prog_compiler_pic_CXX"; then
10794 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10795echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10796if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10797 echo $ECHO_N "(cached) $ECHO_C" >&6
10798else
10799 lt_prog_compiler_pic_works_CXX=no
10800 ac_outfile=conftest.$ac_objext
10801 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10802 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10803 # Insert the option either (1) after the last *FLAGS variable, or
10804 # (2) before a word containing "conftest.", or (3) at the end.
10805 # Note that $ac_compile itself does not contain backslashes and begins
10806 # with a dollar sign (not a hyphen), so the echo should work correctly.
10807 # The option is referenced via a variable to avoid confusing sed.
10808 lt_compile=`echo "$ac_compile" | $SED \
10809 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10810 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10811 -e 's:$: $lt_compiler_flag:'`
John Criswellc66bbd52003-09-29 21:35:32 +000010812 (eval echo "\"\$as_me:10812: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010813 (eval "$lt_compile" 2>conftest.err)
10814 ac_status=$?
10815 cat conftest.err >&5
John Criswellc66bbd52003-09-29 21:35:32 +000010816 echo "$as_me:10816: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010817 if (exit $ac_status) && test -s "$ac_outfile"; then
10818 # The compiler can only warn and ignore the option if not recognized
10819 # So say no if there are warnings
10820 if test ! -s conftest.err; then
10821 lt_prog_compiler_pic_works_CXX=yes
10822 fi
10823 fi
10824 $rm conftest*
10825
10826fi
10827echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10828echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10829
10830if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10831 case $lt_prog_compiler_pic_CXX in
10832 "" | " "*) ;;
10833 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10834 esac
10835else
10836 lt_prog_compiler_pic_CXX=
10837 lt_prog_compiler_can_build_shared_CXX=no
10838fi
10839
10840fi
10841case "$host_os" in
10842 # For platforms which do not support PIC, -DPIC is meaningless:
10843 *djgpp*)
10844 lt_prog_compiler_pic_CXX=
10845 ;;
10846 *)
10847 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10848 ;;
10849esac
10850
10851echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10852echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10853if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10854 echo $ECHO_N "(cached) $ECHO_C" >&6
10855else
10856 lt_cv_prog_compiler_c_o_CXX=no
10857 $rm -r conftest 2>/dev/null
10858 mkdir conftest
10859 cd conftest
10860 mkdir out
10861 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10862
10863 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10864 # that will create temporary files in the current directory regardless of
10865 # the output directory. Thus, making CWD read-only will cause this test
10866 # to fail, enabling locking or at least warning the user not to do parallel
10867 # builds.
10868 chmod -w .
10869
10870 lt_compiler_flag="-o out/conftest2.$ac_objext"
10871 # Insert the option either (1) after the last *FLAGS variable, or
10872 # (2) before a word containing "conftest.", or (3) at the end.
10873 # Note that $ac_compile itself does not contain backslashes and begins
10874 # with a dollar sign (not a hyphen), so the echo should work correctly.
10875 lt_compile=`echo "$ac_compile" | $SED \
10876 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10877 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10878 -e 's:$: $lt_compiler_flag:'`
John Criswellc66bbd52003-09-29 21:35:32 +000010879 (eval echo "\"\$as_me:10879: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010880 (eval "$lt_compile" 2>out/conftest.err)
10881 ac_status=$?
10882 cat out/conftest.err >&5
John Criswellc66bbd52003-09-29 21:35:32 +000010883 echo "$as_me:10883: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010884 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10885 then
10886 # The compiler can only warn and ignore the option if not recognized
10887 # So say no if there are warnings
10888 if test ! -s out/conftest.err; then
10889 lt_cv_prog_compiler_c_o_CXX=yes
10890 fi
10891 fi
10892 chmod u+w .
10893 $rm conftest* out/*
10894 rmdir out
10895 cd ..
10896 rmdir conftest
10897 $rm conftest*
10898
10899fi
10900echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10901echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10902
10903
10904hard_links="nottested"
10905if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10906 # do not overwrite the value of need_locks provided by the user
10907 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10908echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10909 hard_links=yes
10910 $rm conftest*
10911 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10912 touch conftest.a
10913 ln conftest.a conftest.b 2>&5 || hard_links=no
10914 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10915 echo "$as_me:$LINENO: result: $hard_links" >&5
10916echo "${ECHO_T}$hard_links" >&6
10917 if test "$hard_links" = no; then
10918 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10919echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10920 need_locks=warn
10921 fi
10922else
10923 need_locks=no
10924fi
10925
10926echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10927echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10928
10929 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10930 case $host_os in
10931 aix4* | aix5*)
10932 # If we're using GNU nm, then we don't want the "-C" option.
10933 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10934 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10935 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'
10936 else
10937 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'
10938 fi
10939 ;;
10940 pw32*)
10941 export_symbols_cmds_CXX="$ltdll_cmds"
10942 ;;
10943 cygwin* | mingw*)
10944 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10945 ;;
10946 *)
10947 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10948 ;;
10949 esac
10950
10951echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10952echo "${ECHO_T}$ld_shlibs_CXX" >&6
10953test "$ld_shlibs_CXX" = no && can_build_shared=no
10954
10955variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10956if test "$GCC" = yes; then
10957 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10958fi
10959
10960#
10961# Do we need to explicitly link libc?
10962#
10963case "x$archive_cmds_need_lc_CXX" in
10964x|xyes)
10965 # Assume -lc should be added
10966 archive_cmds_need_lc_CXX=yes
10967
10968 if test "$enable_shared" = yes && test "$GCC" = yes; then
10969 case $archive_cmds_CXX in
10970 *'~'*)
10971 # FIXME: we may have to deal with multi-command sequences.
10972 ;;
10973 '$CC '*)
10974 # Test whether the compiler implicitly links with -lc since on some
10975 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10976 # to ld, don't add -lc before -lgcc.
10977 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10978echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10979 $rm conftest*
10980 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10981
10982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10983 (eval $ac_compile) 2>&5
10984 ac_status=$?
10985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986 (exit $ac_status); } 2>conftest.err; then
10987 soname=conftest
10988 lib=conftest
10989 libobjs=conftest.$ac_objext
10990 deplibs=
10991 wl=$lt_prog_compiler_wl_CXX
10992 compiler_flags=-v
10993 linker_flags=-v
10994 verstring=
10995 output_objdir=.
10996 libname=conftest
10997 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10998 allow_undefined_flag_CXX=
10999 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11000 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11001 ac_status=$?
11002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11003 (exit $ac_status); }
11004 then
11005 archive_cmds_need_lc_CXX=no
11006 else
11007 archive_cmds_need_lc_CXX=yes
11008 fi
11009 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11010 else
11011 cat conftest.err 1>&5
11012 fi
11013 $rm conftest*
11014 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11015echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11016 ;;
11017 esac
11018 fi
11019 ;;
11020esac
11021
11022echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11023echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11024hardcode_action_CXX=
11025if test -n "$hardcode_libdir_flag_spec_CXX" || \
11026 test -n "$runpath_var CXX" || \
11027 test "X$hardcode_automatic_CXX"="Xyes" ; then
11028
11029 # We can hardcode non-existant directories.
11030 if test "$hardcode_direct_CXX" != no &&
11031 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11032 # have to relink, otherwise we might link with an installed library
11033 # when we should be linking with a yet-to-be-installed one
11034 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11035 test "$hardcode_minus_L_CXX" != no; then
11036 # Linking always hardcodes the temporary library directory.
11037 hardcode_action_CXX=relink
11038 else
11039 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11040 hardcode_action_CXX=immediate
11041 fi
11042else
11043 # We cannot hardcode anything, or else we can only hardcode existing
11044 # directories.
11045 hardcode_action_CXX=unsupported
11046fi
11047echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11048echo "${ECHO_T}$hardcode_action_CXX" >&6
11049
11050if test "$hardcode_action_CXX" = relink; then
11051 # Fast installation is not supported
11052 enable_fast_install=no
11053elif test "$shlibpath_overrides_runpath" = yes ||
11054 test "$enable_shared" = no; then
11055 # Fast installation is not necessary
11056 enable_fast_install=needless
11057fi
11058
11059striplib=
11060old_striplib=
11061echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11062echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11063if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11064 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11065 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11066 echo "$as_me:$LINENO: result: yes" >&5
11067echo "${ECHO_T}yes" >&6
11068else
11069# FIXME - insert some real tests, host_os isn't really good enough
11070 case $host_os in
11071 darwin*)
11072 if test -n "$STRIP" ; then
11073 striplib="$STRIP -x"
11074 echo "$as_me:$LINENO: result: yes" >&5
11075echo "${ECHO_T}yes" >&6
11076 else
11077 echo "$as_me:$LINENO: result: no" >&5
11078echo "${ECHO_T}no" >&6
11079fi
11080 ;;
11081 *)
11082 echo "$as_me:$LINENO: result: no" >&5
11083echo "${ECHO_T}no" >&6
11084 ;;
11085 esac
11086fi
11087
11088echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11089echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11090library_names_spec=
11091libname_spec='lib$name'
11092soname_spec=
11093shrext=".so"
11094postinstall_cmds=
11095postuninstall_cmds=
11096finish_cmds=
11097finish_eval=
11098shlibpath_var=
11099shlibpath_overrides_runpath=unknown
11100version_type=none
11101dynamic_linker="$host_os ld.so"
11102sys_lib_dlsearch_path_spec="/lib /usr/lib"
11103if test "$GCC" = yes; then
11104 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11105 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11106 # if the path contains ";" then we assume it to be the separator
11107 # otherwise default to the standard path separator (i.e. ":") - it is
11108 # assumed that no part of a normal pathname contains ";" but that should
11109 # okay in the real world where ";" in dirpaths is itself problematic.
11110 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11111 else
11112 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11113 fi
11114else
11115 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11116fi
11117need_lib_prefix=unknown
11118hardcode_into_libs=no
11119
11120# when you set need_version to no, make sure it does not cause -set_version
11121# flags to be left without arguments
11122need_version=unknown
11123
11124case $host_os in
11125aix3*)
11126 version_type=linux
11127 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11128 shlibpath_var=LIBPATH
11129
11130 # AIX 3 has no versioning support, so we append a major version to the name.
11131 soname_spec='${libname}${release}${shared_ext}$major'
11132 ;;
11133
11134aix4* | aix5*)
11135 version_type=linux
11136 need_lib_prefix=no
11137 need_version=no
11138 hardcode_into_libs=yes
11139 if test "$host_cpu" = ia64; then
11140 # AIX 5 supports IA64
11141 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11142 shlibpath_var=LD_LIBRARY_PATH
11143 else
11144 # With GCC up to 2.95.x, collect2 would create an import file
11145 # for dependence libraries. The import file would start with
11146 # the line `#! .'. This would cause the generated library to
11147 # depend on `.', always an invalid library. This was fixed in
11148 # development snapshots of GCC prior to 3.0.
11149 case $host_os in
11150 aix4 | aix4.[01] | aix4.[01].*)
11151 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11152 echo ' yes '
11153 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11154 :
11155 else
11156 can_build_shared=no
11157 fi
11158 ;;
11159 esac
11160 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11161 # soname into executable. Probably we can add versioning support to
11162 # collect2, so additional links can be useful in future.
11163 if test "$aix_use_runtimelinking" = yes; then
11164 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11165 # instead of lib<name>.a to let people know that these are not
11166 # typical AIX shared libraries.
11167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11168 else
11169 # We preserve .a as extension for shared libraries through AIX4.2
11170 # and later when we are not doing run time linking.
11171 library_names_spec='${libname}${release}.a $libname.a'
11172 soname_spec='${libname}${release}${shared_ext}$major'
11173 fi
11174 shlibpath_var=LIBPATH
11175 fi
11176 ;;
11177
11178amigaos*)
11179 library_names_spec='$libname.ixlibrary $libname.a'
11180 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11181 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'
11182 ;;
11183
11184beos*)
11185 library_names_spec='${libname}${shared_ext}'
11186 dynamic_linker="$host_os ld.so"
11187 shlibpath_var=LIBRARY_PATH
11188 ;;
11189
11190bsdi4*)
11191 version_type=linux
11192 need_version=no
11193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11194 soname_spec='${libname}${release}${shared_ext}$major'
11195 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11196 shlibpath_var=LD_LIBRARY_PATH
11197 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11198 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11199 # the default ld.so.conf also contains /usr/contrib/lib and
11200 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11201 # libtool to hard-code these into programs
11202 ;;
11203
11204cygwin* | mingw* | pw32*)
11205 version_type=windows
11206 shrext=".dll"
11207 need_version=no
11208 need_lib_prefix=no
11209
11210 case $GCC,$host_os in
11211 yes,cygwin* | yes,mingw* | yes,pw32*)
11212 library_names_spec='$libname.dll.a'
11213 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11214 postinstall_cmds='base_file=`basename \${file}`~
11215 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11216 dldir=$destdir/`dirname \$dlpath`~
11217 test -d \$dldir || mkdir -p \$dldir~
11218 $install_prog $dir/$dlname \$dldir/$dlname'
11219 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11220 dlpath=$dir/\$dldll~
11221 $rm \$dlpath'
11222 shlibpath_overrides_runpath=yes
11223
11224 case $host_os in
11225 cygwin*)
11226 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11227 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11228 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11229 ;;
11230 mingw*)
11231 # MinGW DLLs use traditional 'lib' prefix
11232 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11233 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11234 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11235 # It is most probably a Windows format PATH printed by
11236 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11237 # path with ; separators, and with drive letters. We can handle the
11238 # drive letters (cygwin fileutils understands them), so leave them,
11239 # especially as we might pass files found there to a mingw objdump,
11240 # which wouldn't understand a cygwinified path. Ahh.
11241 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11242 else
11243 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11244 fi
11245 ;;
11246 pw32*)
11247 # pw32 DLLs use 'pw' prefix rather than 'lib'
11248 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11249 ;;
11250 esac
11251 ;;
11252
11253 *)
11254 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11255 ;;
11256 esac
11257 dynamic_linker='Win32 ld.exe'
11258 # FIXME: first we should search . and the directory the executable is in
11259 shlibpath_var=PATH
11260 ;;
11261
11262darwin* | rhapsody*)
11263 dynamic_linker="$host_os dyld"
11264 version_type=darwin
11265 need_lib_prefix=no
11266 need_version=no
11267 # FIXME: Relying on posixy $() will cause problems for
11268 # cross-compilation, but unfortunately the echo tests do not
11269 # yet detect zsh echo's removal of \ escapes.
11270 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11271 soname_spec='${libname}${release}${major}$shared_ext'
11272 shlibpath_overrides_runpath=yes
11273 shlibpath_var=DYLD_LIBRARY_PATH
11274 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11275 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11276 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11277 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"`
11278 fi
11279 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11280 ;;
11281
11282dgux*)
11283 version_type=linux
11284 need_lib_prefix=no
11285 need_version=no
11286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11287 soname_spec='${libname}${release}${shared_ext}$major'
11288 shlibpath_var=LD_LIBRARY_PATH
11289 ;;
11290
11291freebsd1*)
11292 dynamic_linker=no
11293 ;;
11294
11295freebsd*)
11296 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11297 version_type=freebsd-$objformat
11298 case $version_type in
11299 freebsd-elf*)
11300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11301 need_version=no
11302 need_lib_prefix=no
11303 ;;
11304 freebsd-*)
11305 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11306 need_version=yes
11307 ;;
11308 esac
11309 shlibpath_var=LD_LIBRARY_PATH
11310 case $host_os in
11311 freebsd2*)
11312 shlibpath_overrides_runpath=yes
11313 ;;
11314 freebsd3.01* | freebsdelf3.01*)
11315 shlibpath_overrides_runpath=yes
11316 hardcode_into_libs=yes
11317 ;;
11318 *) # from 3.2 on
11319 shlibpath_overrides_runpath=no
11320 hardcode_into_libs=yes
11321 ;;
11322 esac
11323 ;;
11324
11325gnu*)
11326 version_type=linux
11327 need_lib_prefix=no
11328 need_version=no
11329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11330 soname_spec='${libname}${release}${shared_ext}$major'
11331 shlibpath_var=LD_LIBRARY_PATH
11332 hardcode_into_libs=yes
11333 ;;
11334
11335hpux9* | hpux10* | hpux11*)
11336 # Give a soname corresponding to the major version so that dld.sl refuses to
11337 # link against other versions.
11338 version_type=sunos
11339 need_lib_prefix=no
11340 need_version=no
11341 case "$host_cpu" in
11342 ia64*)
11343 shrext='.so'
11344 hardcode_into_libs=yes
11345 dynamic_linker="$host_os dld.so"
11346 shlibpath_var=LD_LIBRARY_PATH
11347 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11349 soname_spec='${libname}${release}${shared_ext}$major'
11350 if test "X$HPUX_IA64_MODE" = X32; then
11351 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11352 else
11353 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11354 fi
11355 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11356 ;;
11357 hppa*64*)
11358 shrext='.sl'
11359 hardcode_into_libs=yes
11360 dynamic_linker="$host_os dld.sl"
11361 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11362 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11364 soname_spec='${libname}${release}${shared_ext}$major'
11365 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11366 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11367 ;;
11368 *)
11369 shrext='.sl'
11370 dynamic_linker="$host_os dld.sl"
11371 shlibpath_var=SHLIB_PATH
11372 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11374 soname_spec='${libname}${release}${shared_ext}$major'
11375 ;;
11376 esac
11377 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11378 postinstall_cmds='chmod 555 $lib'
11379 ;;
11380
11381irix5* | irix6* | nonstopux*)
11382 case $host_os in
11383 nonstopux*) version_type=nonstopux ;;
11384 *)
11385 if test "$lt_cv_prog_gnu_ld" = yes; then
11386 version_type=linux
11387 else
11388 version_type=irix
11389 fi ;;
11390 esac
11391 need_lib_prefix=no
11392 need_version=no
11393 soname_spec='${libname}${release}${shared_ext}$major'
11394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11395 case $host_os in
11396 irix5* | nonstopux*)
11397 libsuff= shlibsuff=
11398 ;;
11399 *)
11400 case $LD in # libtool.m4 will add one of these switches to LD
11401 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11402 libsuff= shlibsuff= libmagic=32-bit;;
11403 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11404 libsuff=32 shlibsuff=N32 libmagic=N32;;
11405 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11406 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11407 *) libsuff= shlibsuff= libmagic=never-match;;
11408 esac
11409 ;;
11410 esac
11411 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11412 shlibpath_overrides_runpath=no
11413 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11414 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11415 hardcode_into_libs=yes
11416 ;;
11417
11418# No shared lib support for Linux oldld, aout, or coff.
11419linux*oldld* | linux*aout* | linux*coff*)
11420 dynamic_linker=no
11421 ;;
11422
11423# This must be Linux ELF.
11424linux*)
11425 version_type=linux
11426 need_lib_prefix=no
11427 need_version=no
11428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11429 soname_spec='${libname}${release}${shared_ext}$major'
11430 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11431 shlibpath_var=LD_LIBRARY_PATH
11432 shlibpath_overrides_runpath=no
11433 # This implies no fast_install, which is unacceptable.
11434 # Some rework will be needed to allow for fast_install
11435 # before this can be enabled.
11436 hardcode_into_libs=yes
11437
11438 # We used to test for /lib/ld.so.1 and disable shared libraries on
11439 # powerpc, because MkLinux only supported shared libraries with the
11440 # GNU dynamic linker. Since this was broken with cross compilers,
11441 # most powerpc-linux boxes support dynamic linking these days and
11442 # people can always --disable-shared, the test was removed, and we
11443 # assume the GNU/Linux dynamic linker is in use.
11444 dynamic_linker='GNU/Linux ld.so'
11445 ;;
11446
11447netbsd*)
11448 version_type=sunos
11449 need_lib_prefix=no
11450 need_version=no
11451 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11453 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11454 dynamic_linker='NetBSD (a.out) ld.so'
11455 else
11456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11457 soname_spec='${libname}${release}${shared_ext}$major'
11458 dynamic_linker='NetBSD ld.elf_so'
11459 fi
11460 shlibpath_var=LD_LIBRARY_PATH
11461 shlibpath_overrides_runpath=yes
11462 hardcode_into_libs=yes
11463 ;;
11464
11465newsos6)
11466 version_type=linux
11467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11468 shlibpath_var=LD_LIBRARY_PATH
11469 shlibpath_overrides_runpath=yes
11470 ;;
11471
11472nto-qnx)
11473 version_type=linux
11474 need_lib_prefix=no
11475 need_version=no
11476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11477 soname_spec='${libname}${release}${shared_ext}$major'
11478 shlibpath_var=LD_LIBRARY_PATH
11479 shlibpath_overrides_runpath=yes
11480 ;;
11481
11482openbsd*)
11483 version_type=sunos
11484 need_lib_prefix=no
11485 need_version=no
11486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11487 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11488 shlibpath_var=LD_LIBRARY_PATH
11489 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11490 case $host_os in
11491 openbsd2.[89] | openbsd2.[89].*)
11492 shlibpath_overrides_runpath=no
11493 ;;
11494 *)
11495 shlibpath_overrides_runpath=yes
11496 ;;
11497 esac
11498 else
11499 shlibpath_overrides_runpath=yes
11500 fi
11501 ;;
11502
11503os2*)
11504 libname_spec='$name'
11505 shrext=".dll"
11506 need_lib_prefix=no
11507 library_names_spec='$libname${shared_ext} $libname.a'
11508 dynamic_linker='OS/2 ld.exe'
11509 shlibpath_var=LIBPATH
11510 ;;
11511
11512osf3* | osf4* | osf5*)
11513 version_type=osf
11514 need_lib_prefix=no
11515 need_version=no
11516 soname_spec='${libname}${release}${shared_ext}$major'
11517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11518 shlibpath_var=LD_LIBRARY_PATH
11519 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11520 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11521 ;;
11522
11523sco3.2v5*)
11524 version_type=osf
11525 soname_spec='${libname}${release}${shared_ext}$major'
11526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11527 shlibpath_var=LD_LIBRARY_PATH
11528 ;;
11529
11530solaris*)
11531 version_type=linux
11532 need_lib_prefix=no
11533 need_version=no
11534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11535 soname_spec='${libname}${release}${shared_ext}$major'
11536 shlibpath_var=LD_LIBRARY_PATH
11537 shlibpath_overrides_runpath=yes
11538 hardcode_into_libs=yes
11539 # ldd complains unless libraries are executable
11540 postinstall_cmds='chmod +x $lib'
11541 ;;
11542
11543sunos4*)
11544 version_type=sunos
11545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11546 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11547 shlibpath_var=LD_LIBRARY_PATH
11548 shlibpath_overrides_runpath=yes
11549 if test "$with_gnu_ld" = yes; then
11550 need_lib_prefix=no
11551 fi
11552 need_version=yes
11553 ;;
11554
11555sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11556 version_type=linux
11557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11558 soname_spec='${libname}${release}${shared_ext}$major'
11559 shlibpath_var=LD_LIBRARY_PATH
11560 case $host_vendor in
11561 sni)
11562 shlibpath_overrides_runpath=no
11563 need_lib_prefix=no
11564 export_dynamic_flag_spec='${wl}-Blargedynsym'
11565 runpath_var=LD_RUN_PATH
11566 ;;
11567 siemens)
11568 need_lib_prefix=no
11569 ;;
11570 motorola)
11571 need_lib_prefix=no
11572 need_version=no
11573 shlibpath_overrides_runpath=no
11574 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11575 ;;
11576 esac
11577 ;;
11578
11579sysv4*MP*)
11580 if test -d /usr/nec ;then
11581 version_type=linux
11582 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11583 soname_spec='$libname${shared_ext}.$major'
11584 shlibpath_var=LD_LIBRARY_PATH
11585 fi
11586 ;;
11587
11588uts4*)
11589 version_type=linux
11590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11591 soname_spec='${libname}${release}${shared_ext}$major'
11592 shlibpath_var=LD_LIBRARY_PATH
11593 ;;
11594
11595*)
11596 dynamic_linker=no
11597 ;;
11598esac
11599echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11600echo "${ECHO_T}$dynamic_linker" >&6
11601test "$dynamic_linker" = no && can_build_shared=no
11602
11603if test "x$enable_dlopen" != xyes; then
11604 enable_dlopen=unknown
11605 enable_dlopen_self=unknown
11606 enable_dlopen_self_static=unknown
11607else
11608 lt_cv_dlopen=no
11609 lt_cv_dlopen_libs=
11610
11611 case $host_os in
11612 beos*)
11613 lt_cv_dlopen="load_add_on"
11614 lt_cv_dlopen_libs=
11615 lt_cv_dlopen_self=yes
11616 ;;
11617
11618 mingw* | pw32*)
11619 lt_cv_dlopen="LoadLibrary"
11620 lt_cv_dlopen_libs=
11621 ;;
11622
11623 cygwin*)
11624 lt_cv_dlopen="dlopen"
11625 lt_cv_dlopen_libs=
11626 ;;
11627
11628 darwin*)
11629 # if libdl is installed we need to link against it
11630 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11631echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11632if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11633 echo $ECHO_N "(cached) $ECHO_C" >&6
11634else
11635 ac_check_lib_save_LIBS=$LIBS
11636LIBS="-ldl $LIBS"
11637cat >conftest.$ac_ext <<_ACEOF
11638#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011639/* confdefs.h. */
11640_ACEOF
11641cat confdefs.h >>conftest.$ac_ext
11642cat >>conftest.$ac_ext <<_ACEOF
11643/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011644
11645/* Override any gcc2 internal prototype to avoid an error. */
11646#ifdef __cplusplus
11647extern "C"
11648#endif
11649/* We use char because int might match the return type of a gcc2
11650 builtin and then its argument prototype would still apply. */
11651char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011652int
11653main ()
11654{
11655dlopen ();
11656 ;
11657 return 0;
11658}
11659_ACEOF
11660rm -f conftest.$ac_objext conftest$ac_exeext
11661if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11662 (eval $ac_link) 2>&5
11663 ac_status=$?
11664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11665 (exit $ac_status); } &&
11666 { ac_try='test -s conftest$ac_exeext'
11667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11668 (eval $ac_try) 2>&5
11669 ac_status=$?
11670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11671 (exit $ac_status); }; }; then
11672 ac_cv_lib_dl_dlopen=yes
11673else
11674 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011675sed 's/^/| /' conftest.$ac_ext >&5
11676
John Criswell47fdd832003-07-14 16:52:07 +000011677ac_cv_lib_dl_dlopen=no
11678fi
11679rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11680LIBS=$ac_check_lib_save_LIBS
11681fi
11682echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11683echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11684if test $ac_cv_lib_dl_dlopen = yes; then
11685 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11686else
11687
11688 lt_cv_dlopen="dyld"
11689 lt_cv_dlopen_libs=
11690 lt_cv_dlopen_self=yes
11691
11692fi
11693
11694 ;;
11695
11696 *)
11697 echo "$as_me:$LINENO: checking for shl_load" >&5
11698echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11699if test "${ac_cv_func_shl_load+set}" = set; then
11700 echo $ECHO_N "(cached) $ECHO_C" >&6
11701else
11702 cat >conftest.$ac_ext <<_ACEOF
11703#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011704/* confdefs.h. */
11705_ACEOF
11706cat confdefs.h >>conftest.$ac_ext
11707cat >>conftest.$ac_ext <<_ACEOF
11708/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011709/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011710 which can conflict with char shl_load (); below.
11711 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11712 <limits.h> exists even on freestanding compilers. */
11713#ifdef __STDC__
11714# include <limits.h>
11715#else
11716# include <assert.h>
11717#endif
John Criswell47fdd832003-07-14 16:52:07 +000011718/* Override any gcc2 internal prototype to avoid an error. */
11719#ifdef __cplusplus
11720extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011721{
John Criswell47fdd832003-07-14 16:52:07 +000011722#endif
11723/* We use char because int might match the return type of a gcc2
11724 builtin and then its argument prototype would still apply. */
11725char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011726/* The GNU C library defines this for functions which it implements
11727 to always fail with ENOSYS. Some functions are actually named
11728 something starting with __ and the normal name is an alias. */
11729#if defined (__stub_shl_load) || defined (__stub___shl_load)
11730choke me
11731#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011732char (*f) () = shl_load;
11733#endif
11734#ifdef __cplusplus
11735}
John Criswell47fdd832003-07-14 16:52:07 +000011736#endif
11737
John Criswell0c38eaf2003-09-10 15:17:25 +000011738int
11739main ()
11740{
11741return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000011742 ;
11743 return 0;
11744}
11745_ACEOF
11746rm -f conftest.$ac_objext conftest$ac_exeext
11747if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11748 (eval $ac_link) 2>&5
11749 ac_status=$?
11750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11751 (exit $ac_status); } &&
11752 { ac_try='test -s conftest$ac_exeext'
11753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11754 (eval $ac_try) 2>&5
11755 ac_status=$?
11756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757 (exit $ac_status); }; }; then
11758 ac_cv_func_shl_load=yes
11759else
11760 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011761sed 's/^/| /' conftest.$ac_ext >&5
11762
John Criswell47fdd832003-07-14 16:52:07 +000011763ac_cv_func_shl_load=no
11764fi
11765rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11766fi
11767echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11768echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11769if test $ac_cv_func_shl_load = yes; then
11770 lt_cv_dlopen="shl_load"
11771else
11772 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11773echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11774if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11775 echo $ECHO_N "(cached) $ECHO_C" >&6
11776else
11777 ac_check_lib_save_LIBS=$LIBS
11778LIBS="-ldld $LIBS"
11779cat >conftest.$ac_ext <<_ACEOF
11780#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011781/* confdefs.h. */
11782_ACEOF
11783cat confdefs.h >>conftest.$ac_ext
11784cat >>conftest.$ac_ext <<_ACEOF
11785/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011786
11787/* Override any gcc2 internal prototype to avoid an error. */
11788#ifdef __cplusplus
11789extern "C"
11790#endif
11791/* We use char because int might match the return type of a gcc2
11792 builtin and then its argument prototype would still apply. */
11793char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011794int
11795main ()
11796{
11797shl_load ();
11798 ;
11799 return 0;
11800}
11801_ACEOF
11802rm -f conftest.$ac_objext conftest$ac_exeext
11803if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11804 (eval $ac_link) 2>&5
11805 ac_status=$?
11806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11807 (exit $ac_status); } &&
11808 { ac_try='test -s conftest$ac_exeext'
11809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11810 (eval $ac_try) 2>&5
11811 ac_status=$?
11812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11813 (exit $ac_status); }; }; then
11814 ac_cv_lib_dld_shl_load=yes
11815else
11816 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011817sed 's/^/| /' conftest.$ac_ext >&5
11818
John Criswell47fdd832003-07-14 16:52:07 +000011819ac_cv_lib_dld_shl_load=no
11820fi
11821rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11822LIBS=$ac_check_lib_save_LIBS
11823fi
11824echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11825echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11826if test $ac_cv_lib_dld_shl_load = yes; then
11827 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11828else
11829 echo "$as_me:$LINENO: checking for dlopen" >&5
11830echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11831if test "${ac_cv_func_dlopen+set}" = set; then
11832 echo $ECHO_N "(cached) $ECHO_C" >&6
11833else
11834 cat >conftest.$ac_ext <<_ACEOF
11835#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011836/* confdefs.h. */
11837_ACEOF
11838cat confdefs.h >>conftest.$ac_ext
11839cat >>conftest.$ac_ext <<_ACEOF
11840/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011841/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011842 which can conflict with char dlopen (); below.
11843 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11844 <limits.h> exists even on freestanding compilers. */
11845#ifdef __STDC__
11846# include <limits.h>
11847#else
11848# include <assert.h>
11849#endif
John Criswell47fdd832003-07-14 16:52:07 +000011850/* Override any gcc2 internal prototype to avoid an error. */
11851#ifdef __cplusplus
11852extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011853{
John Criswell47fdd832003-07-14 16:52:07 +000011854#endif
11855/* We use char because int might match the return type of a gcc2
11856 builtin and then its argument prototype would still apply. */
11857char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011858/* The GNU C library defines this for functions which it implements
11859 to always fail with ENOSYS. Some functions are actually named
11860 something starting with __ and the normal name is an alias. */
11861#if defined (__stub_dlopen) || defined (__stub___dlopen)
11862choke me
11863#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011864char (*f) () = dlopen;
11865#endif
11866#ifdef __cplusplus
11867}
John Criswell47fdd832003-07-14 16:52:07 +000011868#endif
11869
John Criswell0c38eaf2003-09-10 15:17:25 +000011870int
11871main ()
11872{
11873return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000011874 ;
11875 return 0;
11876}
11877_ACEOF
11878rm -f conftest.$ac_objext conftest$ac_exeext
11879if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11880 (eval $ac_link) 2>&5
11881 ac_status=$?
11882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883 (exit $ac_status); } &&
11884 { ac_try='test -s conftest$ac_exeext'
11885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11886 (eval $ac_try) 2>&5
11887 ac_status=$?
11888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11889 (exit $ac_status); }; }; then
11890 ac_cv_func_dlopen=yes
11891else
11892 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011893sed 's/^/| /' conftest.$ac_ext >&5
11894
John Criswell47fdd832003-07-14 16:52:07 +000011895ac_cv_func_dlopen=no
11896fi
11897rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11898fi
11899echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11900echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11901if test $ac_cv_func_dlopen = yes; then
11902 lt_cv_dlopen="dlopen"
11903else
11904 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11905echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11906if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11907 echo $ECHO_N "(cached) $ECHO_C" >&6
11908else
11909 ac_check_lib_save_LIBS=$LIBS
11910LIBS="-ldl $LIBS"
11911cat >conftest.$ac_ext <<_ACEOF
11912#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011913/* confdefs.h. */
11914_ACEOF
11915cat confdefs.h >>conftest.$ac_ext
11916cat >>conftest.$ac_ext <<_ACEOF
11917/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011918
11919/* Override any gcc2 internal prototype to avoid an error. */
11920#ifdef __cplusplus
11921extern "C"
11922#endif
11923/* We use char because int might match the return type of a gcc2
11924 builtin and then its argument prototype would still apply. */
11925char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011926int
11927main ()
11928{
11929dlopen ();
11930 ;
11931 return 0;
11932}
11933_ACEOF
11934rm -f conftest.$ac_objext conftest$ac_exeext
11935if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11936 (eval $ac_link) 2>&5
11937 ac_status=$?
11938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11939 (exit $ac_status); } &&
11940 { ac_try='test -s conftest$ac_exeext'
11941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11942 (eval $ac_try) 2>&5
11943 ac_status=$?
11944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945 (exit $ac_status); }; }; then
11946 ac_cv_lib_dl_dlopen=yes
11947else
11948 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011949sed 's/^/| /' conftest.$ac_ext >&5
11950
John Criswell47fdd832003-07-14 16:52:07 +000011951ac_cv_lib_dl_dlopen=no
11952fi
11953rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11954LIBS=$ac_check_lib_save_LIBS
11955fi
11956echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11957echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11958if test $ac_cv_lib_dl_dlopen = yes; then
11959 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11960else
11961 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11962echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11963if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11964 echo $ECHO_N "(cached) $ECHO_C" >&6
11965else
11966 ac_check_lib_save_LIBS=$LIBS
11967LIBS="-lsvld $LIBS"
11968cat >conftest.$ac_ext <<_ACEOF
11969#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011970/* confdefs.h. */
11971_ACEOF
11972cat confdefs.h >>conftest.$ac_ext
11973cat >>conftest.$ac_ext <<_ACEOF
11974/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011975
11976/* Override any gcc2 internal prototype to avoid an error. */
11977#ifdef __cplusplus
11978extern "C"
11979#endif
11980/* We use char because int might match the return type of a gcc2
11981 builtin and then its argument prototype would still apply. */
11982char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011983int
11984main ()
11985{
11986dlopen ();
11987 ;
11988 return 0;
11989}
11990_ACEOF
11991rm -f conftest.$ac_objext conftest$ac_exeext
11992if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11993 (eval $ac_link) 2>&5
11994 ac_status=$?
11995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11996 (exit $ac_status); } &&
11997 { ac_try='test -s conftest$ac_exeext'
11998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11999 (eval $ac_try) 2>&5
12000 ac_status=$?
12001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12002 (exit $ac_status); }; }; then
12003 ac_cv_lib_svld_dlopen=yes
12004else
12005 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012006sed 's/^/| /' conftest.$ac_ext >&5
12007
John Criswell47fdd832003-07-14 16:52:07 +000012008ac_cv_lib_svld_dlopen=no
12009fi
12010rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12011LIBS=$ac_check_lib_save_LIBS
12012fi
12013echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12014echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12015if test $ac_cv_lib_svld_dlopen = yes; then
12016 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12017else
12018 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12019echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12020if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12021 echo $ECHO_N "(cached) $ECHO_C" >&6
12022else
12023 ac_check_lib_save_LIBS=$LIBS
12024LIBS="-ldld $LIBS"
12025cat >conftest.$ac_ext <<_ACEOF
12026#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000012027/* confdefs.h. */
12028_ACEOF
12029cat confdefs.h >>conftest.$ac_ext
12030cat >>conftest.$ac_ext <<_ACEOF
12031/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012032
12033/* Override any gcc2 internal prototype to avoid an error. */
12034#ifdef __cplusplus
12035extern "C"
12036#endif
12037/* We use char because int might match the return type of a gcc2
12038 builtin and then its argument prototype would still apply. */
12039char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000012040int
12041main ()
12042{
12043dld_link ();
12044 ;
12045 return 0;
12046}
12047_ACEOF
12048rm -f conftest.$ac_objext conftest$ac_exeext
12049if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12050 (eval $ac_link) 2>&5
12051 ac_status=$?
12052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053 (exit $ac_status); } &&
12054 { ac_try='test -s conftest$ac_exeext'
12055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12056 (eval $ac_try) 2>&5
12057 ac_status=$?
12058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12059 (exit $ac_status); }; }; then
12060 ac_cv_lib_dld_dld_link=yes
12061else
12062 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012063sed 's/^/| /' conftest.$ac_ext >&5
12064
John Criswell47fdd832003-07-14 16:52:07 +000012065ac_cv_lib_dld_dld_link=no
12066fi
12067rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12068LIBS=$ac_check_lib_save_LIBS
12069fi
12070echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12071echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12072if test $ac_cv_lib_dld_dld_link = yes; then
12073 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12074fi
12075
12076
12077fi
12078
12079
12080fi
12081
12082
12083fi
12084
12085
12086fi
12087
12088
12089fi
12090
12091 ;;
12092 esac
12093
12094 if test "x$lt_cv_dlopen" != xno; then
12095 enable_dlopen=yes
12096 else
12097 enable_dlopen=no
12098 fi
12099
12100 case $lt_cv_dlopen in
12101 dlopen)
12102 save_CPPFLAGS="$CPPFLAGS"
12103 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12104
12105 save_LDFLAGS="$LDFLAGS"
12106 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12107
12108 save_LIBS="$LIBS"
12109 LIBS="$lt_cv_dlopen_libs $LIBS"
12110
12111 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12112echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12113if test "${lt_cv_dlopen_self+set}" = set; then
12114 echo $ECHO_N "(cached) $ECHO_C" >&6
12115else
12116 if test "$cross_compiling" = yes; then :
12117 lt_cv_dlopen_self=cross
12118else
12119 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12120 lt_status=$lt_dlunknown
12121 cat > conftest.$ac_ext <<EOF
John Criswellc66bbd52003-09-29 21:35:32 +000012122#line 12122 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000012123#include "confdefs.h"
12124
12125#if HAVE_DLFCN_H
12126#include <dlfcn.h>
12127#endif
12128
12129#include <stdio.h>
12130
12131#ifdef RTLD_GLOBAL
12132# define LT_DLGLOBAL RTLD_GLOBAL
12133#else
12134# ifdef DL_GLOBAL
12135# define LT_DLGLOBAL DL_GLOBAL
12136# else
12137# define LT_DLGLOBAL 0
12138# endif
12139#endif
12140
12141/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12142 find out it does not work in some platform. */
12143#ifndef LT_DLLAZY_OR_NOW
12144# ifdef RTLD_LAZY
12145# define LT_DLLAZY_OR_NOW RTLD_LAZY
12146# else
12147# ifdef DL_LAZY
12148# define LT_DLLAZY_OR_NOW DL_LAZY
12149# else
12150# ifdef RTLD_NOW
12151# define LT_DLLAZY_OR_NOW RTLD_NOW
12152# else
12153# ifdef DL_NOW
12154# define LT_DLLAZY_OR_NOW DL_NOW
12155# else
12156# define LT_DLLAZY_OR_NOW 0
12157# endif
12158# endif
12159# endif
12160# endif
12161#endif
12162
12163#ifdef __cplusplus
12164extern "C" void exit (int);
12165#endif
12166
12167void fnord() { int i=42;}
12168int main ()
12169{
12170 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12171 int status = $lt_dlunknown;
12172
12173 if (self)
12174 {
12175 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12176 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12177 /* dlclose (self); */
12178 }
12179
12180 exit (status);
12181}
12182EOF
12183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12184 (eval $ac_link) 2>&5
12185 ac_status=$?
12186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12188 (./conftest; exit; ) 2>/dev/null
12189 lt_status=$?
12190 case x$lt_status in
12191 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12192 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12193 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12194 esac
12195 else :
12196 # compilation failed
12197 lt_cv_dlopen_self=no
12198 fi
12199fi
12200rm -fr conftest*
12201
12202
12203fi
12204echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12205echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12206
12207 if test "x$lt_cv_dlopen_self" = xyes; then
12208 LDFLAGS="$LDFLAGS $link_static_flag"
12209 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12210echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12211if test "${lt_cv_dlopen_self_static+set}" = set; then
12212 echo $ECHO_N "(cached) $ECHO_C" >&6
12213else
12214 if test "$cross_compiling" = yes; then :
12215 lt_cv_dlopen_self_static=cross
12216else
12217 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12218 lt_status=$lt_dlunknown
12219 cat > conftest.$ac_ext <<EOF
John Criswellc66bbd52003-09-29 21:35:32 +000012220#line 12220 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000012221#include "confdefs.h"
12222
12223#if HAVE_DLFCN_H
12224#include <dlfcn.h>
12225#endif
12226
12227#include <stdio.h>
12228
12229#ifdef RTLD_GLOBAL
12230# define LT_DLGLOBAL RTLD_GLOBAL
12231#else
12232# ifdef DL_GLOBAL
12233# define LT_DLGLOBAL DL_GLOBAL
12234# else
12235# define LT_DLGLOBAL 0
12236# endif
12237#endif
12238
12239/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12240 find out it does not work in some platform. */
12241#ifndef LT_DLLAZY_OR_NOW
12242# ifdef RTLD_LAZY
12243# define LT_DLLAZY_OR_NOW RTLD_LAZY
12244# else
12245# ifdef DL_LAZY
12246# define LT_DLLAZY_OR_NOW DL_LAZY
12247# else
12248# ifdef RTLD_NOW
12249# define LT_DLLAZY_OR_NOW RTLD_NOW
12250# else
12251# ifdef DL_NOW
12252# define LT_DLLAZY_OR_NOW DL_NOW
12253# else
12254# define LT_DLLAZY_OR_NOW 0
12255# endif
12256# endif
12257# endif
12258# endif
12259#endif
12260
12261#ifdef __cplusplus
12262extern "C" void exit (int);
12263#endif
12264
12265void fnord() { int i=42;}
12266int main ()
12267{
12268 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12269 int status = $lt_dlunknown;
12270
12271 if (self)
12272 {
12273 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12274 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12275 /* dlclose (self); */
12276 }
12277
12278 exit (status);
12279}
12280EOF
12281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12282 (eval $ac_link) 2>&5
12283 ac_status=$?
12284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12286 (./conftest; exit; ) 2>/dev/null
12287 lt_status=$?
12288 case x$lt_status in
12289 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12290 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12291 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12292 esac
12293 else :
12294 # compilation failed
12295 lt_cv_dlopen_self_static=no
12296 fi
12297fi
12298rm -fr conftest*
12299
12300
12301fi
12302echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12303echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12304 fi
12305
12306 CPPFLAGS="$save_CPPFLAGS"
12307 LDFLAGS="$save_LDFLAGS"
12308 LIBS="$save_LIBS"
12309 ;;
12310 esac
12311
12312 case $lt_cv_dlopen_self in
12313 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12314 *) enable_dlopen_self=unknown ;;
12315 esac
12316
12317 case $lt_cv_dlopen_self_static in
12318 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12319 *) enable_dlopen_self_static=unknown ;;
12320 esac
12321fi
12322
12323
12324# The else clause should only fire when bootstrapping the
12325# libtool distribution, otherwise you forgot to ship ltmain.sh
12326# with your package, and you will get complaints that there are
12327# no rules to generate ltmain.sh.
12328if test -f "$ltmain"; then
12329 # See if we are running on zsh, and set the options which allow our commands through
12330 # without removal of \ escapes.
12331 if test -n "${ZSH_VERSION+set}" ; then
12332 setopt NO_GLOB_SUBST
12333 fi
12334 # Now quote all the things that may contain metacharacters while being
12335 # careful not to overquote the AC_SUBSTed values. We take copies of the
12336 # variables and quote the copies for generation of the libtool script.
12337 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12338 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12339 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12340 deplibs_check_method reload_flag reload_cmds need_locks \
12341 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12342 lt_cv_sys_global_symbol_to_c_name_address \
12343 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12344 old_postinstall_cmds old_postuninstall_cmds \
12345 compiler_CXX \
12346 CC_CXX \
12347 LD_CXX \
12348 lt_prog_compiler_wl_CXX \
12349 lt_prog_compiler_pic_CXX \
12350 lt_prog_compiler_static_CXX \
12351 lt_prog_compiler_no_builtin_flag_CXX \
12352 export_dynamic_flag_spec_CXX \
12353 thread_safe_flag_spec_CXX \
12354 whole_archive_flag_spec_CXX \
12355 enable_shared_with_static_runtimes_CXX \
12356 old_archive_cmds_CXX \
12357 old_archive_from_new_cmds_CXX \
12358 predep_objects_CXX \
12359 postdep_objects_CXX \
12360 predeps_CXX \
12361 postdeps_CXX \
12362 compiler_lib_search_path_CXX \
12363 archive_cmds_CXX \
12364 archive_expsym_cmds_CXX \
12365 postinstall_cmds_CXX \
12366 postuninstall_cmds_CXX \
12367 old_archive_from_expsyms_cmds_CXX \
12368 allow_undefined_flag_CXX \
12369 no_undefined_flag_CXX \
12370 export_symbols_cmds_CXX \
12371 hardcode_libdir_flag_spec_CXX \
12372 hardcode_libdir_flag_spec_ld_CXX \
12373 hardcode_libdir_separator_CXX \
12374 hardcode_automatic_CXX \
12375 module_cmds_CXX \
12376 module_expsym_cmds_CXX \
12377 lt_cv_prog_compiler_c_o_CXX \
12378 exclude_expsyms_CXX \
12379 include_expsyms_CXX; do
12380
12381 case $var in
12382 old_archive_cmds_CXX | \
12383 old_archive_from_new_cmds_CXX | \
12384 archive_cmds_CXX | \
12385 archive_expsym_cmds_CXX | \
12386 module_cmds_CXX | \
12387 module_expsym_cmds_CXX | \
12388 old_archive_from_expsyms_cmds_CXX | \
12389 export_symbols_cmds_CXX | \
12390 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12391 postinstall_cmds | postuninstall_cmds | \
12392 old_postinstall_cmds | old_postuninstall_cmds | \
12393 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12394 # Double-quote double-evaled strings.
12395 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12396 ;;
12397 *)
12398 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12399 ;;
12400 esac
12401 done
12402
12403 case $lt_echo in
12404 *'\$0 --fallback-echo"')
12405 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12406 ;;
12407 esac
12408
12409cfgfile="$ofile"
12410
12411 cat <<__EOF__ >> "$cfgfile"
12412# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12413
12414# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12415
12416# Shell to use when invoking shell scripts.
12417SHELL=$lt_SHELL
12418
12419# Whether or not to build shared libraries.
12420build_libtool_libs=$enable_shared
12421
12422# Whether or not to build static libraries.
12423build_old_libs=$enable_static
12424
12425# Whether or not to add -lc for building shared libraries.
12426build_libtool_need_lc=$archive_cmds_need_lc_CXX
12427
12428# Whether or not to disallow shared libs when runtime libs are static
12429allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12430
12431# Whether or not to optimize for fast installation.
12432fast_install=$enable_fast_install
12433
12434# The host system.
12435host_alias=$host_alias
12436host=$host
12437
12438# An echo program that does not interpret backslashes.
12439echo=$lt_echo
12440
12441# The archiver.
12442AR=$lt_AR
12443AR_FLAGS=$lt_AR_FLAGS
12444
12445# A C compiler.
12446LTCC=$lt_LTCC
12447
12448# A language-specific compiler.
12449CC=$lt_compiler_CXX
12450
12451# Is the compiler the GNU C compiler?
12452with_gcc=$GCC_CXX
12453
12454# An ERE matcher.
12455EGREP=$lt_EGREP
12456
12457# The linker used to build libraries.
12458LD=$lt_LD_CXX
12459
12460# Whether we need hard or soft links.
12461LN_S=$lt_LN_S
12462
12463# A BSD-compatible nm program.
12464NM=$lt_NM
12465
12466# A symbol stripping program
12467STRIP=$STRIP
12468
12469# Used to examine libraries when file_magic_cmd begins "file"
12470MAGIC_CMD=$MAGIC_CMD
12471
12472# Used on cygwin: DLL creation program.
12473DLLTOOL="$DLLTOOL"
12474
12475# Used on cygwin: object dumper.
12476OBJDUMP="$OBJDUMP"
12477
12478# Used on cygwin: assembler.
12479AS="$AS"
12480
12481# The name of the directory that contains temporary libtool files.
12482objdir=$objdir
12483
12484# How to create reloadable object files.
12485reload_flag=$lt_reload_flag
12486reload_cmds=$lt_reload_cmds
12487
12488# How to pass a linker flag through the compiler.
12489wl=$lt_lt_prog_compiler_wl_CXX
12490
12491# Object file suffix (normally "o").
12492objext="$ac_objext"
12493
12494# Old archive suffix (normally "a").
12495libext="$libext"
12496
12497# Shared library suffix (normally ".so").
12498shrext='$shrext'
12499
12500# Executable file suffix (normally "").
12501exeext="$exeext"
12502
12503# Additional compiler flags for building library objects.
12504pic_flag=$lt_lt_prog_compiler_pic_CXX
12505pic_mode=$pic_mode
12506
12507# What is the maximum length of a command?
12508max_cmd_len=$lt_cv_sys_max_cmd_len
12509
12510# Does compiler simultaneously support -c and -o options?
12511compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12512
12513# Must we lock files when doing compilation ?
12514need_locks=$lt_need_locks
12515
12516# Do we need the lib prefix for modules?
12517need_lib_prefix=$need_lib_prefix
12518
12519# Do we need a version for libraries?
12520need_version=$need_version
12521
12522# Whether dlopen is supported.
12523dlopen_support=$enable_dlopen
12524
12525# Whether dlopen of programs is supported.
12526dlopen_self=$enable_dlopen_self
12527
12528# Whether dlopen of statically linked programs is supported.
12529dlopen_self_static=$enable_dlopen_self_static
12530
12531# Compiler flag to prevent dynamic linking.
12532link_static_flag=$lt_lt_prog_compiler_static_CXX
12533
12534# Compiler flag to turn off builtin functions.
12535no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12536
12537# Compiler flag to allow reflexive dlopens.
12538export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12539
12540# Compiler flag to generate shared objects directly from archives.
12541whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12542
12543# Compiler flag to generate thread-safe objects.
12544thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12545
12546# Library versioning type.
12547version_type=$version_type
12548
12549# Format of library name prefix.
12550libname_spec=$lt_libname_spec
12551
12552# List of archive names. First name is the real one, the rest are links.
12553# The last name is the one that the linker finds with -lNAME.
12554library_names_spec=$lt_library_names_spec
12555
12556# The coded name of the library, if different from the real name.
12557soname_spec=$lt_soname_spec
12558
12559# Commands used to build and install an old-style archive.
12560RANLIB=$lt_RANLIB
12561old_archive_cmds=$lt_old_archive_cmds_CXX
12562old_postinstall_cmds=$lt_old_postinstall_cmds
12563old_postuninstall_cmds=$lt_old_postuninstall_cmds
12564
12565# Create an old-style archive from a shared archive.
12566old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12567
12568# Create a temporary old-style archive to link instead of a shared archive.
12569old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12570
12571# Commands used to build and install a shared archive.
12572archive_cmds=$lt_archive_cmds_CXX
12573archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12574postinstall_cmds=$lt_postinstall_cmds
12575postuninstall_cmds=$lt_postuninstall_cmds
12576
12577# Commands used to build a loadable module (assumed same as above if empty)
12578module_cmds=$lt_module_cmds_CXX
12579module_expsym_cmds=$lt_module_expsym_cmds_CXX
12580
12581# Commands to strip libraries.
12582old_striplib=$lt_old_striplib
12583striplib=$lt_striplib
12584
12585# Dependencies to place before the objects being linked to create a
12586# shared library.
12587predep_objects=$lt_predep_objects_CXX
12588
12589# Dependencies to place after the objects being linked to create a
12590# shared library.
12591postdep_objects=$lt_postdep_objects_CXX
12592
12593# Dependencies to place before the objects being linked to create a
12594# shared library.
12595predeps=$lt_predeps_CXX
12596
12597# Dependencies to place after the objects being linked to create a
12598# shared library.
12599postdeps=$lt_postdeps_CXX
12600
12601# The library search path used internally by the compiler when linking
12602# a shared library.
12603compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12604
12605# Method to check whether dependent libraries are shared objects.
12606deplibs_check_method=$lt_deplibs_check_method
12607
12608# Command to use when deplibs_check_method == file_magic.
12609file_magic_cmd=$lt_file_magic_cmd
12610
12611# Flag that allows shared libraries with undefined symbols to be built.
12612allow_undefined_flag=$lt_allow_undefined_flag_CXX
12613
12614# Flag that forces no undefined symbols.
12615no_undefined_flag=$lt_no_undefined_flag_CXX
12616
12617# Commands used to finish a libtool library installation in a directory.
12618finish_cmds=$lt_finish_cmds
12619
12620# Same as above, but a single script fragment to be evaled but not shown.
12621finish_eval=$lt_finish_eval
12622
12623# Take the output of nm and produce a listing of raw symbols and C names.
12624global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12625
12626# Transform the output of nm in a proper C declaration
12627global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12628
12629# Transform the output of nm in a C name address pair
12630global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12631
12632# This is the shared library runtime path variable.
12633runpath_var=$runpath_var
12634
12635# This is the shared library path variable.
12636shlibpath_var=$shlibpath_var
12637
12638# Is shlibpath searched before the hard-coded library search path?
12639shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12640
12641# How to hardcode a shared library path into an executable.
12642hardcode_action=$hardcode_action_CXX
12643
12644# Whether we should hardcode library paths into libraries.
12645hardcode_into_libs=$hardcode_into_libs
12646
12647# Flag to hardcode \$libdir into a binary during linking.
12648# This must work even if \$libdir does not exist.
12649hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12650
12651# If ld is used when linking, flag to hardcode \$libdir into
12652# a binary during linking. This must work even if \$libdir does
12653# not exist.
12654hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12655
12656# Whether we need a single -rpath flag with a separated argument.
12657hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12658
12659# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12660# resulting binary.
12661hardcode_direct=$hardcode_direct_CXX
12662
12663# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12664# resulting binary.
12665hardcode_minus_L=$hardcode_minus_L_CXX
12666
12667# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12668# the resulting binary.
12669hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12670
12671# Set to yes if building a shared library automatically hardcodes DIR into the library
12672# and all subsequent libraries and executables linked against it.
12673hardcode_automatic=$hardcode_automatic_CXX
12674
12675# Variables whose values should be saved in libtool wrapper scripts and
12676# restored at relink time.
12677variables_saved_for_relink="$variables_saved_for_relink"
12678
12679# Whether libtool must link a program against all its dependency libraries.
12680link_all_deplibs=$link_all_deplibs_CXX
12681
12682# Compile-time system search path for libraries
12683sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12684
12685# Run-time system search path for libraries
12686sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12687
12688# Fix the shell variable \$srcfile for the compiler.
12689fix_srcfile_path="$fix_srcfile_path_CXX"
12690
12691# Set to yes if exported symbols are required.
12692always_export_symbols=$always_export_symbols_CXX
12693
12694# The commands to list exported symbols.
12695export_symbols_cmds=$lt_export_symbols_cmds_CXX
12696
12697# The commands to extract the exported symbol list from a shared archive.
12698extract_expsyms_cmds=$lt_extract_expsyms_cmds
12699
12700# Symbols that should not be listed in the preloaded symbols.
12701exclude_expsyms=$lt_exclude_expsyms_CXX
12702
12703# Symbols that must always be exported.
12704include_expsyms=$lt_include_expsyms_CXX
12705
12706# ### END LIBTOOL TAG CONFIG: $tagname
12707
12708__EOF__
12709
12710
12711else
12712 # If there is no Makefile yet, we rely on a make rule to execute
12713 # `config.status --recheck' to rerun these tests and create the
12714 # libtool script then.
12715 test -f Makefile && make "$ltmain"
12716fi
12717
12718
12719ac_ext=c
12720ac_cpp='$CPP $CPPFLAGS'
12721ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12722ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12723ac_compiler_gnu=$ac_cv_c_compiler_gnu
12724
12725CC=$lt_save_CC
12726LDCXX=$LD
12727LD=$lt_save_LD
12728GCC=$lt_save_GCC
12729with_gnu_ldcxx=$with_gnu_ld
12730with_gnu_ld=$lt_save_with_gnu_ld
12731lt_cv_path_LDCXX=$lt_cv_path_LD
12732lt_cv_path_LD=$lt_save_path_LD
12733lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12734lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12735
12736 else
12737 tagname=""
12738 fi
12739 ;;
12740
12741 F77)
12742 if test -n "$F77" && test "X$F77" != "Xno"; then
12743
12744ac_ext=f
12745ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12746ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12747ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12748
12749
12750archive_cmds_need_lc_F77=no
12751allow_undefined_flag_F77=
12752always_export_symbols_F77=no
12753archive_expsym_cmds_F77=
12754export_dynamic_flag_spec_F77=
12755hardcode_direct_F77=no
12756hardcode_libdir_flag_spec_F77=
12757hardcode_libdir_flag_spec_ld_F77=
12758hardcode_libdir_separator_F77=
12759hardcode_minus_L_F77=no
12760hardcode_automatic_F77=no
12761module_cmds_F77=
12762module_expsym_cmds_F77=
12763link_all_deplibs_F77=unknown
12764old_archive_cmds_F77=$old_archive_cmds
12765no_undefined_flag_F77=
12766whole_archive_flag_spec_F77=
12767enable_shared_with_static_runtimes_F77=no
12768
12769# Source file extension for f77 test sources.
12770ac_ext=f
12771
12772# Object file extension for compiled f77 test sources.
12773objext=o
12774objext_F77=$objext
12775
12776# Code to be used in simple compile tests
12777lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12778
12779# Code to be used in simple link tests
12780lt_simple_link_test_code=" program t\n end\n"
12781
12782# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12783
12784# If no C compiler was specified, use CC.
12785LTCC=${LTCC-"$CC"}
12786
12787# Allow CC to be a program name with arguments.
12788compiler=$CC
12789
12790
12791# Allow CC to be a program name with arguments.
12792lt_save_CC="$CC"
12793CC=${F77-"f77"}
12794compiler=$CC
12795compiler_F77=$CC
12796cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12797
12798echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12799echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12800echo "$as_me:$LINENO: result: $can_build_shared" >&5
12801echo "${ECHO_T}$can_build_shared" >&6
12802
12803echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12804echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12805test "$can_build_shared" = "no" && enable_shared=no
12806
12807# On AIX, shared libraries and static libraries use the same namespace, and
12808# are all built from PIC.
12809case "$host_os" in
12810aix3*)
12811 test "$enable_shared" = yes && enable_static=no
12812 if test -n "$RANLIB"; then
12813 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12814 postinstall_cmds='$RANLIB $lib'
12815 fi
12816 ;;
12817aix4*)
12818 test "$enable_shared" = yes && enable_static=no
12819 ;;
12820esac
12821echo "$as_me:$LINENO: result: $enable_shared" >&5
12822echo "${ECHO_T}$enable_shared" >&6
12823
12824echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12825echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12826# Make sure either enable_shared or enable_static is yes.
12827test "$enable_shared" = yes || enable_static=yes
12828echo "$as_me:$LINENO: result: $enable_static" >&5
12829echo "${ECHO_T}$enable_static" >&6
12830
12831test "$ld_shlibs_F77" = no && can_build_shared=no
12832
12833GCC_F77="$G77"
12834LD_F77="$LD"
12835
12836lt_prog_compiler_wl_F77=
12837lt_prog_compiler_pic_F77=
12838lt_prog_compiler_static_F77=
12839
12840echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12841echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12842
12843 if test "$GCC" = yes; then
12844 lt_prog_compiler_wl_F77='-Wl,'
12845 lt_prog_compiler_static_F77='-static'
12846
12847 case $host_os in
12848 aix*)
12849 # All AIX code is PIC.
12850 if test "$host_cpu" = ia64; then
12851 # AIX 5 now supports IA64 processor
12852 lt_prog_compiler_static_F77='-Bstatic'
12853 fi
12854 ;;
12855
12856 amigaos*)
12857 # FIXME: we need at least 68020 code to build shared libraries, but
12858 # adding the `-m68020' flag to GCC prevents building anything better,
12859 # like `-m68040'.
12860 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12861 ;;
12862
12863 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12864 # PIC is the default for these OSes.
12865 ;;
12866
12867 mingw* | pw32* | os2*)
12868 # This hack is so that the source file can tell whether it is being
12869 # built for inclusion in a dll (and should export symbols for example).
12870 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12871 ;;
12872
12873 darwin* | rhapsody*)
12874 # PIC is the default on this platform
12875 # Common symbols not allowed in MH_DYLIB files
12876 lt_prog_compiler_pic_F77='-fno-common'
12877 ;;
12878
12879 msdosdjgpp*)
12880 # Just because we use GCC doesn't mean we suddenly get shared libraries
12881 # on systems that don't support them.
12882 lt_prog_compiler_can_build_shared_F77=no
12883 enable_shared=no
12884 ;;
12885
12886 sysv4*MP*)
12887 if test -d /usr/nec; then
12888 lt_prog_compiler_pic_F77=-Kconform_pic
12889 fi
12890 ;;
12891
12892 hpux*)
12893 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12894 # not for PA HP-UX.
12895 case "$host_cpu" in
12896 hppa*64*|ia64*)
12897 # +Z the default
12898 ;;
12899 *)
12900 lt_prog_compiler_pic_F77='-fPIC'
12901 ;;
12902 esac
12903 ;;
12904
12905 *)
12906 lt_prog_compiler_pic_F77='-fPIC'
12907 ;;
12908 esac
12909 else
12910 # PORTME Check for flag to pass linker flags through the system compiler.
12911 case $host_os in
12912 aix*)
12913 lt_prog_compiler_wl_F77='-Wl,'
12914 if test "$host_cpu" = ia64; then
12915 # AIX 5 now supports IA64 processor
12916 lt_prog_compiler_static_F77='-Bstatic'
12917 else
12918 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12919 fi
12920 ;;
12921
12922 mingw* | pw32* | os2*)
12923 # This hack is so that the source file can tell whether it is being
12924 # built for inclusion in a dll (and should export symbols for example).
12925 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12926 ;;
12927
12928 hpux9* | hpux10* | hpux11*)
12929 lt_prog_compiler_wl_F77='-Wl,'
12930 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12931 # not for PA HP-UX.
12932 case "$host_cpu" in
12933 hppa*64*|ia64*)
12934 # +Z the default
12935 ;;
12936 *)
12937 lt_prog_compiler_pic_F77='+Z'
12938 ;;
12939 esac
12940 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12941 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12942 ;;
12943
12944 irix5* | irix6* | nonstopux*)
12945 lt_prog_compiler_wl_F77='-Wl,'
12946 # PIC (with -KPIC) is the default.
12947 lt_prog_compiler_static_F77='-non_shared'
12948 ;;
12949
12950 newsos6)
12951 lt_prog_compiler_pic_F77='-KPIC'
12952 lt_prog_compiler_static_F77='-Bstatic'
12953 ;;
12954
12955 linux*)
12956 case $CC in
12957 icc|ecc)
12958 lt_prog_compiler_wl_F77='-Wl,'
12959 lt_prog_compiler_pic_F77='-KPIC'
12960 lt_prog_compiler_static_F77='-static'
12961 ;;
12962 ccc)
12963 lt_prog_compiler_wl_F77='-Wl,'
12964 # All Alpha code is PIC.
12965 lt_prog_compiler_static_F77='-non_shared'
12966 ;;
12967 esac
12968 ;;
12969
12970 osf3* | osf4* | osf5*)
12971 lt_prog_compiler_wl_F77='-Wl,'
12972 # All OSF/1 code is PIC.
12973 lt_prog_compiler_static_F77='-non_shared'
12974 ;;
12975
12976 sco3.2v5*)
12977 lt_prog_compiler_pic_F77='-Kpic'
12978 lt_prog_compiler_static_F77='-dn'
12979 ;;
12980
12981 solaris*)
12982 lt_prog_compiler_wl_F77='-Wl,'
12983 lt_prog_compiler_pic_F77='-KPIC'
12984 lt_prog_compiler_static_F77='-Bstatic'
12985 ;;
12986
12987 sunos4*)
12988 lt_prog_compiler_wl_F77='-Qoption ld '
12989 lt_prog_compiler_pic_F77='-PIC'
12990 lt_prog_compiler_static_F77='-Bstatic'
12991 ;;
12992
12993 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12994 lt_prog_compiler_wl_F77='-Wl,'
12995 lt_prog_compiler_pic_F77='-KPIC'
12996 lt_prog_compiler_static_F77='-Bstatic'
12997 ;;
12998
12999 sysv4*MP*)
13000 if test -d /usr/nec ;then
13001 lt_prog_compiler_pic_F77='-Kconform_pic'
13002 lt_prog_compiler_static_F77='-Bstatic'
13003 fi
13004 ;;
13005
13006 uts4*)
13007 lt_prog_compiler_pic_F77='-pic'
13008 lt_prog_compiler_static_F77='-Bstatic'
13009 ;;
13010
13011 *)
13012 lt_prog_compiler_can_build_shared_F77=no
13013 ;;
13014 esac
13015 fi
13016
13017echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13018echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13019
13020#
13021# Check to make sure the PIC flag actually works.
13022#
13023if test -n "$lt_prog_compiler_pic_F77"; then
13024 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13025echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13026if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13027 echo $ECHO_N "(cached) $ECHO_C" >&6
13028else
13029 lt_prog_compiler_pic_works_F77=no
13030 ac_outfile=conftest.$ac_objext
13031 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13032 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13033 # Insert the option either (1) after the last *FLAGS variable, or
13034 # (2) before a word containing "conftest.", or (3) at the end.
13035 # Note that $ac_compile itself does not contain backslashes and begins
13036 # with a dollar sign (not a hyphen), so the echo should work correctly.
13037 # The option is referenced via a variable to avoid confusing sed.
13038 lt_compile=`echo "$ac_compile" | $SED \
13039 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13040 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13041 -e 's:$: $lt_compiler_flag:'`
John Criswellc66bbd52003-09-29 21:35:32 +000013042 (eval echo "\"\$as_me:13042: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013043 (eval "$lt_compile" 2>conftest.err)
13044 ac_status=$?
13045 cat conftest.err >&5
John Criswellc66bbd52003-09-29 21:35:32 +000013046 echo "$as_me:13046: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013047 if (exit $ac_status) && test -s "$ac_outfile"; then
13048 # The compiler can only warn and ignore the option if not recognized
13049 # So say no if there are warnings
13050 if test ! -s conftest.err; then
13051 lt_prog_compiler_pic_works_F77=yes
13052 fi
13053 fi
13054 $rm conftest*
13055
13056fi
13057echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13058echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13059
13060if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13061 case $lt_prog_compiler_pic_F77 in
13062 "" | " "*) ;;
13063 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13064 esac
13065else
13066 lt_prog_compiler_pic_F77=
13067 lt_prog_compiler_can_build_shared_F77=no
13068fi
13069
13070fi
13071case "$host_os" in
13072 # For platforms which do not support PIC, -DPIC is meaningless:
13073 *djgpp*)
13074 lt_prog_compiler_pic_F77=
13075 ;;
13076 *)
13077 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13078 ;;
13079esac
13080
13081echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13082echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13083if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13084 echo $ECHO_N "(cached) $ECHO_C" >&6
13085else
13086 lt_cv_prog_compiler_c_o_F77=no
13087 $rm -r conftest 2>/dev/null
13088 mkdir conftest
13089 cd conftest
13090 mkdir out
13091 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13092
13093 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13094 # that will create temporary files in the current directory regardless of
13095 # the output directory. Thus, making CWD read-only will cause this test
13096 # to fail, enabling locking or at least warning the user not to do parallel
13097 # builds.
13098 chmod -w .
13099
13100 lt_compiler_flag="-o out/conftest2.$ac_objext"
13101 # Insert the option either (1) after the last *FLAGS variable, or
13102 # (2) before a word containing "conftest.", or (3) at the end.
13103 # Note that $ac_compile itself does not contain backslashes and begins
13104 # with a dollar sign (not a hyphen), so the echo should work correctly.
13105 lt_compile=`echo "$ac_compile" | $SED \
13106 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13107 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13108 -e 's:$: $lt_compiler_flag:'`
John Criswellc66bbd52003-09-29 21:35:32 +000013109 (eval echo "\"\$as_me:13109: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013110 (eval "$lt_compile" 2>out/conftest.err)
13111 ac_status=$?
13112 cat out/conftest.err >&5
John Criswellc66bbd52003-09-29 21:35:32 +000013113 echo "$as_me:13113: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013114 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13115 then
13116 # The compiler can only warn and ignore the option if not recognized
13117 # So say no if there are warnings
13118 if test ! -s out/conftest.err; then
13119 lt_cv_prog_compiler_c_o_F77=yes
13120 fi
13121 fi
13122 chmod u+w .
13123 $rm conftest* out/*
13124 rmdir out
13125 cd ..
13126 rmdir conftest
13127 $rm conftest*
13128
13129fi
13130echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13131echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13132
13133
13134hard_links="nottested"
13135if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13136 # do not overwrite the value of need_locks provided by the user
13137 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13138echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13139 hard_links=yes
13140 $rm conftest*
13141 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13142 touch conftest.a
13143 ln conftest.a conftest.b 2>&5 || hard_links=no
13144 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13145 echo "$as_me:$LINENO: result: $hard_links" >&5
13146echo "${ECHO_T}$hard_links" >&6
13147 if test "$hard_links" = no; then
13148 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13149echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13150 need_locks=warn
13151 fi
13152else
13153 need_locks=no
13154fi
13155
13156echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13157echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13158
13159 runpath_var=
13160 allow_undefined_flag_F77=
13161 enable_shared_with_static_runtimes_F77=no
13162 archive_cmds_F77=
13163 archive_expsym_cmds_F77=
13164 old_archive_From_new_cmds_F77=
13165 old_archive_from_expsyms_cmds_F77=
13166 export_dynamic_flag_spec_F77=
13167 whole_archive_flag_spec_F77=
13168 thread_safe_flag_spec_F77=
13169 hardcode_libdir_flag_spec_F77=
13170 hardcode_libdir_flag_spec_ld_F77=
13171 hardcode_libdir_separator_F77=
13172 hardcode_direct_F77=no
13173 hardcode_minus_L_F77=no
13174 hardcode_shlibpath_var_F77=unsupported
13175 link_all_deplibs_F77=unknown
13176 hardcode_automatic_F77=no
13177 module_cmds_F77=
13178 module_expsym_cmds_F77=
13179 always_export_symbols_F77=no
13180 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13181 # include_expsyms should be a list of space-separated symbols to be *always*
13182 # included in the symbol list
13183 include_expsyms_F77=
13184 # exclude_expsyms can be an extended regexp of symbols to exclude
13185 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13186 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13187 # as well as any symbol that contains `d'.
13188 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13189 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13190 # platforms (ab)use it in PIC code, but their linkers get confused if
13191 # the symbol is explicitly referenced. Since portable code cannot
13192 # rely on this symbol name, it's probably fine to never include it in
13193 # preloaded symbol tables.
13194 extract_expsyms_cmds=
13195
13196 case $host_os in
13197 cygwin* | mingw* | pw32*)
13198 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13199 # When not using gcc, we currently assume that we are using
13200 # Microsoft Visual C++.
13201 if test "$GCC" != yes; then
13202 with_gnu_ld=no
13203 fi
13204 ;;
13205 openbsd*)
13206 with_gnu_ld=no
13207 ;;
13208 esac
13209
13210 ld_shlibs_F77=yes
13211 if test "$with_gnu_ld" = yes; then
13212 # If archive_cmds runs LD, not CC, wlarc should be empty
13213 wlarc='${wl}'
13214
13215 # See if GNU ld supports shared libraries.
13216 case $host_os in
13217 aix3* | aix4* | aix5*)
13218 # On AIX/PPC, the GNU linker is very broken
13219 if test "$host_cpu" != ia64; then
13220 ld_shlibs_F77=no
13221 cat <<EOF 1>&2
13222
13223*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13224*** to be unable to reliably create shared libraries on AIX.
13225*** Therefore, libtool is disabling shared libraries support. If you
13226*** really care for shared libraries, you may want to modify your PATH
13227*** so that a non-GNU linker is found, and then restart.
13228
13229EOF
13230 fi
13231 ;;
13232
13233 amigaos*)
13234 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)'
13235 hardcode_libdir_flag_spec_F77='-L$libdir'
13236 hardcode_minus_L_F77=yes
13237
13238 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13239 # that the semantics of dynamic libraries on AmigaOS, at least up
13240 # to version 4, is to share data among multiple programs linked
13241 # with the same dynamic library. Since this doesn't match the
13242 # behavior of shared libraries on other platforms, we can't use
13243 # them.
13244 ld_shlibs_F77=no
13245 ;;
13246
13247 beos*)
13248 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13249 allow_undefined_flag_F77=unsupported
13250 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13251 # support --undefined. This deserves some investigation. FIXME
13252 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13253 else
13254 ld_shlibs_F77=no
13255 fi
13256 ;;
13257
13258 cygwin* | mingw* | pw32*)
13259 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13260 # as there is no search path for DLLs.
13261 hardcode_libdir_flag_spec_F77='-L$libdir'
13262 allow_undefined_flag_F77=unsupported
13263 always_export_symbols_F77=no
13264 enable_shared_with_static_runtimes_F77=yes
13265 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13266
13267 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13268 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13269 # If the export-symbols file already is a .def file (1st line
13270 # is EXPORTS), use it as is; otherwise, prepend...
13271 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13272 cp $export_symbols $output_objdir/$soname.def;
13273 else
13274 echo EXPORTS > $output_objdir/$soname.def;
13275 cat $export_symbols >> $output_objdir/$soname.def;
13276 fi~
13277 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13278 else
13279 ld_shlibs=no
13280 fi
13281 ;;
13282
13283 netbsd*)
13284 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13285 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13286 wlarc=
13287 else
13288 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13289 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13290 fi
13291 ;;
13292
13293 solaris* | sysv5*)
13294 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13295 ld_shlibs_F77=no
13296 cat <<EOF 1>&2
13297
13298*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13299*** create shared libraries on Solaris systems. Therefore, libtool
13300*** is disabling shared libraries support. We urge you to upgrade GNU
13301*** binutils to release 2.9.1 or newer. Another option is to modify
13302*** your PATH or compiler configuration so that the native linker is
13303*** used, and then restart.
13304
13305EOF
13306 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13307 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13308 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13309 else
13310 ld_shlibs_F77=no
13311 fi
13312 ;;
13313
13314 sunos4*)
13315 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13316 wlarc=
13317 hardcode_direct_F77=yes
13318 hardcode_shlibpath_var_F77=no
13319 ;;
13320
13321 *)
13322 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13323 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13324 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13325 else
13326 ld_shlibs_F77=no
13327 fi
13328 ;;
13329 esac
13330
13331 if test "$ld_shlibs_F77" = yes; then
13332 runpath_var=LD_RUN_PATH
13333 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13334 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13335 # ancient GNU ld didn't support --whole-archive et. al.
13336 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13337 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13338 else
13339 whole_archive_flag_spec_F77=
13340 fi
13341 fi
13342 else
13343 # PORTME fill in a description of your system's linker (not GNU ld)
13344 case $host_os in
13345 aix3*)
13346 allow_undefined_flag_F77=unsupported
13347 always_export_symbols_F77=yes
13348 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'
13349 # Note: this linker hardcodes the directories in LIBPATH if there
13350 # are no directories specified by -L.
13351 hardcode_minus_L_F77=yes
13352 if test "$GCC" = yes && test -z "$link_static_flag"; then
13353 # Neither direct hardcoding nor static linking is supported with a
13354 # broken collect2.
13355 hardcode_direct_F77=unsupported
13356 fi
13357 ;;
13358
13359 aix4* | aix5*)
13360 if test "$host_cpu" = ia64; then
13361 # On IA64, the linker does run time linking by default, so we don't
13362 # have to do anything special.
13363 aix_use_runtimelinking=no
13364 exp_sym_flag='-Bexport'
13365 no_entry_flag=""
13366 else
13367 # If we're using GNU nm, then we don't want the "-C" option.
13368 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13369 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13370 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'
13371 else
13372 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'
13373 fi
13374 aix_use_runtimelinking=no
13375
13376 # Test if we are trying to use run time linking or normal
13377 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13378 # need to do runtime linking.
13379 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13380 for ld_flag in $LDFLAGS; do
13381 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13382 aix_use_runtimelinking=yes
13383 break
13384 fi
13385 done
13386 esac
13387
13388 exp_sym_flag='-bexport'
13389 no_entry_flag='-bnoentry'
13390 fi
13391
13392 # When large executables or shared objects are built, AIX ld can
13393 # have problems creating the table of contents. If linking a library
13394 # or program results in "error TOC overflow" add -mminimal-toc to
13395 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13396 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13397
13398 archive_cmds_F77=''
13399 hardcode_direct_F77=yes
13400 hardcode_libdir_separator_F77=':'
13401 link_all_deplibs_F77=yes
13402
13403 if test "$GCC" = yes; then
13404 case $host_os in aix4.012|aix4.012.*)
13405 # We only want to do this on AIX 4.2 and lower, the check
13406 # below for broken collect2 doesn't work under 4.3+
13407 collect2name=`${CC} -print-prog-name=collect2`
13408 if test -f "$collect2name" && \
13409 strings "$collect2name" | grep resolve_lib_name >/dev/null
13410 then
13411 # We have reworked collect2
13412 hardcode_direct_F77=yes
13413 else
13414 # We have old collect2
13415 hardcode_direct_F77=unsupported
13416 # It fails to find uninstalled libraries when the uninstalled
13417 # path is not listed in the libpath. Setting hardcode_minus_L
13418 # to unsupported forces relinking
13419 hardcode_minus_L_F77=yes
13420 hardcode_libdir_flag_spec_F77='-L$libdir'
13421 hardcode_libdir_separator_F77=
13422 fi
13423 esac
13424 shared_flag='-shared'
13425 else
13426 # not using gcc
13427 if test "$host_cpu" = ia64; then
13428 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13429 # chokes on -Wl,-G. The following line is correct:
13430 shared_flag='-G'
13431 else
13432 if test "$aix_use_runtimelinking" = yes; then
13433 shared_flag='${wl}-G'
13434 else
13435 shared_flag='${wl}-bM:SRE'
13436 fi
13437 fi
13438 fi
13439
13440 # It seems that -bexpall does not export symbols beginning with
13441 # underscore (_), so it is better to generate a list of symbols to export.
13442 always_export_symbols_F77=yes
13443 if test "$aix_use_runtimelinking" = yes; then
13444 # Warning - without using the other runtime loading flags (-brtl),
13445 # -berok will link without error, but may produce a broken library.
13446 allow_undefined_flag_F77='-berok'
13447 # Determine the default libpath from the value encoded in an empty executable.
13448 cat >conftest.$ac_ext <<_ACEOF
13449 program main
13450
13451 end
13452_ACEOF
13453rm -f conftest.$ac_objext conftest$ac_exeext
13454if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13455 (eval $ac_link) 2>&5
13456 ac_status=$?
13457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13458 (exit $ac_status); } &&
13459 { ac_try='test -s conftest$ac_exeext'
13460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13461 (eval $ac_try) 2>&5
13462 ac_status=$?
13463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13464 (exit $ac_status); }; }; then
13465
13466aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13467}'`
13468# Check for a 64-bit object if we didn't find anything.
13469if 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; }
13470}'`; fi
13471else
13472 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013473sed 's/^/| /' conftest.$ac_ext >&5
13474
John Criswell47fdd832003-07-14 16:52:07 +000013475fi
13476rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13477if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13478
13479 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13480 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"
13481 else
13482 if test "$host_cpu" = ia64; then
13483 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13484 allow_undefined_flag_F77="-z nodefs"
13485 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"
13486 else
13487 # Determine the default libpath from the value encoded in an empty executable.
13488 cat >conftest.$ac_ext <<_ACEOF
13489 program main
13490
13491 end
13492_ACEOF
13493rm -f conftest.$ac_objext conftest$ac_exeext
13494if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13495 (eval $ac_link) 2>&5
13496 ac_status=$?
13497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498 (exit $ac_status); } &&
13499 { ac_try='test -s conftest$ac_exeext'
13500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13501 (eval $ac_try) 2>&5
13502 ac_status=$?
13503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13504 (exit $ac_status); }; }; then
13505
13506aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13507}'`
13508# Check for a 64-bit object if we didn't find anything.
13509if 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; }
13510}'`; fi
13511else
13512 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013513sed 's/^/| /' conftest.$ac_ext >&5
13514
John Criswell47fdd832003-07-14 16:52:07 +000013515fi
13516rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13517if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13518
13519 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13520 # Warning - without using the other run time loading flags,
13521 # -berok will link without error, but may produce a broken library.
13522 no_undefined_flag_F77=' ${wl}-bernotok'
13523 allow_undefined_flag_F77=' ${wl}-berok'
13524 # -bexpall does not export symbols beginning with underscore (_)
13525 always_export_symbols_F77=yes
13526 # Exported symbols can be pulled into shared objects from archives
13527 whole_archive_flag_spec_F77=' '
13528 archive_cmds_need_lc_F77=yes
13529 # This is similar to how AIX traditionally builds it's shared libraries.
13530 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'
13531 fi
13532 fi
13533 ;;
13534
13535 amigaos*)
13536 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)'
13537 hardcode_libdir_flag_spec_F77='-L$libdir'
13538 hardcode_minus_L_F77=yes
13539 # see comment about different semantics on the GNU ld section
13540 ld_shlibs_F77=no
13541 ;;
13542
13543 bsdi4*)
13544 export_dynamic_flag_spec_F77=-rdynamic
13545 ;;
13546
13547 cygwin* | mingw* | pw32*)
13548 # When not using gcc, we currently assume that we are using
13549 # Microsoft Visual C++.
13550 # hardcode_libdir_flag_spec is actually meaningless, as there is
13551 # no search path for DLLs.
13552 hardcode_libdir_flag_spec_F77=' '
13553 allow_undefined_flag_F77=unsupported
13554 # Tell ltmain to make .lib files, not .a files.
13555 libext=lib
13556 # Tell ltmain to make .dll files, not .so files.
13557 shrext=".dll"
13558 # FIXME: Setting linknames here is a bad hack.
13559 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13560 # The linker will automatically build a .lib file if we build a DLL.
13561 old_archive_From_new_cmds_F77='true'
13562 # FIXME: Should let the user specify the lib program.
13563 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13564 fix_srcfile_path='`cygpath -w "$srcfile"`'
13565 enable_shared_with_static_runtimes_F77=yes
13566 ;;
13567
13568 darwin* | rhapsody*)
13569 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13570 archive_cmds_need_lc_F77=no
13571 case "$host_os" in
13572 rhapsody* | darwin1.[012])
13573 allow_undefined_flag_F77='-undefined suppress'
13574 ;;
13575 *) # Darwin 1.3 on
13576 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13577 ;;
13578 esac
13579 # FIXME: Relying on posixy $() will cause problems for
13580 # cross-compilation, but unfortunately the echo tests do not
13581 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
13582 # `"' quotes if we put them in here... so don't!
13583 lt_int_apple_cc_single_mod=no
13584 output_verbose_link_cmd='echo'
13585 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13586 lt_int_apple_cc_single_mod=yes
13587 fi
13588 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13589 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13590 else
13591 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'
13592 fi
13593 module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13594 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13595 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13596 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}'
13597 else
13598 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}'
13599 fi
13600 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}'
13601 hardcode_direct_F77=no
13602 hardcode_automatic_F77=yes
13603 hardcode_shlibpath_var_F77=unsupported
13604 whole_archive_flag_spec_F77='-all_load $convenience'
13605 link_all_deplibs_F77=yes
13606 fi
13607 ;;
13608
13609 dgux*)
13610 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13611 hardcode_libdir_flag_spec_F77='-L$libdir'
13612 hardcode_shlibpath_var_F77=no
13613 ;;
13614
13615 freebsd1*)
13616 ld_shlibs_F77=no
13617 ;;
13618
13619 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13620 # support. Future versions do this automatically, but an explicit c++rt0.o
13621 # does not break anything, and helps significantly (at the cost of a little
13622 # extra space).
13623 freebsd2.2*)
13624 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13625 hardcode_libdir_flag_spec_F77='-R$libdir'
13626 hardcode_direct_F77=yes
13627 hardcode_shlibpath_var_F77=no
13628 ;;
13629
13630 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13631 freebsd2*)
13632 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13633 hardcode_direct_F77=yes
13634 hardcode_minus_L_F77=yes
13635 hardcode_shlibpath_var_F77=no
13636 ;;
13637
13638 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13639 freebsd*)
13640 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13641 hardcode_libdir_flag_spec_F77='-R$libdir'
13642 hardcode_direct_F77=yes
13643 hardcode_shlibpath_var_F77=no
13644 ;;
13645
13646 hpux9*)
13647 if test "$GCC" = yes; then
13648 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'
13649 else
13650 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'
13651 fi
13652 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13653 hardcode_libdir_separator_F77=:
13654 hardcode_direct_F77=yes
13655
13656 # hardcode_minus_L: Not really in the search PATH,
13657 # but as the default location of the library.
13658 hardcode_minus_L_F77=yes
13659 export_dynamic_flag_spec_F77='${wl}-E'
13660 ;;
13661
13662 hpux10* | hpux11*)
13663 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13664 case "$host_cpu" in
13665 hppa*64*|ia64*)
13666 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13667 ;;
13668 *)
13669 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13670 ;;
13671 esac
13672 else
13673 case "$host_cpu" in
13674 hppa*64*|ia64*)
13675 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13676 ;;
13677 *)
13678 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13679 ;;
13680 esac
13681 fi
13682 if test "$with_gnu_ld" = no; then
13683 case "$host_cpu" in
13684 hppa*64*)
13685 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13686 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13687 hardcode_libdir_separator_F77=:
13688 hardcode_direct_F77=no
13689 hardcode_shlibpath_var_F77=no
13690 ;;
13691 ia64*)
13692 hardcode_libdir_flag_spec_F77='-L$libdir'
13693 hardcode_direct_F77=no
13694 hardcode_shlibpath_var_F77=no
13695
13696 # hardcode_minus_L: Not really in the search PATH,
13697 # but as the default location of the library.
13698 hardcode_minus_L_F77=yes
13699 ;;
13700 *)
13701 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13702 hardcode_libdir_separator_F77=:
13703 hardcode_direct_F77=yes
13704 export_dynamic_flag_spec_F77='${wl}-E'
13705
13706 # hardcode_minus_L: Not really in the search PATH,
13707 # but as the default location of the library.
13708 hardcode_minus_L_F77=yes
13709 ;;
13710 esac
13711 fi
13712 ;;
13713
13714 irix5* | irix6* | nonstopux*)
13715 if test "$GCC" = yes; then
13716 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'
13717 else
13718 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'
13719 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13720 fi
13721 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13722 hardcode_libdir_separator_F77=:
13723 link_all_deplibs_F77=yes
13724 ;;
13725
13726 netbsd*)
13727 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13728 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13729 else
13730 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13731 fi
13732 hardcode_libdir_flag_spec_F77='-R$libdir'
13733 hardcode_direct_F77=yes
13734 hardcode_shlibpath_var_F77=no
13735 ;;
13736
13737 newsos6)
13738 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13739 hardcode_direct_F77=yes
13740 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13741 hardcode_libdir_separator_F77=:
13742 hardcode_shlibpath_var_F77=no
13743 ;;
13744
13745 openbsd*)
13746 hardcode_direct_F77=yes
13747 hardcode_shlibpath_var_F77=no
13748 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13749 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13750 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13751 export_dynamic_flag_spec_F77='${wl}-E'
13752 else
13753 case $host_os in
13754 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13755 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13756 hardcode_libdir_flag_spec_F77='-R$libdir'
13757 ;;
13758 *)
13759 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13760 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13761 ;;
13762 esac
13763 fi
13764 ;;
13765
13766 os2*)
13767 hardcode_libdir_flag_spec_F77='-L$libdir'
13768 hardcode_minus_L_F77=yes
13769 allow_undefined_flag_F77=unsupported
13770 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'
13771 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13772 ;;
13773
13774 osf3*)
13775 if test "$GCC" = yes; then
13776 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13777 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'
13778 else
13779 allow_undefined_flag_F77=' -expect_unresolved \*'
13780 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'
13781 fi
13782 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13783 hardcode_libdir_separator_F77=:
13784 ;;
13785
13786 osf4* | osf5*) # as osf3* with the addition of -msym flag
13787 if test "$GCC" = yes; then
13788 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13789 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'
13790 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13791 else
13792 allow_undefined_flag_F77=' -expect_unresolved \*'
13793 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'
13794 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~
13795 $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'
13796
13797 # Both c and cxx compiler support -rpath directly
13798 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13799 fi
13800 hardcode_libdir_separator_F77=:
13801 ;;
13802
13803 sco3.2v5*)
13804 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13805 hardcode_shlibpath_var_F77=no
13806 export_dynamic_flag_spec_F77='${wl}-Bexport'
13807 runpath_var=LD_RUN_PATH
13808 hardcode_runpath_var=yes
13809 ;;
13810
13811 solaris*)
13812 no_undefined_flag_F77=' -z text'
13813 if test "$GCC" = yes; then
13814 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13815 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13816 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13817 else
13818 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13819 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13820 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13821 fi
13822 hardcode_libdir_flag_spec_F77='-R$libdir'
13823 hardcode_shlibpath_var_F77=no
13824 case $host_os in
13825 solaris2.[0-5] | solaris2.[0-5].*) ;;
13826 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13827 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13828 esac
13829 link_all_deplibs_F77=yes
13830 ;;
13831
13832 sunos4*)
13833 if test "x$host_vendor" = xsequent; then
13834 # Use $CC to link under sequent, because it throws in some extra .o
13835 # files that make .init and .fini sections work.
13836 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13837 else
13838 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13839 fi
13840 hardcode_libdir_flag_spec_F77='-L$libdir'
13841 hardcode_direct_F77=yes
13842 hardcode_minus_L_F77=yes
13843 hardcode_shlibpath_var_F77=no
13844 ;;
13845
13846 sysv4)
13847 case $host_vendor in
13848 sni)
13849 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13850 hardcode_direct_F77=yes # is this really true???
13851 ;;
13852 siemens)
13853 ## LD is ld it makes a PLAMLIB
13854 ## CC just makes a GrossModule.
13855 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13856 reload_cmds_F77='$CC -r -o $output$reload_objs'
13857 hardcode_direct_F77=no
13858 ;;
13859 motorola)
13860 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13861 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13862 ;;
13863 esac
13864 runpath_var='LD_RUN_PATH'
13865 hardcode_shlibpath_var_F77=no
13866 ;;
13867
13868 sysv4.3*)
13869 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13870 hardcode_shlibpath_var_F77=no
13871 export_dynamic_flag_spec_F77='-Bexport'
13872 ;;
13873
13874 sysv4*MP*)
13875 if test -d /usr/nec; then
13876 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13877 hardcode_shlibpath_var_F77=no
13878 runpath_var=LD_RUN_PATH
13879 hardcode_runpath_var=yes
13880 ld_shlibs_F77=yes
13881 fi
13882 ;;
13883
13884 sysv4.2uw2*)
13885 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13886 hardcode_direct_F77=yes
13887 hardcode_minus_L_F77=no
13888 hardcode_shlibpath_var_F77=no
13889 hardcode_runpath_var=yes
13890 runpath_var=LD_RUN_PATH
13891 ;;
13892
13893 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13894 no_undefined_flag_F77='${wl}-z ${wl}text'
13895 if test "$GCC" = yes; then
13896 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13897 else
13898 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13899 fi
13900 runpath_var='LD_RUN_PATH'
13901 hardcode_shlibpath_var_F77=no
13902 ;;
13903
13904 sysv5*)
13905 no_undefined_flag_F77=' -z text'
13906 # $CC -shared without GNU ld will not create a library from C++
13907 # object files and a static libstdc++, better avoid it by now
13908 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13909 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13910 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13911 hardcode_libdir_flag_spec_F77=
13912 hardcode_shlibpath_var_F77=no
13913 runpath_var='LD_RUN_PATH'
13914 ;;
13915
13916 uts4*)
13917 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13918 hardcode_libdir_flag_spec_F77='-L$libdir'
13919 hardcode_shlibpath_var_F77=no
13920 ;;
13921
13922 *)
13923 ld_shlibs_F77=no
13924 ;;
13925 esac
13926 fi
13927
13928echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13929echo "${ECHO_T}$ld_shlibs_F77" >&6
13930test "$ld_shlibs_F77" = no && can_build_shared=no
13931
13932variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13933if test "$GCC" = yes; then
13934 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13935fi
13936
13937#
13938# Do we need to explicitly link libc?
13939#
13940case "x$archive_cmds_need_lc_F77" in
13941x|xyes)
13942 # Assume -lc should be added
13943 archive_cmds_need_lc_F77=yes
13944
13945 if test "$enable_shared" = yes && test "$GCC" = yes; then
13946 case $archive_cmds_F77 in
13947 *'~'*)
13948 # FIXME: we may have to deal with multi-command sequences.
13949 ;;
13950 '$CC '*)
13951 # Test whether the compiler implicitly links with -lc since on some
13952 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13953 # to ld, don't add -lc before -lgcc.
13954 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13955echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13956 $rm conftest*
13957 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13958
13959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13960 (eval $ac_compile) 2>&5
13961 ac_status=$?
13962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13963 (exit $ac_status); } 2>conftest.err; then
13964 soname=conftest
13965 lib=conftest
13966 libobjs=conftest.$ac_objext
13967 deplibs=
13968 wl=$lt_prog_compiler_wl_F77
13969 compiler_flags=-v
13970 linker_flags=-v
13971 verstring=
13972 output_objdir=.
13973 libname=conftest
13974 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13975 allow_undefined_flag_F77=
13976 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13977 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13978 ac_status=$?
13979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13980 (exit $ac_status); }
13981 then
13982 archive_cmds_need_lc_F77=no
13983 else
13984 archive_cmds_need_lc_F77=yes
13985 fi
13986 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13987 else
13988 cat conftest.err 1>&5
13989 fi
13990 $rm conftest*
13991 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13992echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13993 ;;
13994 esac
13995 fi
13996 ;;
13997esac
13998
13999echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14000echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14001hardcode_action_F77=
14002if test -n "$hardcode_libdir_flag_spec_F77" || \
14003 test -n "$runpath_var F77" || \
14004 test "X$hardcode_automatic_F77"="Xyes" ; then
14005
14006 # We can hardcode non-existant directories.
14007 if test "$hardcode_direct_F77" != no &&
14008 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14009 # have to relink, otherwise we might link with an installed library
14010 # when we should be linking with a yet-to-be-installed one
14011 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14012 test "$hardcode_minus_L_F77" != no; then
14013 # Linking always hardcodes the temporary library directory.
14014 hardcode_action_F77=relink
14015 else
14016 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14017 hardcode_action_F77=immediate
14018 fi
14019else
14020 # We cannot hardcode anything, or else we can only hardcode existing
14021 # directories.
14022 hardcode_action_F77=unsupported
14023fi
14024echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14025echo "${ECHO_T}$hardcode_action_F77" >&6
14026
14027if test "$hardcode_action_F77" = relink; then
14028 # Fast installation is not supported
14029 enable_fast_install=no
14030elif test "$shlibpath_overrides_runpath" = yes ||
14031 test "$enable_shared" = no; then
14032 # Fast installation is not necessary
14033 enable_fast_install=needless
14034fi
14035
14036striplib=
14037old_striplib=
14038echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14039echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14040if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14041 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14042 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14043 echo "$as_me:$LINENO: result: yes" >&5
14044echo "${ECHO_T}yes" >&6
14045else
14046# FIXME - insert some real tests, host_os isn't really good enough
14047 case $host_os in
14048 darwin*)
14049 if test -n "$STRIP" ; then
14050 striplib="$STRIP -x"
14051 echo "$as_me:$LINENO: result: yes" >&5
14052echo "${ECHO_T}yes" >&6
14053 else
14054 echo "$as_me:$LINENO: result: no" >&5
14055echo "${ECHO_T}no" >&6
14056fi
14057 ;;
14058 *)
14059 echo "$as_me:$LINENO: result: no" >&5
14060echo "${ECHO_T}no" >&6
14061 ;;
14062 esac
14063fi
14064
14065echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14066echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14067library_names_spec=
14068libname_spec='lib$name'
14069soname_spec=
14070shrext=".so"
14071postinstall_cmds=
14072postuninstall_cmds=
14073finish_cmds=
14074finish_eval=
14075shlibpath_var=
14076shlibpath_overrides_runpath=unknown
14077version_type=none
14078dynamic_linker="$host_os ld.so"
14079sys_lib_dlsearch_path_spec="/lib /usr/lib"
14080if test "$GCC" = yes; then
14081 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14082 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14083 # if the path contains ";" then we assume it to be the separator
14084 # otherwise default to the standard path separator (i.e. ":") - it is
14085 # assumed that no part of a normal pathname contains ";" but that should
14086 # okay in the real world where ";" in dirpaths is itself problematic.
14087 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14088 else
14089 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14090 fi
14091else
14092 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14093fi
14094need_lib_prefix=unknown
14095hardcode_into_libs=no
14096
14097# when you set need_version to no, make sure it does not cause -set_version
14098# flags to be left without arguments
14099need_version=unknown
14100
14101case $host_os in
14102aix3*)
14103 version_type=linux
14104 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14105 shlibpath_var=LIBPATH
14106
14107 # AIX 3 has no versioning support, so we append a major version to the name.
14108 soname_spec='${libname}${release}${shared_ext}$major'
14109 ;;
14110
14111aix4* | aix5*)
14112 version_type=linux
14113 need_lib_prefix=no
14114 need_version=no
14115 hardcode_into_libs=yes
14116 if test "$host_cpu" = ia64; then
14117 # AIX 5 supports IA64
14118 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14119 shlibpath_var=LD_LIBRARY_PATH
14120 else
14121 # With GCC up to 2.95.x, collect2 would create an import file
14122 # for dependence libraries. The import file would start with
14123 # the line `#! .'. This would cause the generated library to
14124 # depend on `.', always an invalid library. This was fixed in
14125 # development snapshots of GCC prior to 3.0.
14126 case $host_os in
14127 aix4 | aix4.[01] | aix4.[01].*)
14128 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14129 echo ' yes '
14130 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14131 :
14132 else
14133 can_build_shared=no
14134 fi
14135 ;;
14136 esac
14137 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14138 # soname into executable. Probably we can add versioning support to
14139 # collect2, so additional links can be useful in future.
14140 if test "$aix_use_runtimelinking" = yes; then
14141 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14142 # instead of lib<name>.a to let people know that these are not
14143 # typical AIX shared libraries.
14144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14145 else
14146 # We preserve .a as extension for shared libraries through AIX4.2
14147 # and later when we are not doing run time linking.
14148 library_names_spec='${libname}${release}.a $libname.a'
14149 soname_spec='${libname}${release}${shared_ext}$major'
14150 fi
14151 shlibpath_var=LIBPATH
14152 fi
14153 ;;
14154
14155amigaos*)
14156 library_names_spec='$libname.ixlibrary $libname.a'
14157 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14158 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'
14159 ;;
14160
14161beos*)
14162 library_names_spec='${libname}${shared_ext}'
14163 dynamic_linker="$host_os ld.so"
14164 shlibpath_var=LIBRARY_PATH
14165 ;;
14166
14167bsdi4*)
14168 version_type=linux
14169 need_version=no
14170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14171 soname_spec='${libname}${release}${shared_ext}$major'
14172 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14173 shlibpath_var=LD_LIBRARY_PATH
14174 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14175 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14176 # the default ld.so.conf also contains /usr/contrib/lib and
14177 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14178 # libtool to hard-code these into programs
14179 ;;
14180
14181cygwin* | mingw* | pw32*)
14182 version_type=windows
14183 shrext=".dll"
14184 need_version=no
14185 need_lib_prefix=no
14186
14187 case $GCC,$host_os in
14188 yes,cygwin* | yes,mingw* | yes,pw32*)
14189 library_names_spec='$libname.dll.a'
14190 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14191 postinstall_cmds='base_file=`basename \${file}`~
14192 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14193 dldir=$destdir/`dirname \$dlpath`~
14194 test -d \$dldir || mkdir -p \$dldir~
14195 $install_prog $dir/$dlname \$dldir/$dlname'
14196 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14197 dlpath=$dir/\$dldll~
14198 $rm \$dlpath'
14199 shlibpath_overrides_runpath=yes
14200
14201 case $host_os in
14202 cygwin*)
14203 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14204 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14205 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14206 ;;
14207 mingw*)
14208 # MinGW DLLs use traditional 'lib' prefix
14209 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14210 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14211 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14212 # It is most probably a Windows format PATH printed by
14213 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14214 # path with ; separators, and with drive letters. We can handle the
14215 # drive letters (cygwin fileutils understands them), so leave them,
14216 # especially as we might pass files found there to a mingw objdump,
14217 # which wouldn't understand a cygwinified path. Ahh.
14218 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14219 else
14220 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14221 fi
14222 ;;
14223 pw32*)
14224 # pw32 DLLs use 'pw' prefix rather than 'lib'
14225 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14226 ;;
14227 esac
14228 ;;
14229
14230 *)
14231 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14232 ;;
14233 esac
14234 dynamic_linker='Win32 ld.exe'
14235 # FIXME: first we should search . and the directory the executable is in
14236 shlibpath_var=PATH
14237 ;;
14238
14239darwin* | rhapsody*)
14240 dynamic_linker="$host_os dyld"
14241 version_type=darwin
14242 need_lib_prefix=no
14243 need_version=no
14244 # FIXME: Relying on posixy $() will cause problems for
14245 # cross-compilation, but unfortunately the echo tests do not
14246 # yet detect zsh echo's removal of \ escapes.
14247 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14248 soname_spec='${libname}${release}${major}$shared_ext'
14249 shlibpath_overrides_runpath=yes
14250 shlibpath_var=DYLD_LIBRARY_PATH
14251 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14252 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14253 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14254 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"`
14255 fi
14256 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14257 ;;
14258
14259dgux*)
14260 version_type=linux
14261 need_lib_prefix=no
14262 need_version=no
14263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14264 soname_spec='${libname}${release}${shared_ext}$major'
14265 shlibpath_var=LD_LIBRARY_PATH
14266 ;;
14267
14268freebsd1*)
14269 dynamic_linker=no
14270 ;;
14271
14272freebsd*)
14273 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14274 version_type=freebsd-$objformat
14275 case $version_type in
14276 freebsd-elf*)
14277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14278 need_version=no
14279 need_lib_prefix=no
14280 ;;
14281 freebsd-*)
14282 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14283 need_version=yes
14284 ;;
14285 esac
14286 shlibpath_var=LD_LIBRARY_PATH
14287 case $host_os in
14288 freebsd2*)
14289 shlibpath_overrides_runpath=yes
14290 ;;
14291 freebsd3.01* | freebsdelf3.01*)
14292 shlibpath_overrides_runpath=yes
14293 hardcode_into_libs=yes
14294 ;;
14295 *) # from 3.2 on
14296 shlibpath_overrides_runpath=no
14297 hardcode_into_libs=yes
14298 ;;
14299 esac
14300 ;;
14301
14302gnu*)
14303 version_type=linux
14304 need_lib_prefix=no
14305 need_version=no
14306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14307 soname_spec='${libname}${release}${shared_ext}$major'
14308 shlibpath_var=LD_LIBRARY_PATH
14309 hardcode_into_libs=yes
14310 ;;
14311
14312hpux9* | hpux10* | hpux11*)
14313 # Give a soname corresponding to the major version so that dld.sl refuses to
14314 # link against other versions.
14315 version_type=sunos
14316 need_lib_prefix=no
14317 need_version=no
14318 case "$host_cpu" in
14319 ia64*)
14320 shrext='.so'
14321 hardcode_into_libs=yes
14322 dynamic_linker="$host_os dld.so"
14323 shlibpath_var=LD_LIBRARY_PATH
14324 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14326 soname_spec='${libname}${release}${shared_ext}$major'
14327 if test "X$HPUX_IA64_MODE" = X32; then
14328 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14329 else
14330 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14331 fi
14332 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14333 ;;
14334 hppa*64*)
14335 shrext='.sl'
14336 hardcode_into_libs=yes
14337 dynamic_linker="$host_os dld.sl"
14338 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14339 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14341 soname_spec='${libname}${release}${shared_ext}$major'
14342 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14343 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14344 ;;
14345 *)
14346 shrext='.sl'
14347 dynamic_linker="$host_os dld.sl"
14348 shlibpath_var=SHLIB_PATH
14349 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14351 soname_spec='${libname}${release}${shared_ext}$major'
14352 ;;
14353 esac
14354 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14355 postinstall_cmds='chmod 555 $lib'
14356 ;;
14357
14358irix5* | irix6* | nonstopux*)
14359 case $host_os in
14360 nonstopux*) version_type=nonstopux ;;
14361 *)
14362 if test "$lt_cv_prog_gnu_ld" = yes; then
14363 version_type=linux
14364 else
14365 version_type=irix
14366 fi ;;
14367 esac
14368 need_lib_prefix=no
14369 need_version=no
14370 soname_spec='${libname}${release}${shared_ext}$major'
14371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14372 case $host_os in
14373 irix5* | nonstopux*)
14374 libsuff= shlibsuff=
14375 ;;
14376 *)
14377 case $LD in # libtool.m4 will add one of these switches to LD
14378 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14379 libsuff= shlibsuff= libmagic=32-bit;;
14380 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14381 libsuff=32 shlibsuff=N32 libmagic=N32;;
14382 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14383 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14384 *) libsuff= shlibsuff= libmagic=never-match;;
14385 esac
14386 ;;
14387 esac
14388 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14389 shlibpath_overrides_runpath=no
14390 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14391 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14392 hardcode_into_libs=yes
14393 ;;
14394
14395# No shared lib support for Linux oldld, aout, or coff.
14396linux*oldld* | linux*aout* | linux*coff*)
14397 dynamic_linker=no
14398 ;;
14399
14400# This must be Linux ELF.
14401linux*)
14402 version_type=linux
14403 need_lib_prefix=no
14404 need_version=no
14405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14406 soname_spec='${libname}${release}${shared_ext}$major'
14407 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14408 shlibpath_var=LD_LIBRARY_PATH
14409 shlibpath_overrides_runpath=no
14410 # This implies no fast_install, which is unacceptable.
14411 # Some rework will be needed to allow for fast_install
14412 # before this can be enabled.
14413 hardcode_into_libs=yes
14414
14415 # We used to test for /lib/ld.so.1 and disable shared libraries on
14416 # powerpc, because MkLinux only supported shared libraries with the
14417 # GNU dynamic linker. Since this was broken with cross compilers,
14418 # most powerpc-linux boxes support dynamic linking these days and
14419 # people can always --disable-shared, the test was removed, and we
14420 # assume the GNU/Linux dynamic linker is in use.
14421 dynamic_linker='GNU/Linux ld.so'
14422 ;;
14423
14424netbsd*)
14425 version_type=sunos
14426 need_lib_prefix=no
14427 need_version=no
14428 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14430 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14431 dynamic_linker='NetBSD (a.out) ld.so'
14432 else
14433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14434 soname_spec='${libname}${release}${shared_ext}$major'
14435 dynamic_linker='NetBSD ld.elf_so'
14436 fi
14437 shlibpath_var=LD_LIBRARY_PATH
14438 shlibpath_overrides_runpath=yes
14439 hardcode_into_libs=yes
14440 ;;
14441
14442newsos6)
14443 version_type=linux
14444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14445 shlibpath_var=LD_LIBRARY_PATH
14446 shlibpath_overrides_runpath=yes
14447 ;;
14448
14449nto-qnx)
14450 version_type=linux
14451 need_lib_prefix=no
14452 need_version=no
14453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14454 soname_spec='${libname}${release}${shared_ext}$major'
14455 shlibpath_var=LD_LIBRARY_PATH
14456 shlibpath_overrides_runpath=yes
14457 ;;
14458
14459openbsd*)
14460 version_type=sunos
14461 need_lib_prefix=no
14462 need_version=no
14463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14464 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14465 shlibpath_var=LD_LIBRARY_PATH
14466 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14467 case $host_os in
14468 openbsd2.[89] | openbsd2.[89].*)
14469 shlibpath_overrides_runpath=no
14470 ;;
14471 *)
14472 shlibpath_overrides_runpath=yes
14473 ;;
14474 esac
14475 else
14476 shlibpath_overrides_runpath=yes
14477 fi
14478 ;;
14479
14480os2*)
14481 libname_spec='$name'
14482 shrext=".dll"
14483 need_lib_prefix=no
14484 library_names_spec='$libname${shared_ext} $libname.a'
14485 dynamic_linker='OS/2 ld.exe'
14486 shlibpath_var=LIBPATH
14487 ;;
14488
14489osf3* | osf4* | osf5*)
14490 version_type=osf
14491 need_lib_prefix=no
14492 need_version=no
14493 soname_spec='${libname}${release}${shared_ext}$major'
14494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14495 shlibpath_var=LD_LIBRARY_PATH
14496 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14497 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14498 ;;
14499
14500sco3.2v5*)
14501 version_type=osf
14502 soname_spec='${libname}${release}${shared_ext}$major'
14503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14504 shlibpath_var=LD_LIBRARY_PATH
14505 ;;
14506
14507solaris*)
14508 version_type=linux
14509 need_lib_prefix=no
14510 need_version=no
14511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14512 soname_spec='${libname}${release}${shared_ext}$major'
14513 shlibpath_var=LD_LIBRARY_PATH
14514 shlibpath_overrides_runpath=yes
14515 hardcode_into_libs=yes
14516 # ldd complains unless libraries are executable
14517 postinstall_cmds='chmod +x $lib'
14518 ;;
14519
14520sunos4*)
14521 version_type=sunos
14522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14523 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14524 shlibpath_var=LD_LIBRARY_PATH
14525 shlibpath_overrides_runpath=yes
14526 if test "$with_gnu_ld" = yes; then
14527 need_lib_prefix=no
14528 fi
14529 need_version=yes
14530 ;;
14531
14532sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14533 version_type=linux
14534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14535 soname_spec='${libname}${release}${shared_ext}$major'
14536 shlibpath_var=LD_LIBRARY_PATH
14537 case $host_vendor in
14538 sni)
14539 shlibpath_overrides_runpath=no
14540 need_lib_prefix=no
14541 export_dynamic_flag_spec='${wl}-Blargedynsym'
14542 runpath_var=LD_RUN_PATH
14543 ;;
14544 siemens)
14545 need_lib_prefix=no
14546 ;;
14547 motorola)
14548 need_lib_prefix=no
14549 need_version=no
14550 shlibpath_overrides_runpath=no
14551 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14552 ;;
14553 esac
14554 ;;
14555
14556sysv4*MP*)
14557 if test -d /usr/nec ;then
14558 version_type=linux
14559 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14560 soname_spec='$libname${shared_ext}.$major'
14561 shlibpath_var=LD_LIBRARY_PATH
14562 fi
14563 ;;
14564
14565uts4*)
14566 version_type=linux
14567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14568 soname_spec='${libname}${release}${shared_ext}$major'
14569 shlibpath_var=LD_LIBRARY_PATH
14570 ;;
14571
14572*)
14573 dynamic_linker=no
14574 ;;
14575esac
14576echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14577echo "${ECHO_T}$dynamic_linker" >&6
14578test "$dynamic_linker" = no && can_build_shared=no
14579
14580
14581# The else clause should only fire when bootstrapping the
14582# libtool distribution, otherwise you forgot to ship ltmain.sh
14583# with your package, and you will get complaints that there are
14584# no rules to generate ltmain.sh.
14585if test -f "$ltmain"; then
14586 # See if we are running on zsh, and set the options which allow our commands through
14587 # without removal of \ escapes.
14588 if test -n "${ZSH_VERSION+set}" ; then
14589 setopt NO_GLOB_SUBST
14590 fi
14591 # Now quote all the things that may contain metacharacters while being
14592 # careful not to overquote the AC_SUBSTed values. We take copies of the
14593 # variables and quote the copies for generation of the libtool script.
14594 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14595 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14596 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14597 deplibs_check_method reload_flag reload_cmds need_locks \
14598 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14599 lt_cv_sys_global_symbol_to_c_name_address \
14600 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14601 old_postinstall_cmds old_postuninstall_cmds \
14602 compiler_F77 \
14603 CC_F77 \
14604 LD_F77 \
14605 lt_prog_compiler_wl_F77 \
14606 lt_prog_compiler_pic_F77 \
14607 lt_prog_compiler_static_F77 \
14608 lt_prog_compiler_no_builtin_flag_F77 \
14609 export_dynamic_flag_spec_F77 \
14610 thread_safe_flag_spec_F77 \
14611 whole_archive_flag_spec_F77 \
14612 enable_shared_with_static_runtimes_F77 \
14613 old_archive_cmds_F77 \
14614 old_archive_from_new_cmds_F77 \
14615 predep_objects_F77 \
14616 postdep_objects_F77 \
14617 predeps_F77 \
14618 postdeps_F77 \
14619 compiler_lib_search_path_F77 \
14620 archive_cmds_F77 \
14621 archive_expsym_cmds_F77 \
14622 postinstall_cmds_F77 \
14623 postuninstall_cmds_F77 \
14624 old_archive_from_expsyms_cmds_F77 \
14625 allow_undefined_flag_F77 \
14626 no_undefined_flag_F77 \
14627 export_symbols_cmds_F77 \
14628 hardcode_libdir_flag_spec_F77 \
14629 hardcode_libdir_flag_spec_ld_F77 \
14630 hardcode_libdir_separator_F77 \
14631 hardcode_automatic_F77 \
14632 module_cmds_F77 \
14633 module_expsym_cmds_F77 \
14634 lt_cv_prog_compiler_c_o_F77 \
14635 exclude_expsyms_F77 \
14636 include_expsyms_F77; do
14637
14638 case $var in
14639 old_archive_cmds_F77 | \
14640 old_archive_from_new_cmds_F77 | \
14641 archive_cmds_F77 | \
14642 archive_expsym_cmds_F77 | \
14643 module_cmds_F77 | \
14644 module_expsym_cmds_F77 | \
14645 old_archive_from_expsyms_cmds_F77 | \
14646 export_symbols_cmds_F77 | \
14647 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14648 postinstall_cmds | postuninstall_cmds | \
14649 old_postinstall_cmds | old_postuninstall_cmds | \
14650 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14651 # Double-quote double-evaled strings.
14652 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14653 ;;
14654 *)
14655 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14656 ;;
14657 esac
14658 done
14659
14660 case $lt_echo in
14661 *'\$0 --fallback-echo"')
14662 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14663 ;;
14664 esac
14665
14666cfgfile="$ofile"
14667
14668 cat <<__EOF__ >> "$cfgfile"
14669# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14670
14671# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14672
14673# Shell to use when invoking shell scripts.
14674SHELL=$lt_SHELL
14675
14676# Whether or not to build shared libraries.
14677build_libtool_libs=$enable_shared
14678
14679# Whether or not to build static libraries.
14680build_old_libs=$enable_static
14681
14682# Whether or not to add -lc for building shared libraries.
14683build_libtool_need_lc=$archive_cmds_need_lc_F77
14684
14685# Whether or not to disallow shared libs when runtime libs are static
14686allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14687
14688# Whether or not to optimize for fast installation.
14689fast_install=$enable_fast_install
14690
14691# The host system.
14692host_alias=$host_alias
14693host=$host
14694
14695# An echo program that does not interpret backslashes.
14696echo=$lt_echo
14697
14698# The archiver.
14699AR=$lt_AR
14700AR_FLAGS=$lt_AR_FLAGS
14701
14702# A C compiler.
14703LTCC=$lt_LTCC
14704
14705# A language-specific compiler.
14706CC=$lt_compiler_F77
14707
14708# Is the compiler the GNU C compiler?
14709with_gcc=$GCC_F77
14710
14711# An ERE matcher.
14712EGREP=$lt_EGREP
14713
14714# The linker used to build libraries.
14715LD=$lt_LD_F77
14716
14717# Whether we need hard or soft links.
14718LN_S=$lt_LN_S
14719
14720# A BSD-compatible nm program.
14721NM=$lt_NM
14722
14723# A symbol stripping program
14724STRIP=$STRIP
14725
14726# Used to examine libraries when file_magic_cmd begins "file"
14727MAGIC_CMD=$MAGIC_CMD
14728
14729# Used on cygwin: DLL creation program.
14730DLLTOOL="$DLLTOOL"
14731
14732# Used on cygwin: object dumper.
14733OBJDUMP="$OBJDUMP"
14734
14735# Used on cygwin: assembler.
14736AS="$AS"
14737
14738# The name of the directory that contains temporary libtool files.
14739objdir=$objdir
14740
14741# How to create reloadable object files.
14742reload_flag=$lt_reload_flag
14743reload_cmds=$lt_reload_cmds
14744
14745# How to pass a linker flag through the compiler.
14746wl=$lt_lt_prog_compiler_wl_F77
14747
14748# Object file suffix (normally "o").
14749objext="$ac_objext"
14750
14751# Old archive suffix (normally "a").
14752libext="$libext"
14753
14754# Shared library suffix (normally ".so").
14755shrext='$shrext'
14756
14757# Executable file suffix (normally "").
14758exeext="$exeext"
14759
14760# Additional compiler flags for building library objects.
14761pic_flag=$lt_lt_prog_compiler_pic_F77
14762pic_mode=$pic_mode
14763
14764# What is the maximum length of a command?
14765max_cmd_len=$lt_cv_sys_max_cmd_len
14766
14767# Does compiler simultaneously support -c and -o options?
14768compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14769
14770# Must we lock files when doing compilation ?
14771need_locks=$lt_need_locks
14772
14773# Do we need the lib prefix for modules?
14774need_lib_prefix=$need_lib_prefix
14775
14776# Do we need a version for libraries?
14777need_version=$need_version
14778
14779# Whether dlopen is supported.
14780dlopen_support=$enable_dlopen
14781
14782# Whether dlopen of programs is supported.
14783dlopen_self=$enable_dlopen_self
14784
14785# Whether dlopen of statically linked programs is supported.
14786dlopen_self_static=$enable_dlopen_self_static
14787
14788# Compiler flag to prevent dynamic linking.
14789link_static_flag=$lt_lt_prog_compiler_static_F77
14790
14791# Compiler flag to turn off builtin functions.
14792no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14793
14794# Compiler flag to allow reflexive dlopens.
14795export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14796
14797# Compiler flag to generate shared objects directly from archives.
14798whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14799
14800# Compiler flag to generate thread-safe objects.
14801thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14802
14803# Library versioning type.
14804version_type=$version_type
14805
14806# Format of library name prefix.
14807libname_spec=$lt_libname_spec
14808
14809# List of archive names. First name is the real one, the rest are links.
14810# The last name is the one that the linker finds with -lNAME.
14811library_names_spec=$lt_library_names_spec
14812
14813# The coded name of the library, if different from the real name.
14814soname_spec=$lt_soname_spec
14815
14816# Commands used to build and install an old-style archive.
14817RANLIB=$lt_RANLIB
14818old_archive_cmds=$lt_old_archive_cmds_F77
14819old_postinstall_cmds=$lt_old_postinstall_cmds
14820old_postuninstall_cmds=$lt_old_postuninstall_cmds
14821
14822# Create an old-style archive from a shared archive.
14823old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14824
14825# Create a temporary old-style archive to link instead of a shared archive.
14826old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14827
14828# Commands used to build and install a shared archive.
14829archive_cmds=$lt_archive_cmds_F77
14830archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14831postinstall_cmds=$lt_postinstall_cmds
14832postuninstall_cmds=$lt_postuninstall_cmds
14833
14834# Commands used to build a loadable module (assumed same as above if empty)
14835module_cmds=$lt_module_cmds_F77
14836module_expsym_cmds=$lt_module_expsym_cmds_F77
14837
14838# Commands to strip libraries.
14839old_striplib=$lt_old_striplib
14840striplib=$lt_striplib
14841
14842# Dependencies to place before the objects being linked to create a
14843# shared library.
14844predep_objects=$lt_predep_objects_F77
14845
14846# Dependencies to place after the objects being linked to create a
14847# shared library.
14848postdep_objects=$lt_postdep_objects_F77
14849
14850# Dependencies to place before the objects being linked to create a
14851# shared library.
14852predeps=$lt_predeps_F77
14853
14854# Dependencies to place after the objects being linked to create a
14855# shared library.
14856postdeps=$lt_postdeps_F77
14857
14858# The library search path used internally by the compiler when linking
14859# a shared library.
14860compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14861
14862# Method to check whether dependent libraries are shared objects.
14863deplibs_check_method=$lt_deplibs_check_method
14864
14865# Command to use when deplibs_check_method == file_magic.
14866file_magic_cmd=$lt_file_magic_cmd
14867
14868# Flag that allows shared libraries with undefined symbols to be built.
14869allow_undefined_flag=$lt_allow_undefined_flag_F77
14870
14871# Flag that forces no undefined symbols.
14872no_undefined_flag=$lt_no_undefined_flag_F77
14873
14874# Commands used to finish a libtool library installation in a directory.
14875finish_cmds=$lt_finish_cmds
14876
14877# Same as above, but a single script fragment to be evaled but not shown.
14878finish_eval=$lt_finish_eval
14879
14880# Take the output of nm and produce a listing of raw symbols and C names.
14881global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14882
14883# Transform the output of nm in a proper C declaration
14884global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14885
14886# Transform the output of nm in a C name address pair
14887global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14888
14889# This is the shared library runtime path variable.
14890runpath_var=$runpath_var
14891
14892# This is the shared library path variable.
14893shlibpath_var=$shlibpath_var
14894
14895# Is shlibpath searched before the hard-coded library search path?
14896shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14897
14898# How to hardcode a shared library path into an executable.
14899hardcode_action=$hardcode_action_F77
14900
14901# Whether we should hardcode library paths into libraries.
14902hardcode_into_libs=$hardcode_into_libs
14903
14904# Flag to hardcode \$libdir into a binary during linking.
14905# This must work even if \$libdir does not exist.
14906hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14907
14908# If ld is used when linking, flag to hardcode \$libdir into
14909# a binary during linking. This must work even if \$libdir does
14910# not exist.
14911hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14912
14913# Whether we need a single -rpath flag with a separated argument.
14914hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14915
14916# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14917# resulting binary.
14918hardcode_direct=$hardcode_direct_F77
14919
14920# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14921# resulting binary.
14922hardcode_minus_L=$hardcode_minus_L_F77
14923
14924# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14925# the resulting binary.
14926hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14927
14928# Set to yes if building a shared library automatically hardcodes DIR into the library
14929# and all subsequent libraries and executables linked against it.
14930hardcode_automatic=$hardcode_automatic_F77
14931
14932# Variables whose values should be saved in libtool wrapper scripts and
14933# restored at relink time.
14934variables_saved_for_relink="$variables_saved_for_relink"
14935
14936# Whether libtool must link a program against all its dependency libraries.
14937link_all_deplibs=$link_all_deplibs_F77
14938
14939# Compile-time system search path for libraries
14940sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14941
14942# Run-time system search path for libraries
14943sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14944
14945# Fix the shell variable \$srcfile for the compiler.
14946fix_srcfile_path="$fix_srcfile_path_F77"
14947
14948# Set to yes if exported symbols are required.
14949always_export_symbols=$always_export_symbols_F77
14950
14951# The commands to list exported symbols.
14952export_symbols_cmds=$lt_export_symbols_cmds_F77
14953
14954# The commands to extract the exported symbol list from a shared archive.
14955extract_expsyms_cmds=$lt_extract_expsyms_cmds
14956
14957# Symbols that should not be listed in the preloaded symbols.
14958exclude_expsyms=$lt_exclude_expsyms_F77
14959
14960# Symbols that must always be exported.
14961include_expsyms=$lt_include_expsyms_F77
14962
14963# ### END LIBTOOL TAG CONFIG: $tagname
14964
14965__EOF__
14966
14967
14968else
14969 # If there is no Makefile yet, we rely on a make rule to execute
14970 # `config.status --recheck' to rerun these tests and create the
14971 # libtool script then.
14972 test -f Makefile && make "$ltmain"
14973fi
14974
14975
14976ac_ext=c
14977ac_cpp='$CPP $CPPFLAGS'
14978ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14979ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14980ac_compiler_gnu=$ac_cv_c_compiler_gnu
14981
14982CC="$lt_save_CC"
14983
14984 else
14985 tagname=""
14986 fi
14987 ;;
14988
14989 GCJ)
14990 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14991
14992
14993
14994# Source file extension for Java test sources.
14995ac_ext=java
14996
14997# Object file extension for compiled Java test sources.
14998objext=o
14999objext_GCJ=$objext
15000
15001# Code to be used in simple compile tests
15002lt_simple_compile_test_code="class foo {}\n"
15003
15004# Code to be used in simple link tests
15005lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15006
15007# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15008
15009# If no C compiler was specified, use CC.
15010LTCC=${LTCC-"$CC"}
15011
15012# Allow CC to be a program name with arguments.
15013compiler=$CC
15014
15015
15016# Allow CC to be a program name with arguments.
15017lt_save_CC="$CC"
15018CC=${GCJ-"gcj"}
15019compiler=$CC
15020compiler_GCJ=$CC
15021
15022# GCJ did not exist at the time GCC didn't implicitly link libc in.
15023archive_cmds_need_lc_GCJ=no
15024
15025## CAVEAT EMPTOR:
15026## There is no encapsulation within the following macros, do not change
15027## the running order or otherwise move them around unless you know exactly
15028## what you are doing...
15029
15030lt_prog_compiler_no_builtin_flag_GCJ=
15031
15032if test "$GCC" = yes; then
15033 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15034
15035 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15036echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15037if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15038 echo $ECHO_N "(cached) $ECHO_C" >&6
15039else
15040 lt_cv_prog_compiler_rtti_exceptions=no
15041 ac_outfile=conftest.$ac_objext
15042 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15043 lt_compiler_flag="-fno-rtti -fno-exceptions"
15044 # Insert the option either (1) after the last *FLAGS variable, or
15045 # (2) before a word containing "conftest.", or (3) at the end.
15046 # Note that $ac_compile itself does not contain backslashes and begins
15047 # with a dollar sign (not a hyphen), so the echo should work correctly.
15048 # The option is referenced via a variable to avoid confusing sed.
15049 lt_compile=`echo "$ac_compile" | $SED \
15050 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15051 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15052 -e 's:$: $lt_compiler_flag:'`
John Criswellc66bbd52003-09-29 21:35:32 +000015053 (eval echo "\"\$as_me:15053: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015054 (eval "$lt_compile" 2>conftest.err)
15055 ac_status=$?
15056 cat conftest.err >&5
John Criswellc66bbd52003-09-29 21:35:32 +000015057 echo "$as_me:15057: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015058 if (exit $ac_status) && test -s "$ac_outfile"; then
15059 # The compiler can only warn and ignore the option if not recognized
15060 # So say no if there are warnings
15061 if test ! -s conftest.err; then
15062 lt_cv_prog_compiler_rtti_exceptions=yes
15063 fi
15064 fi
15065 $rm conftest*
15066
15067fi
15068echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15069echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15070
15071if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15072 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15073else
15074 :
15075fi
15076
15077fi
15078
15079lt_prog_compiler_wl_GCJ=
15080lt_prog_compiler_pic_GCJ=
15081lt_prog_compiler_static_GCJ=
15082
15083echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15084echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15085
15086 if test "$GCC" = yes; then
15087 lt_prog_compiler_wl_GCJ='-Wl,'
15088 lt_prog_compiler_static_GCJ='-static'
15089
15090 case $host_os in
15091 aix*)
15092 # All AIX code is PIC.
15093 if test "$host_cpu" = ia64; then
15094 # AIX 5 now supports IA64 processor
15095 lt_prog_compiler_static_GCJ='-Bstatic'
15096 fi
15097 ;;
15098
15099 amigaos*)
15100 # FIXME: we need at least 68020 code to build shared libraries, but
15101 # adding the `-m68020' flag to GCC prevents building anything better,
15102 # like `-m68040'.
15103 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15104 ;;
15105
15106 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15107 # PIC is the default for these OSes.
15108 ;;
15109
15110 mingw* | pw32* | os2*)
15111 # This hack is so that the source file can tell whether it is being
15112 # built for inclusion in a dll (and should export symbols for example).
15113 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15114 ;;
15115
15116 darwin* | rhapsody*)
15117 # PIC is the default on this platform
15118 # Common symbols not allowed in MH_DYLIB files
15119 lt_prog_compiler_pic_GCJ='-fno-common'
15120 ;;
15121
15122 msdosdjgpp*)
15123 # Just because we use GCC doesn't mean we suddenly get shared libraries
15124 # on systems that don't support them.
15125 lt_prog_compiler_can_build_shared_GCJ=no
15126 enable_shared=no
15127 ;;
15128
15129 sysv4*MP*)
15130 if test -d /usr/nec; then
15131 lt_prog_compiler_pic_GCJ=-Kconform_pic
15132 fi
15133 ;;
15134
15135 hpux*)
15136 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15137 # not for PA HP-UX.
15138 case "$host_cpu" in
15139 hppa*64*|ia64*)
15140 # +Z the default
15141 ;;
15142 *)
15143 lt_prog_compiler_pic_GCJ='-fPIC'
15144 ;;
15145 esac
15146 ;;
15147
15148 *)
15149 lt_prog_compiler_pic_GCJ='-fPIC'
15150 ;;
15151 esac
15152 else
15153 # PORTME Check for flag to pass linker flags through the system compiler.
15154 case $host_os in
15155 aix*)
15156 lt_prog_compiler_wl_GCJ='-Wl,'
15157 if test "$host_cpu" = ia64; then
15158 # AIX 5 now supports IA64 processor
15159 lt_prog_compiler_static_GCJ='-Bstatic'
15160 else
15161 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15162 fi
15163 ;;
15164
15165 mingw* | pw32* | os2*)
15166 # This hack is so that the source file can tell whether it is being
15167 # built for inclusion in a dll (and should export symbols for example).
15168 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15169 ;;
15170
15171 hpux9* | hpux10* | hpux11*)
15172 lt_prog_compiler_wl_GCJ='-Wl,'
15173 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15174 # not for PA HP-UX.
15175 case "$host_cpu" in
15176 hppa*64*|ia64*)
15177 # +Z the default
15178 ;;
15179 *)
15180 lt_prog_compiler_pic_GCJ='+Z'
15181 ;;
15182 esac
15183 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15184 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15185 ;;
15186
15187 irix5* | irix6* | nonstopux*)
15188 lt_prog_compiler_wl_GCJ='-Wl,'
15189 # PIC (with -KPIC) is the default.
15190 lt_prog_compiler_static_GCJ='-non_shared'
15191 ;;
15192
15193 newsos6)
15194 lt_prog_compiler_pic_GCJ='-KPIC'
15195 lt_prog_compiler_static_GCJ='-Bstatic'
15196 ;;
15197
15198 linux*)
15199 case $CC in
15200 icc|ecc)
15201 lt_prog_compiler_wl_GCJ='-Wl,'
15202 lt_prog_compiler_pic_GCJ='-KPIC'
15203 lt_prog_compiler_static_GCJ='-static'
15204 ;;
15205 ccc)
15206 lt_prog_compiler_wl_GCJ='-Wl,'
15207 # All Alpha code is PIC.
15208 lt_prog_compiler_static_GCJ='-non_shared'
15209 ;;
15210 esac
15211 ;;
15212
15213 osf3* | osf4* | osf5*)
15214 lt_prog_compiler_wl_GCJ='-Wl,'
15215 # All OSF/1 code is PIC.
15216 lt_prog_compiler_static_GCJ='-non_shared'
15217 ;;
15218
15219 sco3.2v5*)
15220 lt_prog_compiler_pic_GCJ='-Kpic'
15221 lt_prog_compiler_static_GCJ='-dn'
15222 ;;
15223
15224 solaris*)
15225 lt_prog_compiler_wl_GCJ='-Wl,'
15226 lt_prog_compiler_pic_GCJ='-KPIC'
15227 lt_prog_compiler_static_GCJ='-Bstatic'
15228 ;;
15229
15230 sunos4*)
15231 lt_prog_compiler_wl_GCJ='-Qoption ld '
15232 lt_prog_compiler_pic_GCJ='-PIC'
15233 lt_prog_compiler_static_GCJ='-Bstatic'
15234 ;;
15235
15236 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15237 lt_prog_compiler_wl_GCJ='-Wl,'
15238 lt_prog_compiler_pic_GCJ='-KPIC'
15239 lt_prog_compiler_static_GCJ='-Bstatic'
15240 ;;
15241
15242 sysv4*MP*)
15243 if test -d /usr/nec ;then
15244 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15245 lt_prog_compiler_static_GCJ='-Bstatic'
15246 fi
15247 ;;
15248
15249 uts4*)
15250 lt_prog_compiler_pic_GCJ='-pic'
15251 lt_prog_compiler_static_GCJ='-Bstatic'
15252 ;;
15253
15254 *)
15255 lt_prog_compiler_can_build_shared_GCJ=no
15256 ;;
15257 esac
15258 fi
15259
15260echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15261echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15262
15263#
15264# Check to make sure the PIC flag actually works.
15265#
15266if test -n "$lt_prog_compiler_pic_GCJ"; then
15267 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15268echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15269if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15270 echo $ECHO_N "(cached) $ECHO_C" >&6
15271else
15272 lt_prog_compiler_pic_works_GCJ=no
15273 ac_outfile=conftest.$ac_objext
15274 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15275 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15276 # Insert the option either (1) after the last *FLAGS variable, or
15277 # (2) before a word containing "conftest.", or (3) at the end.
15278 # Note that $ac_compile itself does not contain backslashes and begins
15279 # with a dollar sign (not a hyphen), so the echo should work correctly.
15280 # The option is referenced via a variable to avoid confusing sed.
15281 lt_compile=`echo "$ac_compile" | $SED \
15282 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15283 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15284 -e 's:$: $lt_compiler_flag:'`
John Criswellc66bbd52003-09-29 21:35:32 +000015285 (eval echo "\"\$as_me:15285: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015286 (eval "$lt_compile" 2>conftest.err)
15287 ac_status=$?
15288 cat conftest.err >&5
John Criswellc66bbd52003-09-29 21:35:32 +000015289 echo "$as_me:15289: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015290 if (exit $ac_status) && test -s "$ac_outfile"; then
15291 # The compiler can only warn and ignore the option if not recognized
15292 # So say no if there are warnings
15293 if test ! -s conftest.err; then
15294 lt_prog_compiler_pic_works_GCJ=yes
15295 fi
15296 fi
15297 $rm conftest*
15298
15299fi
15300echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15301echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15302
15303if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15304 case $lt_prog_compiler_pic_GCJ in
15305 "" | " "*) ;;
15306 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15307 esac
15308else
15309 lt_prog_compiler_pic_GCJ=
15310 lt_prog_compiler_can_build_shared_GCJ=no
15311fi
15312
15313fi
15314case "$host_os" in
15315 # For platforms which do not support PIC, -DPIC is meaningless:
15316 *djgpp*)
15317 lt_prog_compiler_pic_GCJ=
15318 ;;
15319 *)
15320 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15321 ;;
15322esac
15323
15324echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15325echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15326if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15327 echo $ECHO_N "(cached) $ECHO_C" >&6
15328else
15329 lt_cv_prog_compiler_c_o_GCJ=no
15330 $rm -r conftest 2>/dev/null
15331 mkdir conftest
15332 cd conftest
15333 mkdir out
15334 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15335
15336 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15337 # that will create temporary files in the current directory regardless of
15338 # the output directory. Thus, making CWD read-only will cause this test
15339 # to fail, enabling locking or at least warning the user not to do parallel
15340 # builds.
15341 chmod -w .
15342
15343 lt_compiler_flag="-o out/conftest2.$ac_objext"
15344 # Insert the option either (1) after the last *FLAGS variable, or
15345 # (2) before a word containing "conftest.", or (3) at the end.
15346 # Note that $ac_compile itself does not contain backslashes and begins
15347 # with a dollar sign (not a hyphen), so the echo should work correctly.
15348 lt_compile=`echo "$ac_compile" | $SED \
15349 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15350 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15351 -e 's:$: $lt_compiler_flag:'`
John Criswellc66bbd52003-09-29 21:35:32 +000015352 (eval echo "\"\$as_me:15352: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015353 (eval "$lt_compile" 2>out/conftest.err)
15354 ac_status=$?
15355 cat out/conftest.err >&5
John Criswellc66bbd52003-09-29 21:35:32 +000015356 echo "$as_me:15356: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015357 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15358 then
15359 # The compiler can only warn and ignore the option if not recognized
15360 # So say no if there are warnings
15361 if test ! -s out/conftest.err; then
15362 lt_cv_prog_compiler_c_o_GCJ=yes
15363 fi
15364 fi
15365 chmod u+w .
15366 $rm conftest* out/*
15367 rmdir out
15368 cd ..
15369 rmdir conftest
15370 $rm conftest*
15371
15372fi
15373echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15374echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15375
15376
15377hard_links="nottested"
15378if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15379 # do not overwrite the value of need_locks provided by the user
15380 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15381echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15382 hard_links=yes
15383 $rm conftest*
15384 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15385 touch conftest.a
15386 ln conftest.a conftest.b 2>&5 || hard_links=no
15387 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15388 echo "$as_me:$LINENO: result: $hard_links" >&5
15389echo "${ECHO_T}$hard_links" >&6
15390 if test "$hard_links" = no; then
15391 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15392echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15393 need_locks=warn
15394 fi
15395else
15396 need_locks=no
15397fi
15398
15399echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15400echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15401
15402 runpath_var=
15403 allow_undefined_flag_GCJ=
15404 enable_shared_with_static_runtimes_GCJ=no
15405 archive_cmds_GCJ=
15406 archive_expsym_cmds_GCJ=
15407 old_archive_From_new_cmds_GCJ=
15408 old_archive_from_expsyms_cmds_GCJ=
15409 export_dynamic_flag_spec_GCJ=
15410 whole_archive_flag_spec_GCJ=
15411 thread_safe_flag_spec_GCJ=
15412 hardcode_libdir_flag_spec_GCJ=
15413 hardcode_libdir_flag_spec_ld_GCJ=
15414 hardcode_libdir_separator_GCJ=
15415 hardcode_direct_GCJ=no
15416 hardcode_minus_L_GCJ=no
15417 hardcode_shlibpath_var_GCJ=unsupported
15418 link_all_deplibs_GCJ=unknown
15419 hardcode_automatic_GCJ=no
15420 module_cmds_GCJ=
15421 module_expsym_cmds_GCJ=
15422 always_export_symbols_GCJ=no
15423 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15424 # include_expsyms should be a list of space-separated symbols to be *always*
15425 # included in the symbol list
15426 include_expsyms_GCJ=
15427 # exclude_expsyms can be an extended regexp of symbols to exclude
15428 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15429 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15430 # as well as any symbol that contains `d'.
15431 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15432 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15433 # platforms (ab)use it in PIC code, but their linkers get confused if
15434 # the symbol is explicitly referenced. Since portable code cannot
15435 # rely on this symbol name, it's probably fine to never include it in
15436 # preloaded symbol tables.
15437 extract_expsyms_cmds=
15438
15439 case $host_os in
15440 cygwin* | mingw* | pw32*)
15441 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15442 # When not using gcc, we currently assume that we are using
15443 # Microsoft Visual C++.
15444 if test "$GCC" != yes; then
15445 with_gnu_ld=no
15446 fi
15447 ;;
15448 openbsd*)
15449 with_gnu_ld=no
15450 ;;
15451 esac
15452
15453 ld_shlibs_GCJ=yes
15454 if test "$with_gnu_ld" = yes; then
15455 # If archive_cmds runs LD, not CC, wlarc should be empty
15456 wlarc='${wl}'
15457
15458 # See if GNU ld supports shared libraries.
15459 case $host_os in
15460 aix3* | aix4* | aix5*)
15461 # On AIX/PPC, the GNU linker is very broken
15462 if test "$host_cpu" != ia64; then
15463 ld_shlibs_GCJ=no
15464 cat <<EOF 1>&2
15465
15466*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15467*** to be unable to reliably create shared libraries on AIX.
15468*** Therefore, libtool is disabling shared libraries support. If you
15469*** really care for shared libraries, you may want to modify your PATH
15470*** so that a non-GNU linker is found, and then restart.
15471
15472EOF
15473 fi
15474 ;;
15475
15476 amigaos*)
15477 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)'
15478 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15479 hardcode_minus_L_GCJ=yes
15480
15481 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15482 # that the semantics of dynamic libraries on AmigaOS, at least up
15483 # to version 4, is to share data among multiple programs linked
15484 # with the same dynamic library. Since this doesn't match the
15485 # behavior of shared libraries on other platforms, we can't use
15486 # them.
15487 ld_shlibs_GCJ=no
15488 ;;
15489
15490 beos*)
15491 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15492 allow_undefined_flag_GCJ=unsupported
15493 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15494 # support --undefined. This deserves some investigation. FIXME
15495 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15496 else
15497 ld_shlibs_GCJ=no
15498 fi
15499 ;;
15500
15501 cygwin* | mingw* | pw32*)
15502 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15503 # as there is no search path for DLLs.
15504 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15505 allow_undefined_flag_GCJ=unsupported
15506 always_export_symbols_GCJ=no
15507 enable_shared_with_static_runtimes_GCJ=yes
15508 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15509
15510 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15511 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15512 # If the export-symbols file already is a .def file (1st line
15513 # is EXPORTS), use it as is; otherwise, prepend...
15514 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15515 cp $export_symbols $output_objdir/$soname.def;
15516 else
15517 echo EXPORTS > $output_objdir/$soname.def;
15518 cat $export_symbols >> $output_objdir/$soname.def;
15519 fi~
15520 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15521 else
15522 ld_shlibs=no
15523 fi
15524 ;;
15525
15526 netbsd*)
15527 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15528 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15529 wlarc=
15530 else
15531 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15532 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15533 fi
15534 ;;
15535
15536 solaris* | sysv5*)
15537 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15538 ld_shlibs_GCJ=no
15539 cat <<EOF 1>&2
15540
15541*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15542*** create shared libraries on Solaris systems. Therefore, libtool
15543*** is disabling shared libraries support. We urge you to upgrade GNU
15544*** binutils to release 2.9.1 or newer. Another option is to modify
15545*** your PATH or compiler configuration so that the native linker is
15546*** used, and then restart.
15547
15548EOF
15549 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15550 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15551 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15552 else
15553 ld_shlibs_GCJ=no
15554 fi
15555 ;;
15556
15557 sunos4*)
15558 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15559 wlarc=
15560 hardcode_direct_GCJ=yes
15561 hardcode_shlibpath_var_GCJ=no
15562 ;;
15563
15564 *)
15565 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15566 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15567 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15568 else
15569 ld_shlibs_GCJ=no
15570 fi
15571 ;;
15572 esac
15573
15574 if test "$ld_shlibs_GCJ" = yes; then
15575 runpath_var=LD_RUN_PATH
15576 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15577 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15578 # ancient GNU ld didn't support --whole-archive et. al.
15579 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15580 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15581 else
15582 whole_archive_flag_spec_GCJ=
15583 fi
15584 fi
15585 else
15586 # PORTME fill in a description of your system's linker (not GNU ld)
15587 case $host_os in
15588 aix3*)
15589 allow_undefined_flag_GCJ=unsupported
15590 always_export_symbols_GCJ=yes
15591 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'
15592 # Note: this linker hardcodes the directories in LIBPATH if there
15593 # are no directories specified by -L.
15594 hardcode_minus_L_GCJ=yes
15595 if test "$GCC" = yes && test -z "$link_static_flag"; then
15596 # Neither direct hardcoding nor static linking is supported with a
15597 # broken collect2.
15598 hardcode_direct_GCJ=unsupported
15599 fi
15600 ;;
15601
15602 aix4* | aix5*)
15603 if test "$host_cpu" = ia64; then
15604 # On IA64, the linker does run time linking by default, so we don't
15605 # have to do anything special.
15606 aix_use_runtimelinking=no
15607 exp_sym_flag='-Bexport'
15608 no_entry_flag=""
15609 else
15610 # If we're using GNU nm, then we don't want the "-C" option.
15611 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15612 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15613 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'
15614 else
15615 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'
15616 fi
15617 aix_use_runtimelinking=no
15618
15619 # Test if we are trying to use run time linking or normal
15620 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15621 # need to do runtime linking.
15622 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15623 for ld_flag in $LDFLAGS; do
15624 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15625 aix_use_runtimelinking=yes
15626 break
15627 fi
15628 done
15629 esac
15630
15631 exp_sym_flag='-bexport'
15632 no_entry_flag='-bnoentry'
15633 fi
15634
15635 # When large executables or shared objects are built, AIX ld can
15636 # have problems creating the table of contents. If linking a library
15637 # or program results in "error TOC overflow" add -mminimal-toc to
15638 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15639 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15640
15641 archive_cmds_GCJ=''
15642 hardcode_direct_GCJ=yes
15643 hardcode_libdir_separator_GCJ=':'
15644 link_all_deplibs_GCJ=yes
15645
15646 if test "$GCC" = yes; then
15647 case $host_os in aix4.012|aix4.012.*)
15648 # We only want to do this on AIX 4.2 and lower, the check
15649 # below for broken collect2 doesn't work under 4.3+
15650 collect2name=`${CC} -print-prog-name=collect2`
15651 if test -f "$collect2name" && \
15652 strings "$collect2name" | grep resolve_lib_name >/dev/null
15653 then
15654 # We have reworked collect2
15655 hardcode_direct_GCJ=yes
15656 else
15657 # We have old collect2
15658 hardcode_direct_GCJ=unsupported
15659 # It fails to find uninstalled libraries when the uninstalled
15660 # path is not listed in the libpath. Setting hardcode_minus_L
15661 # to unsupported forces relinking
15662 hardcode_minus_L_GCJ=yes
15663 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15664 hardcode_libdir_separator_GCJ=
15665 fi
15666 esac
15667 shared_flag='-shared'
15668 else
15669 # not using gcc
15670 if test "$host_cpu" = ia64; then
15671 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15672 # chokes on -Wl,-G. The following line is correct:
15673 shared_flag='-G'
15674 else
15675 if test "$aix_use_runtimelinking" = yes; then
15676 shared_flag='${wl}-G'
15677 else
15678 shared_flag='${wl}-bM:SRE'
15679 fi
15680 fi
15681 fi
15682
15683 # It seems that -bexpall does not export symbols beginning with
15684 # underscore (_), so it is better to generate a list of symbols to export.
15685 always_export_symbols_GCJ=yes
15686 if test "$aix_use_runtimelinking" = yes; then
15687 # Warning - without using the other runtime loading flags (-brtl),
15688 # -berok will link without error, but may produce a broken library.
15689 allow_undefined_flag_GCJ='-berok'
15690 # Determine the default libpath from the value encoded in an empty executable.
15691 cat >conftest.$ac_ext <<_ACEOF
15692#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000015693/* confdefs.h. */
15694_ACEOF
15695cat confdefs.h >>conftest.$ac_ext
15696cat >>conftest.$ac_ext <<_ACEOF
15697/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015698
John Criswell47fdd832003-07-14 16:52:07 +000015699int
15700main ()
15701{
15702
15703 ;
15704 return 0;
15705}
15706_ACEOF
15707rm -f conftest.$ac_objext conftest$ac_exeext
15708if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15709 (eval $ac_link) 2>&5
15710 ac_status=$?
15711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15712 (exit $ac_status); } &&
15713 { ac_try='test -s conftest$ac_exeext'
15714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15715 (eval $ac_try) 2>&5
15716 ac_status=$?
15717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15718 (exit $ac_status); }; }; then
15719
15720aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15721}'`
15722# Check for a 64-bit object if we didn't find anything.
15723if 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; }
15724}'`; fi
15725else
15726 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015727sed 's/^/| /' conftest.$ac_ext >&5
15728
John Criswell47fdd832003-07-14 16:52:07 +000015729fi
15730rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15731if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15732
15733 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15734 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"
15735 else
15736 if test "$host_cpu" = ia64; then
15737 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15738 allow_undefined_flag_GCJ="-z nodefs"
15739 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"
15740 else
15741 # Determine the default libpath from the value encoded in an empty executable.
15742 cat >conftest.$ac_ext <<_ACEOF
15743#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000015744/* confdefs.h. */
15745_ACEOF
15746cat confdefs.h >>conftest.$ac_ext
15747cat >>conftest.$ac_ext <<_ACEOF
15748/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015749
John Criswell47fdd832003-07-14 16:52:07 +000015750int
15751main ()
15752{
15753
15754 ;
15755 return 0;
15756}
15757_ACEOF
15758rm -f conftest.$ac_objext conftest$ac_exeext
15759if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15760 (eval $ac_link) 2>&5
15761 ac_status=$?
15762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15763 (exit $ac_status); } &&
15764 { ac_try='test -s conftest$ac_exeext'
15765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15766 (eval $ac_try) 2>&5
15767 ac_status=$?
15768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15769 (exit $ac_status); }; }; then
15770
15771aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15772}'`
15773# Check for a 64-bit object if we didn't find anything.
15774if 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; }
15775}'`; fi
15776else
15777 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015778sed 's/^/| /' conftest.$ac_ext >&5
15779
John Criswell47fdd832003-07-14 16:52:07 +000015780fi
15781rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15782if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15783
15784 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15785 # Warning - without using the other run time loading flags,
15786 # -berok will link without error, but may produce a broken library.
15787 no_undefined_flag_GCJ=' ${wl}-bernotok'
15788 allow_undefined_flag_GCJ=' ${wl}-berok'
15789 # -bexpall does not export symbols beginning with underscore (_)
15790 always_export_symbols_GCJ=yes
15791 # Exported symbols can be pulled into shared objects from archives
15792 whole_archive_flag_spec_GCJ=' '
15793 archive_cmds_need_lc_GCJ=yes
15794 # This is similar to how AIX traditionally builds it's shared libraries.
15795 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'
15796 fi
15797 fi
15798 ;;
15799
15800 amigaos*)
15801 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)'
15802 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15803 hardcode_minus_L_GCJ=yes
15804 # see comment about different semantics on the GNU ld section
15805 ld_shlibs_GCJ=no
15806 ;;
15807
15808 bsdi4*)
15809 export_dynamic_flag_spec_GCJ=-rdynamic
15810 ;;
15811
15812 cygwin* | mingw* | pw32*)
15813 # When not using gcc, we currently assume that we are using
15814 # Microsoft Visual C++.
15815 # hardcode_libdir_flag_spec is actually meaningless, as there is
15816 # no search path for DLLs.
15817 hardcode_libdir_flag_spec_GCJ=' '
15818 allow_undefined_flag_GCJ=unsupported
15819 # Tell ltmain to make .lib files, not .a files.
15820 libext=lib
15821 # Tell ltmain to make .dll files, not .so files.
15822 shrext=".dll"
15823 # FIXME: Setting linknames here is a bad hack.
15824 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15825 # The linker will automatically build a .lib file if we build a DLL.
15826 old_archive_From_new_cmds_GCJ='true'
15827 # FIXME: Should let the user specify the lib program.
15828 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15829 fix_srcfile_path='`cygpath -w "$srcfile"`'
15830 enable_shared_with_static_runtimes_GCJ=yes
15831 ;;
15832
15833 darwin* | rhapsody*)
15834 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15835 archive_cmds_need_lc_GCJ=no
15836 case "$host_os" in
15837 rhapsody* | darwin1.[012])
15838 allow_undefined_flag_GCJ='-undefined suppress'
15839 ;;
15840 *) # Darwin 1.3 on
15841 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15842 ;;
15843 esac
15844 # FIXME: Relying on posixy $() will cause problems for
15845 # cross-compilation, but unfortunately the echo tests do not
15846 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
15847 # `"' quotes if we put them in here... so don't!
15848 lt_int_apple_cc_single_mod=no
15849 output_verbose_link_cmd='echo'
15850 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15851 lt_int_apple_cc_single_mod=yes
15852 fi
15853 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15854 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15855 else
15856 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'
15857 fi
15858 module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15859 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15860 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15861 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}'
15862 else
15863 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}'
15864 fi
15865 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}'
15866 hardcode_direct_GCJ=no
15867 hardcode_automatic_GCJ=yes
15868 hardcode_shlibpath_var_GCJ=unsupported
15869 whole_archive_flag_spec_GCJ='-all_load $convenience'
15870 link_all_deplibs_GCJ=yes
15871 fi
15872 ;;
15873
15874 dgux*)
15875 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15876 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15877 hardcode_shlibpath_var_GCJ=no
15878 ;;
15879
15880 freebsd1*)
15881 ld_shlibs_GCJ=no
15882 ;;
15883
15884 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15885 # support. Future versions do this automatically, but an explicit c++rt0.o
15886 # does not break anything, and helps significantly (at the cost of a little
15887 # extra space).
15888 freebsd2.2*)
15889 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15890 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15891 hardcode_direct_GCJ=yes
15892 hardcode_shlibpath_var_GCJ=no
15893 ;;
15894
15895 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15896 freebsd2*)
15897 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15898 hardcode_direct_GCJ=yes
15899 hardcode_minus_L_GCJ=yes
15900 hardcode_shlibpath_var_GCJ=no
15901 ;;
15902
15903 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15904 freebsd*)
15905 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15906 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15907 hardcode_direct_GCJ=yes
15908 hardcode_shlibpath_var_GCJ=no
15909 ;;
15910
15911 hpux9*)
15912 if test "$GCC" = yes; then
15913 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'
15914 else
15915 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'
15916 fi
15917 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15918 hardcode_libdir_separator_GCJ=:
15919 hardcode_direct_GCJ=yes
15920
15921 # hardcode_minus_L: Not really in the search PATH,
15922 # but as the default location of the library.
15923 hardcode_minus_L_GCJ=yes
15924 export_dynamic_flag_spec_GCJ='${wl}-E'
15925 ;;
15926
15927 hpux10* | hpux11*)
15928 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15929 case "$host_cpu" in
15930 hppa*64*|ia64*)
15931 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15932 ;;
15933 *)
15934 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15935 ;;
15936 esac
15937 else
15938 case "$host_cpu" in
15939 hppa*64*|ia64*)
15940 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15941 ;;
15942 *)
15943 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15944 ;;
15945 esac
15946 fi
15947 if test "$with_gnu_ld" = no; then
15948 case "$host_cpu" in
15949 hppa*64*)
15950 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15951 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15952 hardcode_libdir_separator_GCJ=:
15953 hardcode_direct_GCJ=no
15954 hardcode_shlibpath_var_GCJ=no
15955 ;;
15956 ia64*)
15957 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15958 hardcode_direct_GCJ=no
15959 hardcode_shlibpath_var_GCJ=no
15960
15961 # hardcode_minus_L: Not really in the search PATH,
15962 # but as the default location of the library.
15963 hardcode_minus_L_GCJ=yes
15964 ;;
15965 *)
15966 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15967 hardcode_libdir_separator_GCJ=:
15968 hardcode_direct_GCJ=yes
15969 export_dynamic_flag_spec_GCJ='${wl}-E'
15970
15971 # hardcode_minus_L: Not really in the search PATH,
15972 # but as the default location of the library.
15973 hardcode_minus_L_GCJ=yes
15974 ;;
15975 esac
15976 fi
15977 ;;
15978
15979 irix5* | irix6* | nonstopux*)
15980 if test "$GCC" = yes; then
15981 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'
15982 else
15983 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'
15984 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15985 fi
15986 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15987 hardcode_libdir_separator_GCJ=:
15988 link_all_deplibs_GCJ=yes
15989 ;;
15990
15991 netbsd*)
15992 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15993 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15994 else
15995 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15996 fi
15997 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15998 hardcode_direct_GCJ=yes
15999 hardcode_shlibpath_var_GCJ=no
16000 ;;
16001
16002 newsos6)
16003 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16004 hardcode_direct_GCJ=yes
16005 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16006 hardcode_libdir_separator_GCJ=:
16007 hardcode_shlibpath_var_GCJ=no
16008 ;;
16009
16010 openbsd*)
16011 hardcode_direct_GCJ=yes
16012 hardcode_shlibpath_var_GCJ=no
16013 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16014 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16015 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16016 export_dynamic_flag_spec_GCJ='${wl}-E'
16017 else
16018 case $host_os in
16019 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16020 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16021 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16022 ;;
16023 *)
16024 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16025 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16026 ;;
16027 esac
16028 fi
16029 ;;
16030
16031 os2*)
16032 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16033 hardcode_minus_L_GCJ=yes
16034 allow_undefined_flag_GCJ=unsupported
16035 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'
16036 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16037 ;;
16038
16039 osf3*)
16040 if test "$GCC" = yes; then
16041 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16042 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'
16043 else
16044 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16045 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'
16046 fi
16047 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16048 hardcode_libdir_separator_GCJ=:
16049 ;;
16050
16051 osf4* | osf5*) # as osf3* with the addition of -msym flag
16052 if test "$GCC" = yes; then
16053 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16054 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'
16055 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16056 else
16057 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16058 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'
16059 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~
16060 $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'
16061
16062 # Both c and cxx compiler support -rpath directly
16063 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16064 fi
16065 hardcode_libdir_separator_GCJ=:
16066 ;;
16067
16068 sco3.2v5*)
16069 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16070 hardcode_shlibpath_var_GCJ=no
16071 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16072 runpath_var=LD_RUN_PATH
16073 hardcode_runpath_var=yes
16074 ;;
16075
16076 solaris*)
16077 no_undefined_flag_GCJ=' -z text'
16078 if test "$GCC" = yes; then
16079 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16080 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16081 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16082 else
16083 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16084 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16085 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16086 fi
16087 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16088 hardcode_shlibpath_var_GCJ=no
16089 case $host_os in
16090 solaris2.[0-5] | solaris2.[0-5].*) ;;
16091 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16092 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16093 esac
16094 link_all_deplibs_GCJ=yes
16095 ;;
16096
16097 sunos4*)
16098 if test "x$host_vendor" = xsequent; then
16099 # Use $CC to link under sequent, because it throws in some extra .o
16100 # files that make .init and .fini sections work.
16101 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16102 else
16103 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16104 fi
16105 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16106 hardcode_direct_GCJ=yes
16107 hardcode_minus_L_GCJ=yes
16108 hardcode_shlibpath_var_GCJ=no
16109 ;;
16110
16111 sysv4)
16112 case $host_vendor in
16113 sni)
16114 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16115 hardcode_direct_GCJ=yes # is this really true???
16116 ;;
16117 siemens)
16118 ## LD is ld it makes a PLAMLIB
16119 ## CC just makes a GrossModule.
16120 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16121 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16122 hardcode_direct_GCJ=no
16123 ;;
16124 motorola)
16125 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16126 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16127 ;;
16128 esac
16129 runpath_var='LD_RUN_PATH'
16130 hardcode_shlibpath_var_GCJ=no
16131 ;;
16132
16133 sysv4.3*)
16134 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16135 hardcode_shlibpath_var_GCJ=no
16136 export_dynamic_flag_spec_GCJ='-Bexport'
16137 ;;
16138
16139 sysv4*MP*)
16140 if test -d /usr/nec; then
16141 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16142 hardcode_shlibpath_var_GCJ=no
16143 runpath_var=LD_RUN_PATH
16144 hardcode_runpath_var=yes
16145 ld_shlibs_GCJ=yes
16146 fi
16147 ;;
16148
16149 sysv4.2uw2*)
16150 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16151 hardcode_direct_GCJ=yes
16152 hardcode_minus_L_GCJ=no
16153 hardcode_shlibpath_var_GCJ=no
16154 hardcode_runpath_var=yes
16155 runpath_var=LD_RUN_PATH
16156 ;;
16157
16158 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16159 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16160 if test "$GCC" = yes; then
16161 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16162 else
16163 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16164 fi
16165 runpath_var='LD_RUN_PATH'
16166 hardcode_shlibpath_var_GCJ=no
16167 ;;
16168
16169 sysv5*)
16170 no_undefined_flag_GCJ=' -z text'
16171 # $CC -shared without GNU ld will not create a library from C++
16172 # object files and a static libstdc++, better avoid it by now
16173 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16174 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16175 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16176 hardcode_libdir_flag_spec_GCJ=
16177 hardcode_shlibpath_var_GCJ=no
16178 runpath_var='LD_RUN_PATH'
16179 ;;
16180
16181 uts4*)
16182 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16183 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16184 hardcode_shlibpath_var_GCJ=no
16185 ;;
16186
16187 *)
16188 ld_shlibs_GCJ=no
16189 ;;
16190 esac
16191 fi
16192
16193echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16194echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16195test "$ld_shlibs_GCJ" = no && can_build_shared=no
16196
16197variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16198if test "$GCC" = yes; then
16199 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16200fi
16201
16202#
16203# Do we need to explicitly link libc?
16204#
16205case "x$archive_cmds_need_lc_GCJ" in
16206x|xyes)
16207 # Assume -lc should be added
16208 archive_cmds_need_lc_GCJ=yes
16209
16210 if test "$enable_shared" = yes && test "$GCC" = yes; then
16211 case $archive_cmds_GCJ in
16212 *'~'*)
16213 # FIXME: we may have to deal with multi-command sequences.
16214 ;;
16215 '$CC '*)
16216 # Test whether the compiler implicitly links with -lc since on some
16217 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16218 # to ld, don't add -lc before -lgcc.
16219 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16220echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16221 $rm conftest*
16222 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16223
16224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16225 (eval $ac_compile) 2>&5
16226 ac_status=$?
16227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16228 (exit $ac_status); } 2>conftest.err; then
16229 soname=conftest
16230 lib=conftest
16231 libobjs=conftest.$ac_objext
16232 deplibs=
16233 wl=$lt_prog_compiler_wl_GCJ
16234 compiler_flags=-v
16235 linker_flags=-v
16236 verstring=
16237 output_objdir=.
16238 libname=conftest
16239 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16240 allow_undefined_flag_GCJ=
16241 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16242 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16243 ac_status=$?
16244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16245 (exit $ac_status); }
16246 then
16247 archive_cmds_need_lc_GCJ=no
16248 else
16249 archive_cmds_need_lc_GCJ=yes
16250 fi
16251 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16252 else
16253 cat conftest.err 1>&5
16254 fi
16255 $rm conftest*
16256 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16257echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16258 ;;
16259 esac
16260 fi
16261 ;;
16262esac
16263
16264echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16265echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16266hardcode_action_GCJ=
16267if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16268 test -n "$runpath_var GCJ" || \
16269 test "X$hardcode_automatic_GCJ"="Xyes" ; then
16270
16271 # We can hardcode non-existant directories.
16272 if test "$hardcode_direct_GCJ" != no &&
16273 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16274 # have to relink, otherwise we might link with an installed library
16275 # when we should be linking with a yet-to-be-installed one
16276 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16277 test "$hardcode_minus_L_GCJ" != no; then
16278 # Linking always hardcodes the temporary library directory.
16279 hardcode_action_GCJ=relink
16280 else
16281 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16282 hardcode_action_GCJ=immediate
16283 fi
16284else
16285 # We cannot hardcode anything, or else we can only hardcode existing
16286 # directories.
16287 hardcode_action_GCJ=unsupported
16288fi
16289echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16290echo "${ECHO_T}$hardcode_action_GCJ" >&6
16291
16292if test "$hardcode_action_GCJ" = relink; then
16293 # Fast installation is not supported
16294 enable_fast_install=no
16295elif test "$shlibpath_overrides_runpath" = yes ||
16296 test "$enable_shared" = no; then
16297 # Fast installation is not necessary
16298 enable_fast_install=needless
16299fi
16300
16301striplib=
16302old_striplib=
16303echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16304echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16305if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16306 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16307 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16308 echo "$as_me:$LINENO: result: yes" >&5
16309echo "${ECHO_T}yes" >&6
16310else
16311# FIXME - insert some real tests, host_os isn't really good enough
16312 case $host_os in
16313 darwin*)
16314 if test -n "$STRIP" ; then
16315 striplib="$STRIP -x"
16316 echo "$as_me:$LINENO: result: yes" >&5
16317echo "${ECHO_T}yes" >&6
16318 else
16319 echo "$as_me:$LINENO: result: no" >&5
16320echo "${ECHO_T}no" >&6
16321fi
16322 ;;
16323 *)
16324 echo "$as_me:$LINENO: result: no" >&5
16325echo "${ECHO_T}no" >&6
16326 ;;
16327 esac
16328fi
16329
16330echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16331echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16332library_names_spec=
16333libname_spec='lib$name'
16334soname_spec=
16335shrext=".so"
16336postinstall_cmds=
16337postuninstall_cmds=
16338finish_cmds=
16339finish_eval=
16340shlibpath_var=
16341shlibpath_overrides_runpath=unknown
16342version_type=none
16343dynamic_linker="$host_os ld.so"
16344sys_lib_dlsearch_path_spec="/lib /usr/lib"
16345if test "$GCC" = yes; then
16346 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16347 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16348 # if the path contains ";" then we assume it to be the separator
16349 # otherwise default to the standard path separator (i.e. ":") - it is
16350 # assumed that no part of a normal pathname contains ";" but that should
16351 # okay in the real world where ";" in dirpaths is itself problematic.
16352 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16353 else
16354 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16355 fi
16356else
16357 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16358fi
16359need_lib_prefix=unknown
16360hardcode_into_libs=no
16361
16362# when you set need_version to no, make sure it does not cause -set_version
16363# flags to be left without arguments
16364need_version=unknown
16365
16366case $host_os in
16367aix3*)
16368 version_type=linux
16369 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16370 shlibpath_var=LIBPATH
16371
16372 # AIX 3 has no versioning support, so we append a major version to the name.
16373 soname_spec='${libname}${release}${shared_ext}$major'
16374 ;;
16375
16376aix4* | aix5*)
16377 version_type=linux
16378 need_lib_prefix=no
16379 need_version=no
16380 hardcode_into_libs=yes
16381 if test "$host_cpu" = ia64; then
16382 # AIX 5 supports IA64
16383 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16384 shlibpath_var=LD_LIBRARY_PATH
16385 else
16386 # With GCC up to 2.95.x, collect2 would create an import file
16387 # for dependence libraries. The import file would start with
16388 # the line `#! .'. This would cause the generated library to
16389 # depend on `.', always an invalid library. This was fixed in
16390 # development snapshots of GCC prior to 3.0.
16391 case $host_os in
16392 aix4 | aix4.[01] | aix4.[01].*)
16393 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16394 echo ' yes '
16395 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16396 :
16397 else
16398 can_build_shared=no
16399 fi
16400 ;;
16401 esac
16402 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16403 # soname into executable. Probably we can add versioning support to
16404 # collect2, so additional links can be useful in future.
16405 if test "$aix_use_runtimelinking" = yes; then
16406 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16407 # instead of lib<name>.a to let people know that these are not
16408 # typical AIX shared libraries.
16409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16410 else
16411 # We preserve .a as extension for shared libraries through AIX4.2
16412 # and later when we are not doing run time linking.
16413 library_names_spec='${libname}${release}.a $libname.a'
16414 soname_spec='${libname}${release}${shared_ext}$major'
16415 fi
16416 shlibpath_var=LIBPATH
16417 fi
16418 ;;
16419
16420amigaos*)
16421 library_names_spec='$libname.ixlibrary $libname.a'
16422 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16423 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'
16424 ;;
16425
16426beos*)
16427 library_names_spec='${libname}${shared_ext}'
16428 dynamic_linker="$host_os ld.so"
16429 shlibpath_var=LIBRARY_PATH
16430 ;;
16431
16432bsdi4*)
16433 version_type=linux
16434 need_version=no
16435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16436 soname_spec='${libname}${release}${shared_ext}$major'
16437 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16438 shlibpath_var=LD_LIBRARY_PATH
16439 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16440 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16441 # the default ld.so.conf also contains /usr/contrib/lib and
16442 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16443 # libtool to hard-code these into programs
16444 ;;
16445
16446cygwin* | mingw* | pw32*)
16447 version_type=windows
16448 shrext=".dll"
16449 need_version=no
16450 need_lib_prefix=no
16451
16452 case $GCC,$host_os in
16453 yes,cygwin* | yes,mingw* | yes,pw32*)
16454 library_names_spec='$libname.dll.a'
16455 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16456 postinstall_cmds='base_file=`basename \${file}`~
16457 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16458 dldir=$destdir/`dirname \$dlpath`~
16459 test -d \$dldir || mkdir -p \$dldir~
16460 $install_prog $dir/$dlname \$dldir/$dlname'
16461 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16462 dlpath=$dir/\$dldll~
16463 $rm \$dlpath'
16464 shlibpath_overrides_runpath=yes
16465
16466 case $host_os in
16467 cygwin*)
16468 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16469 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16470 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16471 ;;
16472 mingw*)
16473 # MinGW DLLs use traditional 'lib' prefix
16474 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16475 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16476 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16477 # It is most probably a Windows format PATH printed by
16478 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16479 # path with ; separators, and with drive letters. We can handle the
16480 # drive letters (cygwin fileutils understands them), so leave them,
16481 # especially as we might pass files found there to a mingw objdump,
16482 # which wouldn't understand a cygwinified path. Ahh.
16483 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16484 else
16485 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16486 fi
16487 ;;
16488 pw32*)
16489 # pw32 DLLs use 'pw' prefix rather than 'lib'
16490 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16491 ;;
16492 esac
16493 ;;
16494
16495 *)
16496 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16497 ;;
16498 esac
16499 dynamic_linker='Win32 ld.exe'
16500 # FIXME: first we should search . and the directory the executable is in
16501 shlibpath_var=PATH
16502 ;;
16503
16504darwin* | rhapsody*)
16505 dynamic_linker="$host_os dyld"
16506 version_type=darwin
16507 need_lib_prefix=no
16508 need_version=no
16509 # FIXME: Relying on posixy $() will cause problems for
16510 # cross-compilation, but unfortunately the echo tests do not
16511 # yet detect zsh echo's removal of \ escapes.
16512 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16513 soname_spec='${libname}${release}${major}$shared_ext'
16514 shlibpath_overrides_runpath=yes
16515 shlibpath_var=DYLD_LIBRARY_PATH
16516 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16517 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16518 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16519 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"`
16520 fi
16521 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16522 ;;
16523
16524dgux*)
16525 version_type=linux
16526 need_lib_prefix=no
16527 need_version=no
16528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16529 soname_spec='${libname}${release}${shared_ext}$major'
16530 shlibpath_var=LD_LIBRARY_PATH
16531 ;;
16532
16533freebsd1*)
16534 dynamic_linker=no
16535 ;;
16536
16537freebsd*)
16538 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16539 version_type=freebsd-$objformat
16540 case $version_type in
16541 freebsd-elf*)
16542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16543 need_version=no
16544 need_lib_prefix=no
16545 ;;
16546 freebsd-*)
16547 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16548 need_version=yes
16549 ;;
16550 esac
16551 shlibpath_var=LD_LIBRARY_PATH
16552 case $host_os in
16553 freebsd2*)
16554 shlibpath_overrides_runpath=yes
16555 ;;
16556 freebsd3.01* | freebsdelf3.01*)
16557 shlibpath_overrides_runpath=yes
16558 hardcode_into_libs=yes
16559 ;;
16560 *) # from 3.2 on
16561 shlibpath_overrides_runpath=no
16562 hardcode_into_libs=yes
16563 ;;
16564 esac
16565 ;;
16566
16567gnu*)
16568 version_type=linux
16569 need_lib_prefix=no
16570 need_version=no
16571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16572 soname_spec='${libname}${release}${shared_ext}$major'
16573 shlibpath_var=LD_LIBRARY_PATH
16574 hardcode_into_libs=yes
16575 ;;
16576
16577hpux9* | hpux10* | hpux11*)
16578 # Give a soname corresponding to the major version so that dld.sl refuses to
16579 # link against other versions.
16580 version_type=sunos
16581 need_lib_prefix=no
16582 need_version=no
16583 case "$host_cpu" in
16584 ia64*)
16585 shrext='.so'
16586 hardcode_into_libs=yes
16587 dynamic_linker="$host_os dld.so"
16588 shlibpath_var=LD_LIBRARY_PATH
16589 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16591 soname_spec='${libname}${release}${shared_ext}$major'
16592 if test "X$HPUX_IA64_MODE" = X32; then
16593 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16594 else
16595 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16596 fi
16597 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16598 ;;
16599 hppa*64*)
16600 shrext='.sl'
16601 hardcode_into_libs=yes
16602 dynamic_linker="$host_os dld.sl"
16603 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16604 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16606 soname_spec='${libname}${release}${shared_ext}$major'
16607 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16608 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16609 ;;
16610 *)
16611 shrext='.sl'
16612 dynamic_linker="$host_os dld.sl"
16613 shlibpath_var=SHLIB_PATH
16614 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16616 soname_spec='${libname}${release}${shared_ext}$major'
16617 ;;
16618 esac
16619 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16620 postinstall_cmds='chmod 555 $lib'
16621 ;;
16622
16623irix5* | irix6* | nonstopux*)
16624 case $host_os in
16625 nonstopux*) version_type=nonstopux ;;
16626 *)
16627 if test "$lt_cv_prog_gnu_ld" = yes; then
16628 version_type=linux
16629 else
16630 version_type=irix
16631 fi ;;
16632 esac
16633 need_lib_prefix=no
16634 need_version=no
16635 soname_spec='${libname}${release}${shared_ext}$major'
16636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16637 case $host_os in
16638 irix5* | nonstopux*)
16639 libsuff= shlibsuff=
16640 ;;
16641 *)
16642 case $LD in # libtool.m4 will add one of these switches to LD
16643 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16644 libsuff= shlibsuff= libmagic=32-bit;;
16645 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16646 libsuff=32 shlibsuff=N32 libmagic=N32;;
16647 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16648 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16649 *) libsuff= shlibsuff= libmagic=never-match;;
16650 esac
16651 ;;
16652 esac
16653 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16654 shlibpath_overrides_runpath=no
16655 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16656 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16657 hardcode_into_libs=yes
16658 ;;
16659
16660# No shared lib support for Linux oldld, aout, or coff.
16661linux*oldld* | linux*aout* | linux*coff*)
16662 dynamic_linker=no
16663 ;;
16664
16665# This must be Linux ELF.
16666linux*)
16667 version_type=linux
16668 need_lib_prefix=no
16669 need_version=no
16670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16671 soname_spec='${libname}${release}${shared_ext}$major'
16672 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16673 shlibpath_var=LD_LIBRARY_PATH
16674 shlibpath_overrides_runpath=no
16675 # This implies no fast_install, which is unacceptable.
16676 # Some rework will be needed to allow for fast_install
16677 # before this can be enabled.
16678 hardcode_into_libs=yes
16679
16680 # We used to test for /lib/ld.so.1 and disable shared libraries on
16681 # powerpc, because MkLinux only supported shared libraries with the
16682 # GNU dynamic linker. Since this was broken with cross compilers,
16683 # most powerpc-linux boxes support dynamic linking these days and
16684 # people can always --disable-shared, the test was removed, and we
16685 # assume the GNU/Linux dynamic linker is in use.
16686 dynamic_linker='GNU/Linux ld.so'
16687 ;;
16688
16689netbsd*)
16690 version_type=sunos
16691 need_lib_prefix=no
16692 need_version=no
16693 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16695 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16696 dynamic_linker='NetBSD (a.out) ld.so'
16697 else
16698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16699 soname_spec='${libname}${release}${shared_ext}$major'
16700 dynamic_linker='NetBSD ld.elf_so'
16701 fi
16702 shlibpath_var=LD_LIBRARY_PATH
16703 shlibpath_overrides_runpath=yes
16704 hardcode_into_libs=yes
16705 ;;
16706
16707newsos6)
16708 version_type=linux
16709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16710 shlibpath_var=LD_LIBRARY_PATH
16711 shlibpath_overrides_runpath=yes
16712 ;;
16713
16714nto-qnx)
16715 version_type=linux
16716 need_lib_prefix=no
16717 need_version=no
16718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16719 soname_spec='${libname}${release}${shared_ext}$major'
16720 shlibpath_var=LD_LIBRARY_PATH
16721 shlibpath_overrides_runpath=yes
16722 ;;
16723
16724openbsd*)
16725 version_type=sunos
16726 need_lib_prefix=no
16727 need_version=no
16728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16729 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16730 shlibpath_var=LD_LIBRARY_PATH
16731 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16732 case $host_os in
16733 openbsd2.[89] | openbsd2.[89].*)
16734 shlibpath_overrides_runpath=no
16735 ;;
16736 *)
16737 shlibpath_overrides_runpath=yes
16738 ;;
16739 esac
16740 else
16741 shlibpath_overrides_runpath=yes
16742 fi
16743 ;;
16744
16745os2*)
16746 libname_spec='$name'
16747 shrext=".dll"
16748 need_lib_prefix=no
16749 library_names_spec='$libname${shared_ext} $libname.a'
16750 dynamic_linker='OS/2 ld.exe'
16751 shlibpath_var=LIBPATH
16752 ;;
16753
16754osf3* | osf4* | osf5*)
16755 version_type=osf
16756 need_lib_prefix=no
16757 need_version=no
16758 soname_spec='${libname}${release}${shared_ext}$major'
16759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16760 shlibpath_var=LD_LIBRARY_PATH
16761 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16762 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16763 ;;
16764
16765sco3.2v5*)
16766 version_type=osf
16767 soname_spec='${libname}${release}${shared_ext}$major'
16768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16769 shlibpath_var=LD_LIBRARY_PATH
16770 ;;
16771
16772solaris*)
16773 version_type=linux
16774 need_lib_prefix=no
16775 need_version=no
16776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16777 soname_spec='${libname}${release}${shared_ext}$major'
16778 shlibpath_var=LD_LIBRARY_PATH
16779 shlibpath_overrides_runpath=yes
16780 hardcode_into_libs=yes
16781 # ldd complains unless libraries are executable
16782 postinstall_cmds='chmod +x $lib'
16783 ;;
16784
16785sunos4*)
16786 version_type=sunos
16787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16788 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16789 shlibpath_var=LD_LIBRARY_PATH
16790 shlibpath_overrides_runpath=yes
16791 if test "$with_gnu_ld" = yes; then
16792 need_lib_prefix=no
16793 fi
16794 need_version=yes
16795 ;;
16796
16797sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16798 version_type=linux
16799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16800 soname_spec='${libname}${release}${shared_ext}$major'
16801 shlibpath_var=LD_LIBRARY_PATH
16802 case $host_vendor in
16803 sni)
16804 shlibpath_overrides_runpath=no
16805 need_lib_prefix=no
16806 export_dynamic_flag_spec='${wl}-Blargedynsym'
16807 runpath_var=LD_RUN_PATH
16808 ;;
16809 siemens)
16810 need_lib_prefix=no
16811 ;;
16812 motorola)
16813 need_lib_prefix=no
16814 need_version=no
16815 shlibpath_overrides_runpath=no
16816 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16817 ;;
16818 esac
16819 ;;
16820
16821sysv4*MP*)
16822 if test -d /usr/nec ;then
16823 version_type=linux
16824 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16825 soname_spec='$libname${shared_ext}.$major'
16826 shlibpath_var=LD_LIBRARY_PATH
16827 fi
16828 ;;
16829
16830uts4*)
16831 version_type=linux
16832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16833 soname_spec='${libname}${release}${shared_ext}$major'
16834 shlibpath_var=LD_LIBRARY_PATH
16835 ;;
16836
16837*)
16838 dynamic_linker=no
16839 ;;
16840esac
16841echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16842echo "${ECHO_T}$dynamic_linker" >&6
16843test "$dynamic_linker" = no && can_build_shared=no
16844
16845if test "x$enable_dlopen" != xyes; then
16846 enable_dlopen=unknown
16847 enable_dlopen_self=unknown
16848 enable_dlopen_self_static=unknown
16849else
16850 lt_cv_dlopen=no
16851 lt_cv_dlopen_libs=
16852
16853 case $host_os in
16854 beos*)
16855 lt_cv_dlopen="load_add_on"
16856 lt_cv_dlopen_libs=
16857 lt_cv_dlopen_self=yes
16858 ;;
16859
16860 mingw* | pw32*)
16861 lt_cv_dlopen="LoadLibrary"
16862 lt_cv_dlopen_libs=
16863 ;;
16864
16865 cygwin*)
16866 lt_cv_dlopen="dlopen"
16867 lt_cv_dlopen_libs=
16868 ;;
16869
16870 darwin*)
16871 # if libdl is installed we need to link against it
16872 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16873echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16874if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16875 echo $ECHO_N "(cached) $ECHO_C" >&6
16876else
16877 ac_check_lib_save_LIBS=$LIBS
16878LIBS="-ldl $LIBS"
16879cat >conftest.$ac_ext <<_ACEOF
16880#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016881/* confdefs.h. */
16882_ACEOF
16883cat confdefs.h >>conftest.$ac_ext
16884cat >>conftest.$ac_ext <<_ACEOF
16885/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016886
16887/* Override any gcc2 internal prototype to avoid an error. */
16888#ifdef __cplusplus
16889extern "C"
16890#endif
16891/* We use char because int might match the return type of a gcc2
16892 builtin and then its argument prototype would still apply. */
16893char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016894int
16895main ()
16896{
16897dlopen ();
16898 ;
16899 return 0;
16900}
16901_ACEOF
16902rm -f conftest.$ac_objext conftest$ac_exeext
16903if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16904 (eval $ac_link) 2>&5
16905 ac_status=$?
16906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16907 (exit $ac_status); } &&
16908 { ac_try='test -s conftest$ac_exeext'
16909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16910 (eval $ac_try) 2>&5
16911 ac_status=$?
16912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16913 (exit $ac_status); }; }; then
16914 ac_cv_lib_dl_dlopen=yes
16915else
16916 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016917sed 's/^/| /' conftest.$ac_ext >&5
16918
John Criswell47fdd832003-07-14 16:52:07 +000016919ac_cv_lib_dl_dlopen=no
16920fi
16921rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16922LIBS=$ac_check_lib_save_LIBS
16923fi
16924echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16925echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16926if test $ac_cv_lib_dl_dlopen = yes; then
16927 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16928else
16929
16930 lt_cv_dlopen="dyld"
16931 lt_cv_dlopen_libs=
16932 lt_cv_dlopen_self=yes
16933
16934fi
16935
16936 ;;
16937
16938 *)
16939 echo "$as_me:$LINENO: checking for shl_load" >&5
16940echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16941if test "${ac_cv_func_shl_load+set}" = set; then
16942 echo $ECHO_N "(cached) $ECHO_C" >&6
16943else
16944 cat >conftest.$ac_ext <<_ACEOF
16945#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016946/* confdefs.h. */
16947_ACEOF
16948cat confdefs.h >>conftest.$ac_ext
16949cat >>conftest.$ac_ext <<_ACEOF
16950/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016951/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016952 which can conflict with char shl_load (); below.
16953 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16954 <limits.h> exists even on freestanding compilers. */
16955#ifdef __STDC__
16956# include <limits.h>
16957#else
16958# include <assert.h>
16959#endif
John Criswell47fdd832003-07-14 16:52:07 +000016960/* Override any gcc2 internal prototype to avoid an error. */
16961#ifdef __cplusplus
16962extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000016963{
John Criswell47fdd832003-07-14 16:52:07 +000016964#endif
16965/* We use char because int might match the return type of a gcc2
16966 builtin and then its argument prototype would still apply. */
16967char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000016968/* The GNU C library defines this for functions which it implements
16969 to always fail with ENOSYS. Some functions are actually named
16970 something starting with __ and the normal name is an alias. */
16971#if defined (__stub_shl_load) || defined (__stub___shl_load)
16972choke me
16973#else
John Criswell0c38eaf2003-09-10 15:17:25 +000016974char (*f) () = shl_load;
16975#endif
16976#ifdef __cplusplus
16977}
John Criswell47fdd832003-07-14 16:52:07 +000016978#endif
16979
John Criswell0c38eaf2003-09-10 15:17:25 +000016980int
16981main ()
16982{
16983return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000016984 ;
16985 return 0;
16986}
16987_ACEOF
16988rm -f conftest.$ac_objext conftest$ac_exeext
16989if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16990 (eval $ac_link) 2>&5
16991 ac_status=$?
16992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993 (exit $ac_status); } &&
16994 { ac_try='test -s conftest$ac_exeext'
16995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16996 (eval $ac_try) 2>&5
16997 ac_status=$?
16998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16999 (exit $ac_status); }; }; then
17000 ac_cv_func_shl_load=yes
17001else
17002 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017003sed 's/^/| /' conftest.$ac_ext >&5
17004
John Criswell47fdd832003-07-14 16:52:07 +000017005ac_cv_func_shl_load=no
17006fi
17007rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17008fi
17009echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17010echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17011if test $ac_cv_func_shl_load = yes; then
17012 lt_cv_dlopen="shl_load"
17013else
17014 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17015echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17016if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17017 echo $ECHO_N "(cached) $ECHO_C" >&6
17018else
17019 ac_check_lib_save_LIBS=$LIBS
17020LIBS="-ldld $LIBS"
17021cat >conftest.$ac_ext <<_ACEOF
17022#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017023/* confdefs.h. */
17024_ACEOF
17025cat confdefs.h >>conftest.$ac_ext
17026cat >>conftest.$ac_ext <<_ACEOF
17027/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017028
17029/* Override any gcc2 internal prototype to avoid an error. */
17030#ifdef __cplusplus
17031extern "C"
17032#endif
17033/* We use char because int might match the return type of a gcc2
17034 builtin and then its argument prototype would still apply. */
17035char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017036int
17037main ()
17038{
17039shl_load ();
17040 ;
17041 return 0;
17042}
17043_ACEOF
17044rm -f conftest.$ac_objext conftest$ac_exeext
17045if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17046 (eval $ac_link) 2>&5
17047 ac_status=$?
17048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17049 (exit $ac_status); } &&
17050 { ac_try='test -s conftest$ac_exeext'
17051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17052 (eval $ac_try) 2>&5
17053 ac_status=$?
17054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17055 (exit $ac_status); }; }; then
17056 ac_cv_lib_dld_shl_load=yes
17057else
17058 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017059sed 's/^/| /' conftest.$ac_ext >&5
17060
John Criswell47fdd832003-07-14 16:52:07 +000017061ac_cv_lib_dld_shl_load=no
17062fi
17063rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17064LIBS=$ac_check_lib_save_LIBS
17065fi
17066echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17067echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17068if test $ac_cv_lib_dld_shl_load = yes; then
17069 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17070else
17071 echo "$as_me:$LINENO: checking for dlopen" >&5
17072echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17073if test "${ac_cv_func_dlopen+set}" = set; then
17074 echo $ECHO_N "(cached) $ECHO_C" >&6
17075else
17076 cat >conftest.$ac_ext <<_ACEOF
17077#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017078/* confdefs.h. */
17079_ACEOF
17080cat confdefs.h >>conftest.$ac_ext
17081cat >>conftest.$ac_ext <<_ACEOF
17082/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017083/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017084 which can conflict with char dlopen (); below.
17085 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17086 <limits.h> exists even on freestanding compilers. */
17087#ifdef __STDC__
17088# include <limits.h>
17089#else
17090# include <assert.h>
17091#endif
John Criswell47fdd832003-07-14 16:52:07 +000017092/* Override any gcc2 internal prototype to avoid an error. */
17093#ifdef __cplusplus
17094extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017095{
John Criswell47fdd832003-07-14 16:52:07 +000017096#endif
17097/* We use char because int might match the return type of a gcc2
17098 builtin and then its argument prototype would still apply. */
17099char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017100/* The GNU C library defines this for functions which it implements
17101 to always fail with ENOSYS. Some functions are actually named
17102 something starting with __ and the normal name is an alias. */
17103#if defined (__stub_dlopen) || defined (__stub___dlopen)
17104choke me
17105#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017106char (*f) () = dlopen;
17107#endif
17108#ifdef __cplusplus
17109}
John Criswell47fdd832003-07-14 16:52:07 +000017110#endif
17111
John Criswell0c38eaf2003-09-10 15:17:25 +000017112int
17113main ()
17114{
17115return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000017116 ;
17117 return 0;
17118}
17119_ACEOF
17120rm -f conftest.$ac_objext conftest$ac_exeext
17121if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17122 (eval $ac_link) 2>&5
17123 ac_status=$?
17124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17125 (exit $ac_status); } &&
17126 { ac_try='test -s conftest$ac_exeext'
17127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17128 (eval $ac_try) 2>&5
17129 ac_status=$?
17130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17131 (exit $ac_status); }; }; then
17132 ac_cv_func_dlopen=yes
17133else
17134 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017135sed 's/^/| /' conftest.$ac_ext >&5
17136
John Criswell47fdd832003-07-14 16:52:07 +000017137ac_cv_func_dlopen=no
17138fi
17139rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17140fi
17141echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17142echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17143if test $ac_cv_func_dlopen = yes; then
17144 lt_cv_dlopen="dlopen"
17145else
17146 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17147echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17148if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17149 echo $ECHO_N "(cached) $ECHO_C" >&6
17150else
17151 ac_check_lib_save_LIBS=$LIBS
17152LIBS="-ldl $LIBS"
17153cat >conftest.$ac_ext <<_ACEOF
17154#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017155/* confdefs.h. */
17156_ACEOF
17157cat confdefs.h >>conftest.$ac_ext
17158cat >>conftest.$ac_ext <<_ACEOF
17159/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017160
17161/* Override any gcc2 internal prototype to avoid an error. */
17162#ifdef __cplusplus
17163extern "C"
17164#endif
17165/* We use char because int might match the return type of a gcc2
17166 builtin and then its argument prototype would still apply. */
17167char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017168int
17169main ()
17170{
17171dlopen ();
17172 ;
17173 return 0;
17174}
17175_ACEOF
17176rm -f conftest.$ac_objext conftest$ac_exeext
17177if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17178 (eval $ac_link) 2>&5
17179 ac_status=$?
17180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17181 (exit $ac_status); } &&
17182 { ac_try='test -s conftest$ac_exeext'
17183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17184 (eval $ac_try) 2>&5
17185 ac_status=$?
17186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17187 (exit $ac_status); }; }; then
17188 ac_cv_lib_dl_dlopen=yes
17189else
17190 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017191sed 's/^/| /' conftest.$ac_ext >&5
17192
John Criswell47fdd832003-07-14 16:52:07 +000017193ac_cv_lib_dl_dlopen=no
17194fi
17195rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17196LIBS=$ac_check_lib_save_LIBS
17197fi
17198echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17199echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17200if test $ac_cv_lib_dl_dlopen = yes; then
17201 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17202else
17203 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17204echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17205if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17206 echo $ECHO_N "(cached) $ECHO_C" >&6
17207else
17208 ac_check_lib_save_LIBS=$LIBS
17209LIBS="-lsvld $LIBS"
17210cat >conftest.$ac_ext <<_ACEOF
17211#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017212/* confdefs.h. */
17213_ACEOF
17214cat confdefs.h >>conftest.$ac_ext
17215cat >>conftest.$ac_ext <<_ACEOF
17216/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017217
17218/* Override any gcc2 internal prototype to avoid an error. */
17219#ifdef __cplusplus
17220extern "C"
17221#endif
17222/* We use char because int might match the return type of a gcc2
17223 builtin and then its argument prototype would still apply. */
17224char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017225int
17226main ()
17227{
17228dlopen ();
17229 ;
17230 return 0;
17231}
17232_ACEOF
17233rm -f conftest.$ac_objext conftest$ac_exeext
17234if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17235 (eval $ac_link) 2>&5
17236 ac_status=$?
17237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17238 (exit $ac_status); } &&
17239 { ac_try='test -s conftest$ac_exeext'
17240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17241 (eval $ac_try) 2>&5
17242 ac_status=$?
17243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17244 (exit $ac_status); }; }; then
17245 ac_cv_lib_svld_dlopen=yes
17246else
17247 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017248sed 's/^/| /' conftest.$ac_ext >&5
17249
John Criswell47fdd832003-07-14 16:52:07 +000017250ac_cv_lib_svld_dlopen=no
17251fi
17252rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17253LIBS=$ac_check_lib_save_LIBS
17254fi
17255echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17256echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17257if test $ac_cv_lib_svld_dlopen = yes; then
17258 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17259else
17260 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17261echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17262if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17263 echo $ECHO_N "(cached) $ECHO_C" >&6
17264else
17265 ac_check_lib_save_LIBS=$LIBS
17266LIBS="-ldld $LIBS"
17267cat >conftest.$ac_ext <<_ACEOF
17268#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017269/* confdefs.h. */
17270_ACEOF
17271cat confdefs.h >>conftest.$ac_ext
17272cat >>conftest.$ac_ext <<_ACEOF
17273/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017274
17275/* Override any gcc2 internal prototype to avoid an error. */
17276#ifdef __cplusplus
17277extern "C"
17278#endif
17279/* We use char because int might match the return type of a gcc2
17280 builtin and then its argument prototype would still apply. */
17281char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000017282int
17283main ()
17284{
17285dld_link ();
17286 ;
17287 return 0;
17288}
17289_ACEOF
17290rm -f conftest.$ac_objext conftest$ac_exeext
17291if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17292 (eval $ac_link) 2>&5
17293 ac_status=$?
17294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17295 (exit $ac_status); } &&
17296 { ac_try='test -s conftest$ac_exeext'
17297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17298 (eval $ac_try) 2>&5
17299 ac_status=$?
17300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17301 (exit $ac_status); }; }; then
17302 ac_cv_lib_dld_dld_link=yes
17303else
17304 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017305sed 's/^/| /' conftest.$ac_ext >&5
17306
John Criswell47fdd832003-07-14 16:52:07 +000017307ac_cv_lib_dld_dld_link=no
17308fi
17309rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17310LIBS=$ac_check_lib_save_LIBS
17311fi
17312echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17313echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17314if test $ac_cv_lib_dld_dld_link = yes; then
17315 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17316fi
17317
17318
17319fi
17320
17321
17322fi
17323
17324
17325fi
17326
17327
17328fi
17329
17330
17331fi
17332
17333 ;;
17334 esac
17335
17336 if test "x$lt_cv_dlopen" != xno; then
17337 enable_dlopen=yes
17338 else
17339 enable_dlopen=no
17340 fi
17341
17342 case $lt_cv_dlopen in
17343 dlopen)
17344 save_CPPFLAGS="$CPPFLAGS"
17345 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17346
17347 save_LDFLAGS="$LDFLAGS"
17348 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17349
17350 save_LIBS="$LIBS"
17351 LIBS="$lt_cv_dlopen_libs $LIBS"
17352
17353 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17354echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17355if test "${lt_cv_dlopen_self+set}" = set; then
17356 echo $ECHO_N "(cached) $ECHO_C" >&6
17357else
17358 if test "$cross_compiling" = yes; then :
17359 lt_cv_dlopen_self=cross
17360else
17361 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17362 lt_status=$lt_dlunknown
17363 cat > conftest.$ac_ext <<EOF
John Criswellc66bbd52003-09-29 21:35:32 +000017364#line 17364 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017365#include "confdefs.h"
17366
17367#if HAVE_DLFCN_H
17368#include <dlfcn.h>
17369#endif
17370
17371#include <stdio.h>
17372
17373#ifdef RTLD_GLOBAL
17374# define LT_DLGLOBAL RTLD_GLOBAL
17375#else
17376# ifdef DL_GLOBAL
17377# define LT_DLGLOBAL DL_GLOBAL
17378# else
17379# define LT_DLGLOBAL 0
17380# endif
17381#endif
17382
17383/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17384 find out it does not work in some platform. */
17385#ifndef LT_DLLAZY_OR_NOW
17386# ifdef RTLD_LAZY
17387# define LT_DLLAZY_OR_NOW RTLD_LAZY
17388# else
17389# ifdef DL_LAZY
17390# define LT_DLLAZY_OR_NOW DL_LAZY
17391# else
17392# ifdef RTLD_NOW
17393# define LT_DLLAZY_OR_NOW RTLD_NOW
17394# else
17395# ifdef DL_NOW
17396# define LT_DLLAZY_OR_NOW DL_NOW
17397# else
17398# define LT_DLLAZY_OR_NOW 0
17399# endif
17400# endif
17401# endif
17402# endif
17403#endif
17404
17405#ifdef __cplusplus
17406extern "C" void exit (int);
17407#endif
17408
17409void fnord() { int i=42;}
17410int main ()
17411{
17412 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17413 int status = $lt_dlunknown;
17414
17415 if (self)
17416 {
17417 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17418 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17419 /* dlclose (self); */
17420 }
17421
17422 exit (status);
17423}
17424EOF
17425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17426 (eval $ac_link) 2>&5
17427 ac_status=$?
17428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17429 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17430 (./conftest; exit; ) 2>/dev/null
17431 lt_status=$?
17432 case x$lt_status in
17433 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17434 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17435 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17436 esac
17437 else :
17438 # compilation failed
17439 lt_cv_dlopen_self=no
17440 fi
17441fi
17442rm -fr conftest*
17443
17444
17445fi
17446echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17447echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17448
17449 if test "x$lt_cv_dlopen_self" = xyes; then
17450 LDFLAGS="$LDFLAGS $link_static_flag"
17451 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17452echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17453if test "${lt_cv_dlopen_self_static+set}" = set; then
17454 echo $ECHO_N "(cached) $ECHO_C" >&6
17455else
17456 if test "$cross_compiling" = yes; then :
17457 lt_cv_dlopen_self_static=cross
17458else
17459 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17460 lt_status=$lt_dlunknown
17461 cat > conftest.$ac_ext <<EOF
John Criswellc66bbd52003-09-29 21:35:32 +000017462#line 17462 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017463#include "confdefs.h"
17464
17465#if HAVE_DLFCN_H
17466#include <dlfcn.h>
17467#endif
17468
17469#include <stdio.h>
17470
17471#ifdef RTLD_GLOBAL
17472# define LT_DLGLOBAL RTLD_GLOBAL
17473#else
17474# ifdef DL_GLOBAL
17475# define LT_DLGLOBAL DL_GLOBAL
17476# else
17477# define LT_DLGLOBAL 0
17478# endif
17479#endif
17480
17481/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17482 find out it does not work in some platform. */
17483#ifndef LT_DLLAZY_OR_NOW
17484# ifdef RTLD_LAZY
17485# define LT_DLLAZY_OR_NOW RTLD_LAZY
17486# else
17487# ifdef DL_LAZY
17488# define LT_DLLAZY_OR_NOW DL_LAZY
17489# else
17490# ifdef RTLD_NOW
17491# define LT_DLLAZY_OR_NOW RTLD_NOW
17492# else
17493# ifdef DL_NOW
17494# define LT_DLLAZY_OR_NOW DL_NOW
17495# else
17496# define LT_DLLAZY_OR_NOW 0
17497# endif
17498# endif
17499# endif
17500# endif
17501#endif
17502
17503#ifdef __cplusplus
17504extern "C" void exit (int);
17505#endif
17506
17507void fnord() { int i=42;}
17508int main ()
17509{
17510 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17511 int status = $lt_dlunknown;
17512
17513 if (self)
17514 {
17515 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17516 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17517 /* dlclose (self); */
17518 }
17519
17520 exit (status);
17521}
17522EOF
17523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17524 (eval $ac_link) 2>&5
17525 ac_status=$?
17526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17527 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17528 (./conftest; exit; ) 2>/dev/null
17529 lt_status=$?
17530 case x$lt_status in
17531 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17532 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17533 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17534 esac
17535 else :
17536 # compilation failed
17537 lt_cv_dlopen_self_static=no
17538 fi
17539fi
17540rm -fr conftest*
17541
17542
17543fi
17544echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17545echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17546 fi
17547
17548 CPPFLAGS="$save_CPPFLAGS"
17549 LDFLAGS="$save_LDFLAGS"
17550 LIBS="$save_LIBS"
17551 ;;
17552 esac
17553
17554 case $lt_cv_dlopen_self in
17555 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17556 *) enable_dlopen_self=unknown ;;
17557 esac
17558
17559 case $lt_cv_dlopen_self_static in
17560 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17561 *) enable_dlopen_self_static=unknown ;;
17562 esac
17563fi
17564
17565
17566# The else clause should only fire when bootstrapping the
17567# libtool distribution, otherwise you forgot to ship ltmain.sh
17568# with your package, and you will get complaints that there are
17569# no rules to generate ltmain.sh.
17570if test -f "$ltmain"; then
17571 # See if we are running on zsh, and set the options which allow our commands through
17572 # without removal of \ escapes.
17573 if test -n "${ZSH_VERSION+set}" ; then
17574 setopt NO_GLOB_SUBST
17575 fi
17576 # Now quote all the things that may contain metacharacters while being
17577 # careful not to overquote the AC_SUBSTed values. We take copies of the
17578 # variables and quote the copies for generation of the libtool script.
17579 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17580 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17581 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17582 deplibs_check_method reload_flag reload_cmds need_locks \
17583 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17584 lt_cv_sys_global_symbol_to_c_name_address \
17585 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17586 old_postinstall_cmds old_postuninstall_cmds \
17587 compiler_GCJ \
17588 CC_GCJ \
17589 LD_GCJ \
17590 lt_prog_compiler_wl_GCJ \
17591 lt_prog_compiler_pic_GCJ \
17592 lt_prog_compiler_static_GCJ \
17593 lt_prog_compiler_no_builtin_flag_GCJ \
17594 export_dynamic_flag_spec_GCJ \
17595 thread_safe_flag_spec_GCJ \
17596 whole_archive_flag_spec_GCJ \
17597 enable_shared_with_static_runtimes_GCJ \
17598 old_archive_cmds_GCJ \
17599 old_archive_from_new_cmds_GCJ \
17600 predep_objects_GCJ \
17601 postdep_objects_GCJ \
17602 predeps_GCJ \
17603 postdeps_GCJ \
17604 compiler_lib_search_path_GCJ \
17605 archive_cmds_GCJ \
17606 archive_expsym_cmds_GCJ \
17607 postinstall_cmds_GCJ \
17608 postuninstall_cmds_GCJ \
17609 old_archive_from_expsyms_cmds_GCJ \
17610 allow_undefined_flag_GCJ \
17611 no_undefined_flag_GCJ \
17612 export_symbols_cmds_GCJ \
17613 hardcode_libdir_flag_spec_GCJ \
17614 hardcode_libdir_flag_spec_ld_GCJ \
17615 hardcode_libdir_separator_GCJ \
17616 hardcode_automatic_GCJ \
17617 module_cmds_GCJ \
17618 module_expsym_cmds_GCJ \
17619 lt_cv_prog_compiler_c_o_GCJ \
17620 exclude_expsyms_GCJ \
17621 include_expsyms_GCJ; do
17622
17623 case $var in
17624 old_archive_cmds_GCJ | \
17625 old_archive_from_new_cmds_GCJ | \
17626 archive_cmds_GCJ | \
17627 archive_expsym_cmds_GCJ | \
17628 module_cmds_GCJ | \
17629 module_expsym_cmds_GCJ | \
17630 old_archive_from_expsyms_cmds_GCJ | \
17631 export_symbols_cmds_GCJ | \
17632 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17633 postinstall_cmds | postuninstall_cmds | \
17634 old_postinstall_cmds | old_postuninstall_cmds | \
17635 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17636 # Double-quote double-evaled strings.
17637 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17638 ;;
17639 *)
17640 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17641 ;;
17642 esac
17643 done
17644
17645 case $lt_echo in
17646 *'\$0 --fallback-echo"')
17647 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17648 ;;
17649 esac
17650
17651cfgfile="$ofile"
17652
17653 cat <<__EOF__ >> "$cfgfile"
17654# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17655
17656# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17657
17658# Shell to use when invoking shell scripts.
17659SHELL=$lt_SHELL
17660
17661# Whether or not to build shared libraries.
17662build_libtool_libs=$enable_shared
17663
17664# Whether or not to build static libraries.
17665build_old_libs=$enable_static
17666
17667# Whether or not to add -lc for building shared libraries.
17668build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17669
17670# Whether or not to disallow shared libs when runtime libs are static
17671allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17672
17673# Whether or not to optimize for fast installation.
17674fast_install=$enable_fast_install
17675
17676# The host system.
17677host_alias=$host_alias
17678host=$host
17679
17680# An echo program that does not interpret backslashes.
17681echo=$lt_echo
17682
17683# The archiver.
17684AR=$lt_AR
17685AR_FLAGS=$lt_AR_FLAGS
17686
17687# A C compiler.
17688LTCC=$lt_LTCC
17689
17690# A language-specific compiler.
17691CC=$lt_compiler_GCJ
17692
17693# Is the compiler the GNU C compiler?
17694with_gcc=$GCC_GCJ
17695
17696# An ERE matcher.
17697EGREP=$lt_EGREP
17698
17699# The linker used to build libraries.
17700LD=$lt_LD_GCJ
17701
17702# Whether we need hard or soft links.
17703LN_S=$lt_LN_S
17704
17705# A BSD-compatible nm program.
17706NM=$lt_NM
17707
17708# A symbol stripping program
17709STRIP=$STRIP
17710
17711# Used to examine libraries when file_magic_cmd begins "file"
17712MAGIC_CMD=$MAGIC_CMD
17713
17714# Used on cygwin: DLL creation program.
17715DLLTOOL="$DLLTOOL"
17716
17717# Used on cygwin: object dumper.
17718OBJDUMP="$OBJDUMP"
17719
17720# Used on cygwin: assembler.
17721AS="$AS"
17722
17723# The name of the directory that contains temporary libtool files.
17724objdir=$objdir
17725
17726# How to create reloadable object files.
17727reload_flag=$lt_reload_flag
17728reload_cmds=$lt_reload_cmds
17729
17730# How to pass a linker flag through the compiler.
17731wl=$lt_lt_prog_compiler_wl_GCJ
17732
17733# Object file suffix (normally "o").
17734objext="$ac_objext"
17735
17736# Old archive suffix (normally "a").
17737libext="$libext"
17738
17739# Shared library suffix (normally ".so").
17740shrext='$shrext'
17741
17742# Executable file suffix (normally "").
17743exeext="$exeext"
17744
17745# Additional compiler flags for building library objects.
17746pic_flag=$lt_lt_prog_compiler_pic_GCJ
17747pic_mode=$pic_mode
17748
17749# What is the maximum length of a command?
17750max_cmd_len=$lt_cv_sys_max_cmd_len
17751
17752# Does compiler simultaneously support -c and -o options?
17753compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17754
17755# Must we lock files when doing compilation ?
17756need_locks=$lt_need_locks
17757
17758# Do we need the lib prefix for modules?
17759need_lib_prefix=$need_lib_prefix
17760
17761# Do we need a version for libraries?
17762need_version=$need_version
17763
17764# Whether dlopen is supported.
17765dlopen_support=$enable_dlopen
17766
17767# Whether dlopen of programs is supported.
17768dlopen_self=$enable_dlopen_self
17769
17770# Whether dlopen of statically linked programs is supported.
17771dlopen_self_static=$enable_dlopen_self_static
17772
17773# Compiler flag to prevent dynamic linking.
17774link_static_flag=$lt_lt_prog_compiler_static_GCJ
17775
17776# Compiler flag to turn off builtin functions.
17777no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17778
17779# Compiler flag to allow reflexive dlopens.
17780export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17781
17782# Compiler flag to generate shared objects directly from archives.
17783whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17784
17785# Compiler flag to generate thread-safe objects.
17786thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17787
17788# Library versioning type.
17789version_type=$version_type
17790
17791# Format of library name prefix.
17792libname_spec=$lt_libname_spec
17793
17794# List of archive names. First name is the real one, the rest are links.
17795# The last name is the one that the linker finds with -lNAME.
17796library_names_spec=$lt_library_names_spec
17797
17798# The coded name of the library, if different from the real name.
17799soname_spec=$lt_soname_spec
17800
17801# Commands used to build and install an old-style archive.
17802RANLIB=$lt_RANLIB
17803old_archive_cmds=$lt_old_archive_cmds_GCJ
17804old_postinstall_cmds=$lt_old_postinstall_cmds
17805old_postuninstall_cmds=$lt_old_postuninstall_cmds
17806
17807# Create an old-style archive from a shared archive.
17808old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17809
17810# Create a temporary old-style archive to link instead of a shared archive.
17811old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17812
17813# Commands used to build and install a shared archive.
17814archive_cmds=$lt_archive_cmds_GCJ
17815archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17816postinstall_cmds=$lt_postinstall_cmds
17817postuninstall_cmds=$lt_postuninstall_cmds
17818
17819# Commands used to build a loadable module (assumed same as above if empty)
17820module_cmds=$lt_module_cmds_GCJ
17821module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17822
17823# Commands to strip libraries.
17824old_striplib=$lt_old_striplib
17825striplib=$lt_striplib
17826
17827# Dependencies to place before the objects being linked to create a
17828# shared library.
17829predep_objects=$lt_predep_objects_GCJ
17830
17831# Dependencies to place after the objects being linked to create a
17832# shared library.
17833postdep_objects=$lt_postdep_objects_GCJ
17834
17835# Dependencies to place before the objects being linked to create a
17836# shared library.
17837predeps=$lt_predeps_GCJ
17838
17839# Dependencies to place after the objects being linked to create a
17840# shared library.
17841postdeps=$lt_postdeps_GCJ
17842
17843# The library search path used internally by the compiler when linking
17844# a shared library.
17845compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17846
17847# Method to check whether dependent libraries are shared objects.
17848deplibs_check_method=$lt_deplibs_check_method
17849
17850# Command to use when deplibs_check_method == file_magic.
17851file_magic_cmd=$lt_file_magic_cmd
17852
17853# Flag that allows shared libraries with undefined symbols to be built.
17854allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17855
17856# Flag that forces no undefined symbols.
17857no_undefined_flag=$lt_no_undefined_flag_GCJ
17858
17859# Commands used to finish a libtool library installation in a directory.
17860finish_cmds=$lt_finish_cmds
17861
17862# Same as above, but a single script fragment to be evaled but not shown.
17863finish_eval=$lt_finish_eval
17864
17865# Take the output of nm and produce a listing of raw symbols and C names.
17866global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17867
17868# Transform the output of nm in a proper C declaration
17869global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17870
17871# Transform the output of nm in a C name address pair
17872global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17873
17874# This is the shared library runtime path variable.
17875runpath_var=$runpath_var
17876
17877# This is the shared library path variable.
17878shlibpath_var=$shlibpath_var
17879
17880# Is shlibpath searched before the hard-coded library search path?
17881shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17882
17883# How to hardcode a shared library path into an executable.
17884hardcode_action=$hardcode_action_GCJ
17885
17886# Whether we should hardcode library paths into libraries.
17887hardcode_into_libs=$hardcode_into_libs
17888
17889# Flag to hardcode \$libdir into a binary during linking.
17890# This must work even if \$libdir does not exist.
17891hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17892
17893# If ld is used when linking, flag to hardcode \$libdir into
17894# a binary during linking. This must work even if \$libdir does
17895# not exist.
17896hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17897
17898# Whether we need a single -rpath flag with a separated argument.
17899hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17900
17901# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17902# resulting binary.
17903hardcode_direct=$hardcode_direct_GCJ
17904
17905# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17906# resulting binary.
17907hardcode_minus_L=$hardcode_minus_L_GCJ
17908
17909# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17910# the resulting binary.
17911hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17912
17913# Set to yes if building a shared library automatically hardcodes DIR into the library
17914# and all subsequent libraries and executables linked against it.
17915hardcode_automatic=$hardcode_automatic_GCJ
17916
17917# Variables whose values should be saved in libtool wrapper scripts and
17918# restored at relink time.
17919variables_saved_for_relink="$variables_saved_for_relink"
17920
17921# Whether libtool must link a program against all its dependency libraries.
17922link_all_deplibs=$link_all_deplibs_GCJ
17923
17924# Compile-time system search path for libraries
17925sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17926
17927# Run-time system search path for libraries
17928sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17929
17930# Fix the shell variable \$srcfile for the compiler.
17931fix_srcfile_path="$fix_srcfile_path_GCJ"
17932
17933# Set to yes if exported symbols are required.
17934always_export_symbols=$always_export_symbols_GCJ
17935
17936# The commands to list exported symbols.
17937export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17938
17939# The commands to extract the exported symbol list from a shared archive.
17940extract_expsyms_cmds=$lt_extract_expsyms_cmds
17941
17942# Symbols that should not be listed in the preloaded symbols.
17943exclude_expsyms=$lt_exclude_expsyms_GCJ
17944
17945# Symbols that must always be exported.
17946include_expsyms=$lt_include_expsyms_GCJ
17947
17948# ### END LIBTOOL TAG CONFIG: $tagname
17949
17950__EOF__
17951
17952
17953else
17954 # If there is no Makefile yet, we rely on a make rule to execute
17955 # `config.status --recheck' to rerun these tests and create the
17956 # libtool script then.
17957 test -f Makefile && make "$ltmain"
17958fi
17959
17960
17961ac_ext=c
17962ac_cpp='$CPP $CPPFLAGS'
17963ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17964ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17965ac_compiler_gnu=$ac_cv_c_compiler_gnu
17966
17967CC="$lt_save_CC"
17968
17969 else
17970 tagname=""
17971 fi
17972 ;;
17973
17974 RC)
17975
17976
17977
17978# Source file extension for RC test sources.
17979ac_ext=rc
17980
17981# Object file extension for compiled RC test sources.
17982objext=o
17983objext_RC=$objext
17984
17985# Code to be used in simple compile tests
17986lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17987
17988# Code to be used in simple link tests
17989lt_simple_link_test_code="$lt_simple_compile_test_code"
17990
17991# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17992
17993# If no C compiler was specified, use CC.
17994LTCC=${LTCC-"$CC"}
17995
17996# Allow CC to be a program name with arguments.
17997compiler=$CC
17998
17999
18000# Allow CC to be a program name with arguments.
18001lt_save_CC="$CC"
18002CC=${RC-"windres"}
18003compiler=$CC
18004compiler_RC=$CC
18005lt_cv_prog_compiler_c_o_RC=yes
18006
18007# The else clause should only fire when bootstrapping the
18008# libtool distribution, otherwise you forgot to ship ltmain.sh
18009# with your package, and you will get complaints that there are
18010# no rules to generate ltmain.sh.
18011if test -f "$ltmain"; then
18012 # See if we are running on zsh, and set the options which allow our commands through
18013 # without removal of \ escapes.
18014 if test -n "${ZSH_VERSION+set}" ; then
18015 setopt NO_GLOB_SUBST
18016 fi
18017 # Now quote all the things that may contain metacharacters while being
18018 # careful not to overquote the AC_SUBSTed values. We take copies of the
18019 # variables and quote the copies for generation of the libtool script.
18020 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18021 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18022 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18023 deplibs_check_method reload_flag reload_cmds need_locks \
18024 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18025 lt_cv_sys_global_symbol_to_c_name_address \
18026 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18027 old_postinstall_cmds old_postuninstall_cmds \
18028 compiler_RC \
18029 CC_RC \
18030 LD_RC \
18031 lt_prog_compiler_wl_RC \
18032 lt_prog_compiler_pic_RC \
18033 lt_prog_compiler_static_RC \
18034 lt_prog_compiler_no_builtin_flag_RC \
18035 export_dynamic_flag_spec_RC \
18036 thread_safe_flag_spec_RC \
18037 whole_archive_flag_spec_RC \
18038 enable_shared_with_static_runtimes_RC \
18039 old_archive_cmds_RC \
18040 old_archive_from_new_cmds_RC \
18041 predep_objects_RC \
18042 postdep_objects_RC \
18043 predeps_RC \
18044 postdeps_RC \
18045 compiler_lib_search_path_RC \
18046 archive_cmds_RC \
18047 archive_expsym_cmds_RC \
18048 postinstall_cmds_RC \
18049 postuninstall_cmds_RC \
18050 old_archive_from_expsyms_cmds_RC \
18051 allow_undefined_flag_RC \
18052 no_undefined_flag_RC \
18053 export_symbols_cmds_RC \
18054 hardcode_libdir_flag_spec_RC \
18055 hardcode_libdir_flag_spec_ld_RC \
18056 hardcode_libdir_separator_RC \
18057 hardcode_automatic_RC \
18058 module_cmds_RC \
18059 module_expsym_cmds_RC \
18060 lt_cv_prog_compiler_c_o_RC \
18061 exclude_expsyms_RC \
18062 include_expsyms_RC; do
18063
18064 case $var in
18065 old_archive_cmds_RC | \
18066 old_archive_from_new_cmds_RC | \
18067 archive_cmds_RC | \
18068 archive_expsym_cmds_RC | \
18069 module_cmds_RC | \
18070 module_expsym_cmds_RC | \
18071 old_archive_from_expsyms_cmds_RC | \
18072 export_symbols_cmds_RC | \
18073 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18074 postinstall_cmds | postuninstall_cmds | \
18075 old_postinstall_cmds | old_postuninstall_cmds | \
18076 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18077 # Double-quote double-evaled strings.
18078 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18079 ;;
18080 *)
18081 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18082 ;;
18083 esac
18084 done
18085
18086 case $lt_echo in
18087 *'\$0 --fallback-echo"')
18088 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18089 ;;
18090 esac
18091
18092cfgfile="$ofile"
18093
18094 cat <<__EOF__ >> "$cfgfile"
18095# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18096
18097# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18098
18099# Shell to use when invoking shell scripts.
18100SHELL=$lt_SHELL
18101
18102# Whether or not to build shared libraries.
18103build_libtool_libs=$enable_shared
18104
18105# Whether or not to build static libraries.
18106build_old_libs=$enable_static
18107
18108# Whether or not to add -lc for building shared libraries.
18109build_libtool_need_lc=$archive_cmds_need_lc_RC
18110
18111# Whether or not to disallow shared libs when runtime libs are static
18112allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18113
18114# Whether or not to optimize for fast installation.
18115fast_install=$enable_fast_install
18116
18117# The host system.
18118host_alias=$host_alias
18119host=$host
18120
18121# An echo program that does not interpret backslashes.
18122echo=$lt_echo
18123
18124# The archiver.
18125AR=$lt_AR
18126AR_FLAGS=$lt_AR_FLAGS
18127
18128# A C compiler.
18129LTCC=$lt_LTCC
18130
18131# A language-specific compiler.
18132CC=$lt_compiler_RC
18133
18134# Is the compiler the GNU C compiler?
18135with_gcc=$GCC_RC
18136
18137# An ERE matcher.
18138EGREP=$lt_EGREP
18139
18140# The linker used to build libraries.
18141LD=$lt_LD_RC
18142
18143# Whether we need hard or soft links.
18144LN_S=$lt_LN_S
18145
18146# A BSD-compatible nm program.
18147NM=$lt_NM
18148
18149# A symbol stripping program
18150STRIP=$STRIP
18151
18152# Used to examine libraries when file_magic_cmd begins "file"
18153MAGIC_CMD=$MAGIC_CMD
18154
18155# Used on cygwin: DLL creation program.
18156DLLTOOL="$DLLTOOL"
18157
18158# Used on cygwin: object dumper.
18159OBJDUMP="$OBJDUMP"
18160
18161# Used on cygwin: assembler.
18162AS="$AS"
18163
18164# The name of the directory that contains temporary libtool files.
18165objdir=$objdir
18166
18167# How to create reloadable object files.
18168reload_flag=$lt_reload_flag
18169reload_cmds=$lt_reload_cmds
18170
18171# How to pass a linker flag through the compiler.
18172wl=$lt_lt_prog_compiler_wl_RC
18173
18174# Object file suffix (normally "o").
18175objext="$ac_objext"
18176
18177# Old archive suffix (normally "a").
18178libext="$libext"
18179
18180# Shared library suffix (normally ".so").
18181shrext='$shrext'
18182
18183# Executable file suffix (normally "").
18184exeext="$exeext"
18185
18186# Additional compiler flags for building library objects.
18187pic_flag=$lt_lt_prog_compiler_pic_RC
18188pic_mode=$pic_mode
18189
18190# What is the maximum length of a command?
18191max_cmd_len=$lt_cv_sys_max_cmd_len
18192
18193# Does compiler simultaneously support -c and -o options?
18194compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18195
18196# Must we lock files when doing compilation ?
18197need_locks=$lt_need_locks
18198
18199# Do we need the lib prefix for modules?
18200need_lib_prefix=$need_lib_prefix
18201
18202# Do we need a version for libraries?
18203need_version=$need_version
18204
18205# Whether dlopen is supported.
18206dlopen_support=$enable_dlopen
18207
18208# Whether dlopen of programs is supported.
18209dlopen_self=$enable_dlopen_self
18210
18211# Whether dlopen of statically linked programs is supported.
18212dlopen_self_static=$enable_dlopen_self_static
18213
18214# Compiler flag to prevent dynamic linking.
18215link_static_flag=$lt_lt_prog_compiler_static_RC
18216
18217# Compiler flag to turn off builtin functions.
18218no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18219
18220# Compiler flag to allow reflexive dlopens.
18221export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18222
18223# Compiler flag to generate shared objects directly from archives.
18224whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18225
18226# Compiler flag to generate thread-safe objects.
18227thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18228
18229# Library versioning type.
18230version_type=$version_type
18231
18232# Format of library name prefix.
18233libname_spec=$lt_libname_spec
18234
18235# List of archive names. First name is the real one, the rest are links.
18236# The last name is the one that the linker finds with -lNAME.
18237library_names_spec=$lt_library_names_spec
18238
18239# The coded name of the library, if different from the real name.
18240soname_spec=$lt_soname_spec
18241
18242# Commands used to build and install an old-style archive.
18243RANLIB=$lt_RANLIB
18244old_archive_cmds=$lt_old_archive_cmds_RC
18245old_postinstall_cmds=$lt_old_postinstall_cmds
18246old_postuninstall_cmds=$lt_old_postuninstall_cmds
18247
18248# Create an old-style archive from a shared archive.
18249old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18250
18251# Create a temporary old-style archive to link instead of a shared archive.
18252old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18253
18254# Commands used to build and install a shared archive.
18255archive_cmds=$lt_archive_cmds_RC
18256archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18257postinstall_cmds=$lt_postinstall_cmds
18258postuninstall_cmds=$lt_postuninstall_cmds
18259
18260# Commands used to build a loadable module (assumed same as above if empty)
18261module_cmds=$lt_module_cmds_RC
18262module_expsym_cmds=$lt_module_expsym_cmds_RC
18263
18264# Commands to strip libraries.
18265old_striplib=$lt_old_striplib
18266striplib=$lt_striplib
18267
18268# Dependencies to place before the objects being linked to create a
18269# shared library.
18270predep_objects=$lt_predep_objects_RC
18271
18272# Dependencies to place after the objects being linked to create a
18273# shared library.
18274postdep_objects=$lt_postdep_objects_RC
18275
18276# Dependencies to place before the objects being linked to create a
18277# shared library.
18278predeps=$lt_predeps_RC
18279
18280# Dependencies to place after the objects being linked to create a
18281# shared library.
18282postdeps=$lt_postdeps_RC
18283
18284# The library search path used internally by the compiler when linking
18285# a shared library.
18286compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18287
18288# Method to check whether dependent libraries are shared objects.
18289deplibs_check_method=$lt_deplibs_check_method
18290
18291# Command to use when deplibs_check_method == file_magic.
18292file_magic_cmd=$lt_file_magic_cmd
18293
18294# Flag that allows shared libraries with undefined symbols to be built.
18295allow_undefined_flag=$lt_allow_undefined_flag_RC
18296
18297# Flag that forces no undefined symbols.
18298no_undefined_flag=$lt_no_undefined_flag_RC
18299
18300# Commands used to finish a libtool library installation in a directory.
18301finish_cmds=$lt_finish_cmds
18302
18303# Same as above, but a single script fragment to be evaled but not shown.
18304finish_eval=$lt_finish_eval
18305
18306# Take the output of nm and produce a listing of raw symbols and C names.
18307global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18308
18309# Transform the output of nm in a proper C declaration
18310global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18311
18312# Transform the output of nm in a C name address pair
18313global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18314
18315# This is the shared library runtime path variable.
18316runpath_var=$runpath_var
18317
18318# This is the shared library path variable.
18319shlibpath_var=$shlibpath_var
18320
18321# Is shlibpath searched before the hard-coded library search path?
18322shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18323
18324# How to hardcode a shared library path into an executable.
18325hardcode_action=$hardcode_action_RC
18326
18327# Whether we should hardcode library paths into libraries.
18328hardcode_into_libs=$hardcode_into_libs
18329
18330# Flag to hardcode \$libdir into a binary during linking.
18331# This must work even if \$libdir does not exist.
18332hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18333
18334# If ld is used when linking, flag to hardcode \$libdir into
18335# a binary during linking. This must work even if \$libdir does
18336# not exist.
18337hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18338
18339# Whether we need a single -rpath flag with a separated argument.
18340hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18341
18342# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18343# resulting binary.
18344hardcode_direct=$hardcode_direct_RC
18345
18346# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18347# resulting binary.
18348hardcode_minus_L=$hardcode_minus_L_RC
18349
18350# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18351# the resulting binary.
18352hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18353
18354# Set to yes if building a shared library automatically hardcodes DIR into the library
18355# and all subsequent libraries and executables linked against it.
18356hardcode_automatic=$hardcode_automatic_RC
18357
18358# Variables whose values should be saved in libtool wrapper scripts and
18359# restored at relink time.
18360variables_saved_for_relink="$variables_saved_for_relink"
18361
18362# Whether libtool must link a program against all its dependency libraries.
18363link_all_deplibs=$link_all_deplibs_RC
18364
18365# Compile-time system search path for libraries
18366sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18367
18368# Run-time system search path for libraries
18369sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18370
18371# Fix the shell variable \$srcfile for the compiler.
18372fix_srcfile_path="$fix_srcfile_path_RC"
18373
18374# Set to yes if exported symbols are required.
18375always_export_symbols=$always_export_symbols_RC
18376
18377# The commands to list exported symbols.
18378export_symbols_cmds=$lt_export_symbols_cmds_RC
18379
18380# The commands to extract the exported symbol list from a shared archive.
18381extract_expsyms_cmds=$lt_extract_expsyms_cmds
18382
18383# Symbols that should not be listed in the preloaded symbols.
18384exclude_expsyms=$lt_exclude_expsyms_RC
18385
18386# Symbols that must always be exported.
18387include_expsyms=$lt_include_expsyms_RC
18388
18389# ### END LIBTOOL TAG CONFIG: $tagname
18390
18391__EOF__
18392
18393
18394else
18395 # If there is no Makefile yet, we rely on a make rule to execute
18396 # `config.status --recheck' to rerun these tests and create the
18397 # libtool script then.
18398 test -f Makefile && make "$ltmain"
18399fi
18400
18401
18402ac_ext=c
18403ac_cpp='$CPP $CPPFLAGS'
18404ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18405ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18406ac_compiler_gnu=$ac_cv_c_compiler_gnu
18407
18408CC="$lt_save_CC"
18409
18410 ;;
18411
18412 *)
18413 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18414echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18415 { (exit 1); exit 1; }; }
18416 ;;
18417 esac
18418
18419 # Append the new tag name to the list of available tags.
18420 if test -n "$tagname" ; then
18421 available_tags="$available_tags $tagname"
18422 fi
18423 fi
18424 done
18425 IFS="$lt_save_ifs"
18426
18427 # Now substitute the updated list of available tags.
18428 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18429 mv "${ofile}T" "$ofile"
18430 chmod +x "$ofile"
18431 else
18432 rm -f "${ofile}T"
18433 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18434echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18435 { (exit 1); exit 1; }; }
18436 fi
18437fi
John Criswell7a73b802003-06-30 21:59:07 +000018438
18439
18440
18441# This can be used to rebuild libtool when needed
18442LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18443
18444# Always use our own libtool.
John Criswell8d4221e2003-07-23 16:52:50 +000018445LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000018446
18447# Prevent multiple expansion
18448
18449
18450
John Criswell47fdd832003-07-14 16:52:07 +000018451
18452
18453
18454
18455
18456
18457
18458
18459
18460
18461
18462
18463
18464
18465
18466
18467
18468
John Criswellde00db22003-08-25 16:49:54 +000018469# Extract the first word of "pwd", so it can be a program name with args.
18470set dummy pwd; ac_word=$2
18471echo "$as_me:$LINENO: checking for $ac_word" >&5
18472echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18473if test "${ac_cv_path_RPWD+set}" = set; then
18474 echo $ECHO_N "(cached) $ECHO_C" >&6
18475else
18476 case $RPWD in
18477 [\\/]* | ?:[\\/]*)
18478 ac_cv_path_RPWD="$RPWD" # Let the user override the test with a path.
18479 ;;
18480 *)
18481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18482for as_dir in $PATH
18483do
18484 IFS=$as_save_IFS
18485 test -z "$as_dir" && as_dir=.
18486 for ac_exec_ext in '' $ac_executable_extensions; do
18487 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18488 ac_cv_path_RPWD="$as_dir/$ac_word$ac_exec_ext"
18489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18490 break 2
18491 fi
18492done
18493done
18494
John Criswell39827c82003-09-23 15:28:52 +000018495 test -z "$ac_cv_path_RPWD" && ac_cv_path_RPWD="false"
John Criswellde00db22003-08-25 16:49:54 +000018496 ;;
18497esac
18498fi
18499RPWD=$ac_cv_path_RPWD
18500
18501if test -n "$RPWD"; then
18502 echo "$as_me:$LINENO: result: $RPWD" >&5
18503echo "${ECHO_T}$RPWD" >&6
18504else
18505 echo "$as_me:$LINENO: result: no" >&5
18506echo "${ECHO_T}no" >&6
18507fi
18508
John Criswell39827c82003-09-23 15:28:52 +000018509if test ${RPWD} = "false"
18510then
18511 { { echo "$as_me:$LINENO: error: pwd required but not found" >&5
18512echo "$as_me: error: pwd required but not found" >&2;}
18513 { (exit 1); exit 1; }; }
18514fi
18515
John Criswell7a73b802003-06-30 21:59:07 +000018516# Extract the first word of "ar", so it can be a program name with args.
18517set dummy ar; ac_word=$2
18518echo "$as_me:$LINENO: checking for $ac_word" >&5
18519echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18520if test "${ac_cv_path_AR+set}" = set; then
18521 echo $ECHO_N "(cached) $ECHO_C" >&6
18522else
18523 case $AR in
18524 [\\/]* | ?:[\\/]*)
18525 ac_cv_path_AR="$AR" # Let the user override the test with a path.
18526 ;;
18527 *)
18528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18529for as_dir in $PATH
18530do
18531 IFS=$as_save_IFS
18532 test -z "$as_dir" && as_dir=.
18533 for ac_exec_ext in '' $ac_executable_extensions; do
18534 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18535 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
18536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18537 break 2
18538 fi
18539done
18540done
18541
John Criswell39827c82003-09-23 15:28:52 +000018542 test -z "$ac_cv_path_AR" && ac_cv_path_AR="false"
John Criswell7a73b802003-06-30 21:59:07 +000018543 ;;
18544esac
18545fi
18546AR=$ac_cv_path_AR
18547
18548if test -n "$AR"; then
18549 echo "$as_me:$LINENO: result: $AR" >&5
18550echo "${ECHO_T}$AR" >&6
18551else
18552 echo "$as_me:$LINENO: result: no" >&5
18553echo "${ECHO_T}no" >&6
18554fi
18555
John Criswell39827c82003-09-23 15:28:52 +000018556if test ${AR} = "false"
18557then
18558 { { echo "$as_me:$LINENO: error: ar required but not found" >&5
18559echo "$as_me: error: ar required but not found" >&2;}
18560 { (exit 1); exit 1; }; }
18561fi
18562
John Criswell7a73b802003-06-30 21:59:07 +000018563# Extract the first word of "sed", so it can be a program name with args.
18564set dummy sed; ac_word=$2
18565echo "$as_me:$LINENO: checking for $ac_word" >&5
18566echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18567if test "${ac_cv_path_SED+set}" = set; then
18568 echo $ECHO_N "(cached) $ECHO_C" >&6
18569else
18570 case $SED in
18571 [\\/]* | ?:[\\/]*)
18572 ac_cv_path_SED="$SED" # Let the user override the test with a path.
18573 ;;
18574 *)
18575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18576for as_dir in $PATH
18577do
18578 IFS=$as_save_IFS
18579 test -z "$as_dir" && as_dir=.
18580 for ac_exec_ext in '' $ac_executable_extensions; do
18581 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18582 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
18583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18584 break 2
18585 fi
18586done
18587done
18588
John Criswell39827c82003-09-23 15:28:52 +000018589 test -z "$ac_cv_path_SED" && ac_cv_path_SED="false"
John Criswell7a73b802003-06-30 21:59:07 +000018590 ;;
18591esac
18592fi
18593SED=$ac_cv_path_SED
18594
18595if test -n "$SED"; then
18596 echo "$as_me:$LINENO: result: $SED" >&5
18597echo "${ECHO_T}$SED" >&6
18598else
18599 echo "$as_me:$LINENO: result: no" >&5
18600echo "${ECHO_T}no" >&6
18601fi
18602
John Criswell39827c82003-09-23 15:28:52 +000018603if test ${SED} = "false"
18604then
18605 { { echo "$as_me:$LINENO: error: sed required but not found" >&5
18606echo "$as_me: error: sed required but not found" >&2;}
18607 { (exit 1); exit 1; }; }
18608fi
18609
John Criswell7a73b802003-06-30 21:59:07 +000018610# Extract the first word of "rm", so it can be a program name with args.
18611set dummy rm; ac_word=$2
18612echo "$as_me:$LINENO: checking for $ac_word" >&5
18613echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18614if test "${ac_cv_path_RM+set}" = set; then
18615 echo $ECHO_N "(cached) $ECHO_C" >&6
18616else
18617 case $RM in
18618 [\\/]* | ?:[\\/]*)
18619 ac_cv_path_RM="$RM" # Let the user override the test with a path.
18620 ;;
18621 *)
18622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18623for as_dir in $PATH
18624do
18625 IFS=$as_save_IFS
18626 test -z "$as_dir" && as_dir=.
18627 for ac_exec_ext in '' $ac_executable_extensions; do
18628 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18629 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
18630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18631 break 2
18632 fi
18633done
18634done
18635
John Criswell39827c82003-09-23 15:28:52 +000018636 test -z "$ac_cv_path_RM" && ac_cv_path_RM="false"
John Criswell7a73b802003-06-30 21:59:07 +000018637 ;;
18638esac
18639fi
18640RM=$ac_cv_path_RM
18641
18642if test -n "$RM"; then
18643 echo "$as_me:$LINENO: result: $RM" >&5
18644echo "${ECHO_T}$RM" >&6
18645else
18646 echo "$as_me:$LINENO: result: no" >&5
18647echo "${ECHO_T}no" >&6
18648fi
18649
John Criswell39827c82003-09-23 15:28:52 +000018650if test ${RM} = "false"
18651then
18652 { { echo "$as_me:$LINENO: error: rm required but not found" >&5
18653echo "$as_me: error: rm required but not found" >&2;}
18654 { (exit 1); exit 1; }; }
18655fi
18656
John Criswell7a73b802003-06-30 21:59:07 +000018657# Extract the first word of "echo", so it can be a program name with args.
18658set dummy echo; ac_word=$2
18659echo "$as_me:$LINENO: checking for $ac_word" >&5
18660echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18661if test "${ac_cv_path_ECHO+set}" = set; then
18662 echo $ECHO_N "(cached) $ECHO_C" >&6
18663else
18664 case $ECHO in
18665 [\\/]* | ?:[\\/]*)
18666 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
18667 ;;
18668 *)
18669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18670for as_dir in $PATH
18671do
18672 IFS=$as_save_IFS
18673 test -z "$as_dir" && as_dir=.
18674 for ac_exec_ext in '' $ac_executable_extensions; do
18675 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18676 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
18677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18678 break 2
18679 fi
18680done
18681done
18682
John Criswell39827c82003-09-23 15:28:52 +000018683 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="false"
John Criswell7a73b802003-06-30 21:59:07 +000018684 ;;
18685esac
18686fi
18687ECHO=$ac_cv_path_ECHO
18688
18689if test -n "$ECHO"; then
18690 echo "$as_me:$LINENO: result: $ECHO" >&5
18691echo "${ECHO_T}$ECHO" >&6
18692else
18693 echo "$as_me:$LINENO: result: no" >&5
18694echo "${ECHO_T}no" >&6
18695fi
18696
John Criswell39827c82003-09-23 15:28:52 +000018697if test ${ECHO} = "false"
18698then
18699 { { echo "$as_me:$LINENO: error: echo required but not found" >&5
18700echo "$as_me: error: echo required but not found" >&2;}
18701 { (exit 1); exit 1; }; }
18702fi
18703
John Criswell7a73b802003-06-30 21:59:07 +000018704# Extract the first word of "mkdir", so it can be a program name with args.
18705set dummy mkdir; ac_word=$2
18706echo "$as_me:$LINENO: checking for $ac_word" >&5
18707echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18708if test "${ac_cv_path_MKDIR+set}" = set; then
18709 echo $ECHO_N "(cached) $ECHO_C" >&6
18710else
18711 case $MKDIR in
18712 [\\/]* | ?:[\\/]*)
18713 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
18714 ;;
18715 *)
18716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18717for as_dir in $PATH
18718do
18719 IFS=$as_save_IFS
18720 test -z "$as_dir" && as_dir=.
18721 for ac_exec_ext in '' $ac_executable_extensions; do
18722 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18723 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
18724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18725 break 2
18726 fi
18727done
18728done
18729
John Criswell39827c82003-09-23 15:28:52 +000018730 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="false"
John Criswell7a73b802003-06-30 21:59:07 +000018731 ;;
18732esac
18733fi
18734MKDIR=$ac_cv_path_MKDIR
18735
18736if test -n "$MKDIR"; then
18737 echo "$as_me:$LINENO: result: $MKDIR" >&5
18738echo "${ECHO_T}$MKDIR" >&6
18739else
18740 echo "$as_me:$LINENO: result: no" >&5
18741echo "${ECHO_T}no" >&6
18742fi
18743
John Criswell39827c82003-09-23 15:28:52 +000018744if test ${MKDIR} = "false"
18745then
18746 { { echo "$as_me:$LINENO: error: mkdir required but not found" >&5
18747echo "$as_me: error: mkdir required but not found" >&2;}
18748 { (exit 1); exit 1; }; }
18749fi
18750
John Criswell7a73b802003-06-30 21:59:07 +000018751# Extract the first word of "date", so it can be a program name with args.
18752set dummy date; ac_word=$2
18753echo "$as_me:$LINENO: checking for $ac_word" >&5
18754echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18755if test "${ac_cv_path_DATE+set}" = set; then
18756 echo $ECHO_N "(cached) $ECHO_C" >&6
18757else
18758 case $DATE in
18759 [\\/]* | ?:[\\/]*)
18760 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
18761 ;;
18762 *)
18763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18764for as_dir in $PATH
18765do
18766 IFS=$as_save_IFS
18767 test -z "$as_dir" && as_dir=.
18768 for ac_exec_ext in '' $ac_executable_extensions; do
18769 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18770 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
18771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18772 break 2
18773 fi
18774done
18775done
18776
John Criswell39827c82003-09-23 15:28:52 +000018777 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="false"
John Criswell7a73b802003-06-30 21:59:07 +000018778 ;;
18779esac
18780fi
18781DATE=$ac_cv_path_DATE
18782
18783if test -n "$DATE"; then
18784 echo "$as_me:$LINENO: result: $DATE" >&5
18785echo "${ECHO_T}$DATE" >&6
18786else
18787 echo "$as_me:$LINENO: result: no" >&5
18788echo "${ECHO_T}no" >&6
18789fi
18790
John Criswell39827c82003-09-23 15:28:52 +000018791if test ${DATE} = "false"
18792then
18793 { { echo "$as_me:$LINENO: error: date required but not found" >&5
18794echo "$as_me: error: date required but not found" >&2;}
18795 { (exit 1); exit 1; }; }
18796fi
18797
John Criswell7a73b802003-06-30 21:59:07 +000018798# Extract the first word of "mv", so it can be a program name with args.
18799set dummy mv; ac_word=$2
18800echo "$as_me:$LINENO: checking for $ac_word" >&5
18801echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18802if test "${ac_cv_path_MV+set}" = set; then
18803 echo $ECHO_N "(cached) $ECHO_C" >&6
18804else
18805 case $MV in
18806 [\\/]* | ?:[\\/]*)
18807 ac_cv_path_MV="$MV" # Let the user override the test with a path.
18808 ;;
18809 *)
18810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18811for as_dir in $PATH
18812do
18813 IFS=$as_save_IFS
18814 test -z "$as_dir" && as_dir=.
18815 for ac_exec_ext in '' $ac_executable_extensions; do
18816 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18817 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
18818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18819 break 2
18820 fi
18821done
18822done
18823
John Criswell39827c82003-09-23 15:28:52 +000018824 test -z "$ac_cv_path_MV" && ac_cv_path_MV="false"
John Criswell7a73b802003-06-30 21:59:07 +000018825 ;;
18826esac
18827fi
18828MV=$ac_cv_path_MV
18829
18830if test -n "$MV"; then
18831 echo "$as_me:$LINENO: result: $MV" >&5
18832echo "${ECHO_T}$MV" >&6
18833else
18834 echo "$as_me:$LINENO: result: no" >&5
18835echo "${ECHO_T}no" >&6
18836fi
18837
John Criswell39827c82003-09-23 15:28:52 +000018838if test ${MV} = "false"
18839then
18840 { { echo "$as_me:$LINENO: error: mv required but not found" >&5
18841echo "$as_me: error: mv required but not found" >&2;}
18842 { (exit 1); exit 1; }; }
18843fi
18844
John Criswell7a73b802003-06-30 21:59:07 +000018845# Extract the first word of "dot", so it can be a program name with args.
18846set dummy dot; ac_word=$2
18847echo "$as_me:$LINENO: checking for $ac_word" >&5
18848echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18849if test "${ac_cv_path_DOT+set}" = set; then
18850 echo $ECHO_N "(cached) $ECHO_C" >&6
18851else
18852 case $DOT in
18853 [\\/]* | ?:[\\/]*)
18854 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18855 ;;
18856 *)
18857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18858for as_dir in $PATH
18859do
18860 IFS=$as_save_IFS
18861 test -z "$as_dir" && as_dir=.
18862 for ac_exec_ext in '' $ac_executable_extensions; do
18863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18864 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18866 break 2
18867 fi
18868done
18869done
18870
John Criswell39827c82003-09-23 15:28:52 +000018871 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="false"
John Criswell7a73b802003-06-30 21:59:07 +000018872 ;;
18873esac
18874fi
18875DOT=$ac_cv_path_DOT
18876
18877if test -n "$DOT"; then
18878 echo "$as_me:$LINENO: result: $DOT" >&5
18879echo "${ECHO_T}$DOT" >&6
18880else
18881 echo "$as_me:$LINENO: result: no" >&5
18882echo "${ECHO_T}no" >&6
18883fi
18884
John Criswell39827c82003-09-23 15:28:52 +000018885
John Criswell7a73b802003-06-30 21:59:07 +000018886# Extract the first word of "etags", so it can be a program name with args.
18887set dummy etags; ac_word=$2
18888echo "$as_me:$LINENO: checking for $ac_word" >&5
18889echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18890if test "${ac_cv_path_ETAGS+set}" = set; then
18891 echo $ECHO_N "(cached) $ECHO_C" >&6
18892else
18893 case $ETAGS in
18894 [\\/]* | ?:[\\/]*)
18895 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18896 ;;
18897 *)
18898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18899for as_dir in $PATH
18900do
18901 IFS=$as_save_IFS
18902 test -z "$as_dir" && as_dir=.
18903 for ac_exec_ext in '' $ac_executable_extensions; do
18904 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18905 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18907 break 2
18908 fi
18909done
18910done
18911
John Criswell39827c82003-09-23 15:28:52 +000018912 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="false"
John Criswell7a73b802003-06-30 21:59:07 +000018913 ;;
18914esac
18915fi
18916ETAGS=$ac_cv_path_ETAGS
18917
18918if test -n "$ETAGS"; then
18919 echo "$as_me:$LINENO: result: $ETAGS" >&5
18920echo "${ECHO_T}$ETAGS" >&6
18921else
18922 echo "$as_me:$LINENO: result: no" >&5
18923echo "${ECHO_T}no" >&6
18924fi
18925
John Criswell39827c82003-09-23 15:28:52 +000018926
John Criswell7a73b802003-06-30 21:59:07 +000018927# Extract the first word of "purify", so it can be a program name with args.
18928set dummy purify; ac_word=$2
18929echo "$as_me:$LINENO: checking for $ac_word" >&5
18930echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18931if test "${ac_cv_path_PURIFY+set}" = set; then
18932 echo $ECHO_N "(cached) $ECHO_C" >&6
18933else
18934 case $PURIFY in
18935 [\\/]* | ?:[\\/]*)
18936 ac_cv_path_PURIFY="$PURIFY" # Let the user override the test with a path.
18937 ;;
18938 *)
18939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18940for as_dir in $PATH
18941do
18942 IFS=$as_save_IFS
18943 test -z "$as_dir" && as_dir=.
18944 for ac_exec_ext in '' $ac_executable_extensions; do
18945 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18946 ac_cv_path_PURIFY="$as_dir/$ac_word$ac_exec_ext"
18947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18948 break 2
18949 fi
18950done
18951done
18952
John Criswell39827c82003-09-23 15:28:52 +000018953 test -z "$ac_cv_path_PURIFY" && ac_cv_path_PURIFY="false"
John Criswell7a73b802003-06-30 21:59:07 +000018954 ;;
18955esac
18956fi
18957PURIFY=$ac_cv_path_PURIFY
18958
18959if test -n "$PURIFY"; then
18960 echo "$as_me:$LINENO: result: $PURIFY" >&5
18961echo "${ECHO_T}$PURIFY" >&6
18962else
18963 echo "$as_me:$LINENO: result: no" >&5
18964echo "${ECHO_T}no" >&6
18965fi
18966
John Criswell39827c82003-09-23 15:28:52 +000018967
John Criswellde00db22003-08-25 16:49:54 +000018968# Extract the first word of "python", so it can be a program name with args.
18969set dummy python; ac_word=$2
18970echo "$as_me:$LINENO: checking for $ac_word" >&5
18971echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18972if test "${ac_cv_path_PYTHON+set}" = set; then
18973 echo $ECHO_N "(cached) $ECHO_C" >&6
18974else
18975 case $PYTHON in
18976 [\\/]* | ?:[\\/]*)
18977 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18978 ;;
18979 *)
18980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18981for as_dir in $PATH
18982do
18983 IFS=$as_save_IFS
18984 test -z "$as_dir" && as_dir=.
18985 for ac_exec_ext in '' $ac_executable_extensions; do
18986 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18987 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18989 break 2
18990 fi
18991done
18992done
18993
John Criswell39827c82003-09-23 15:28:52 +000018994 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="false"
John Criswellde00db22003-08-25 16:49:54 +000018995 ;;
18996esac
18997fi
18998PYTHON=$ac_cv_path_PYTHON
18999
19000if test -n "$PYTHON"; then
19001 echo "$as_me:$LINENO: result: $PYTHON" >&5
19002echo "${ECHO_T}$PYTHON" >&6
19003else
19004 echo "$as_me:$LINENO: result: no" >&5
19005echo "${ECHO_T}no" >&6
19006fi
19007
John Criswell39827c82003-09-23 15:28:52 +000019008if test ${PYTHON} = "false"
19009then
John Criswell61095982003-09-23 20:46:32 +000019010 { echo "$as_me:$LINENO: WARNING: python required but not found" >&5
19011echo "$as_me: WARNING: python required but not found" >&2;}
John Criswell39827c82003-09-23 15:28:52 +000019012fi
19013
John Criswellde00db22003-08-25 16:49:54 +000019014# Extract the first word of "qmtest", so it can be a program name with args.
19015set dummy qmtest; ac_word=$2
19016echo "$as_me:$LINENO: checking for $ac_word" >&5
19017echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19018if test "${ac_cv_path_QMTEST+set}" = set; then
19019 echo $ECHO_N "(cached) $ECHO_C" >&6
19020else
19021 case $QMTEST in
19022 [\\/]* | ?:[\\/]*)
19023 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
19024 ;;
19025 *)
19026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19027for as_dir in $PATH
19028do
19029 IFS=$as_save_IFS
19030 test -z "$as_dir" && as_dir=.
19031 for ac_exec_ext in '' $ac_executable_extensions; do
19032 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19033 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
19034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19035 break 2
19036 fi
19037done
19038done
19039
John Criswell39827c82003-09-23 15:28:52 +000019040 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="false"
John Criswellde00db22003-08-25 16:49:54 +000019041 ;;
19042esac
19043fi
19044QMTEST=$ac_cv_path_QMTEST
19045
19046if test -n "$QMTEST"; then
19047 echo "$as_me:$LINENO: result: $QMTEST" >&5
19048echo "${ECHO_T}$QMTEST" >&6
19049else
19050 echo "$as_me:$LINENO: result: no" >&5
19051echo "${ECHO_T}no" >&6
19052fi
19053
John Criswell39827c82003-09-23 15:28:52 +000019054if test ${QMTEST} = "false"
19055then
John Criswell61095982003-09-23 20:46:32 +000019056 { echo "$as_me:$LINENO: WARNING: qmtest required but not found" >&5
19057echo "$as_me: WARNING: qmtest required but not found" >&2;}
John Criswell39827c82003-09-23 15:28:52 +000019058fi
John Criswellde00db22003-08-25 16:49:54 +000019059
19060pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
19061pymajor=`echo $pyversion | cut -d. -f1`
19062pyminor=`echo $pyversion | cut -d. -f2`
19063
19064if test "$pymajor" -ge "2"
19065then
19066 if test "$pymajor" -eq "2"
19067 then
19068 if test "$pyminor" -lt "2"
19069 then
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; }; }
19073 fi
19074 fi
19075else
19076 { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
19077echo "$as_me: error: Python 2.2 or greater required" >&2;}
19078 { (exit 1); exit 1; }; }
19079fi
John Criswell7a73b802003-06-30 21:59:07 +000019080
19081
19082
19083
19084
19085echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
19086echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
19087if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
19088 echo $ECHO_N "(cached) $ECHO_C" >&6
19089else
19090 ac_check_lib_save_LIBS=$LIBS
19091LIBS="-lelf $LIBS"
19092cat >conftest.$ac_ext <<_ACEOF
19093#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019094/* confdefs.h. */
19095_ACEOF
19096cat confdefs.h >>conftest.$ac_ext
19097cat >>conftest.$ac_ext <<_ACEOF
19098/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019099
19100/* Override any gcc2 internal prototype to avoid an error. */
19101#ifdef __cplusplus
19102extern "C"
19103#endif
19104/* We use char because int might match the return type of a gcc2
19105 builtin and then its argument prototype would still apply. */
19106char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000019107int
19108main ()
19109{
19110elf_begin ();
19111 ;
19112 return 0;
19113}
19114_ACEOF
19115rm -f conftest.$ac_objext conftest$ac_exeext
19116if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19117 (eval $ac_link) 2>&5
19118 ac_status=$?
19119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19120 (exit $ac_status); } &&
19121 { ac_try='test -s conftest$ac_exeext'
19122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19123 (eval $ac_try) 2>&5
19124 ac_status=$?
19125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19126 (exit $ac_status); }; }; then
19127 ac_cv_lib_elf_elf_begin=yes
19128else
19129 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019130sed 's/^/| /' conftest.$ac_ext >&5
19131
John Criswell7a73b802003-06-30 21:59:07 +000019132ac_cv_lib_elf_elf_begin=no
19133fi
19134rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19135LIBS=$ac_check_lib_save_LIBS
19136fi
19137echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
19138echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
19139if test $ac_cv_lib_elf_elf_begin = yes; then
19140 cat >>confdefs.h <<_ACEOF
19141#define HAVE_LIBELF 1
19142_ACEOF
19143
19144 LIBS="-lelf $LIBS"
19145
19146fi
19147
19148
19149echo "$as_me:$LINENO: checking for library containing dlopen" >&5
19150echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
19151if test "${ac_cv_search_dlopen+set}" = set; then
19152 echo $ECHO_N "(cached) $ECHO_C" >&6
19153else
19154 ac_func_search_save_LIBS=$LIBS
19155ac_cv_search_dlopen=no
19156cat >conftest.$ac_ext <<_ACEOF
19157#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019158/* confdefs.h. */
19159_ACEOF
19160cat confdefs.h >>conftest.$ac_ext
19161cat >>conftest.$ac_ext <<_ACEOF
19162/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019163
19164/* Override any gcc2 internal prototype to avoid an error. */
19165#ifdef __cplusplus
19166extern "C"
19167#endif
19168/* We use char because int might match the return type of a gcc2
19169 builtin and then its argument prototype would still apply. */
19170char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000019171int
19172main ()
19173{
19174dlopen ();
19175 ;
19176 return 0;
19177}
19178_ACEOF
19179rm -f conftest.$ac_objext conftest$ac_exeext
19180if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19181 (eval $ac_link) 2>&5
19182 ac_status=$?
19183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19184 (exit $ac_status); } &&
19185 { ac_try='test -s conftest$ac_exeext'
19186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19187 (eval $ac_try) 2>&5
19188 ac_status=$?
19189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19190 (exit $ac_status); }; }; then
19191 ac_cv_search_dlopen="none required"
19192else
19193 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019194sed 's/^/| /' conftest.$ac_ext >&5
19195
John Criswell7a73b802003-06-30 21:59:07 +000019196fi
19197rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19198if test "$ac_cv_search_dlopen" = no; then
19199 for ac_lib in dl; do
19200 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19201 cat >conftest.$ac_ext <<_ACEOF
19202#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019203/* confdefs.h. */
19204_ACEOF
19205cat confdefs.h >>conftest.$ac_ext
19206cat >>conftest.$ac_ext <<_ACEOF
19207/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019208
19209/* Override any gcc2 internal prototype to avoid an error. */
19210#ifdef __cplusplus
19211extern "C"
19212#endif
19213/* We use char because int might match the return type of a gcc2
19214 builtin and then its argument prototype would still apply. */
19215char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000019216int
19217main ()
19218{
19219dlopen ();
19220 ;
19221 return 0;
19222}
19223_ACEOF
19224rm -f conftest.$ac_objext conftest$ac_exeext
19225if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19226 (eval $ac_link) 2>&5
19227 ac_status=$?
19228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19229 (exit $ac_status); } &&
19230 { ac_try='test -s conftest$ac_exeext'
19231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19232 (eval $ac_try) 2>&5
19233 ac_status=$?
19234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19235 (exit $ac_status); }; }; then
19236 ac_cv_search_dlopen="-l$ac_lib"
19237break
19238else
19239 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019240sed 's/^/| /' conftest.$ac_ext >&5
19241
John Criswell7a73b802003-06-30 21:59:07 +000019242fi
19243rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19244 done
19245fi
19246LIBS=$ac_func_search_save_LIBS
19247fi
19248echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19249echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19250if test "$ac_cv_search_dlopen" != no; then
19251 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
19252
19253else
19254 { { echo "$as_me:$LINENO: error: dlopen() required but not found" >&5
19255echo "$as_me: error: dlopen() required but not found" >&2;}
19256 { (exit 1); exit 1; }; }
19257fi
19258
19259
19260echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19261echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19262if test "${ac_cv_search_mallinfo+set}" = set; then
19263 echo $ECHO_N "(cached) $ECHO_C" >&6
19264else
19265 ac_func_search_save_LIBS=$LIBS
19266ac_cv_search_mallinfo=no
19267cat >conftest.$ac_ext <<_ACEOF
19268#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019269/* confdefs.h. */
19270_ACEOF
19271cat confdefs.h >>conftest.$ac_ext
19272cat >>conftest.$ac_ext <<_ACEOF
19273/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019274
19275/* Override any gcc2 internal prototype to avoid an error. */
19276#ifdef __cplusplus
19277extern "C"
19278#endif
19279/* We use char because int might match the return type of a gcc2
19280 builtin and then its argument prototype would still apply. */
19281char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000019282int
19283main ()
19284{
19285mallinfo ();
19286 ;
19287 return 0;
19288}
19289_ACEOF
19290rm -f conftest.$ac_objext conftest$ac_exeext
19291if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19292 (eval $ac_link) 2>&5
19293 ac_status=$?
19294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19295 (exit $ac_status); } &&
19296 { ac_try='test -s conftest$ac_exeext'
19297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19298 (eval $ac_try) 2>&5
19299 ac_status=$?
19300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19301 (exit $ac_status); }; }; then
19302 ac_cv_search_mallinfo="none required"
19303else
19304 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019305sed 's/^/| /' conftest.$ac_ext >&5
19306
John Criswell7a73b802003-06-30 21:59:07 +000019307fi
19308rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19309if test "$ac_cv_search_mallinfo" = no; then
19310 for ac_lib in malloc; do
19311 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19312 cat >conftest.$ac_ext <<_ACEOF
19313#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019314/* confdefs.h. */
19315_ACEOF
19316cat confdefs.h >>conftest.$ac_ext
19317cat >>conftest.$ac_ext <<_ACEOF
19318/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019319
19320/* Override any gcc2 internal prototype to avoid an error. */
19321#ifdef __cplusplus
19322extern "C"
19323#endif
19324/* We use char because int might match the return type of a gcc2
19325 builtin and then its argument prototype would still apply. */
19326char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000019327int
19328main ()
19329{
19330mallinfo ();
19331 ;
19332 return 0;
19333}
19334_ACEOF
19335rm -f conftest.$ac_objext conftest$ac_exeext
19336if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19337 (eval $ac_link) 2>&5
19338 ac_status=$?
19339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19340 (exit $ac_status); } &&
19341 { ac_try='test -s conftest$ac_exeext'
19342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19343 (eval $ac_try) 2>&5
19344 ac_status=$?
19345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19346 (exit $ac_status); }; }; then
19347 ac_cv_search_mallinfo="-l$ac_lib"
19348break
19349else
19350 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019351sed 's/^/| /' conftest.$ac_ext >&5
19352
John Criswell7a73b802003-06-30 21:59:07 +000019353fi
19354rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19355 done
19356fi
19357LIBS=$ac_func_search_save_LIBS
19358fi
19359echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19360echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19361if test "$ac_cv_search_mallinfo" != no; then
19362 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
19363 cat >>confdefs.h <<\_ACEOF
19364#define HAVE_MALLINFO 1
19365_ACEOF
19366
19367fi
19368
19369
19370
19371echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19372echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19373if test "${ac_cv_header_stdc+set}" = set; then
19374 echo $ECHO_N "(cached) $ECHO_C" >&6
19375else
19376 cat >conftest.$ac_ext <<_ACEOF
19377#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019378/* confdefs.h. */
19379_ACEOF
19380cat confdefs.h >>conftest.$ac_ext
19381cat >>conftest.$ac_ext <<_ACEOF
19382/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019383#include <stdlib.h>
19384#include <stdarg.h>
19385#include <string.h>
19386#include <float.h>
19387
John Criswell0c38eaf2003-09-10 15:17:25 +000019388int
19389main ()
19390{
19391
19392 ;
19393 return 0;
19394}
John Criswell7a73b802003-06-30 21:59:07 +000019395_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019396rm -f conftest.$ac_objext
19397if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19398 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000019399 ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +000019400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019401 (exit $ac_status); } &&
19402 { ac_try='test -s conftest.$ac_objext'
19403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19404 (eval $ac_try) 2>&5
19405 ac_status=$?
19406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19407 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000019408 ac_cv_header_stdc=yes
19409else
19410 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019411sed 's/^/| /' conftest.$ac_ext >&5
19412
19413ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000019414fi
John Criswell0c38eaf2003-09-10 15:17:25 +000019415rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019416
19417if test $ac_cv_header_stdc = yes; then
19418 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19419 cat >conftest.$ac_ext <<_ACEOF
19420#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019421/* confdefs.h. */
19422_ACEOF
19423cat confdefs.h >>conftest.$ac_ext
19424cat >>conftest.$ac_ext <<_ACEOF
19425/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019426#include <string.h>
19427
19428_ACEOF
19429if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000019430 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000019431 :
19432else
19433 ac_cv_header_stdc=no
19434fi
19435rm -f conftest*
19436
19437fi
19438
19439if test $ac_cv_header_stdc = yes; then
19440 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19441 cat >conftest.$ac_ext <<_ACEOF
19442#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019443/* confdefs.h. */
19444_ACEOF
19445cat confdefs.h >>conftest.$ac_ext
19446cat >>conftest.$ac_ext <<_ACEOF
19447/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019448#include <stdlib.h>
19449
19450_ACEOF
19451if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000019452 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000019453 :
19454else
19455 ac_cv_header_stdc=no
19456fi
19457rm -f conftest*
19458
19459fi
19460
19461if test $ac_cv_header_stdc = yes; then
19462 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19463 if test "$cross_compiling" = yes; then
19464 :
19465else
19466 cat >conftest.$ac_ext <<_ACEOF
19467#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019468/* confdefs.h. */
19469_ACEOF
19470cat confdefs.h >>conftest.$ac_ext
19471cat >>conftest.$ac_ext <<_ACEOF
19472/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019473#include <ctype.h>
19474#if ((' ' & 0x0FF) == 0x020)
19475# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19476# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19477#else
John Criswell0c38eaf2003-09-10 15:17:25 +000019478# define ISLOWER(c) \
19479 (('a' <= (c) && (c) <= 'i') \
John Criswell7a73b802003-06-30 21:59:07 +000019480 || ('j' <= (c) && (c) <= 'r') \
19481 || ('s' <= (c) && (c) <= 'z'))
19482# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19483#endif
19484
19485#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19486int
19487main ()
19488{
19489 int i;
19490 for (i = 0; i < 256; i++)
19491 if (XOR (islower (i), ISLOWER (i))
19492 || toupper (i) != TOUPPER (i))
19493 exit(2);
19494 exit (0);
19495}
19496_ACEOF
19497rm -f conftest$ac_exeext
19498if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19499 (eval $ac_link) 2>&5
19500 ac_status=$?
19501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19502 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19504 (eval $ac_try) 2>&5
19505 ac_status=$?
19506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19507 (exit $ac_status); }; }; then
19508 :
19509else
19510 echo "$as_me: program exited with status $ac_status" >&5
19511echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019512sed 's/^/| /' conftest.$ac_ext >&5
19513
John Criswell7a73b802003-06-30 21:59:07 +000019514( exit $ac_status )
19515ac_cv_header_stdc=no
19516fi
John Criswell0c38eaf2003-09-10 15:17:25 +000019517rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019518fi
19519fi
19520fi
19521echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19522echo "${ECHO_T}$ac_cv_header_stdc" >&6
19523if test $ac_cv_header_stdc = yes; then
19524
19525cat >>confdefs.h <<\_ACEOF
19526#define STDC_HEADERS 1
19527_ACEOF
19528
19529fi
19530
19531echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19532echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19533if test "${ac_cv_header_sys_wait_h+set}" = set; then
19534 echo $ECHO_N "(cached) $ECHO_C" >&6
19535else
19536 cat >conftest.$ac_ext <<_ACEOF
19537#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019538/* confdefs.h. */
19539_ACEOF
19540cat confdefs.h >>conftest.$ac_ext
19541cat >>conftest.$ac_ext <<_ACEOF
19542/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019543#include <sys/types.h>
19544#include <sys/wait.h>
19545#ifndef WEXITSTATUS
19546# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19547#endif
19548#ifndef WIFEXITED
19549# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19550#endif
19551
John Criswell7a73b802003-06-30 21:59:07 +000019552int
19553main ()
19554{
19555 int s;
19556 wait (&s);
19557 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19558 ;
19559 return 0;
19560}
19561_ACEOF
19562rm -f conftest.$ac_objext
19563if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19564 (eval $ac_compile) 2>&5
19565 ac_status=$?
19566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19567 (exit $ac_status); } &&
19568 { ac_try='test -s conftest.$ac_objext'
19569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19570 (eval $ac_try) 2>&5
19571 ac_status=$?
19572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19573 (exit $ac_status); }; }; then
19574 ac_cv_header_sys_wait_h=yes
19575else
19576 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019577sed 's/^/| /' conftest.$ac_ext >&5
19578
John Criswell7a73b802003-06-30 21:59:07 +000019579ac_cv_header_sys_wait_h=no
19580fi
19581rm -f conftest.$ac_objext conftest.$ac_ext
19582fi
19583echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19584echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19585if test $ac_cv_header_sys_wait_h = yes; then
19586
19587cat >>confdefs.h <<\_ACEOF
19588#define HAVE_SYS_WAIT_H 1
19589_ACEOF
19590
19591fi
19592
19593
19594
19595
19596
19597
19598
19599
19600
19601
19602for ac_header in assert.h fcntl.h limits.h sys/time.h unistd.h errno.h signal.h math.h
19603do
19604as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19605if eval "test \"\${$as_ac_Header+set}\" = set"; then
19606 echo "$as_me:$LINENO: checking for $ac_header" >&5
19607echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19608if eval "test \"\${$as_ac_Header+set}\" = set"; then
19609 echo $ECHO_N "(cached) $ECHO_C" >&6
19610fi
19611echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19612echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19613else
19614 # Is the header compilable?
19615echo "$as_me:$LINENO: checking $ac_header usability" >&5
19616echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19617cat >conftest.$ac_ext <<_ACEOF
19618#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019619/* confdefs.h. */
19620_ACEOF
19621cat confdefs.h >>conftest.$ac_ext
19622cat >>conftest.$ac_ext <<_ACEOF
19623/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019624$ac_includes_default
19625#include <$ac_header>
19626_ACEOF
19627rm -f conftest.$ac_objext
19628if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19629 (eval $ac_compile) 2>&5
19630 ac_status=$?
19631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19632 (exit $ac_status); } &&
19633 { ac_try='test -s conftest.$ac_objext'
19634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19635 (eval $ac_try) 2>&5
19636 ac_status=$?
19637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638 (exit $ac_status); }; }; then
19639 ac_header_compiler=yes
19640else
19641 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019642sed 's/^/| /' conftest.$ac_ext >&5
19643
John Criswell7a73b802003-06-30 21:59:07 +000019644ac_header_compiler=no
19645fi
19646rm -f conftest.$ac_objext conftest.$ac_ext
19647echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19648echo "${ECHO_T}$ac_header_compiler" >&6
19649
19650# Is the header present?
19651echo "$as_me:$LINENO: checking $ac_header presence" >&5
19652echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19653cat >conftest.$ac_ext <<_ACEOF
19654#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019655/* confdefs.h. */
19656_ACEOF
19657cat confdefs.h >>conftest.$ac_ext
19658cat >>conftest.$ac_ext <<_ACEOF
19659/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019660#include <$ac_header>
19661_ACEOF
19662if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19663 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19664 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019665 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019666 rm -f conftest.er1
19667 cat conftest.err >&5
19668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19669 (exit $ac_status); } >/dev/null; then
19670 if test -s conftest.err; then
19671 ac_cpp_err=$ac_c_preproc_warn_flag
19672 else
19673 ac_cpp_err=
19674 fi
19675else
19676 ac_cpp_err=yes
19677fi
19678if test -z "$ac_cpp_err"; then
19679 ac_header_preproc=yes
19680else
19681 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019682sed 's/^/| /' conftest.$ac_ext >&5
19683
John Criswell7a73b802003-06-30 21:59:07 +000019684 ac_header_preproc=no
19685fi
19686rm -f conftest.err conftest.$ac_ext
19687echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19688echo "${ECHO_T}$ac_header_preproc" >&6
19689
19690# So? What about this header?
19691case $ac_header_compiler:$ac_header_preproc in
19692 yes:no )
19693 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19694echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19695 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019696echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19697 (
19698 cat <<\_ASBOX
19699## ------------------------------------ ##
19700## Report this to bug-autoconf@gnu.org. ##
19701## ------------------------------------ ##
19702_ASBOX
19703 ) |
19704 sed "s/^/$as_me: WARNING: /" >&2
19705 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019706 no:yes )
19707 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19708echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19709 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19710echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19711 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019712echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19713 (
19714 cat <<\_ASBOX
19715## ------------------------------------ ##
19716## Report this to bug-autoconf@gnu.org. ##
19717## ------------------------------------ ##
19718_ASBOX
19719 ) |
19720 sed "s/^/$as_me: WARNING: /" >&2
19721 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019722esac
19723echo "$as_me:$LINENO: checking for $ac_header" >&5
19724echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19725if eval "test \"\${$as_ac_Header+set}\" = set"; then
19726 echo $ECHO_N "(cached) $ECHO_C" >&6
19727else
19728 eval "$as_ac_Header=$ac_header_preproc"
19729fi
19730echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19731echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19732
19733fi
19734if test `eval echo '${'$as_ac_Header'}'` = yes; then
19735 cat >>confdefs.h <<_ACEOF
19736#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19737_ACEOF
19738
19739fi
19740
19741done
19742
19743
19744
19745
19746
19747
19748for ac_header in malloc.h strings.h sys/mman.h sys/resource.h
19749do
19750as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19751if eval "test \"\${$as_ac_Header+set}\" = set"; then
19752 echo "$as_me:$LINENO: checking for $ac_header" >&5
19753echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19754if eval "test \"\${$as_ac_Header+set}\" = set"; then
19755 echo $ECHO_N "(cached) $ECHO_C" >&6
19756fi
19757echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19758echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19759else
19760 # Is the header compilable?
19761echo "$as_me:$LINENO: checking $ac_header usability" >&5
19762echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19763cat >conftest.$ac_ext <<_ACEOF
19764#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019765/* confdefs.h. */
19766_ACEOF
19767cat confdefs.h >>conftest.$ac_ext
19768cat >>conftest.$ac_ext <<_ACEOF
19769/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019770$ac_includes_default
19771#include <$ac_header>
19772_ACEOF
19773rm -f conftest.$ac_objext
19774if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19775 (eval $ac_compile) 2>&5
19776 ac_status=$?
19777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19778 (exit $ac_status); } &&
19779 { ac_try='test -s conftest.$ac_objext'
19780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19781 (eval $ac_try) 2>&5
19782 ac_status=$?
19783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19784 (exit $ac_status); }; }; then
19785 ac_header_compiler=yes
19786else
19787 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019788sed 's/^/| /' conftest.$ac_ext >&5
19789
John Criswell7a73b802003-06-30 21:59:07 +000019790ac_header_compiler=no
19791fi
19792rm -f conftest.$ac_objext conftest.$ac_ext
19793echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19794echo "${ECHO_T}$ac_header_compiler" >&6
19795
19796# Is the header present?
19797echo "$as_me:$LINENO: checking $ac_header presence" >&5
19798echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19799cat >conftest.$ac_ext <<_ACEOF
19800#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019801/* confdefs.h. */
19802_ACEOF
19803cat confdefs.h >>conftest.$ac_ext
19804cat >>conftest.$ac_ext <<_ACEOF
19805/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019806#include <$ac_header>
19807_ACEOF
19808if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19809 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19810 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019811 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019812 rm -f conftest.er1
19813 cat conftest.err >&5
19814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19815 (exit $ac_status); } >/dev/null; then
19816 if test -s conftest.err; then
19817 ac_cpp_err=$ac_c_preproc_warn_flag
19818 else
19819 ac_cpp_err=
19820 fi
19821else
19822 ac_cpp_err=yes
19823fi
19824if test -z "$ac_cpp_err"; then
19825 ac_header_preproc=yes
19826else
19827 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019828sed 's/^/| /' conftest.$ac_ext >&5
19829
John Criswell7a73b802003-06-30 21:59:07 +000019830 ac_header_preproc=no
19831fi
19832rm -f conftest.err conftest.$ac_ext
19833echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19834echo "${ECHO_T}$ac_header_preproc" >&6
19835
19836# So? What about this header?
19837case $ac_header_compiler:$ac_header_preproc in
19838 yes:no )
19839 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19840echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19841 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019842echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19843 (
19844 cat <<\_ASBOX
19845## ------------------------------------ ##
19846## Report this to bug-autoconf@gnu.org. ##
19847## ------------------------------------ ##
19848_ASBOX
19849 ) |
19850 sed "s/^/$as_me: WARNING: /" >&2
19851 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019852 no:yes )
19853 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19854echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19855 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19856echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19857 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019858echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19859 (
19860 cat <<\_ASBOX
19861## ------------------------------------ ##
19862## Report this to bug-autoconf@gnu.org. ##
19863## ------------------------------------ ##
19864_ASBOX
19865 ) |
19866 sed "s/^/$as_me: WARNING: /" >&2
19867 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019868esac
19869echo "$as_me:$LINENO: checking for $ac_header" >&5
19870echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19871if eval "test \"\${$as_ac_Header+set}\" = set"; then
19872 echo $ECHO_N "(cached) $ECHO_C" >&6
19873else
19874 eval "$as_ac_Header=$ac_header_preproc"
19875fi
19876echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19877echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19878
19879fi
19880if test `eval echo '${'$as_ac_Header'}'` = yes; then
19881 cat >>confdefs.h <<_ACEOF
19882#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19883_ACEOF
19884
19885fi
19886
19887done
19888
19889
19890
19891
19892for ac_header in dlfcn.h link.h
19893do
19894as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19895if eval "test \"\${$as_ac_Header+set}\" = set"; then
19896 echo "$as_me:$LINENO: checking for $ac_header" >&5
19897echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19898if eval "test \"\${$as_ac_Header+set}\" = set"; then
19899 echo $ECHO_N "(cached) $ECHO_C" >&6
19900fi
19901echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19902echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19903else
19904 # Is the header compilable?
19905echo "$as_me:$LINENO: checking $ac_header usability" >&5
19906echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19907cat >conftest.$ac_ext <<_ACEOF
19908#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019909/* confdefs.h. */
19910_ACEOF
19911cat confdefs.h >>conftest.$ac_ext
19912cat >>conftest.$ac_ext <<_ACEOF
19913/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019914$ac_includes_default
19915#include <$ac_header>
19916_ACEOF
19917rm -f conftest.$ac_objext
19918if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19919 (eval $ac_compile) 2>&5
19920 ac_status=$?
19921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19922 (exit $ac_status); } &&
19923 { ac_try='test -s conftest.$ac_objext'
19924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19925 (eval $ac_try) 2>&5
19926 ac_status=$?
19927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19928 (exit $ac_status); }; }; then
19929 ac_header_compiler=yes
19930else
19931 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019932sed 's/^/| /' conftest.$ac_ext >&5
19933
John Criswell7a73b802003-06-30 21:59:07 +000019934ac_header_compiler=no
19935fi
19936rm -f conftest.$ac_objext conftest.$ac_ext
19937echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19938echo "${ECHO_T}$ac_header_compiler" >&6
19939
19940# Is the header present?
19941echo "$as_me:$LINENO: checking $ac_header presence" >&5
19942echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19943cat >conftest.$ac_ext <<_ACEOF
19944#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019945/* confdefs.h. */
19946_ACEOF
19947cat confdefs.h >>conftest.$ac_ext
19948cat >>conftest.$ac_ext <<_ACEOF
19949/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019950#include <$ac_header>
19951_ACEOF
19952if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19953 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19954 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019955 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019956 rm -f conftest.er1
19957 cat conftest.err >&5
19958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19959 (exit $ac_status); } >/dev/null; then
19960 if test -s conftest.err; then
19961 ac_cpp_err=$ac_c_preproc_warn_flag
19962 else
19963 ac_cpp_err=
19964 fi
19965else
19966 ac_cpp_err=yes
19967fi
19968if test -z "$ac_cpp_err"; then
19969 ac_header_preproc=yes
19970else
19971 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019972sed 's/^/| /' conftest.$ac_ext >&5
19973
John Criswell7a73b802003-06-30 21:59:07 +000019974 ac_header_preproc=no
19975fi
19976rm -f conftest.err conftest.$ac_ext
19977echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19978echo "${ECHO_T}$ac_header_preproc" >&6
19979
19980# So? What about this header?
19981case $ac_header_compiler:$ac_header_preproc in
19982 yes:no )
19983 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19984echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19985 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019986echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19987 (
19988 cat <<\_ASBOX
19989## ------------------------------------ ##
19990## Report this to bug-autoconf@gnu.org. ##
19991## ------------------------------------ ##
19992_ASBOX
19993 ) |
19994 sed "s/^/$as_me: WARNING: /" >&2
19995 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019996 no:yes )
19997 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19998echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19999 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20000echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20001 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020002echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20003 (
20004 cat <<\_ASBOX
20005## ------------------------------------ ##
20006## Report this to bug-autoconf@gnu.org. ##
20007## ------------------------------------ ##
20008_ASBOX
20009 ) |
20010 sed "s/^/$as_me: WARNING: /" >&2
20011 ;;
John Criswell7a73b802003-06-30 21:59:07 +000020012esac
20013echo "$as_me:$LINENO: checking for $ac_header" >&5
20014echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20015if eval "test \"\${$as_ac_Header+set}\" = set"; then
20016 echo $ECHO_N "(cached) $ECHO_C" >&6
20017else
20018 eval "$as_ac_Header=$ac_header_preproc"
20019fi
20020echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20021echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20022
20023fi
20024if test `eval echo '${'$as_ac_Header'}'` = yes; then
20025 cat >>confdefs.h <<_ACEOF
20026#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20027_ACEOF
20028
20029fi
20030
20031done
20032
20033
20034
John Criswell7a73b802003-06-30 21:59:07 +000020035echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20036echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20037if test "${ac_cv_c_const+set}" = set; then
20038 echo $ECHO_N "(cached) $ECHO_C" >&6
20039else
20040 cat >conftest.$ac_ext <<_ACEOF
20041#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020042/* confdefs.h. */
20043_ACEOF
20044cat confdefs.h >>conftest.$ac_ext
20045cat >>conftest.$ac_ext <<_ACEOF
20046/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020047
John Criswell7a73b802003-06-30 21:59:07 +000020048int
20049main ()
20050{
20051/* FIXME: Include the comments suggested by Paul. */
20052#ifndef __cplusplus
20053 /* Ultrix mips cc rejects this. */
20054 typedef int charset[2];
20055 const charset x;
20056 /* SunOS 4.1.1 cc rejects this. */
20057 char const *const *ccp;
20058 char **p;
20059 /* NEC SVR4.0.2 mips cc rejects this. */
20060 struct point {int x, y;};
20061 static struct point const zero = {0,0};
20062 /* AIX XL C 1.02.0.0 rejects this.
20063 It does not let you subtract one const X* pointer from another in
20064 an arm of an if-expression whose if-part is not a constant
20065 expression */
20066 const char *g = "string";
20067 ccp = &g + (g ? g-g : 0);
20068 /* HPUX 7.0 cc rejects these. */
20069 ++ccp;
20070 p = (char**) ccp;
20071 ccp = (char const *const *) p;
20072 { /* SCO 3.2v4 cc rejects this. */
20073 char *t;
20074 char const *s = 0 ? (char *) 0 : (char const *) 0;
20075
20076 *t++ = 0;
20077 }
20078 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20079 int x[] = {25, 17};
20080 const int *foo = &x[0];
20081 ++foo;
20082 }
20083 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20084 typedef const int *iptr;
20085 iptr p = 0;
20086 ++p;
20087 }
20088 { /* AIX XL C 1.02.0.0 rejects this saying
20089 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20090 struct s { int j; const int *ap[3]; };
20091 struct s *b; b->j = 5;
20092 }
20093 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20094 const int foo = 10;
20095 }
20096#endif
20097
20098 ;
20099 return 0;
20100}
20101_ACEOF
20102rm -f conftest.$ac_objext
20103if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20104 (eval $ac_compile) 2>&5
20105 ac_status=$?
20106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20107 (exit $ac_status); } &&
20108 { ac_try='test -s conftest.$ac_objext'
20109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20110 (eval $ac_try) 2>&5
20111 ac_status=$?
20112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20113 (exit $ac_status); }; }; then
20114 ac_cv_c_const=yes
20115else
20116 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020117sed 's/^/| /' conftest.$ac_ext >&5
20118
John Criswell7a73b802003-06-30 21:59:07 +000020119ac_cv_c_const=no
20120fi
20121rm -f conftest.$ac_objext conftest.$ac_ext
20122fi
20123echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20124echo "${ECHO_T}$ac_cv_c_const" >&6
20125if test $ac_cv_c_const = no; then
20126
20127cat >>confdefs.h <<\_ACEOF
20128#define const
20129_ACEOF
20130
20131fi
20132
20133echo "$as_me:$LINENO: checking for inline" >&5
20134echo $ECHO_N "checking for inline... $ECHO_C" >&6
20135if test "${ac_cv_c_inline+set}" = set; then
20136 echo $ECHO_N "(cached) $ECHO_C" >&6
20137else
20138 ac_cv_c_inline=no
20139for ac_kw in inline __inline__ __inline; do
20140 cat >conftest.$ac_ext <<_ACEOF
20141#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020142/* confdefs.h. */
20143_ACEOF
20144cat confdefs.h >>conftest.$ac_ext
20145cat >>conftest.$ac_ext <<_ACEOF
20146/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020147#ifndef __cplusplus
John Criswell0c38eaf2003-09-10 15:17:25 +000020148typedef int foo_t;
20149static $ac_kw foo_t static_foo () {return 0; }
20150$ac_kw foo_t foo () {return 0; }
John Criswell7a73b802003-06-30 21:59:07 +000020151#endif
20152
20153_ACEOF
20154rm -f conftest.$ac_objext
20155if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20156 (eval $ac_compile) 2>&5
20157 ac_status=$?
20158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20159 (exit $ac_status); } &&
20160 { ac_try='test -s conftest.$ac_objext'
20161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20162 (eval $ac_try) 2>&5
20163 ac_status=$?
20164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20165 (exit $ac_status); }; }; then
20166 ac_cv_c_inline=$ac_kw; break
20167else
20168 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020169sed 's/^/| /' conftest.$ac_ext >&5
20170
John Criswell7a73b802003-06-30 21:59:07 +000020171fi
20172rm -f conftest.$ac_objext conftest.$ac_ext
20173done
20174
20175fi
20176echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20177echo "${ECHO_T}$ac_cv_c_inline" >&6
20178case $ac_cv_c_inline in
20179 inline | yes) ;;
20180 no)
20181cat >>confdefs.h <<\_ACEOF
20182#define inline
20183_ACEOF
20184 ;;
20185 *) cat >>confdefs.h <<_ACEOF
20186#define inline $ac_cv_c_inline
20187_ACEOF
20188 ;;
20189esac
20190
20191
20192echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20193echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20194if test "${ac_cv_c_bigendian+set}" = set; then
20195 echo $ECHO_N "(cached) $ECHO_C" >&6
20196else
20197 # See if sys/param.h defines the BYTE_ORDER macro.
20198cat >conftest.$ac_ext <<_ACEOF
20199#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020200/* confdefs.h. */
20201_ACEOF
20202cat confdefs.h >>conftest.$ac_ext
20203cat >>conftest.$ac_ext <<_ACEOF
20204/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020205#include <sys/types.h>
20206#include <sys/param.h>
20207
John Criswell7a73b802003-06-30 21:59:07 +000020208int
20209main ()
20210{
20211#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20212 bogus endian macros
20213#endif
20214
20215 ;
20216 return 0;
20217}
20218_ACEOF
20219rm -f conftest.$ac_objext
20220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20221 (eval $ac_compile) 2>&5
20222 ac_status=$?
20223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20224 (exit $ac_status); } &&
20225 { ac_try='test -s conftest.$ac_objext'
20226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20227 (eval $ac_try) 2>&5
20228 ac_status=$?
20229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20230 (exit $ac_status); }; }; then
20231 # It does; now see whether it defined to BIG_ENDIAN or not.
20232cat >conftest.$ac_ext <<_ACEOF
20233#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020234/* confdefs.h. */
20235_ACEOF
20236cat confdefs.h >>conftest.$ac_ext
20237cat >>conftest.$ac_ext <<_ACEOF
20238/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020239#include <sys/types.h>
20240#include <sys/param.h>
20241
John Criswell7a73b802003-06-30 21:59:07 +000020242int
20243main ()
20244{
20245#if BYTE_ORDER != BIG_ENDIAN
20246 not big endian
20247#endif
20248
20249 ;
20250 return 0;
20251}
20252_ACEOF
20253rm -f conftest.$ac_objext
20254if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20255 (eval $ac_compile) 2>&5
20256 ac_status=$?
20257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20258 (exit $ac_status); } &&
20259 { ac_try='test -s conftest.$ac_objext'
20260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20261 (eval $ac_try) 2>&5
20262 ac_status=$?
20263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20264 (exit $ac_status); }; }; then
20265 ac_cv_c_bigendian=yes
20266else
20267 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020268sed 's/^/| /' conftest.$ac_ext >&5
20269
John Criswell7a73b802003-06-30 21:59:07 +000020270ac_cv_c_bigendian=no
20271fi
20272rm -f conftest.$ac_objext conftest.$ac_ext
20273else
20274 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020275sed 's/^/| /' conftest.$ac_ext >&5
20276
John Criswell7a73b802003-06-30 21:59:07 +000020277# It does not; compile a test program.
20278if test "$cross_compiling" = yes; then
John Criswell0c38eaf2003-09-10 15:17:25 +000020279 # try to guess the endianness by grepping values into an object file
John Criswell7a73b802003-06-30 21:59:07 +000020280 ac_cv_c_bigendian=unknown
20281 cat >conftest.$ac_ext <<_ACEOF
20282#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020283/* confdefs.h. */
20284_ACEOF
20285cat confdefs.h >>conftest.$ac_ext
20286cat >>conftest.$ac_ext <<_ACEOF
20287/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020288short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20289short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20290void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20291short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20292short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20293void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
John Criswell7a73b802003-06-30 21:59:07 +000020294int
20295main ()
20296{
20297 _ascii (); _ebcdic ();
20298 ;
20299 return 0;
20300}
20301_ACEOF
20302rm -f conftest.$ac_objext
20303if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20304 (eval $ac_compile) 2>&5
20305 ac_status=$?
20306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20307 (exit $ac_status); } &&
20308 { ac_try='test -s conftest.$ac_objext'
20309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20310 (eval $ac_try) 2>&5
20311 ac_status=$?
20312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20313 (exit $ac_status); }; }; then
John Criswell0c38eaf2003-09-10 15:17:25 +000020314 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
John Criswell7a73b802003-06-30 21:59:07 +000020315 ac_cv_c_bigendian=yes
20316fi
John Criswell0c38eaf2003-09-10 15:17:25 +000020317if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
John Criswell7a73b802003-06-30 21:59:07 +000020318 if test "$ac_cv_c_bigendian" = unknown; then
20319 ac_cv_c_bigendian=no
20320 else
20321 # finding both strings is unlikely to happen, but who knows?
20322 ac_cv_c_bigendian=unknown
20323 fi
20324fi
20325else
20326 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020327sed 's/^/| /' conftest.$ac_ext >&5
20328
John Criswell7a73b802003-06-30 21:59:07 +000020329fi
20330rm -f conftest.$ac_objext conftest.$ac_ext
20331else
20332 cat >conftest.$ac_ext <<_ACEOF
20333#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020334/* confdefs.h. */
20335_ACEOF
20336cat confdefs.h >>conftest.$ac_ext
20337cat >>conftest.$ac_ext <<_ACEOF
20338/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020339int
20340main ()
20341{
20342 /* Are we little or big endian? From Harbison&Steele. */
20343 union
20344 {
20345 long l;
20346 char c[sizeof (long)];
20347 } u;
20348 u.l = 1;
20349 exit (u.c[sizeof (long) - 1] == 1);
20350}
20351_ACEOF
20352rm -f conftest$ac_exeext
20353if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20354 (eval $ac_link) 2>&5
20355 ac_status=$?
20356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20357 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20359 (eval $ac_try) 2>&5
20360 ac_status=$?
20361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20362 (exit $ac_status); }; }; then
20363 ac_cv_c_bigendian=no
20364else
20365 echo "$as_me: program exited with status $ac_status" >&5
20366echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020367sed 's/^/| /' conftest.$ac_ext >&5
20368
John Criswell7a73b802003-06-30 21:59:07 +000020369( exit $ac_status )
20370ac_cv_c_bigendian=yes
20371fi
John Criswell0c38eaf2003-09-10 15:17:25 +000020372rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020373fi
20374fi
20375rm -f conftest.$ac_objext conftest.$ac_ext
20376fi
20377echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20378echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20379case $ac_cv_c_bigendian in
20380 yes)
20381 cat >>confdefs.h <<\_ACEOF
20382#define ENDIAN_BIG 1
20383_ACEOF
20384 ;;
20385 no)
20386 cat >>confdefs.h <<\_ACEOF
20387#define ENDIAN_LITTLE 1
20388_ACEOF
20389 ;;
20390 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000020391 { { echo "$as_me:$LINENO: error: unknown endianness
John Criswell7a73b802003-06-30 21:59:07 +000020392presetting ac_cv_c_bigendian=no (or yes) will help" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020393echo "$as_me: error: unknown endianness
John Criswell7a73b802003-06-30 21:59:07 +000020394presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20395 { (exit 1); exit 1; }; } ;;
20396esac
20397
20398
20399echo "$as_me:$LINENO: checking for pid_t" >&5
20400echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20401if test "${ac_cv_type_pid_t+set}" = set; then
20402 echo $ECHO_N "(cached) $ECHO_C" >&6
20403else
20404 cat >conftest.$ac_ext <<_ACEOF
20405#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020406/* confdefs.h. */
20407_ACEOF
20408cat confdefs.h >>conftest.$ac_ext
20409cat >>conftest.$ac_ext <<_ACEOF
20410/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020411$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020412int
20413main ()
20414{
20415if ((pid_t *) 0)
20416 return 0;
20417if (sizeof (pid_t))
20418 return 0;
20419 ;
20420 return 0;
20421}
20422_ACEOF
20423rm -f conftest.$ac_objext
20424if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20425 (eval $ac_compile) 2>&5
20426 ac_status=$?
20427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20428 (exit $ac_status); } &&
20429 { ac_try='test -s conftest.$ac_objext'
20430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20431 (eval $ac_try) 2>&5
20432 ac_status=$?
20433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20434 (exit $ac_status); }; }; then
20435 ac_cv_type_pid_t=yes
20436else
20437 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020438sed 's/^/| /' conftest.$ac_ext >&5
20439
John Criswell7a73b802003-06-30 21:59:07 +000020440ac_cv_type_pid_t=no
20441fi
20442rm -f conftest.$ac_objext conftest.$ac_ext
20443fi
20444echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20445echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20446if test $ac_cv_type_pid_t = yes; then
20447 :
20448else
20449
20450cat >>confdefs.h <<_ACEOF
20451#define pid_t int
20452_ACEOF
20453
20454fi
20455
20456echo "$as_me:$LINENO: checking for size_t" >&5
20457echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20458if test "${ac_cv_type_size_t+set}" = set; then
20459 echo $ECHO_N "(cached) $ECHO_C" >&6
20460else
20461 cat >conftest.$ac_ext <<_ACEOF
20462#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020463/* confdefs.h. */
20464_ACEOF
20465cat confdefs.h >>conftest.$ac_ext
20466cat >>conftest.$ac_ext <<_ACEOF
20467/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020468$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020469int
20470main ()
20471{
20472if ((size_t *) 0)
20473 return 0;
20474if (sizeof (size_t))
20475 return 0;
20476 ;
20477 return 0;
20478}
20479_ACEOF
20480rm -f conftest.$ac_objext
20481if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20482 (eval $ac_compile) 2>&5
20483 ac_status=$?
20484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20485 (exit $ac_status); } &&
20486 { ac_try='test -s conftest.$ac_objext'
20487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20488 (eval $ac_try) 2>&5
20489 ac_status=$?
20490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20491 (exit $ac_status); }; }; then
20492 ac_cv_type_size_t=yes
20493else
20494 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020495sed 's/^/| /' conftest.$ac_ext >&5
20496
John Criswell7a73b802003-06-30 21:59:07 +000020497ac_cv_type_size_t=no
20498fi
20499rm -f conftest.$ac_objext conftest.$ac_ext
20500fi
20501echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20502echo "${ECHO_T}$ac_cv_type_size_t" >&6
20503if test $ac_cv_type_size_t = yes; then
20504 :
20505else
20506
20507cat >>confdefs.h <<_ACEOF
20508#define size_t unsigned
20509_ACEOF
20510
20511fi
20512
20513echo "$as_me:$LINENO: checking for int64_t" >&5
20514echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20515if test "${ac_cv_type_int64_t+set}" = set; then
20516 echo $ECHO_N "(cached) $ECHO_C" >&6
20517else
20518 cat >conftest.$ac_ext <<_ACEOF
20519#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020520/* confdefs.h. */
20521_ACEOF
20522cat confdefs.h >>conftest.$ac_ext
20523cat >>conftest.$ac_ext <<_ACEOF
20524/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020525$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020526int
20527main ()
20528{
20529if ((int64_t *) 0)
20530 return 0;
20531if (sizeof (int64_t))
20532 return 0;
20533 ;
20534 return 0;
20535}
20536_ACEOF
20537rm -f conftest.$ac_objext
20538if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20539 (eval $ac_compile) 2>&5
20540 ac_status=$?
20541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20542 (exit $ac_status); } &&
20543 { ac_try='test -s conftest.$ac_objext'
20544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20545 (eval $ac_try) 2>&5
20546 ac_status=$?
20547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20548 (exit $ac_status); }; }; then
20549 ac_cv_type_int64_t=yes
20550else
20551 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020552sed 's/^/| /' conftest.$ac_ext >&5
20553
John Criswell7a73b802003-06-30 21:59:07 +000020554ac_cv_type_int64_t=no
20555fi
20556rm -f conftest.$ac_objext conftest.$ac_ext
20557fi
20558echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20559echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20560if test $ac_cv_type_int64_t = yes; then
20561
20562cat >>confdefs.h <<_ACEOF
20563#define HAVE_INT64_T 1
20564_ACEOF
20565
20566
20567else
20568 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20569echo "$as_me: error: Type int64_t required but not found" >&2;}
20570 { (exit 1); exit 1; }; }
20571fi
20572
20573echo "$as_me:$LINENO: checking for uint64_t" >&5
20574echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20575if test "${ac_cv_type_uint64_t+set}" = set; then
20576 echo $ECHO_N "(cached) $ECHO_C" >&6
20577else
20578 cat >conftest.$ac_ext <<_ACEOF
20579#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020580/* confdefs.h. */
20581_ACEOF
20582cat confdefs.h >>conftest.$ac_ext
20583cat >>conftest.$ac_ext <<_ACEOF
20584/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020585$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020586int
20587main ()
20588{
20589if ((uint64_t *) 0)
20590 return 0;
20591if (sizeof (uint64_t))
20592 return 0;
20593 ;
20594 return 0;
20595}
20596_ACEOF
20597rm -f conftest.$ac_objext
20598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20599 (eval $ac_compile) 2>&5
20600 ac_status=$?
20601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20602 (exit $ac_status); } &&
20603 { ac_try='test -s conftest.$ac_objext'
20604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20605 (eval $ac_try) 2>&5
20606 ac_status=$?
20607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20608 (exit $ac_status); }; }; then
20609 ac_cv_type_uint64_t=yes
20610else
20611 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020612sed 's/^/| /' conftest.$ac_ext >&5
20613
John Criswell7a73b802003-06-30 21:59:07 +000020614ac_cv_type_uint64_t=no
20615fi
20616rm -f conftest.$ac_objext conftest.$ac_ext
20617fi
20618echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20619echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20620if test $ac_cv_type_uint64_t = yes; then
20621
20622cat >>confdefs.h <<_ACEOF
20623#define HAVE_UINT64_T 1
20624_ACEOF
20625
20626
20627else
20628 { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
20629echo "$as_me: error: Type uint64_t required but not found" >&2;}
20630 { (exit 1); exit 1; }; }
20631fi
20632
20633echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20634echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20635if test "${ac_cv_header_time+set}" = set; then
20636 echo $ECHO_N "(cached) $ECHO_C" >&6
20637else
20638 cat >conftest.$ac_ext <<_ACEOF
20639#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020640/* confdefs.h. */
20641_ACEOF
20642cat confdefs.h >>conftest.$ac_ext
20643cat >>conftest.$ac_ext <<_ACEOF
20644/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020645#include <sys/types.h>
20646#include <sys/time.h>
20647#include <time.h>
20648
John Criswell7a73b802003-06-30 21:59:07 +000020649int
20650main ()
20651{
20652if ((struct tm *) 0)
20653return 0;
20654 ;
20655 return 0;
20656}
20657_ACEOF
20658rm -f conftest.$ac_objext
20659if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20660 (eval $ac_compile) 2>&5
20661 ac_status=$?
20662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20663 (exit $ac_status); } &&
20664 { ac_try='test -s conftest.$ac_objext'
20665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20666 (eval $ac_try) 2>&5
20667 ac_status=$?
20668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20669 (exit $ac_status); }; }; then
20670 ac_cv_header_time=yes
20671else
20672 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020673sed 's/^/| /' conftest.$ac_ext >&5
20674
John Criswell7a73b802003-06-30 21:59:07 +000020675ac_cv_header_time=no
20676fi
20677rm -f conftest.$ac_objext conftest.$ac_ext
20678fi
20679echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20680echo "${ECHO_T}$ac_cv_header_time" >&6
20681if test $ac_cv_header_time = yes; then
20682
20683cat >>confdefs.h <<\_ACEOF
20684#define TIME_WITH_SYS_TIME 1
20685_ACEOF
20686
20687fi
20688
20689echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20690echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20691if test "${ac_cv_struct_tm+set}" = set; then
20692 echo $ECHO_N "(cached) $ECHO_C" >&6
20693else
20694 cat >conftest.$ac_ext <<_ACEOF
20695#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020696/* confdefs.h. */
20697_ACEOF
20698cat confdefs.h >>conftest.$ac_ext
20699cat >>conftest.$ac_ext <<_ACEOF
20700/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020701#include <sys/types.h>
20702#include <time.h>
20703
John Criswell7a73b802003-06-30 21:59:07 +000020704int
20705main ()
20706{
20707struct tm *tp; tp->tm_sec;
20708 ;
20709 return 0;
20710}
20711_ACEOF
20712rm -f conftest.$ac_objext
20713if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20714 (eval $ac_compile) 2>&5
20715 ac_status=$?
20716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20717 (exit $ac_status); } &&
20718 { ac_try='test -s conftest.$ac_objext'
20719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20720 (eval $ac_try) 2>&5
20721 ac_status=$?
20722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20723 (exit $ac_status); }; }; then
20724 ac_cv_struct_tm=time.h
20725else
20726 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020727sed 's/^/| /' conftest.$ac_ext >&5
20728
John Criswell7a73b802003-06-30 21:59:07 +000020729ac_cv_struct_tm=sys/time.h
20730fi
20731rm -f conftest.$ac_objext conftest.$ac_ext
20732fi
20733echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20734echo "${ECHO_T}$ac_cv_struct_tm" >&6
20735if test $ac_cv_struct_tm = sys/time.h; then
20736
20737cat >>confdefs.h <<\_ACEOF
20738#define TM_IN_SYS_TIME 1
20739_ACEOF
20740
20741fi
20742
20743
John Criswell7a73b802003-06-30 21:59:07 +000020744echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20745echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20746if test "${ac_cv_cxx_namespaces+set}" = set; then
20747 echo $ECHO_N "(cached) $ECHO_C" >&6
20748else
20749
20750
20751 ac_ext=cc
20752ac_cpp='$CXXCPP $CPPFLAGS'
20753ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20754ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20755ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20756
20757 cat >conftest.$ac_ext <<_ACEOF
20758#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020759/* confdefs.h. */
20760_ACEOF
20761cat confdefs.h >>conftest.$ac_ext
20762cat >>conftest.$ac_ext <<_ACEOF
20763/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020764namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000020765int
20766main ()
20767{
20768using namespace Outer::Inner; return i;
20769 ;
20770 return 0;
20771}
20772_ACEOF
20773rm -f conftest.$ac_objext
20774if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20775 (eval $ac_compile) 2>&5
20776 ac_status=$?
20777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20778 (exit $ac_status); } &&
20779 { ac_try='test -s conftest.$ac_objext'
20780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20781 (eval $ac_try) 2>&5
20782 ac_status=$?
20783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20784 (exit $ac_status); }; }; then
20785 ac_cv_cxx_namespaces=yes
20786else
20787 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020788sed 's/^/| /' conftest.$ac_ext >&5
20789
John Criswell7a73b802003-06-30 21:59:07 +000020790ac_cv_cxx_namespaces=no
20791fi
20792rm -f conftest.$ac_objext conftest.$ac_ext
20793 ac_ext=c
20794ac_cpp='$CPP $CPPFLAGS'
20795ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20796ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20797ac_compiler_gnu=$ac_cv_c_compiler_gnu
20798
20799
20800fi
20801echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20802echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20803if test "$ac_cv_cxx_namespaces" = yes; then
20804
20805cat >>confdefs.h <<\_ACEOF
20806#define HAVE_NAMESPACES
20807_ACEOF
20808
20809fi
20810
20811echo "$as_me:$LINENO: checking whether the compiler has ext/hash_map" >&5
20812echo $ECHO_N "checking whether the compiler has ext/hash_map... $ECHO_C" >&6
20813if test "${ac_cv_cxx_have_ext_hash_map+set}" = set; then
20814 echo $ECHO_N "(cached) $ECHO_C" >&6
20815else
20816
20817
20818
20819 ac_ext=cc
20820ac_cpp='$CXXCPP $CPPFLAGS'
20821ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20822ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20823ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20824
20825 cat >conftest.$ac_ext <<_ACEOF
20826#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020827/* confdefs.h. */
20828_ACEOF
20829cat confdefs.h >>conftest.$ac_ext
20830cat >>conftest.$ac_ext <<_ACEOF
20831/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020832#include <ext/hash_map>
20833#ifdef HAVE_NAMESPACES
20834using namespace std;
20835#endif
John Criswell7a73b802003-06-30 21:59:07 +000020836int
20837main ()
20838{
20839hash_map<int, int> t; return 0;
20840 ;
20841 return 0;
20842}
20843_ACEOF
20844rm -f conftest.$ac_objext
20845if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20846 (eval $ac_compile) 2>&5
20847 ac_status=$?
20848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20849 (exit $ac_status); } &&
20850 { ac_try='test -s conftest.$ac_objext'
20851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20852 (eval $ac_try) 2>&5
20853 ac_status=$?
20854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20855 (exit $ac_status); }; }; then
20856 ac_cv_cxx_have_ext_hash_map=std
20857else
20858 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020859sed 's/^/| /' conftest.$ac_ext >&5
20860
John Criswell7a73b802003-06-30 21:59:07 +000020861ac_cv_cxx_have_ext_hash_map=no
20862fi
20863rm -f conftest.$ac_objext conftest.$ac_ext
20864 cat >conftest.$ac_ext <<_ACEOF
20865#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020866/* confdefs.h. */
20867_ACEOF
20868cat confdefs.h >>conftest.$ac_ext
20869cat >>conftest.$ac_ext <<_ACEOF
20870/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020871#include <ext/hash_map>
20872#ifdef HAVE_NAMESPACES
20873using namespace __gnu_cxx;
20874#endif
John Criswell7a73b802003-06-30 21:59:07 +000020875int
20876main ()
20877{
20878hash_map<int, int> t; return 0;
20879 ;
20880 return 0;
20881}
20882_ACEOF
20883rm -f conftest.$ac_objext
20884if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20885 (eval $ac_compile) 2>&5
20886 ac_status=$?
20887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20888 (exit $ac_status); } &&
20889 { ac_try='test -s conftest.$ac_objext'
20890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20891 (eval $ac_try) 2>&5
20892 ac_status=$?
20893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20894 (exit $ac_status); }; }; then
20895 ac_cv_cxx_have_ext_hash_map=gnu
20896else
20897 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020898sed 's/^/| /' conftest.$ac_ext >&5
20899
John Criswell7a73b802003-06-30 21:59:07 +000020900ac_cv_cxx_have_ext_hash_map=no
20901fi
20902rm -f conftest.$ac_objext conftest.$ac_ext
20903 ac_ext=c
20904ac_cpp='$CPP $CPPFLAGS'
20905ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20906ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20907ac_compiler_gnu=$ac_cv_c_compiler_gnu
20908
20909
20910fi
20911echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_map" >&5
20912echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_map" >&6
20913if test "$ac_cv_cxx_have_ext_hash_map" = std; then
20914
20915cat >>confdefs.h <<\_ACEOF
20916#define HAVE_STD_EXT_HASH_MAP
20917_ACEOF
20918
20919fi
20920if test "$ac_cv_cxx_have_ext_hash_map" = gnu; then
20921
20922cat >>confdefs.h <<\_ACEOF
20923#define HAVE_GNU_EXT_HASH_MAP
20924_ACEOF
20925
20926fi
20927
20928echo "$as_me:$LINENO: checking whether the compiler has ext/hash_set" >&5
20929echo $ECHO_N "checking whether the compiler has ext/hash_set... $ECHO_C" >&6
20930if test "${ac_cv_cxx_have_ext_hash_set+set}" = set; then
20931 echo $ECHO_N "(cached) $ECHO_C" >&6
20932else
20933
20934
20935
20936 ac_ext=cc
20937ac_cpp='$CXXCPP $CPPFLAGS'
20938ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20939ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20940ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20941
20942 cat >conftest.$ac_ext <<_ACEOF
20943#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020944/* confdefs.h. */
20945_ACEOF
20946cat confdefs.h >>conftest.$ac_ext
20947cat >>conftest.$ac_ext <<_ACEOF
20948/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020949#include <ext/hash_set>
20950#ifdef HAVE_NAMESPACES
20951using namespace std;
20952#endif
John Criswell7a73b802003-06-30 21:59:07 +000020953int
20954main ()
20955{
20956hash_set<int> t; return 0;
20957 ;
20958 return 0;
20959}
20960_ACEOF
20961rm -f conftest.$ac_objext
20962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20963 (eval $ac_compile) 2>&5
20964 ac_status=$?
20965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20966 (exit $ac_status); } &&
20967 { ac_try='test -s conftest.$ac_objext'
20968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20969 (eval $ac_try) 2>&5
20970 ac_status=$?
20971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20972 (exit $ac_status); }; }; then
20973 ac_cv_cxx_have_ext_hash_set=std
20974else
20975 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020976sed 's/^/| /' conftest.$ac_ext >&5
20977
John Criswell7a73b802003-06-30 21:59:07 +000020978ac_cv_cxx_have_ext_hash_set=no
20979fi
20980rm -f conftest.$ac_objext conftest.$ac_ext
20981 cat >conftest.$ac_ext <<_ACEOF
20982#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020983/* confdefs.h. */
20984_ACEOF
20985cat confdefs.h >>conftest.$ac_ext
20986cat >>conftest.$ac_ext <<_ACEOF
20987/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020988#include <ext/hash_set>
20989#ifdef HAVE_NAMESPACES
20990using namespace __gnu_cxx;
20991#endif
John Criswell7a73b802003-06-30 21:59:07 +000020992int
20993main ()
20994{
20995hash_set<int> t; return 0;
20996 ;
20997 return 0;
20998}
20999_ACEOF
21000rm -f conftest.$ac_objext
21001if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21002 (eval $ac_compile) 2>&5
21003 ac_status=$?
21004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21005 (exit $ac_status); } &&
21006 { ac_try='test -s conftest.$ac_objext'
21007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21008 (eval $ac_try) 2>&5
21009 ac_status=$?
21010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21011 (exit $ac_status); }; }; then
21012 ac_cv_cxx_have_ext_hash_set=gnu
21013else
21014 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021015sed 's/^/| /' conftest.$ac_ext >&5
21016
John Criswell7a73b802003-06-30 21:59:07 +000021017ac_cv_cxx_have_ext_hash_set=no
21018fi
21019rm -f conftest.$ac_objext conftest.$ac_ext
21020 ac_ext=c
21021ac_cpp='$CPP $CPPFLAGS'
21022ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21023ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21024ac_compiler_gnu=$ac_cv_c_compiler_gnu
21025
21026
21027fi
21028echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_set" >&5
21029echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_set" >&6
21030if test "$ac_cv_cxx_have_ext_hash_set" = std; then
21031
21032cat >>confdefs.h <<\_ACEOF
21033#define HAVE_STD_EXT_HASH_SET
21034_ACEOF
21035
21036fi
21037if test "$ac_cv_cxx_have_ext_hash_set" = gnu; then
21038
21039cat >>confdefs.h <<\_ACEOF
21040#define HAVE_GNU_EXT_HASH_SET
21041_ACEOF
21042
21043fi
21044
21045echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
21046echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
21047if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
21048 echo $ECHO_N "(cached) $ECHO_C" >&6
21049else
21050
21051
21052
21053 ac_ext=cc
21054ac_cpp='$CXXCPP $CPPFLAGS'
21055ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21056ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21057ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21058
21059 cat >conftest.$ac_ext <<_ACEOF
21060#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021061/* confdefs.h. */
21062_ACEOF
21063cat confdefs.h >>conftest.$ac_ext
21064cat >>conftest.$ac_ext <<_ACEOF
21065/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021066#include <ext/slist>
21067#ifdef HAVE_NAMESPACES
21068using namespace std;
21069#endif
John Criswell7a73b802003-06-30 21:59:07 +000021070int
21071main ()
21072{
21073slist<int> s; return 0;
21074 ;
21075 return 0;
21076}
21077_ACEOF
21078rm -f conftest.$ac_objext
21079if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21080 (eval $ac_compile) 2>&5
21081 ac_status=$?
21082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21083 (exit $ac_status); } &&
21084 { ac_try='test -s conftest.$ac_objext'
21085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21086 (eval $ac_try) 2>&5
21087 ac_status=$?
21088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21089 (exit $ac_status); }; }; then
21090 ac_cv_cxx_have_ext_slist=std
21091else
21092 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021093sed 's/^/| /' conftest.$ac_ext >&5
21094
John Criswell7a73b802003-06-30 21:59:07 +000021095ac_cv_cxx_have_ext_slist=no
21096fi
21097rm -f conftest.$ac_objext conftest.$ac_ext
21098 cat >conftest.$ac_ext <<_ACEOF
21099#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021100/* confdefs.h. */
21101_ACEOF
21102cat confdefs.h >>conftest.$ac_ext
21103cat >>conftest.$ac_ext <<_ACEOF
21104/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021105#include <ext/slist>
21106#ifdef HAVE_NAMESPACES
21107using namespace __gnu_cxx;
21108#endif
John Criswell7a73b802003-06-30 21:59:07 +000021109int
21110main ()
21111{
21112slist<int> s; return 0;
21113 ;
21114 return 0;
21115}
21116_ACEOF
21117rm -f conftest.$ac_objext
21118if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21119 (eval $ac_compile) 2>&5
21120 ac_status=$?
21121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21122 (exit $ac_status); } &&
21123 { ac_try='test -s conftest.$ac_objext'
21124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21125 (eval $ac_try) 2>&5
21126 ac_status=$?
21127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21128 (exit $ac_status); }; }; then
21129 ac_cv_cxx_have_ext_slist=gnu
21130else
21131 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021132sed 's/^/| /' conftest.$ac_ext >&5
21133
John Criswell7a73b802003-06-30 21:59:07 +000021134ac_cv_cxx_have_ext_slist=no
21135fi
21136rm -f conftest.$ac_objext conftest.$ac_ext
21137
21138 ac_ext=c
21139ac_cpp='$CPP $CPPFLAGS'
21140ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21141ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21142ac_compiler_gnu=$ac_cv_c_compiler_gnu
21143
21144
21145fi
21146echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
21147echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
21148if test "$ac_cv_cxx_have_ext_slist" = std; then
21149
21150cat >>confdefs.h <<\_ACEOF
21151#define HAVE_EXT_SLIST std
21152_ACEOF
21153
21154fi
21155if test "$ac_cv_cxx_have_ext_slist" = gnu; then
21156
21157cat >>confdefs.h <<\_ACEOF
21158#define HAVE_EXT_SLIST gnu
21159_ACEOF
21160
21161fi
21162
21163echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21164echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21165if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21166 echo $ECHO_N "(cached) $ECHO_C" >&6
21167else
21168
21169
21170
21171 ac_ext=cc
21172ac_cpp='$CXXCPP $CPPFLAGS'
21173ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21174ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21175ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21176
21177 cat >conftest.$ac_ext <<_ACEOF
21178#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021179/* confdefs.h. */
21180_ACEOF
21181cat confdefs.h >>conftest.$ac_ext
21182cat >>conftest.$ac_ext <<_ACEOF
21183/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021184#include <iterator>
21185#ifdef HAVE_NAMESPACES
21186using namespace std;
21187#endif
John Criswell7a73b802003-06-30 21:59:07 +000021188int
21189main ()
21190{
21191iterator<int,int,int> t; return 0;
21192 ;
21193 return 0;
21194}
21195_ACEOF
21196rm -f conftest.$ac_objext
21197if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21198 (eval $ac_compile) 2>&5
21199 ac_status=$?
21200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21201 (exit $ac_status); } &&
21202 { ac_try='test -s conftest.$ac_objext'
21203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21204 (eval $ac_try) 2>&5
21205 ac_status=$?
21206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21207 (exit $ac_status); }; }; then
21208 ac_cv_cxx_have_std_iterator=yes
21209else
21210 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021211sed 's/^/| /' conftest.$ac_ext >&5
21212
John Criswell7a73b802003-06-30 21:59:07 +000021213ac_cv_cxx_have_std_iterator=no
21214fi
21215rm -f conftest.$ac_objext conftest.$ac_ext
21216 ac_ext=c
21217ac_cpp='$CPP $CPPFLAGS'
21218ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21219ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21220ac_compiler_gnu=$ac_cv_c_compiler_gnu
21221
21222
21223fi
21224echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21225echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
21226if test "$ac_cv_cxx_have_std_iterator" = yes; then
21227
21228cat >>confdefs.h <<\_ACEOF
21229#define HAVE_STD_ITERATOR
21230_ACEOF
21231
21232fi
21233
21234echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21235echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21236if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21237 echo $ECHO_N "(cached) $ECHO_C" >&6
21238else
21239
21240
21241
21242 ac_ext=cc
21243ac_cpp='$CXXCPP $CPPFLAGS'
21244ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21245ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21246ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21247
21248 cat >conftest.$ac_ext <<_ACEOF
21249#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021250/* confdefs.h. */
21251_ACEOF
21252cat confdefs.h >>conftest.$ac_ext
21253cat >>conftest.$ac_ext <<_ACEOF
21254/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021255#include <iterator>
21256#ifdef HAVE_NAMESPACES
21257using namespace std;
21258#endif
John Criswell7a73b802003-06-30 21:59:07 +000021259int
21260main ()
21261{
John Criswellc78022e2003-07-29 19:11:58 +000021262bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021263 ;
21264 return 0;
21265}
21266_ACEOF
21267rm -f conftest.$ac_objext
21268if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21269 (eval $ac_compile) 2>&5
21270 ac_status=$?
21271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21272 (exit $ac_status); } &&
21273 { ac_try='test -s conftest.$ac_objext'
21274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21275 (eval $ac_try) 2>&5
21276 ac_status=$?
21277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21278 (exit $ac_status); }; }; then
21279 ac_cv_cxx_have_bi_iterator=yes
21280else
21281 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021282sed 's/^/| /' conftest.$ac_ext >&5
21283
John Criswell7a73b802003-06-30 21:59:07 +000021284ac_cv_cxx_have_bi_iterator=no
21285fi
21286rm -f conftest.$ac_objext conftest.$ac_ext
21287 ac_ext=c
21288ac_cpp='$CPP $CPPFLAGS'
21289ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21290ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21291ac_compiler_gnu=$ac_cv_c_compiler_gnu
21292
21293
21294fi
21295echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21296echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
21297if test "$ac_cv_cxx_have_bi_iterator" = yes; then
21298
21299cat >>confdefs.h <<\_ACEOF
21300#define HAVE_BI_ITERATOR
21301_ACEOF
21302
21303fi
21304
21305echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21306echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21307if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21308 echo $ECHO_N "(cached) $ECHO_C" >&6
21309else
21310
21311
21312
21313 ac_ext=cc
21314ac_cpp='$CXXCPP $CPPFLAGS'
21315ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21316ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21317ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21318
21319 cat >conftest.$ac_ext <<_ACEOF
21320#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021321/* confdefs.h. */
21322_ACEOF
21323cat confdefs.h >>conftest.$ac_ext
21324cat >>conftest.$ac_ext <<_ACEOF
21325/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021326#include <iterator>
21327#ifdef HAVE_NAMESPACES
21328using namespace std;
21329#endif
John Criswell7a73b802003-06-30 21:59:07 +000021330int
21331main ()
21332{
John Criswellc78022e2003-07-29 19:11:58 +000021333forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021334 ;
21335 return 0;
21336}
21337_ACEOF
21338rm -f conftest.$ac_objext
21339if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21340 (eval $ac_compile) 2>&5
21341 ac_status=$?
21342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21343 (exit $ac_status); } &&
21344 { ac_try='test -s conftest.$ac_objext'
21345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21346 (eval $ac_try) 2>&5
21347 ac_status=$?
21348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21349 (exit $ac_status); }; }; then
21350 ac_cv_cxx_have_fwd_iterator=yes
21351else
21352 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021353sed 's/^/| /' conftest.$ac_ext >&5
21354
John Criswell7a73b802003-06-30 21:59:07 +000021355ac_cv_cxx_have_fwd_iterator=no
21356fi
21357rm -f conftest.$ac_objext conftest.$ac_ext
21358 ac_ext=c
21359ac_cpp='$CPP $CPPFLAGS'
21360ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21361ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21362ac_compiler_gnu=$ac_cv_c_compiler_gnu
21363
21364
21365fi
21366echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21367echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
21368if test "$ac_cv_cxx_have_fwd_iterator" = yes; then
21369
21370cat >>confdefs.h <<\_ACEOF
21371#define HAVE_FWD_ITERATOR
21372_ACEOF
21373
21374fi
21375
21376
21377# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21378# for constant arguments. Useless!
21379echo "$as_me:$LINENO: checking for working alloca.h" >&5
21380echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21381if test "${ac_cv_working_alloca_h+set}" = set; then
21382 echo $ECHO_N "(cached) $ECHO_C" >&6
21383else
21384 cat >conftest.$ac_ext <<_ACEOF
21385#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021386/* confdefs.h. */
21387_ACEOF
21388cat confdefs.h >>conftest.$ac_ext
21389cat >>conftest.$ac_ext <<_ACEOF
21390/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021391#include <alloca.h>
John Criswell7a73b802003-06-30 21:59:07 +000021392int
21393main ()
21394{
21395char *p = (char *) alloca (2 * sizeof (int));
21396 ;
21397 return 0;
21398}
21399_ACEOF
21400rm -f conftest.$ac_objext conftest$ac_exeext
21401if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21402 (eval $ac_link) 2>&5
21403 ac_status=$?
21404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21405 (exit $ac_status); } &&
21406 { ac_try='test -s conftest$ac_exeext'
21407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21408 (eval $ac_try) 2>&5
21409 ac_status=$?
21410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21411 (exit $ac_status); }; }; then
21412 ac_cv_working_alloca_h=yes
21413else
21414 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021415sed 's/^/| /' conftest.$ac_ext >&5
21416
John Criswell7a73b802003-06-30 21:59:07 +000021417ac_cv_working_alloca_h=no
21418fi
21419rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21420fi
21421echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21422echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21423if test $ac_cv_working_alloca_h = yes; then
21424
21425cat >>confdefs.h <<\_ACEOF
21426#define HAVE_ALLOCA_H 1
21427_ACEOF
21428
21429fi
21430
21431echo "$as_me:$LINENO: checking for alloca" >&5
21432echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21433if test "${ac_cv_func_alloca_works+set}" = set; then
21434 echo $ECHO_N "(cached) $ECHO_C" >&6
21435else
21436 cat >conftest.$ac_ext <<_ACEOF
21437#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021438/* confdefs.h. */
21439_ACEOF
21440cat confdefs.h >>conftest.$ac_ext
21441cat >>conftest.$ac_ext <<_ACEOF
21442/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021443#ifdef __GNUC__
21444# define alloca __builtin_alloca
21445#else
21446# ifdef _MSC_VER
21447# include <malloc.h>
21448# define alloca _alloca
21449# else
21450# if HAVE_ALLOCA_H
21451# include <alloca.h>
21452# else
21453# ifdef _AIX
21454 #pragma alloca
21455# else
21456# ifndef alloca /* predefined by HP cc +Olibcalls */
21457char *alloca ();
21458# endif
21459# endif
21460# endif
21461# endif
21462#endif
21463
John Criswell7a73b802003-06-30 21:59:07 +000021464int
21465main ()
21466{
21467char *p = (char *) alloca (1);
21468 ;
21469 return 0;
21470}
21471_ACEOF
21472rm -f conftest.$ac_objext conftest$ac_exeext
21473if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21474 (eval $ac_link) 2>&5
21475 ac_status=$?
21476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21477 (exit $ac_status); } &&
21478 { ac_try='test -s conftest$ac_exeext'
21479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21480 (eval $ac_try) 2>&5
21481 ac_status=$?
21482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21483 (exit $ac_status); }; }; then
21484 ac_cv_func_alloca_works=yes
21485else
21486 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021487sed 's/^/| /' conftest.$ac_ext >&5
21488
John Criswell7a73b802003-06-30 21:59:07 +000021489ac_cv_func_alloca_works=no
21490fi
21491rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21492fi
21493echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21494echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21495
21496if test $ac_cv_func_alloca_works = yes; then
21497
21498cat >>confdefs.h <<\_ACEOF
21499#define HAVE_ALLOCA 1
21500_ACEOF
21501
21502else
21503 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21504# that cause trouble. Some versions do not even contain alloca or
21505# contain a buggy version. If you still want to use their alloca,
21506# use ar to extract alloca.o from them instead of compiling alloca.c.
21507
21508ALLOCA=alloca.$ac_objext
21509
21510cat >>confdefs.h <<\_ACEOF
21511#define C_ALLOCA 1
21512_ACEOF
21513
21514
21515echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21516echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21517if test "${ac_cv_os_cray+set}" = set; then
21518 echo $ECHO_N "(cached) $ECHO_C" >&6
21519else
21520 cat >conftest.$ac_ext <<_ACEOF
21521#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021522/* confdefs.h. */
21523_ACEOF
21524cat confdefs.h >>conftest.$ac_ext
21525cat >>conftest.$ac_ext <<_ACEOF
21526/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021527#if defined(CRAY) && ! defined(CRAY2)
21528webecray
21529#else
21530wenotbecray
21531#endif
21532
21533_ACEOF
21534if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021535 $EGREP "webecray" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021536 ac_cv_os_cray=yes
21537else
21538 ac_cv_os_cray=no
21539fi
21540rm -f conftest*
21541
21542fi
21543echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21544echo "${ECHO_T}$ac_cv_os_cray" >&6
21545if test $ac_cv_os_cray = yes; then
21546 for ac_func in _getb67 GETB67 getb67; do
21547 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21548echo "$as_me:$LINENO: checking for $ac_func" >&5
21549echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21550if eval "test \"\${$as_ac_var+set}\" = set"; then
21551 echo $ECHO_N "(cached) $ECHO_C" >&6
21552else
21553 cat >conftest.$ac_ext <<_ACEOF
21554#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021555/* confdefs.h. */
21556_ACEOF
21557cat confdefs.h >>conftest.$ac_ext
21558cat >>conftest.$ac_ext <<_ACEOF
21559/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021560/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000021561 which can conflict with char $ac_func (); below.
21562 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21563 <limits.h> exists even on freestanding compilers. */
21564#ifdef __STDC__
21565# include <limits.h>
21566#else
21567# include <assert.h>
21568#endif
John Criswell7a73b802003-06-30 21:59:07 +000021569/* Override any gcc2 internal prototype to avoid an error. */
21570#ifdef __cplusplus
21571extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000021572{
John Criswell7a73b802003-06-30 21:59:07 +000021573#endif
21574/* We use char because int might match the return type of a gcc2
21575 builtin and then its argument prototype would still apply. */
21576char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000021577/* The GNU C library defines this for functions which it implements
21578 to always fail with ENOSYS. Some functions are actually named
21579 something starting with __ and the normal name is an alias. */
21580#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21581choke me
21582#else
John Criswell0c38eaf2003-09-10 15:17:25 +000021583char (*f) () = $ac_func;
21584#endif
21585#ifdef __cplusplus
21586}
John Criswell7a73b802003-06-30 21:59:07 +000021587#endif
21588
John Criswell0c38eaf2003-09-10 15:17:25 +000021589int
21590main ()
21591{
21592return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000021593 ;
21594 return 0;
21595}
21596_ACEOF
21597rm -f conftest.$ac_objext conftest$ac_exeext
21598if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21599 (eval $ac_link) 2>&5
21600 ac_status=$?
21601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21602 (exit $ac_status); } &&
21603 { ac_try='test -s conftest$ac_exeext'
21604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21605 (eval $ac_try) 2>&5
21606 ac_status=$?
21607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21608 (exit $ac_status); }; }; then
21609 eval "$as_ac_var=yes"
21610else
21611 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021612sed 's/^/| /' conftest.$ac_ext >&5
21613
John Criswell7a73b802003-06-30 21:59:07 +000021614eval "$as_ac_var=no"
21615fi
21616rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21617fi
21618echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21619echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21620if test `eval echo '${'$as_ac_var'}'` = yes; then
21621
21622cat >>confdefs.h <<_ACEOF
21623#define CRAY_STACKSEG_END $ac_func
21624_ACEOF
21625
21626 break
21627fi
21628
21629 done
21630fi
21631
21632echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21633echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21634if test "${ac_cv_c_stack_direction+set}" = set; then
21635 echo $ECHO_N "(cached) $ECHO_C" >&6
21636else
21637 if test "$cross_compiling" = yes; then
21638 ac_cv_c_stack_direction=0
21639else
21640 cat >conftest.$ac_ext <<_ACEOF
21641#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021642/* confdefs.h. */
21643_ACEOF
21644cat confdefs.h >>conftest.$ac_ext
21645cat >>conftest.$ac_ext <<_ACEOF
21646/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021647int
21648find_stack_direction ()
21649{
21650 static char *addr = 0;
21651 auto char dummy;
21652 if (addr == 0)
21653 {
21654 addr = &dummy;
21655 return find_stack_direction ();
21656 }
21657 else
21658 return (&dummy > addr) ? 1 : -1;
21659}
21660
21661int
21662main ()
21663{
21664 exit (find_stack_direction () < 0);
21665}
21666_ACEOF
21667rm -f conftest$ac_exeext
21668if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21669 (eval $ac_link) 2>&5
21670 ac_status=$?
21671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21672 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21674 (eval $ac_try) 2>&5
21675 ac_status=$?
21676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21677 (exit $ac_status); }; }; then
21678 ac_cv_c_stack_direction=1
21679else
21680 echo "$as_me: program exited with status $ac_status" >&5
21681echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021682sed 's/^/| /' conftest.$ac_ext >&5
21683
John Criswell7a73b802003-06-30 21:59:07 +000021684( exit $ac_status )
21685ac_cv_c_stack_direction=-1
21686fi
John Criswell0c38eaf2003-09-10 15:17:25 +000021687rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021688fi
21689fi
21690echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21691echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21692
21693cat >>confdefs.h <<_ACEOF
21694#define STACK_DIRECTION $ac_cv_c_stack_direction
21695_ACEOF
21696
21697
21698fi
21699
21700if test $ac_cv_c_compiler_gnu = yes; then
21701 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
21702echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
21703if test "${ac_cv_prog_gcc_traditional+set}" = set; then
21704 echo $ECHO_N "(cached) $ECHO_C" >&6
21705else
21706 ac_pattern="Autoconf.*'x'"
21707 cat >conftest.$ac_ext <<_ACEOF
21708#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021709/* confdefs.h. */
21710_ACEOF
21711cat confdefs.h >>conftest.$ac_ext
21712cat >>conftest.$ac_ext <<_ACEOF
21713/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021714#include <sgtty.h>
21715Autoconf TIOCGETP
21716_ACEOF
21717if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021718 $EGREP "$ac_pattern" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021719 ac_cv_prog_gcc_traditional=yes
21720else
21721 ac_cv_prog_gcc_traditional=no
21722fi
21723rm -f conftest*
21724
21725
21726 if test $ac_cv_prog_gcc_traditional = no; then
21727 cat >conftest.$ac_ext <<_ACEOF
21728#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021729/* confdefs.h. */
21730_ACEOF
21731cat confdefs.h >>conftest.$ac_ext
21732cat >>conftest.$ac_ext <<_ACEOF
21733/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021734#include <termio.h>
21735Autoconf TCGETA
21736_ACEOF
21737if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021738 $EGREP "$ac_pattern" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021739 ac_cv_prog_gcc_traditional=yes
21740fi
21741rm -f conftest*
21742
21743 fi
21744fi
21745echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
21746echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
21747 if test $ac_cv_prog_gcc_traditional = yes; then
21748 CC="$CC -traditional"
21749 fi
21750fi
21751
21752echo "$as_me:$LINENO: checking for working memcmp" >&5
21753echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
21754if test "${ac_cv_func_memcmp_working+set}" = set; then
21755 echo $ECHO_N "(cached) $ECHO_C" >&6
21756else
21757 if test "$cross_compiling" = yes; then
21758 ac_cv_func_memcmp_working=no
21759else
21760 cat >conftest.$ac_ext <<_ACEOF
21761#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021762/* confdefs.h. */
21763_ACEOF
21764cat confdefs.h >>conftest.$ac_ext
21765cat >>conftest.$ac_ext <<_ACEOF
21766/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021767
John Criswell7a73b802003-06-30 21:59:07 +000021768int
21769main ()
21770{
21771
21772 /* Some versions of memcmp are not 8-bit clean. */
21773 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21774 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21775 exit (1);
21776
21777 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21778 or more and with at least one buffer not starting on a 4-byte boundary.
21779 William Lewis provided this test program. */
21780 {
21781 char foo[21];
21782 char bar[21];
21783 int i;
21784 for (i = 0; i < 4; i++)
21785 {
21786 char *a = foo + i;
21787 char *b = bar + i;
21788 strcpy (a, "--------01111111");
21789 strcpy (b, "--------10000000");
21790 if (memcmp (a, b, 16) >= 0)
21791 exit (1);
21792 }
21793 exit (0);
21794 }
21795
21796 ;
21797 return 0;
21798}
21799_ACEOF
21800rm -f conftest$ac_exeext
21801if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21802 (eval $ac_link) 2>&5
21803 ac_status=$?
21804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21805 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21807 (eval $ac_try) 2>&5
21808 ac_status=$?
21809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21810 (exit $ac_status); }; }; then
21811 ac_cv_func_memcmp_working=yes
21812else
21813 echo "$as_me: program exited with status $ac_status" >&5
21814echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021815sed 's/^/| /' conftest.$ac_ext >&5
21816
John Criswell7a73b802003-06-30 21:59:07 +000021817( exit $ac_status )
21818ac_cv_func_memcmp_working=no
21819fi
John Criswell0c38eaf2003-09-10 15:17:25 +000021820rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021821fi
21822fi
21823echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21824echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21825test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21826
21827
21828
21829for ac_header in stdlib.h unistd.h
21830do
21831as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21832if eval "test \"\${$as_ac_Header+set}\" = set"; then
21833 echo "$as_me:$LINENO: checking for $ac_header" >&5
21834echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21835if eval "test \"\${$as_ac_Header+set}\" = set"; then
21836 echo $ECHO_N "(cached) $ECHO_C" >&6
21837fi
21838echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21839echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21840else
21841 # Is the header compilable?
21842echo "$as_me:$LINENO: checking $ac_header usability" >&5
21843echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21844cat >conftest.$ac_ext <<_ACEOF
21845#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021846/* confdefs.h. */
21847_ACEOF
21848cat confdefs.h >>conftest.$ac_ext
21849cat >>conftest.$ac_ext <<_ACEOF
21850/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021851$ac_includes_default
21852#include <$ac_header>
21853_ACEOF
21854rm -f conftest.$ac_objext
21855if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21856 (eval $ac_compile) 2>&5
21857 ac_status=$?
21858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21859 (exit $ac_status); } &&
21860 { ac_try='test -s conftest.$ac_objext'
21861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21862 (eval $ac_try) 2>&5
21863 ac_status=$?
21864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21865 (exit $ac_status); }; }; then
21866 ac_header_compiler=yes
21867else
21868 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021869sed 's/^/| /' conftest.$ac_ext >&5
21870
John Criswell7a73b802003-06-30 21:59:07 +000021871ac_header_compiler=no
21872fi
21873rm -f conftest.$ac_objext conftest.$ac_ext
21874echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21875echo "${ECHO_T}$ac_header_compiler" >&6
21876
21877# Is the header present?
21878echo "$as_me:$LINENO: checking $ac_header presence" >&5
21879echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21880cat >conftest.$ac_ext <<_ACEOF
21881#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021882/* confdefs.h. */
21883_ACEOF
21884cat confdefs.h >>conftest.$ac_ext
21885cat >>conftest.$ac_ext <<_ACEOF
21886/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021887#include <$ac_header>
21888_ACEOF
21889if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21890 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21891 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000021892 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000021893 rm -f conftest.er1
21894 cat conftest.err >&5
21895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21896 (exit $ac_status); } >/dev/null; then
21897 if test -s conftest.err; then
21898 ac_cpp_err=$ac_c_preproc_warn_flag
21899 else
21900 ac_cpp_err=
21901 fi
21902else
21903 ac_cpp_err=yes
21904fi
21905if test -z "$ac_cpp_err"; then
21906 ac_header_preproc=yes
21907else
21908 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021909sed 's/^/| /' conftest.$ac_ext >&5
21910
John Criswell7a73b802003-06-30 21:59:07 +000021911 ac_header_preproc=no
21912fi
21913rm -f conftest.err conftest.$ac_ext
21914echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21915echo "${ECHO_T}$ac_header_preproc" >&6
21916
21917# So? What about this header?
21918case $ac_header_compiler:$ac_header_preproc in
21919 yes:no )
21920 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21921echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21922 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021923echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21924 (
21925 cat <<\_ASBOX
21926## ------------------------------------ ##
21927## Report this to bug-autoconf@gnu.org. ##
21928## ------------------------------------ ##
21929_ASBOX
21930 ) |
21931 sed "s/^/$as_me: WARNING: /" >&2
21932 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021933 no:yes )
21934 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21935echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21936 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21937echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21938 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021939echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21940 (
21941 cat <<\_ASBOX
21942## ------------------------------------ ##
21943## Report this to bug-autoconf@gnu.org. ##
21944## ------------------------------------ ##
21945_ASBOX
21946 ) |
21947 sed "s/^/$as_me: WARNING: /" >&2
21948 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021949esac
21950echo "$as_me:$LINENO: checking for $ac_header" >&5
21951echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21952if eval "test \"\${$as_ac_Header+set}\" = set"; then
21953 echo $ECHO_N "(cached) $ECHO_C" >&6
21954else
21955 eval "$as_ac_Header=$ac_header_preproc"
21956fi
21957echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21958echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21959
21960fi
21961if test `eval echo '${'$as_ac_Header'}'` = yes; then
21962 cat >>confdefs.h <<_ACEOF
21963#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21964_ACEOF
21965
21966fi
21967
21968done
21969
21970
21971for ac_func in getpagesize
21972do
21973as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21974echo "$as_me:$LINENO: checking for $ac_func" >&5
21975echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21976if eval "test \"\${$as_ac_var+set}\" = set"; then
21977 echo $ECHO_N "(cached) $ECHO_C" >&6
21978else
21979 cat >conftest.$ac_ext <<_ACEOF
21980#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021981/* confdefs.h. */
21982_ACEOF
21983cat confdefs.h >>conftest.$ac_ext
21984cat >>conftest.$ac_ext <<_ACEOF
21985/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021986/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000021987 which can conflict with char $ac_func (); below.
21988 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21989 <limits.h> exists even on freestanding compilers. */
21990#ifdef __STDC__
21991# include <limits.h>
21992#else
21993# include <assert.h>
21994#endif
John Criswell7a73b802003-06-30 21:59:07 +000021995/* Override any gcc2 internal prototype to avoid an error. */
21996#ifdef __cplusplus
21997extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000021998{
John Criswell7a73b802003-06-30 21:59:07 +000021999#endif
22000/* We use char because int might match the return type of a gcc2
22001 builtin and then its argument prototype would still apply. */
22002char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000022003/* The GNU C library defines this for functions which it implements
22004 to always fail with ENOSYS. Some functions are actually named
22005 something starting with __ and the normal name is an alias. */
22006#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22007choke me
22008#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022009char (*f) () = $ac_func;
22010#endif
22011#ifdef __cplusplus
22012}
John Criswell7a73b802003-06-30 21:59:07 +000022013#endif
22014
John Criswell0c38eaf2003-09-10 15:17:25 +000022015int
22016main ()
22017{
22018return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000022019 ;
22020 return 0;
22021}
22022_ACEOF
22023rm -f conftest.$ac_objext conftest$ac_exeext
22024if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22025 (eval $ac_link) 2>&5
22026 ac_status=$?
22027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22028 (exit $ac_status); } &&
22029 { ac_try='test -s conftest$ac_exeext'
22030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22031 (eval $ac_try) 2>&5
22032 ac_status=$?
22033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22034 (exit $ac_status); }; }; then
22035 eval "$as_ac_var=yes"
22036else
22037 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022038sed 's/^/| /' conftest.$ac_ext >&5
22039
John Criswell7a73b802003-06-30 21:59:07 +000022040eval "$as_ac_var=no"
22041fi
22042rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22043fi
22044echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22045echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22046if test `eval echo '${'$as_ac_var'}'` = yes; then
22047 cat >>confdefs.h <<_ACEOF
22048#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22049_ACEOF
22050
22051fi
22052done
22053
22054echo "$as_me:$LINENO: checking for working mmap" >&5
22055echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
22056if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
22057 echo $ECHO_N "(cached) $ECHO_C" >&6
22058else
22059 if test "$cross_compiling" = yes; then
22060 ac_cv_func_mmap_fixed_mapped=no
22061else
22062 cat >conftest.$ac_ext <<_ACEOF
22063#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022064/* confdefs.h. */
22065_ACEOF
22066cat confdefs.h >>conftest.$ac_ext
22067cat >>conftest.$ac_ext <<_ACEOF
22068/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022069$ac_includes_default
22070/* malloc might have been renamed as rpl_malloc. */
22071#undef malloc
22072
22073/* Thanks to Mike Haertel and Jim Avera for this test.
22074 Here is a matrix of mmap possibilities:
22075 mmap private not fixed
22076 mmap private fixed at somewhere currently unmapped
22077 mmap private fixed at somewhere already mapped
22078 mmap shared not fixed
22079 mmap shared fixed at somewhere currently unmapped
22080 mmap shared fixed at somewhere already mapped
22081 For private mappings, we should verify that changes cannot be read()
22082 back from the file, nor mmap's back from the file at a different
22083 address. (There have been systems where private was not correctly
22084 implemented like the infamous i386 svr4.0, and systems where the
22085 VM page cache was not coherent with the file system buffer cache
22086 like early versions of FreeBSD and possibly contemporary NetBSD.)
22087 For shared mappings, we should conversely verify that changes get
22088 propagated back to all the places they're supposed to be.
22089
22090 Grep wants private fixed already mapped.
22091 The main things grep needs to know about mmap are:
22092 * does it exist and is it safe to write into the mmap'd area
22093 * how to use it (BSD variants) */
22094
22095#include <fcntl.h>
22096#include <sys/mman.h>
22097
22098#if !STDC_HEADERS && !HAVE_STDLIB_H
22099char *malloc ();
22100#endif
22101
22102/* This mess was copied from the GNU getpagesize.h. */
22103#if !HAVE_GETPAGESIZE
22104/* Assume that all systems that can run configure have sys/param.h. */
22105# if !HAVE_SYS_PARAM_H
22106# define HAVE_SYS_PARAM_H 1
22107# endif
22108
22109# ifdef _SC_PAGESIZE
22110# define getpagesize() sysconf(_SC_PAGESIZE)
22111# else /* no _SC_PAGESIZE */
22112# if HAVE_SYS_PARAM_H
22113# include <sys/param.h>
22114# ifdef EXEC_PAGESIZE
22115# define getpagesize() EXEC_PAGESIZE
22116# else /* no EXEC_PAGESIZE */
22117# ifdef NBPG
22118# define getpagesize() NBPG * CLSIZE
22119# ifndef CLSIZE
22120# define CLSIZE 1
22121# endif /* no CLSIZE */
22122# else /* no NBPG */
22123# ifdef NBPC
22124# define getpagesize() NBPC
22125# else /* no NBPC */
22126# ifdef PAGESIZE
22127# define getpagesize() PAGESIZE
22128# endif /* PAGESIZE */
22129# endif /* no NBPC */
22130# endif /* no NBPG */
22131# endif /* no EXEC_PAGESIZE */
22132# else /* no HAVE_SYS_PARAM_H */
22133# define getpagesize() 8192 /* punt totally */
22134# endif /* no HAVE_SYS_PARAM_H */
22135# endif /* no _SC_PAGESIZE */
22136
22137#endif /* no HAVE_GETPAGESIZE */
22138
22139int
22140main ()
22141{
22142 char *data, *data2, *data3;
22143 int i, pagesize;
22144 int fd;
22145
22146 pagesize = getpagesize ();
22147
22148 /* First, make a file with some known garbage in it. */
22149 data = (char *) malloc (pagesize);
22150 if (!data)
22151 exit (1);
22152 for (i = 0; i < pagesize; ++i)
22153 *(data + i) = rand ();
22154 umask (0);
22155 fd = creat ("conftest.mmap", 0600);
22156 if (fd < 0)
22157 exit (1);
22158 if (write (fd, data, pagesize) != pagesize)
22159 exit (1);
22160 close (fd);
22161
22162 /* Next, try to mmap the file at a fixed address which already has
22163 something else allocated at it. If we can, also make sure that
22164 we see the same garbage. */
22165 fd = open ("conftest.mmap", O_RDWR);
22166 if (fd < 0)
22167 exit (1);
22168 data2 = (char *) malloc (2 * pagesize);
22169 if (!data2)
22170 exit (1);
22171 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
22172 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22173 MAP_PRIVATE | MAP_FIXED, fd, 0L))
22174 exit (1);
22175 for (i = 0; i < pagesize; ++i)
22176 if (*(data + i) != *(data2 + i))
22177 exit (1);
22178
22179 /* Finally, make sure that changes to the mapped area do not
22180 percolate back to the file as seen by read(). (This is a bug on
22181 some variants of i386 svr4.0.) */
22182 for (i = 0; i < pagesize; ++i)
22183 *(data2 + i) = *(data2 + i) + 1;
22184 data3 = (char *) malloc (pagesize);
22185 if (!data3)
22186 exit (1);
22187 if (read (fd, data3, pagesize) != pagesize)
22188 exit (1);
22189 for (i = 0; i < pagesize; ++i)
22190 if (*(data + i) != *(data3 + i))
22191 exit (1);
22192 close (fd);
22193 exit (0);
22194}
22195_ACEOF
22196rm -f conftest$ac_exeext
22197if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22198 (eval $ac_link) 2>&5
22199 ac_status=$?
22200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22201 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22203 (eval $ac_try) 2>&5
22204 ac_status=$?
22205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22206 (exit $ac_status); }; }; then
22207 ac_cv_func_mmap_fixed_mapped=yes
22208else
22209 echo "$as_me: program exited with status $ac_status" >&5
22210echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022211sed 's/^/| /' conftest.$ac_ext >&5
22212
John Criswell7a73b802003-06-30 21:59:07 +000022213( exit $ac_status )
22214ac_cv_func_mmap_fixed_mapped=no
22215fi
John Criswell0c38eaf2003-09-10 15:17:25 +000022216rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022217fi
22218fi
22219echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22220echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22221if test $ac_cv_func_mmap_fixed_mapped = yes; then
22222
22223cat >>confdefs.h <<\_ACEOF
22224#define HAVE_MMAP 1
22225_ACEOF
22226
22227fi
22228rm -f conftest.mmap
22229
22230echo "$as_me:$LINENO: checking for mmap of files" >&5
22231echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
22232if test "${ac_cv_func_mmap_file+set}" = set; then
22233 echo $ECHO_N "(cached) $ECHO_C" >&6
22234else
22235
22236
22237 ac_ext=c
22238ac_cpp='$CPP $CPPFLAGS'
22239ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22240ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22241ac_compiler_gnu=$ac_cv_c_compiler_gnu
22242
22243 if test "$cross_compiling" = yes; then
John Criswell0c38eaf2003-09-10 15:17:25 +000022244 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22245See \`config.log' for more details." >&5
22246echo "$as_me: error: cannot run test program while cross compiling
22247See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022248 { (exit 1); exit 1; }; }
22249else
22250 cat >conftest.$ac_ext <<_ACEOF
22251#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022252/* confdefs.h. */
22253_ACEOF
22254cat confdefs.h >>conftest.$ac_ext
22255cat >>conftest.$ac_ext <<_ACEOF
22256/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022257
22258#ifdef HAVE_SYS_MMAN_H
22259#include <sys/mman.h>
22260#endif
22261
22262#ifdef HAVE_SYS_TYPES_H
22263#include <sys/types.h>
22264#endif
22265
22266#ifdef HAVE_FCNTL_H
22267#include <fcntl.h>
22268#endif
22269
22270 int fd;
22271 int main () {
22272 fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != MAP_FAILED);}
22273_ACEOF
22274rm -f conftest$ac_exeext
22275if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22276 (eval $ac_link) 2>&5
22277 ac_status=$?
22278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22279 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22281 (eval $ac_try) 2>&5
22282 ac_status=$?
22283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22284 (exit $ac_status); }; }; then
22285 ac_cv_func_mmap_file=yes
22286else
22287 echo "$as_me: program exited with status $ac_status" >&5
22288echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022289sed 's/^/| /' conftest.$ac_ext >&5
22290
John Criswell7a73b802003-06-30 21:59:07 +000022291( exit $ac_status )
22292ac_cv_func_mmap_file=no
22293fi
John Criswell0c38eaf2003-09-10 15:17:25 +000022294rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022295fi
22296 ac_ext=c
22297ac_cpp='$CPP $CPPFLAGS'
22298ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22299ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22300ac_compiler_gnu=$ac_cv_c_compiler_gnu
22301
22302
22303fi
22304echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22305echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
22306if test "$ac_cv_func_mmap_file" = yes; then
22307 cat >>confdefs.h <<\_ACEOF
22308#define HAVE_MMAP_FILE 1
22309_ACEOF
22310
22311 MMAP_FILE=yes
22312
22313fi
22314
22315if test ${ac_cv_func_mmap_file} = "no"
22316then
22317 { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
22318echo "$as_me: error: mmap() of files required but not found" >&2;}
22319 { (exit 1); exit 1; }; }
22320fi
22321echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
22322echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
22323if test "${ac_cv_header_mmap_anon+set}" = set; then
22324 echo $ECHO_N "(cached) $ECHO_C" >&6
22325else
22326
22327
22328 ac_ext=c
22329ac_cpp='$CPP $CPPFLAGS'
22330ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22331ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22332ac_compiler_gnu=$ac_cv_c_compiler_gnu
22333
22334 cat >conftest.$ac_ext <<_ACEOF
22335#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022336/* confdefs.h. */
22337_ACEOF
22338cat confdefs.h >>conftest.$ac_ext
22339cat >>conftest.$ac_ext <<_ACEOF
22340/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022341#include <sys/mman.h>
22342 #include <unistd.h>
22343 #include <fcntl.h>
John Criswell7a73b802003-06-30 21:59:07 +000022344int
22345main ()
22346{
22347mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
22348 ;
22349 return 0;
22350}
22351_ACEOF
22352rm -f conftest.$ac_objext
22353if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22354 (eval $ac_compile) 2>&5
22355 ac_status=$?
22356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22357 (exit $ac_status); } &&
22358 { ac_try='test -s conftest.$ac_objext'
22359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22360 (eval $ac_try) 2>&5
22361 ac_status=$?
22362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22363 (exit $ac_status); }; }; then
22364 ac_cv_header_mmap_anon=yes
22365else
22366 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022367sed 's/^/| /' conftest.$ac_ext >&5
22368
John Criswell7a73b802003-06-30 21:59:07 +000022369ac_cv_header_mmap_anon=no
22370fi
22371rm -f conftest.$ac_objext conftest.$ac_ext
22372 ac_ext=c
22373ac_cpp='$CPP $CPPFLAGS'
22374ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22375ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22376ac_compiler_gnu=$ac_cv_c_compiler_gnu
22377
22378
22379fi
22380echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
22381echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
22382if test "$ac_cv_header_mmap_anon" = yes; then
22383 cat >>confdefs.h <<\_ACEOF
22384#define HAVE_MMAP_ANONYMOUS 1
22385_ACEOF
22386
22387fi
22388
22389echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22390echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22391if test "${ac_cv_type_signal+set}" = set; then
22392 echo $ECHO_N "(cached) $ECHO_C" >&6
22393else
22394 cat >conftest.$ac_ext <<_ACEOF
22395#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022396/* confdefs.h. */
22397_ACEOF
22398cat confdefs.h >>conftest.$ac_ext
22399cat >>conftest.$ac_ext <<_ACEOF
22400/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022401#include <sys/types.h>
22402#include <signal.h>
22403#ifdef signal
22404# undef signal
22405#endif
22406#ifdef __cplusplus
22407extern "C" void (*signal (int, void (*)(int)))(int);
22408#else
22409void (*signal ()) ();
22410#endif
22411
John Criswell7a73b802003-06-30 21:59:07 +000022412int
22413main ()
22414{
22415int i;
22416 ;
22417 return 0;
22418}
22419_ACEOF
22420rm -f conftest.$ac_objext
22421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22422 (eval $ac_compile) 2>&5
22423 ac_status=$?
22424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22425 (exit $ac_status); } &&
22426 { ac_try='test -s conftest.$ac_objext'
22427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22428 (eval $ac_try) 2>&5
22429 ac_status=$?
22430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22431 (exit $ac_status); }; }; then
22432 ac_cv_type_signal=void
22433else
22434 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022435sed 's/^/| /' conftest.$ac_ext >&5
22436
John Criswell7a73b802003-06-30 21:59:07 +000022437ac_cv_type_signal=int
22438fi
22439rm -f conftest.$ac_objext conftest.$ac_ext
22440fi
22441echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22442echo "${ECHO_T}$ac_cv_type_signal" >&6
22443
22444cat >>confdefs.h <<_ACEOF
22445#define RETSIGTYPE $ac_cv_type_signal
22446_ACEOF
22447
22448
22449
22450
22451
22452
22453
22454
22455
22456
22457
22458for ac_func in getcwd gettimeofday strcspn strdup strerror strspn strstr strtod strtol
22459do
22460as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22461echo "$as_me:$LINENO: checking for $ac_func" >&5
22462echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22463if eval "test \"\${$as_ac_var+set}\" = set"; then
22464 echo $ECHO_N "(cached) $ECHO_C" >&6
22465else
22466 cat >conftest.$ac_ext <<_ACEOF
22467#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022468/* confdefs.h. */
22469_ACEOF
22470cat confdefs.h >>conftest.$ac_ext
22471cat >>conftest.$ac_ext <<_ACEOF
22472/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022473/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022474 which can conflict with char $ac_func (); below.
22475 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22476 <limits.h> exists even on freestanding compilers. */
22477#ifdef __STDC__
22478# include <limits.h>
22479#else
22480# include <assert.h>
22481#endif
John Criswell7a73b802003-06-30 21:59:07 +000022482/* Override any gcc2 internal prototype to avoid an error. */
22483#ifdef __cplusplus
22484extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022485{
John Criswell7a73b802003-06-30 21:59:07 +000022486#endif
22487/* We use char because int might match the return type of a gcc2
22488 builtin and then its argument prototype would still apply. */
22489char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000022490/* The GNU C library defines this for functions which it implements
22491 to always fail with ENOSYS. Some functions are actually named
22492 something starting with __ and the normal name is an alias. */
22493#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22494choke me
22495#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022496char (*f) () = $ac_func;
22497#endif
22498#ifdef __cplusplus
22499}
John Criswell7a73b802003-06-30 21:59:07 +000022500#endif
22501
John Criswell0c38eaf2003-09-10 15:17:25 +000022502int
22503main ()
22504{
22505return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000022506 ;
22507 return 0;
22508}
22509_ACEOF
22510rm -f conftest.$ac_objext conftest$ac_exeext
22511if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22512 (eval $ac_link) 2>&5
22513 ac_status=$?
22514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22515 (exit $ac_status); } &&
22516 { ac_try='test -s conftest$ac_exeext'
22517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22518 (eval $ac_try) 2>&5
22519 ac_status=$?
22520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22521 (exit $ac_status); }; }; then
22522 eval "$as_ac_var=yes"
22523else
22524 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022525sed 's/^/| /' conftest.$ac_ext >&5
22526
John Criswell7a73b802003-06-30 21:59:07 +000022527eval "$as_ac_var=no"
22528fi
22529rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22530fi
22531echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22532echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22533if test `eval echo '${'$as_ac_var'}'` = yes; then
22534 cat >>confdefs.h <<_ACEOF
22535#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22536_ACEOF
22537
22538fi
22539done
22540
22541
22542
22543echo "$as_me:$LINENO: checking for mmap" >&5
22544echo $ECHO_N "checking for mmap... $ECHO_C" >&6
22545if test "${ac_cv_func_mmap+set}" = set; then
22546 echo $ECHO_N "(cached) $ECHO_C" >&6
22547else
22548 cat >conftest.$ac_ext <<_ACEOF
22549#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022550/* confdefs.h. */
22551_ACEOF
22552cat confdefs.h >>conftest.$ac_ext
22553cat >>conftest.$ac_ext <<_ACEOF
22554/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022555/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022556 which can conflict with char mmap (); below.
22557 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22558 <limits.h> exists even on freestanding compilers. */
22559#ifdef __STDC__
22560# include <limits.h>
22561#else
22562# include <assert.h>
22563#endif
John Criswell7a73b802003-06-30 21:59:07 +000022564/* Override any gcc2 internal prototype to avoid an error. */
22565#ifdef __cplusplus
22566extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022567{
John Criswell7a73b802003-06-30 21:59:07 +000022568#endif
22569/* We use char because int might match the return type of a gcc2
22570 builtin and then its argument prototype would still apply. */
22571char mmap ();
John Criswell7a73b802003-06-30 21:59:07 +000022572/* The GNU C library defines this for functions which it implements
22573 to always fail with ENOSYS. Some functions are actually named
22574 something starting with __ and the normal name is an alias. */
22575#if defined (__stub_mmap) || defined (__stub___mmap)
22576choke me
22577#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022578char (*f) () = mmap;
22579#endif
22580#ifdef __cplusplus
22581}
John Criswell7a73b802003-06-30 21:59:07 +000022582#endif
22583
John Criswell0c38eaf2003-09-10 15:17:25 +000022584int
22585main ()
22586{
22587return f != mmap;
John Criswell7a73b802003-06-30 21:59:07 +000022588 ;
22589 return 0;
22590}
22591_ACEOF
22592rm -f conftest.$ac_objext conftest$ac_exeext
22593if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22594 (eval $ac_link) 2>&5
22595 ac_status=$?
22596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22597 (exit $ac_status); } &&
22598 { ac_try='test -s conftest$ac_exeext'
22599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22600 (eval $ac_try) 2>&5
22601 ac_status=$?
22602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22603 (exit $ac_status); }; }; then
22604 ac_cv_func_mmap=yes
22605else
22606 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022607sed 's/^/| /' conftest.$ac_ext >&5
22608
John Criswell7a73b802003-06-30 21:59:07 +000022609ac_cv_func_mmap=no
22610fi
22611rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22612fi
22613echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
22614echo "${ECHO_T}$ac_cv_func_mmap" >&6
22615if test $ac_cv_func_mmap = yes; then
22616 :
22617else
22618 { { echo "$as_me:$LINENO: error: Function mmap() required but not found" >&5
22619echo "$as_me: error: Function mmap() required but not found" >&2;}
22620 { (exit 1); exit 1; }; }
22621fi
22622
22623echo "$as_me:$LINENO: checking for mprotect" >&5
22624echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
22625if test "${ac_cv_func_mprotect+set}" = set; then
22626 echo $ECHO_N "(cached) $ECHO_C" >&6
22627else
22628 cat >conftest.$ac_ext <<_ACEOF
22629#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022630/* confdefs.h. */
22631_ACEOF
22632cat confdefs.h >>conftest.$ac_ext
22633cat >>conftest.$ac_ext <<_ACEOF
22634/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022635/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022636 which can conflict with char mprotect (); below.
22637 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22638 <limits.h> exists even on freestanding compilers. */
22639#ifdef __STDC__
22640# include <limits.h>
22641#else
22642# include <assert.h>
22643#endif
John Criswell7a73b802003-06-30 21:59:07 +000022644/* Override any gcc2 internal prototype to avoid an error. */
22645#ifdef __cplusplus
22646extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022647{
John Criswell7a73b802003-06-30 21:59:07 +000022648#endif
22649/* We use char because int might match the return type of a gcc2
22650 builtin and then its argument prototype would still apply. */
22651char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000022652/* The GNU C library defines this for functions which it implements
22653 to always fail with ENOSYS. Some functions are actually named
22654 something starting with __ and the normal name is an alias. */
22655#if defined (__stub_mprotect) || defined (__stub___mprotect)
22656choke me
22657#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022658char (*f) () = mprotect;
22659#endif
22660#ifdef __cplusplus
22661}
John Criswell7a73b802003-06-30 21:59:07 +000022662#endif
22663
John Criswell0c38eaf2003-09-10 15:17:25 +000022664int
22665main ()
22666{
22667return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000022668 ;
22669 return 0;
22670}
22671_ACEOF
22672rm -f conftest.$ac_objext conftest$ac_exeext
22673if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22674 (eval $ac_link) 2>&5
22675 ac_status=$?
22676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22677 (exit $ac_status); } &&
22678 { ac_try='test -s conftest$ac_exeext'
22679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22680 (eval $ac_try) 2>&5
22681 ac_status=$?
22682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22683 (exit $ac_status); }; }; then
22684 ac_cv_func_mprotect=yes
22685else
22686 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022687sed 's/^/| /' conftest.$ac_ext >&5
22688
John Criswell7a73b802003-06-30 21:59:07 +000022689ac_cv_func_mprotect=no
22690fi
22691rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22692fi
22693echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
22694echo "${ECHO_T}$ac_cv_func_mprotect" >&6
22695if test $ac_cv_func_mprotect = yes; then
22696 :
22697else
22698 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
22699echo "$as_me: error: Function mprotect() required but not found" >&2;}
22700 { (exit 1); exit 1; }; }
22701fi
22702
22703
John Criswellb13092b2003-07-22 21:00:24 +000022704
John Criswell7a73b802003-06-30 21:59:07 +000022705# Check whether --enable-purify or --disable-purify was given.
22706if test "${enable_purify+set}" = set; then
22707 enableval="$enable_purify"
John Criswell7a73b802003-06-30 21:59:07 +000022708
22709else
John Criswellb13092b2003-07-22 21:00:24 +000022710 enableval="no"
John Criswell7a73b802003-06-30 21:59:07 +000022711fi;
John Criswellb13092b2003-07-22 21:00:24 +000022712if test ${enableval} = "no"
22713then
22714 ENABLE_PURIFY=
22715
22716else
22717 ENABLE_PURIFY=ENABLE_PURIFY=1
22718
22719fi
22720
John Criswell7a73b802003-06-30 21:59:07 +000022721# Check whether --enable-optimized or --disable-optimized was given.
22722if test "${enable_optimized+set}" = set; then
22723 enableval="$enable_optimized"
John Criswell7a73b802003-06-30 21:59:07 +000022724
22725else
John Criswellb13092b2003-07-22 21:00:24 +000022726 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022727fi;
John Criswellb13092b2003-07-22 21:00:24 +000022728if test ${enableval} = "no"
22729then
22730 ENABLE_OPTIMIZED=
22731
22732else
22733 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
22734
22735fi
22736
John Criswell7a73b802003-06-30 21:59:07 +000022737# Check whether --enable-spec or --disable-spec was given.
22738if test "${enable_spec+set}" = set; then
22739 enableval="$enable_spec"
John Criswell7a73b802003-06-30 21:59:07 +000022740
22741else
John Criswellb13092b2003-07-22 21:00:24 +000022742 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022743fi;
John Criswellb13092b2003-07-22 21:00:24 +000022744if test ${enableval} = "no"
22745then
22746 USE_SPEC=
22747
22748else
22749 USE_SPEC=USE_SPEC=1
22750
22751fi
22752
John Criswell7a73b802003-06-30 21:59:07 +000022753# Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
22754if test "${enable_precompiled_bytecode+set}" = set; then
22755 enableval="$enable_precompiled_bytecode"
John Criswell7a73b802003-06-30 21:59:07 +000022756
22757else
John Criswellb13092b2003-07-22 21:00:24 +000022758 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022759fi;
John Criswellb13092b2003-07-22 21:00:24 +000022760if test ${enableval} = "no"
22761then
22762 UPB=
John Criswellf02dbf02003-07-22 20:07:49 +000022763
John Criswellb13092b2003-07-22 21:00:24 +000022764else
22765 UPB=USE_PRECOMPILED_BYTECODE=1
22766
22767fi
John Criswellf02dbf02003-07-22 20:07:49 +000022768
22769
22770# Check whether --enable-llc_diffs or --disable-llc_diffs was given.
22771if test "${enable_llc_diffs+set}" = set; then
22772 enableval="$enable_llc_diffs"
John Criswellf02dbf02003-07-22 20:07:49 +000022773
22774else
John Criswellb13092b2003-07-22 21:00:24 +000022775 enableval=yes
John Criswellf02dbf02003-07-22 20:07:49 +000022776fi;
John Criswellb13092b2003-07-22 21:00:24 +000022777if test ${enableval} = "no"
22778then
22779 DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
John Criswellf02dbf02003-07-22 20:07:49 +000022780
John Criswellb13092b2003-07-22 21:00:24 +000022781else
22782 DISABLE_LLC_DIFFS=
22783
22784fi
22785
22786# Check whether --enable-jit or --disable-jit was given.
John Criswell7a73b802003-06-30 21:59:07 +000022787if test "${enable_jit+set}" = set; then
22788 enableval="$enable_jit"
John Criswell7a73b802003-06-30 21:59:07 +000022789
22790else
John Criswellc78022e2003-07-29 19:11:58 +000022791 enableval=default
John Criswell7a73b802003-06-30 21:59:07 +000022792fi;
John Criswellb13092b2003-07-22 21:00:24 +000022793
22794if test ${enableval} = "no"
22795then
22796 JIT=
22797
22798else
John Criswellc78022e2003-07-29 19:11:58 +000022799 case $target in
22800 *i*86*)
22801 JIT=TARGET_HAS_JIT=1
John Criswellb13092b2003-07-22 21:00:24 +000022802
John Criswellc78022e2003-07-29 19:11:58 +000022803 ;;
22804 *sparc*)
22805 JIT=TARGET_HAS_JIT=1
22806
22807 ;;
22808 *)
22809 JIT=
22810
22811 ;;
22812 esac
John Criswellb13092b2003-07-22 21:00:24 +000022813fi
John Criswell7a73b802003-06-30 21:59:07 +000022814
22815
John Criswellc78022e2003-07-29 19:11:58 +000022816
John Criswell7a73b802003-06-30 21:59:07 +000022817# Check whether --with-spec or --without-spec was given.
22818if test "${with_spec+set}" = set; then
22819 withval="$with_spec"
22820 SPEC_ROOT=$withval
22821
22822else
22823 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
22824
22825fi;
22826
John Criswellc78022e2003-07-29 19:11:58 +000022827
John Criswell7a73b802003-06-30 21:59:07 +000022828# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
22829if test "${with_llvmgccdir+set}" = set; then
22830 withval="$with_llvmgccdir"
22831 LLVMGCCDIR=$withval
22832
22833fi;
22834
John Criswellc78022e2003-07-29 19:11:58 +000022835
John Criswell7a73b802003-06-30 21:59:07 +000022836# Check whether --with-bcrepos or --without-bcrepos was given.
22837if test "${with_bcrepos+set}" = set; then
22838 withval="$with_bcrepos"
22839 BCR=$withval
22840
22841else
22842 BCR=/home/vadve/lattner/LLVMPrograms
22843
22844fi;
22845
John Criswellc78022e2003-07-29 19:11:58 +000022846
John Criswell7a73b802003-06-30 21:59:07 +000022847# Check whether --with-papi or --without-papi was given.
22848if test "${with_papi+set}" = set; then
22849 withval="$with_papi"
22850 PAPIDIR=$withval
22851
22852else
John Criswellde00db22003-08-25 16:49:54 +000022853 PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
John Criswell7a73b802003-06-30 21:59:07 +000022854
22855fi;
22856
John Criswell7a73b802003-06-30 21:59:07 +000022857
22858# Check whether --with-purify or --without-purify was given.
22859if test "${with_purify+set}" = set; then
22860 withval="$with_purify"
22861 PURIFY=$withval
22862
22863fi;
22864
John Criswellde00db22003-08-25 16:49:54 +000022865
John Criswell0c38eaf2003-09-10 15:17:25 +000022866 ac_config_files="$ac_config_files Makefile.config"
John Criswell7a73b802003-06-30 21:59:07 +000022867cat >confcache <<\_ACEOF
22868# This file is a shell script that caches the results of configure
22869# tests run on this system so they can be shared between configure
22870# scripts and configure runs, see configure's option --config-cache.
22871# It is not useful on other systems. If it contains results you don't
22872# want to keep, you may remove or edit it.
22873#
22874# config.status only pays attention to the cache file if you give it
22875# the --recheck option to rerun configure.
22876#
John Criswell0c38eaf2003-09-10 15:17:25 +000022877# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000022878# loading this file, other *unset* `ac_cv_foo' will be assigned the
22879# following values.
22880
22881_ACEOF
22882
22883# The following way of writing the cache mishandles newlines in values,
22884# but we know of no workaround that is simple, portable, and efficient.
22885# So, don't put newlines in cache variables' values.
22886# Ultrix sh set writes to stderr and can't be redirected directly,
22887# and sets the high bit in the cache file unless we assign to the vars.
22888{
22889 (set) 2>&1 |
22890 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22891 *ac_space=\ *)
22892 # `set' does not quote correctly, so add quotes (double-quote
22893 # substitution turns \\\\ into \\, and sed turns \\ into \).
22894 sed -n \
22895 "s/'/'\\\\''/g;
22896 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22897 ;;
22898 *)
22899 # `set' quotes correctly as required by POSIX, so do not add quotes.
22900 sed -n \
22901 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22902 ;;
22903 esac;
22904} |
22905 sed '
22906 t clear
22907 : clear
22908 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22909 t end
22910 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22911 : end' >>confcache
John Criswell0c38eaf2003-09-10 15:17:25 +000022912if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000022913 if test -w $cache_file; then
22914 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22915 cat confcache >$cache_file
22916 else
22917 echo "not updating unwritable cache $cache_file"
22918 fi
22919fi
22920rm -f confcache
22921
22922test "x$prefix" = xNONE && prefix=$ac_default_prefix
22923# Let make expand exec_prefix.
22924test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22925
22926# VPATH may cause trouble with some makes, so we remove $(srcdir),
22927# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22928# trailing colons and then remove the whole line if VPATH becomes empty
22929# (actually we leave an empty line to preserve line numbers).
22930if test "x$srcdir" = x.; then
22931 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22932s/:*\$(srcdir):*/:/;
22933s/:*\${srcdir}:*/:/;
22934s/:*@srcdir@:*/:/;
22935s/^\([^=]*=[ ]*\):*/\1/;
22936s/:*$//;
22937s/^[^=]*=[ ]*$//;
22938}'
22939fi
22940
22941DEFS=-DHAVE_CONFIG_H
22942
John Criswell0c38eaf2003-09-10 15:17:25 +000022943ac_libobjs=
22944ac_ltlibobjs=
22945for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22946 # 1. Remove the extension, and $U if already installed.
22947 ac_i=`echo "$ac_i" |
22948 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22949 # 2. Add them.
22950 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22951 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22952done
22953LIBOBJS=$ac_libobjs
22954
22955LTLIBOBJS=$ac_ltlibobjs
22956
22957
John Criswell7a73b802003-06-30 21:59:07 +000022958
22959: ${CONFIG_STATUS=./config.status}
22960ac_clean_files_save=$ac_clean_files
22961ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22962{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22963echo "$as_me: creating $CONFIG_STATUS" >&6;}
22964cat >$CONFIG_STATUS <<_ACEOF
22965#! $SHELL
22966# Generated by $as_me.
22967# Run this file to recreate the current configuration.
22968# Compiler output produced by configure, useful for debugging
22969# configure, is in config.log if it exists.
22970
22971debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000022972ac_cs_recheck=false
22973ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000022974SHELL=\${CONFIG_SHELL-$SHELL}
22975_ACEOF
22976
22977cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022978## --------------------- ##
22979## M4sh Initialization. ##
22980## --------------------- ##
22981
22982# Be Bourne compatible
22983if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22984 emulate sh
22985 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022986 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22987 # is contrary to our usage. Disable this feature.
22988 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000022989elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22990 set -o posix
22991fi
22992
John Criswell7a73b802003-06-30 21:59:07 +000022993# Support unset when possible.
22994if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
22995 as_unset=unset
22996else
22997 as_unset=false
22998fi
22999
John Criswell0c38eaf2003-09-10 15:17:25 +000023000
23001# Work around bugs in pre-3.0 UWIN ksh.
23002$as_unset ENV MAIL MAILPATH
23003PS1='$ '
23004PS2='> '
23005PS4='+ '
23006
23007# NLS nuisances.
23008for as_var in \
23009 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23010 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23011 LC_TELEPHONE LC_TIME
23012do
23013 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
23014 eval $as_var=C; export $as_var
23015 else
23016 $as_unset $as_var
23017 fi
23018done
23019
23020# Required to use basename.
23021if expr a : '\(a\)' >/dev/null 2>&1; then
23022 as_expr=expr
23023else
23024 as_expr=false
23025fi
23026
23027if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23028 as_basename=basename
23029else
23030 as_basename=false
23031fi
John Criswell7a73b802003-06-30 21:59:07 +000023032
23033
23034# Name of the executable.
John Criswell0c38eaf2003-09-10 15:17:25 +000023035as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000023036$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23037 X"$0" : 'X\(//\)$' \| \
23038 X"$0" : 'X\(/\)$' \| \
23039 . : '\(.\)' 2>/dev/null ||
23040echo X/"$0" |
23041 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23042 /^X\/\(\/\/\)$/{ s//\1/; q; }
23043 /^X\/\(\/\).*/{ s//\1/; q; }
23044 s/.*/./; q'`
23045
John Criswell0c38eaf2003-09-10 15:17:25 +000023046
John Criswell7a73b802003-06-30 21:59:07 +000023047# PATH needs CR, and LINENO needs CR and PATH.
23048# Avoid depending upon Character Ranges.
23049as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23050as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23051as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23052as_cr_digits='0123456789'
23053as_cr_alnum=$as_cr_Letters$as_cr_digits
23054
23055# The user is always right.
23056if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000023057 echo "#! /bin/sh" >conf$$.sh
23058 echo "exit 0" >>conf$$.sh
23059 chmod +x conf$$.sh
23060 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000023061 PATH_SEPARATOR=';'
23062 else
23063 PATH_SEPARATOR=:
23064 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000023065 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000023066fi
23067
23068
23069 as_lineno_1=$LINENO
23070 as_lineno_2=$LINENO
23071 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23072 test "x$as_lineno_1" != "x$as_lineno_2" &&
23073 test "x$as_lineno_3" = "x$as_lineno_2" || {
23074 # Find who we are. Look in the path if we contain no path at all
23075 # relative or not.
23076 case $0 in
23077 *[\\/]* ) as_myself=$0 ;;
23078 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23079for as_dir in $PATH
23080do
23081 IFS=$as_save_IFS
23082 test -z "$as_dir" && as_dir=.
23083 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23084done
23085
23086 ;;
23087 esac
23088 # We did not find ourselves, most probably we were run as `sh COMMAND'
23089 # in which case we are not to be found in the path.
23090 if test "x$as_myself" = x; then
23091 as_myself=$0
23092 fi
23093 if test ! -f "$as_myself"; then
23094 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23095echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23096 { (exit 1); exit 1; }; }
23097 fi
23098 case $CONFIG_SHELL in
23099 '')
23100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23101for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23102do
23103 IFS=$as_save_IFS
23104 test -z "$as_dir" && as_dir=.
23105 for as_base in sh bash ksh sh5; do
23106 case $as_dir in
23107 /*)
23108 if ("$as_dir/$as_base" -c '
23109 as_lineno_1=$LINENO
23110 as_lineno_2=$LINENO
23111 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23112 test "x$as_lineno_1" != "x$as_lineno_2" &&
23113 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell0c38eaf2003-09-10 15:17:25 +000023114 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23115 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000023116 CONFIG_SHELL=$as_dir/$as_base
23117 export CONFIG_SHELL
23118 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23119 fi;;
23120 esac
23121 done
23122done
23123;;
23124 esac
23125
23126 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23127 # uniformly replaced by the line number. The first 'sed' inserts a
23128 # line-number line before each line; the second 'sed' does the real
23129 # work. The second script uses 'N' to pair each line-number line
23130 # with the numbered line, and appends trailing '-' during
23131 # substitution so that $LINENO is not a special case at line end.
23132 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23133 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23134 sed '=' <$as_myself |
23135 sed '
23136 N
23137 s,$,-,
23138 : loop
23139 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23140 t loop
23141 s,-$,,
23142 s,^['$as_cr_digits']*\n,,
23143 ' >$as_me.lineno &&
23144 chmod +x $as_me.lineno ||
23145 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23146echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23147 { (exit 1); exit 1; }; }
23148
23149 # Don't try to exec as it changes $[0], causing all sort of problems
23150 # (the dirname of $[0] is not the place where we might find the
23151 # original and so on. Autoconf is especially sensible to this).
23152 . ./$as_me.lineno
23153 # Exit status is that of the last command.
23154 exit
23155}
23156
23157
23158case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23159 *c*,-n*) ECHO_N= ECHO_C='
23160' ECHO_T=' ' ;;
23161 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23162 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23163esac
23164
23165if expr a : '\(a\)' >/dev/null 2>&1; then
23166 as_expr=expr
23167else
23168 as_expr=false
23169fi
23170
23171rm -f conf$$ conf$$.exe conf$$.file
23172echo >conf$$.file
23173if ln -s conf$$.file conf$$ 2>/dev/null; then
23174 # We could just check for DJGPP; but this test a) works b) is more generic
23175 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23176 if test -f conf$$.exe; then
23177 # Don't use ln at all; we don't have any links
23178 as_ln_s='cp -p'
23179 else
23180 as_ln_s='ln -s'
23181 fi
23182elif ln conf$$.file conf$$ 2>/dev/null; then
23183 as_ln_s=ln
23184else
23185 as_ln_s='cp -p'
23186fi
23187rm -f conf$$ conf$$.exe conf$$.file
23188
John Criswell0c38eaf2003-09-10 15:17:25 +000023189if mkdir -p . 2>/dev/null; then
23190 as_mkdir_p=:
23191else
23192 as_mkdir_p=false
23193fi
23194
John Criswell7a73b802003-06-30 21:59:07 +000023195as_executable_p="test -f"
23196
23197# Sed expression to map a string onto a valid CPP name.
23198as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23199
23200# Sed expression to map a string onto a valid variable name.
23201as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23202
23203
23204# IFS
23205# We need space, tab and new line, in precisely that order.
23206as_nl='
23207'
23208IFS=" $as_nl"
23209
23210# CDPATH.
John Criswell0c38eaf2003-09-10 15:17:25 +000023211$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000023212
23213exec 6>&1
23214
23215# Open the log real soon, to keep \$[0] and so on meaningful, and to
23216# report actual input values of CONFIG_FILES etc. instead of their
23217# values after options handling. Logging --version etc. is OK.
23218exec 5>>config.log
23219{
23220 echo
23221 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23222## Running $as_me. ##
23223_ASBOX
23224} >&5
23225cat >&5 <<_CSEOF
23226
23227This file was extended by [LLVM] $as_me [1.0], which was
John Criswell0c38eaf2003-09-10 15:17:25 +000023228generated by GNU Autoconf 2.57. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000023229
23230 CONFIG_FILES = $CONFIG_FILES
23231 CONFIG_HEADERS = $CONFIG_HEADERS
23232 CONFIG_LINKS = $CONFIG_LINKS
23233 CONFIG_COMMANDS = $CONFIG_COMMANDS
23234 $ $0 $@
23235
23236_CSEOF
23237echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23238echo >&5
23239_ACEOF
23240
23241# Files that config.status was made for.
23242if test -n "$ac_config_files"; then
23243 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23244fi
23245
23246if test -n "$ac_config_headers"; then
23247 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23248fi
23249
23250if test -n "$ac_config_links"; then
23251 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23252fi
23253
23254if test -n "$ac_config_commands"; then
23255 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23256fi
23257
23258cat >>$CONFIG_STATUS <<\_ACEOF
23259
23260ac_cs_usage="\
23261\`$as_me' instantiates files from templates according to the
23262current configuration.
23263
23264Usage: $0 [OPTIONS] [FILE]...
23265
23266 -h, --help print this help, then exit
23267 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000023268 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000023269 -d, --debug don't remove temporary files
23270 --recheck update $as_me by reconfiguring in the same conditions
23271 --file=FILE[:TEMPLATE]
23272 instantiate the configuration file FILE
23273 --header=FILE[:TEMPLATE]
23274 instantiate the configuration header FILE
23275
23276Configuration files:
23277$config_files
23278
23279Configuration headers:
23280$config_headers
23281
John Criswellc764fbc2003-09-06 15:17:13 +000023282Configuration commands:
23283$config_commands
23284
John Criswell7a73b802003-06-30 21:59:07 +000023285Report bugs to <bug-autoconf@gnu.org>."
23286_ACEOF
23287
23288cat >>$CONFIG_STATUS <<_ACEOF
23289ac_cs_version="\\
23290[LLVM] config.status [1.0]
John Criswell0c38eaf2003-09-10 15:17:25 +000023291configured by $0, generated by GNU Autoconf 2.57,
John Criswell7a73b802003-06-30 21:59:07 +000023292 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23293
23294Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23295Free Software Foundation, Inc.
23296This config.status script is free software; the Free Software Foundation
23297gives unlimited permission to copy, distribute and modify it."
23298srcdir=$srcdir
23299INSTALL="$INSTALL"
23300_ACEOF
23301
23302cat >>$CONFIG_STATUS <<\_ACEOF
23303# If no file are specified by the user, then we need to provide default
23304# value. By we need to know if files were specified by the user.
23305ac_need_defaults=:
23306while test $# != 0
23307do
23308 case $1 in
23309 --*=*)
23310 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23311 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000023312 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000023313 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000023314 -*)
23315 ac_option=$1
23316 ac_optarg=$2
23317 ac_shift=shift
23318 ;;
John Criswell7a73b802003-06-30 21:59:07 +000023319 *) # This is not an option, so the user has probably given explicit
23320 # arguments.
John Criswell0c38eaf2003-09-10 15:17:25 +000023321 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000023322 ac_need_defaults=false;;
23323 esac
23324
John Criswell0c38eaf2003-09-10 15:17:25 +000023325 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000023326 # Handling of the options.
23327_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000023328cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023329 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23330 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000023331 --version | --vers* | -V )
23332 echo "$ac_cs_version"; exit 0 ;;
23333 --he | --h)
23334 # Conflict between --help and --header
23335 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23336Try \`$0 --help' for more information." >&5
23337echo "$as_me: error: ambiguous option: $1
23338Try \`$0 --help' for more information." >&2;}
23339 { (exit 1); exit 1; }; };;
23340 --help | --hel | -h )
23341 echo "$ac_cs_usage"; exit 0 ;;
23342 --debug | --d* | -d )
23343 debug=: ;;
23344 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000023345 $ac_shift
23346 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000023347 ac_need_defaults=false;;
23348 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000023349 $ac_shift
23350 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000023351 ac_need_defaults=false;;
John Criswell0c38eaf2003-09-10 15:17:25 +000023352 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23353 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23354 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000023355
23356 # This is an error.
23357 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23358Try \`$0 --help' for more information." >&5
23359echo "$as_me: error: unrecognized option: $1
23360Try \`$0 --help' for more information." >&2;}
23361 { (exit 1); exit 1; }; } ;;
23362
23363 *) ac_config_targets="$ac_config_targets $1" ;;
23364
23365 esac
23366 shift
23367done
23368
John Criswell0c38eaf2003-09-10 15:17:25 +000023369ac_configure_extra_args=
23370
23371if $ac_cs_silent; then
23372 exec 6>/dev/null
23373 ac_configure_extra_args="$ac_configure_extra_args --silent"
23374fi
23375
23376_ACEOF
23377cat >>$CONFIG_STATUS <<_ACEOF
23378if \$ac_cs_recheck; then
23379 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23380 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23381fi
23382
John Criswell7a73b802003-06-30 21:59:07 +000023383_ACEOF
23384
John Criswellc764fbc2003-09-06 15:17:13 +000023385cat >>$CONFIG_STATUS <<_ACEOF
23386#
23387# INIT-COMMANDS section.
23388#
John Criswell7a73b802003-06-30 21:59:07 +000023389
John Criswellc764fbc2003-09-06 15:17:13 +000023390${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
23391${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
23392${srcdir}/autoconf/mkinstalldirs `dirname Makefile.rules`
23393${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
23394${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/Makefile`
23395${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/DataStructure/Makefile`
23396${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/IPA/Makefile`
23397${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/LiveVar/Makefile`
23398${srcdir}/autoconf/mkinstalldirs `dirname lib/AsmParser/Makefile`
23399${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Makefile`
23400${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Reader/Makefile`
23401${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Writer/Makefile`
23402${srcdir}/autoconf/mkinstalldirs `dirname lib/CWriter/Makefile`
23403${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/Makefile`
23404${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSched/Makefile`
23405${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSelection/Makefile`
23406${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/ModuloScheduling/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023407${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/RegAlloc/Makefile`
23408${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/SelectionDAG/Makefile`
23409${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Makefile`
23410${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Interpreter/Makefile`
23411${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/JIT/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023412${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Makefile`
23413${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Sparc/Makefile`
23414${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/X86/Makefile`
23415${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Makefile`
23416${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Hello/Makefile`
23417${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/IPO/Makefile`
23418${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/Makefile`
23419${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/ProfilePaths/Makefile`
23420${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Scalar/Makefile`
23421${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Utils/Makefile`
23422${srcdir}/autoconf/mkinstalldirs `dirname lib/VMCore/Makefile`
23423${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23424${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/Makefile`
23425${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/crtend/Makefile`
23426${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libc/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023427${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libcurses/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023428${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libg/Makefile`
23429${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libgcc/Makefile`
23430${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libm/Makefile`
23431${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libmalloc/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023432${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libtermcap/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023433${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libucb/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023434${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutempter/Makefile`
23435${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutil/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023436${srcdir}/autoconf/mkinstalldirs `dirname runtime/libdummy/Makefile`
23437${srcdir}/autoconf/mkinstalldirs `dirname runtime/libtrace/Makefile`
23438${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
23439${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
John Criswell08acb9b2003-09-16 02:12:45 +000023440${srcdir}/autoconf/mkinstalldirs `dirname test/QMTestDB/QMTest/llvm.py`
John Criswellc764fbc2003-09-06 15:17:13 +000023441${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
23442${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
23443${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
23444${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
23445${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.report`
23446${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
23447${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
23448${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
23449${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
23450${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
23451${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
23452${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
23453${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
23454${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
23455${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
23456${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.Makefile`
23457${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
23458${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023459${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
John Criswellc764fbc2003-09-06 15:17:13 +000023460${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/Makefile`
23461${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/179.art/Makefile`
23462${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/183.equake/Makefile`
23463${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/188.ammp/Makefile`
23464${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/Makefile`
23465${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/164.gzip/Makefile`
23466${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/175.vpr/Makefile`
23467${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/176.gcc/Makefile`
23468${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/181.mcf/Makefile`
23469${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/186.crafty/Makefile`
23470${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/197.parser/Makefile`
23471${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/254.gap/Makefile`
23472${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/255.vortex/Makefile`
23473${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile`
23474${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/300.twolf/Makefile`
23475${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/LLVMSource/Makefile`
23476${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
23477${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
John Criswell48e3cb92003-09-12 16:31:43 +000023478${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Makefile`
23479${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Burg/Makefile`
John Criswell39e83892003-09-12 16:36:17 +000023480${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/aha/Makefile`
23481${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/sgefa/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023482${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Makefile`
23483${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile`
23484${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/Makefile`
23485${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile`
23486${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile`
23487${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile`
23488${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile`
23489${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile`
23490${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile`
23491${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile`
23492${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile`
23493${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile`
23494${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile`
23495${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/Makefile`
23496${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile`
23497${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile`
23498${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile`
23499${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/health/Makefile`
23500${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile`
23501${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile`
23502${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/power/Makefile`
23503${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile`
23504${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile`
23505${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile`
John Criswell39e83892003-09-12 16:36:17 +000023506${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023507${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile`
23508${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile`
23509${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile`
23510${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile`
23511${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile`
23512${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023513${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023514${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/sim/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023515${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Makefile`
23516${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Flex/Makefile`
23517${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Larn/Makefile`
23518${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Moria-5.5.2/Makefile`
23519${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Povray31/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023520${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/m4/Makefile`
23521${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
23522${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
John Criswellffaaf3b2003-09-10 18:38:44 +000023523${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Gizmos/Makefile`
23524${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Makefile`
23525${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile`
23526${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Shootout/Makefile`
23527${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Stanford/Makefile`
23528${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Misc/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023529${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/CustomChecked/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023530${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/Makefile`
John Criswell0afe8252003-09-11 20:53:48 +000023531${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile`
John Criswell67181ca2003-09-26 14:53:17 +000023532${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/Makefile`
John Criswell68886d42003-09-26 19:51:42 +000023533${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C/Makefile`
23534${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C++/Makefile`
John Criswellc66bbd52003-09-29 21:35:32 +000023535${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C++/EH/Makefile`
23536${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C++/CompileFail/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023537${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
23538${srcdir}/autoconf/mkinstalldirs `dirname tools/analyze/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023539${srcdir}/autoconf/mkinstalldirs `dirname tools/bugpoint/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023540${srcdir}/autoconf/mkinstalldirs `dirname tools/extract/Makefile`
23541${srcdir}/autoconf/mkinstalldirs `dirname tools/gccas/Makefile`
23542${srcdir}/autoconf/mkinstalldirs `dirname tools/gccld/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023543${srcdir}/autoconf/mkinstalldirs `dirname tools/llc/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023544${srcdir}/autoconf/mkinstalldirs `dirname tools/llee/Makefile`
John Criswellddb7b4e2003-09-16 15:54:19 +000023545${srcdir}/autoconf/mkinstalldirs `dirname tools/lli/Makefile`
Chris Lattnerebd70302003-09-13 03:29:53 +000023546${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-ar/Makefile`
John Criswellddb7b4e2003-09-16 15:54:19 +000023547${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-as/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023548${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-dis/Makefile`
John Criswellddb7b4e2003-09-16 15:54:19 +000023549${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-link/Makefile`
23550${srcdir}/autoconf/mkinstalldirs `dirname tools/opt/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023551${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023552${srcdir}/autoconf/mkinstalldirs `dirname www/docs/Makefile`
23553${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
23554${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile`
23555${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.common`
23556${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.config`
23557${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/Makefile`
23558${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/sample/Makefile`
23559${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/Makefile`
23560${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/sample/Makefile`
23561${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile`
23562${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile.common`
23563${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/Makefile`
23564${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/ModuleMaker/Makefile`
John Criswell4e079782003-09-29 14:52:28 +000023565${srcdir}/autoconf/mkinstalldirs `dirname support/Makefile`
23566${srcdir}/autoconf/mkinstalldirs `dirname support/lib/Makefile`
23567${srcdir}/autoconf/mkinstalldirs `dirname support/lib/Support/Makefile`
23568${srcdir}/autoconf/mkinstalldirs `dirname support/tools/Makefile`
23569${srcdir}/autoconf/mkinstalldirs `dirname support/tools/Burg/Makefile`
23570${srcdir}/autoconf/mkinstalldirs `dirname support/tools/Burg/Doc/Makefile`
23571${srcdir}/autoconf/mkinstalldirs `dirname support/tools/TableGen/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023572
23573_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023574
23575
23576
23577cat >>$CONFIG_STATUS <<\_ACEOF
23578for ac_config_target in $ac_config_targets
23579do
23580 case "$ac_config_target" in
23581 # Handling of arguments.
23582 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023583 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23584 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23585 "Makefile.rules" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.rules" ;;
23586 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23587 "lib/Analysis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/Makefile" ;;
23588 "lib/Analysis/DataStructure/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/DataStructure/Makefile" ;;
23589 "lib/Analysis/IPA/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/IPA/Makefile" ;;
23590 "lib/Analysis/LiveVar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/LiveVar/Makefile" ;;
23591 "lib/AsmParser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/AsmParser/Makefile" ;;
23592 "lib/Bytecode/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Makefile" ;;
23593 "lib/Bytecode/Reader/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Reader/Makefile" ;;
23594 "lib/Bytecode/Writer/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Writer/Makefile" ;;
23595 "lib/CWriter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CWriter/Makefile" ;;
23596 "lib/CodeGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/Makefile" ;;
23597 "lib/CodeGen/InstrSched/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSched/Makefile" ;;
23598 "lib/CodeGen/InstrSelection/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSelection/Makefile" ;;
23599 "lib/CodeGen/ModuloScheduling/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/ModuloScheduling/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023600 "lib/CodeGen/RegAlloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/RegAlloc/Makefile" ;;
23601 "lib/CodeGen/SelectionDAG/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/SelectionDAG/Makefile" ;;
23602 "lib/ExecutionEngine/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Makefile" ;;
23603 "lib/ExecutionEngine/Interpreter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Interpreter/Makefile" ;;
23604 "lib/ExecutionEngine/JIT/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/JIT/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023605 "lib/Target/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Makefile" ;;
23606 "lib/Target/Sparc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Sparc/Makefile" ;;
23607 "lib/Target/X86/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/X86/Makefile" ;;
23608 "lib/Transforms/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Makefile" ;;
23609 "lib/Transforms/Hello/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Hello/Makefile" ;;
23610 "lib/Transforms/IPO/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/IPO/Makefile" ;;
23611 "lib/Transforms/Instrumentation/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/Makefile" ;;
23612 "lib/Transforms/Instrumentation/ProfilePaths/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/ProfilePaths/Makefile" ;;
23613 "lib/Transforms/Scalar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Scalar/Makefile" ;;
23614 "lib/Transforms/Utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Utils/Makefile" ;;
23615 "lib/VMCore/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/VMCore/Makefile" ;;
23616 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23617 "runtime/GCCLibraries/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/Makefile" ;;
23618 "runtime/GCCLibraries/crtend/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/crtend/Makefile" ;;
23619 "runtime/GCCLibraries/libc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libc/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023620 "runtime/GCCLibraries/libcurses/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libcurses/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023621 "runtime/GCCLibraries/libg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libg/Makefile" ;;
23622 "runtime/GCCLibraries/libgcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libgcc/Makefile" ;;
23623 "runtime/GCCLibraries/libm/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libm/Makefile" ;;
23624 "runtime/GCCLibraries/libmalloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libmalloc/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023625 "runtime/GCCLibraries/libtermcap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libtermcap/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023626 "runtime/GCCLibraries/libucb/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libucb/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023627 "runtime/GCCLibraries/libutempter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutempter/Makefile" ;;
23628 "runtime/GCCLibraries/libutil/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutil/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023629 "runtime/libdummy/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libdummy/Makefile" ;;
23630 "runtime/libtrace/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libtrace/Makefile" ;;
23631 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23632 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
John Criswell08acb9b2003-09-16 02:12:45 +000023633 "test/QMTestDB/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTestDB/QMTest/llvm.py" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023634 "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
23635 "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
23636 "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
23637 "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
23638 "test/Programs/TEST.micro.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.report" ;;
23639 "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
23640 "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
23641 "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
23642 "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
23643 "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
23644 "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
23645 "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
23646 "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
23647 "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
23648 "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
23649 "test/Programs/TEST.micro.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.Makefile" ;;
23650 "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
23651 "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023652 "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023653 "test/Programs/External/SPEC/CFP2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/Makefile" ;;
23654 "test/Programs/External/SPEC/CFP2000/179.art/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/179.art/Makefile" ;;
23655 "test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ;;
23656 "test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ;;
23657 "test/Programs/External/SPEC/CINT2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/Makefile" ;;
23658 "test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ;;
23659 "test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ;;
23660 "test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ;;
23661 "test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ;;
23662 "test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ;;
23663 "test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ;;
23664 "test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ;;
23665 "test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ;;
23666 "test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ;;
23667 "test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ;;
23668 "test/Programs/LLVMSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/LLVMSource/Makefile" ;;
23669 "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
23670 "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023671 "test/Programs/MultiSource/Applications/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Makefile" ;;
23672 "test/Programs/MultiSource/Applications/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Burg/Makefile" ;;
John Criswell39e83892003-09-12 16:36:17 +000023673 "test/Programs/MultiSource/Applications/aha/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/aha/Makefile" ;;
23674 "test/Programs/MultiSource/Applications/sgefa/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/sgefa/Makefile" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023675 "test/Programs/MultiSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Makefile" ;;
23676 "test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ;;
23677 "test/Programs/MultiSource/Benchmarks/McCat/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/Makefile" ;;
23678 "test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ;;
23679 "test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ;;
23680 "test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ;;
23681 "test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ;;
23682 "test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ;;
23683 "test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ;;
23684 "test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ;;
23685 "test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ;;
23686 "test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ;;
23687 "test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ;;
23688 "test/Programs/MultiSource/Benchmarks/Olden/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/Makefile" ;;
23689 "test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ;;
23690 "test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ;;
23691 "test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ;;
23692 "test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ;;
23693 "test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ;;
23694 "test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ;;
23695 "test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ;;
23696 "test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ;;
23697 "test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ;;
23698 "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 +000023699 "test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023700 "test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ;;
23701 "test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ;;
23702 "test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ;;
23703 "test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ;;
23704 "test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ;;
23705 "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 +000023706 "test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023707 "test/Programs/MultiSource/Benchmarks/sim/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/sim/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023708 "test/Programs/NoSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Makefile" ;;
23709 "test/Programs/NoSource/Flex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Flex/Makefile" ;;
23710 "test/Programs/NoSource/Larn/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Larn/Makefile" ;;
23711 "test/Programs/NoSource/Moria-5.5.2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Moria-5.5.2/Makefile" ;;
23712 "test/Programs/NoSource/Povray31/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Povray31/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023713 "test/Programs/NoSource/m4/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/m4/Makefile" ;;
23714 "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
23715 "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
John Criswellffaaf3b2003-09-10 18:38:44 +000023716 "test/Programs/SingleSource/Gizmos/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Gizmos/Makefile" ;;
23717 "test/Programs/SingleSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Makefile" ;;
23718 "test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ;;
23719 "test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ;;
23720 "test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ;;
23721 "test/Programs/SingleSource/Benchmarks/Misc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Misc/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023722 "test/Programs/SingleSource/CustomChecked/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/CustomChecked/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023723 "test/Programs/SingleSource/UnitTests/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/Makefile" ;;
John Criswell0afe8252003-09-11 20:53:48 +000023724 "test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ;;
John Criswell67181ca2003-09-26 14:53:17 +000023725 "test/Programs/SingleSource/Regression/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/Makefile" ;;
John Criswell68886d42003-09-26 19:51:42 +000023726 "test/Programs/SingleSource/Regression/C/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C/Makefile" ;;
23727 "test/Programs/SingleSource/Regression/C++/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C++/Makefile" ;;
John Criswellc66bbd52003-09-29 21:35:32 +000023728 "test/Programs/SingleSource/Regression/C++/EH/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C++/EH/Makefile" ;;
23729 "test/Programs/SingleSource/Regression/C++/CompileFail/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C++/CompileFail/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023730 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23731 "tools/analyze/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/analyze/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023732 "tools/bugpoint/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/bugpoint/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023733 "tools/extract/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/extract/Makefile" ;;
23734 "tools/gccas/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccas/Makefile" ;;
23735 "tools/gccld/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccld/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023736 "tools/llc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llc/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023737 "tools/llee/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llee/Makefile" ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000023738 "tools/lli/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/lli/Makefile" ;;
Chris Lattnerebd70302003-09-13 03:29:53 +000023739 "tools/llvm-ar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-ar/Makefile" ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000023740 "tools/llvm-as/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-as/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023741 "tools/llvm-dis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-dis/Makefile" ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000023742 "tools/llvm-link/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-link/Makefile" ;;
23743 "tools/opt/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/opt/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023744 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023745 "www/docs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS www/docs/Makefile" ;;
23746 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23747 "projects/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile" ;;
23748 "projects/sample/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.common" ;;
23749 "projects/sample/Makefile.config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.config" ;;
23750 "projects/sample/lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/Makefile" ;;
23751 "projects/sample/lib/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/sample/Makefile" ;;
23752 "projects/sample/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/Makefile" ;;
23753 "projects/sample/tools/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/sample/Makefile" ;;
23754 "projects/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile" ;;
23755 "projects/ModuleMaker/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile.common" ;;
23756 "projects/ModuleMaker/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/Makefile" ;;
23757 "projects/ModuleMaker/tools/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/ModuleMaker/Makefile" ;;
John Criswell4e079782003-09-29 14:52:28 +000023758 "support/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS support/Makefile" ;;
23759 "support/lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS support/lib/Makefile" ;;
23760 "support/lib/Support/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS support/lib/Support/Makefile" ;;
23761 "support/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS support/tools/Makefile" ;;
23762 "support/tools/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS support/tools/Burg/Makefile" ;;
23763 "support/tools/Burg/Doc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS support/tools/Burg/Doc/Makefile" ;;
23764 "support/tools/TableGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS support/tools/TableGen/Makefile" ;;
John Criswell7a73b802003-06-30 21:59:07 +000023765 "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
23766 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23767echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23768 { (exit 1); exit 1; }; };;
23769 esac
23770done
23771
23772# If the user did not use the arguments to specify the items to instantiate,
23773# then the envvar interface is used. Set only those that are not.
23774# We use the long form for the default assignment because of an extremely
23775# bizarre bug on SunOS 4.1.3.
23776if $ac_need_defaults; then
23777 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23778 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000023779 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000023780fi
23781
John Criswell0c38eaf2003-09-10 15:17:25 +000023782# Have a temporary directory for convenience. Make it in the build tree
23783# simply because there is no reason to put it here, and in addition,
23784# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000023785# Create a temporary directory, and hook for its removal unless debugging.
23786$debug ||
23787{
23788 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23789 trap '{ (exit 1); exit 1; }' 1 2 13 15
23790}
23791
23792# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000023793
John Criswell7a73b802003-06-30 21:59:07 +000023794{
John Criswell0c38eaf2003-09-10 15:17:25 +000023795 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000023796 test -n "$tmp" && test -d "$tmp"
23797} ||
23798{
John Criswell0c38eaf2003-09-10 15:17:25 +000023799 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000023800 (umask 077 && mkdir $tmp)
23801} ||
23802{
John Criswell0c38eaf2003-09-10 15:17:25 +000023803 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000023804 { (exit 1); exit 1; }
23805}
23806
23807_ACEOF
23808
23809cat >>$CONFIG_STATUS <<_ACEOF
23810
23811#
23812# CONFIG_FILES section.
23813#
23814
23815# No need to generate the scripts if there are no CONFIG_FILES.
23816# This happens for instance when ./config.status config.h
23817if test -n "\$CONFIG_FILES"; then
23818 # Protect against being on the right side of a sed subst in config.status.
23819 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23820 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23821s,@SHELL@,$SHELL,;t t
23822s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23823s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23824s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23825s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23826s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23827s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23828s,@exec_prefix@,$exec_prefix,;t t
23829s,@prefix@,$prefix,;t t
23830s,@program_transform_name@,$program_transform_name,;t t
23831s,@bindir@,$bindir,;t t
23832s,@sbindir@,$sbindir,;t t
23833s,@libexecdir@,$libexecdir,;t t
23834s,@datadir@,$datadir,;t t
23835s,@sysconfdir@,$sysconfdir,;t t
23836s,@sharedstatedir@,$sharedstatedir,;t t
23837s,@localstatedir@,$localstatedir,;t t
23838s,@libdir@,$libdir,;t t
23839s,@includedir@,$includedir,;t t
23840s,@oldincludedir@,$oldincludedir,;t t
23841s,@infodir@,$infodir,;t t
23842s,@mandir@,$mandir,;t t
23843s,@build_alias@,$build_alias,;t t
23844s,@host_alias@,$host_alias,;t t
23845s,@target_alias@,$target_alias,;t t
23846s,@DEFS@,$DEFS,;t t
23847s,@ECHO_C@,$ECHO_C,;t t
23848s,@ECHO_N@,$ECHO_N,;t t
23849s,@ECHO_T@,$ECHO_T,;t t
23850s,@LIBS@,$LIBS,;t t
23851s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23852s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23853s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23854s,@build@,$build,;t t
23855s,@build_cpu@,$build_cpu,;t t
23856s,@build_vendor@,$build_vendor,;t t
23857s,@build_os@,$build_os,;t t
23858s,@host@,$host,;t t
23859s,@host_cpu@,$host_cpu,;t t
23860s,@host_vendor@,$host_vendor,;t t
23861s,@host_os@,$host_os,;t t
23862s,@target@,$target,;t t
23863s,@target_cpu@,$target_cpu,;t t
23864s,@target_vendor@,$target_vendor,;t t
23865s,@target_os@,$target_os,;t t
23866s,@OS@,$OS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023867s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
John Criswell76595452003-07-01 22:07:39 +000023868s,@ARCH@,$ARCH,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023869s,@CXX@,$CXX,;t t
23870s,@CXXFLAGS@,$CXXFLAGS,;t t
23871s,@LDFLAGS@,$LDFLAGS,;t t
23872s,@CPPFLAGS@,$CPPFLAGS,;t t
23873s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23874s,@EXEEXT@,$EXEEXT,;t t
23875s,@OBJEXT@,$OBJEXT,;t t
23876s,@CC@,$CC,;t t
23877s,@CFLAGS@,$CFLAGS,;t t
23878s,@ac_ct_CC@,$ac_ct_CC,;t t
23879s,@CPP@,$CPP,;t t
23880s,@ifGNUmake@,$ifGNUmake,;t t
23881s,@LEX@,$LEX,;t t
23882s,@LEXLIB@,$LEXLIB,;t t
23883s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
23884s,@YACC@,$YACC,;t t
John Criswell47fdd832003-07-14 16:52:07 +000023885s,@EGREP@,$EGREP,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023886s,@LN_S@,$LN_S,;t t
23887s,@ECHO@,$ECHO,;t t
John Criswell47fdd832003-07-14 16:52:07 +000023888s,@AR@,$AR,;t t
23889s,@ac_ct_AR@,$ac_ct_AR,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023890s,@RANLIB@,$RANLIB,;t t
23891s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23892s,@STRIP@,$STRIP,;t t
23893s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
John Criswell47fdd832003-07-14 16:52:07 +000023894s,@CXXCPP@,$CXXCPP,;t t
23895s,@F77@,$F77,;t t
23896s,@FFLAGS@,$FFLAGS,;t t
23897s,@ac_ct_F77@,$ac_ct_F77,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023898s,@LIBTOOL@,$LIBTOOL,;t t
John Criswellde00db22003-08-25 16:49:54 +000023899s,@RPWD@,$RPWD,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023900s,@SED@,$SED,;t t
23901s,@RM@,$RM,;t t
23902s,@MKDIR@,$MKDIR,;t t
23903s,@DATE@,$DATE,;t t
23904s,@MV@,$MV,;t t
23905s,@DOT@,$DOT,;t t
23906s,@ETAGS@,$ETAGS,;t t
23907s,@PURIFY@,$PURIFY,;t t
John Criswellde00db22003-08-25 16:49:54 +000023908s,@PYTHON@,$PYTHON,;t t
23909s,@QMTEST@,$QMTEST,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023910s,@ALLOCA@,$ALLOCA,;t t
23911s,@LIBOBJS@,$LIBOBJS,;t t
23912s,@MMAP_FILE@,$MMAP_FILE,;t t
23913s,@ENABLE_PURIFY@,$ENABLE_PURIFY,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023914s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
23915s,@USE_SPEC@,$USE_SPEC,;t t
23916s,@UPB@,$UPB,;t t
John Criswellf02dbf02003-07-22 20:07:49 +000023917s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023918s,@JIT@,$JIT,;t t
23919s,@SPEC_ROOT@,$SPEC_ROOT,;t t
23920s,@BCR@,$BCR,;t t
23921s,@PAPIDIR@,$PAPIDIR,;t t
John Criswell0c38eaf2003-09-10 15:17:25 +000023922s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023923CEOF
23924
23925_ACEOF
23926
23927 cat >>$CONFIG_STATUS <<\_ACEOF
23928 # Split the substitutions into bite-sized pieces for seds with
23929 # small command number limits, like on Digital OSF/1 and HP-UX.
23930 ac_max_sed_lines=48
23931 ac_sed_frag=1 # Number of current file.
23932 ac_beg=1 # First line for current file.
23933 ac_end=$ac_max_sed_lines # Line after last line for current file.
23934 ac_more_lines=:
23935 ac_sed_cmds=
23936 while $ac_more_lines; do
23937 if test $ac_beg -gt 1; then
23938 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23939 else
23940 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23941 fi
23942 if test ! -s $tmp/subs.frag; then
23943 ac_more_lines=false
23944 else
23945 # The purpose of the label and of the branching condition is to
23946 # speed up the sed processing (if there are no `@' at all, there
23947 # is no need to browse any of the substitutions).
23948 # These are the two extra sed commands mentioned above.
23949 (echo ':t
23950 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23951 if test -z "$ac_sed_cmds"; then
23952 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23953 else
23954 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23955 fi
23956 ac_sed_frag=`expr $ac_sed_frag + 1`
23957 ac_beg=$ac_end
23958 ac_end=`expr $ac_end + $ac_max_sed_lines`
23959 fi
23960 done
23961 if test -z "$ac_sed_cmds"; then
23962 ac_sed_cmds=cat
23963 fi
23964fi # test -n "$CONFIG_FILES"
23965
23966_ACEOF
23967cat >>$CONFIG_STATUS <<\_ACEOF
23968for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23969 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23970 case $ac_file in
23971 - | *:- | *:-:* ) # input from stdin
23972 cat >$tmp/stdin
23973 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23974 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23975 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23976 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23977 * ) ac_file_in=$ac_file.in ;;
23978 esac
23979
23980 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23981 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23982$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23983 X"$ac_file" : 'X\(//\)[^/]' \| \
23984 X"$ac_file" : 'X\(//\)$' \| \
23985 X"$ac_file" : 'X\(/\)' \| \
23986 . : '\(.\)' 2>/dev/null ||
23987echo X"$ac_file" |
23988 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23989 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23990 /^X\(\/\/\)$/{ s//\1/; q; }
23991 /^X\(\/\).*/{ s//\1/; q; }
23992 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000023993 { if $as_mkdir_p; then
23994 mkdir -p "$ac_dir"
23995 else
23996 as_dir="$ac_dir"
23997 as_dirs=
23998 while test ! -d "$as_dir"; do
23999 as_dirs="$as_dir $as_dirs"
24000 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24001$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24002 X"$as_dir" : 'X\(//\)[^/]' \| \
24003 X"$as_dir" : 'X\(//\)$' \| \
24004 X"$as_dir" : 'X\(/\)' \| \
24005 . : '\(.\)' 2>/dev/null ||
24006echo X"$as_dir" |
24007 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24008 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24009 /^X\(\/\/\)$/{ s//\1/; q; }
24010 /^X\(\/\).*/{ s//\1/; q; }
24011 s/.*/./; q'`
24012 done
24013 test ! -n "$as_dirs" || mkdir $as_dirs
24014 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24015echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24016 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000024017
24018 ac_builddir=.
24019
24020if test "$ac_dir" != .; then
24021 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24022 # A "../" for each directory in $ac_dir_suffix.
24023 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24024else
24025 ac_dir_suffix= ac_top_builddir=
24026fi
24027
24028case $srcdir in
24029 .) # No --srcdir option. We are building in place.
24030 ac_srcdir=.
24031 if test -z "$ac_top_builddir"; then
24032 ac_top_srcdir=.
24033 else
24034 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24035 fi ;;
24036 [\\/]* | ?:[\\/]* ) # Absolute path.
24037 ac_srcdir=$srcdir$ac_dir_suffix;
24038 ac_top_srcdir=$srcdir ;;
24039 *) # Relative path.
24040 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24041 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24042esac
24043# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24044# absolute.
24045ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +000024046ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswell7a73b802003-06-30 21:59:07 +000024047ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24048ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24049
24050
24051 case $INSTALL in
24052 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24053 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24054 esac
24055
24056 if test x"$ac_file" != x-; then
24057 { echo "$as_me:$LINENO: creating $ac_file" >&5
24058echo "$as_me: creating $ac_file" >&6;}
24059 rm -f "$ac_file"
24060 fi
24061 # Let's still pretend it is `configure' which instantiates (i.e., don't
24062 # use $as_me), people would be surprised to read:
24063 # /* config.h. Generated by config.status. */
24064 if test x"$ac_file" = x-; then
24065 configure_input=
24066 else
24067 configure_input="$ac_file. "
24068 fi
24069 configure_input=$configure_input"Generated from `echo $ac_file_in |
24070 sed 's,.*/,,'` by configure."
24071
24072 # First look for the input files in the build tree, otherwise in the
24073 # src tree.
24074 ac_file_inputs=`IFS=:
24075 for f in $ac_file_in; do
24076 case $f in
24077 -) echo $tmp/stdin ;;
24078 [\\/$]*)
24079 # Absolute (can't be DOS-style, as IFS=:)
24080 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24081echo "$as_me: error: cannot find input file: $f" >&2;}
24082 { (exit 1); exit 1; }; }
24083 echo $f;;
24084 *) # Relative
24085 if test -f "$f"; then
24086 # Build tree
24087 echo $f
24088 elif test -f "$srcdir/$f"; then
24089 # Source tree
24090 echo $srcdir/$f
24091 else
24092 # /dev/null tree
24093 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24094echo "$as_me: error: cannot find input file: $f" >&2;}
24095 { (exit 1); exit 1; }; }
24096 fi;;
24097 esac
24098 done` || { (exit 1); exit 1; }
24099_ACEOF
24100cat >>$CONFIG_STATUS <<_ACEOF
24101 sed "$ac_vpsub
24102$extrasub
24103_ACEOF
24104cat >>$CONFIG_STATUS <<\_ACEOF
24105:t
24106/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24107s,@configure_input@,$configure_input,;t t
24108s,@srcdir@,$ac_srcdir,;t t
24109s,@abs_srcdir@,$ac_abs_srcdir,;t t
24110s,@top_srcdir@,$ac_top_srcdir,;t t
24111s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24112s,@builddir@,$ac_builddir,;t t
24113s,@abs_builddir@,$ac_abs_builddir,;t t
24114s,@top_builddir@,$ac_top_builddir,;t t
24115s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24116s,@INSTALL@,$ac_INSTALL,;t t
24117" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24118 rm -f $tmp/stdin
24119 if test x"$ac_file" != x-; then
24120 mv $tmp/out $ac_file
24121 else
24122 cat $tmp/out
24123 rm -f $tmp/out
24124 fi
24125
24126done
24127_ACEOF
24128cat >>$CONFIG_STATUS <<\_ACEOF
24129
24130#
24131# CONFIG_HEADER section.
24132#
24133
24134# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24135# NAME is the cpp macro being defined and VALUE is the value it is being given.
24136#
24137# ac_d sets the value in "#define NAME VALUE" lines.
24138ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24139ac_dB='[ ].*$,\1#\2'
24140ac_dC=' '
24141ac_dD=',;t'
24142# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24143ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24144ac_uB='$,\1#\2define\3'
24145ac_uC=' '
24146ac_uD=',;t'
24147
24148for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24149 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24150 case $ac_file in
24151 - | *:- | *:-:* ) # input from stdin
24152 cat >$tmp/stdin
24153 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24154 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24155 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24156 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24157 * ) ac_file_in=$ac_file.in ;;
24158 esac
24159
24160 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24161echo "$as_me: creating $ac_file" >&6;}
24162
24163 # First look for the input files in the build tree, otherwise in the
24164 # src tree.
24165 ac_file_inputs=`IFS=:
24166 for f in $ac_file_in; do
24167 case $f in
24168 -) echo $tmp/stdin ;;
24169 [\\/$]*)
24170 # Absolute (can't be DOS-style, as IFS=:)
24171 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24172echo "$as_me: error: cannot find input file: $f" >&2;}
24173 { (exit 1); exit 1; }; }
24174 echo $f;;
24175 *) # Relative
24176 if test -f "$f"; then
24177 # Build tree
24178 echo $f
24179 elif test -f "$srcdir/$f"; then
24180 # Source tree
24181 echo $srcdir/$f
24182 else
24183 # /dev/null tree
24184 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24185echo "$as_me: error: cannot find input file: $f" >&2;}
24186 { (exit 1); exit 1; }; }
24187 fi;;
24188 esac
24189 done` || { (exit 1); exit 1; }
24190 # Remove the trailing spaces.
24191 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24192
24193_ACEOF
24194
24195# Transform confdefs.h into two sed scripts, `conftest.defines' and
24196# `conftest.undefs', that substitutes the proper values into
24197# config.h.in to produce config.h. The first handles `#define'
24198# templates, and the second `#undef' templates.
24199# And first: Protect against being on the right side of a sed subst in
24200# config.status. Protect against being in an unquoted here document
24201# in config.status.
24202rm -f conftest.defines conftest.undefs
24203# Using a here document instead of a string reduces the quoting nightmare.
24204# Putting comments in sed scripts is not portable.
24205#
24206# `end' is used to avoid that the second main sed command (meant for
24207# 0-ary CPP macros) applies to n-ary macro definitions.
24208# See the Autoconf documentation for `clear'.
24209cat >confdef2sed.sed <<\_ACEOF
24210s/[\\&,]/\\&/g
24211s,[\\$`],\\&,g
24212t clear
24213: clear
24214s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24215t end
24216s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24217: end
24218_ACEOF
24219# If some macros were called several times there might be several times
24220# the same #defines, which is useless. Nevertheless, we may not want to
24221# sort them, since we want the *last* AC-DEFINE to be honored.
24222uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24223sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24224rm -f confdef2sed.sed
24225
24226# This sed command replaces #undef with comments. This is necessary, for
24227# example, in the case of _POSIX_SOURCE, which is predefined and required
24228# on some systems where configure will not decide to define it.
24229cat >>conftest.undefs <<\_ACEOF
24230s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24231_ACEOF
24232
24233# Break up conftest.defines because some shells have a limit on the size
24234# of here documents, and old seds have small limits too (100 cmds).
24235echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
John Criswell0c38eaf2003-09-10 15:17:25 +000024236echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000024237echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24238echo ' :' >>$CONFIG_STATUS
24239rm -f conftest.tail
24240while grep . conftest.defines >/dev/null
24241do
24242 # Write a limited-size here document to $tmp/defines.sed.
24243 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24244 # Speed up: don't consider the non `#define' lines.
24245 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24246 # Work around the forget-to-reset-the-flag bug.
24247 echo 't clr' >>$CONFIG_STATUS
24248 echo ': clr' >>$CONFIG_STATUS
24249 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24250 echo 'CEOF
24251 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24252 rm -f $tmp/in
24253 mv $tmp/out $tmp/in
24254' >>$CONFIG_STATUS
24255 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24256 rm -f conftest.defines
24257 mv conftest.tail conftest.defines
24258done
24259rm -f conftest.defines
John Criswell0c38eaf2003-09-10 15:17:25 +000024260echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000024261echo >>$CONFIG_STATUS
24262
24263# Break up conftest.undefs because some shells have a limit on the size
24264# of here documents, and old seds have small limits too (100 cmds).
24265echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24266rm -f conftest.tail
24267while grep . conftest.undefs >/dev/null
24268do
24269 # Write a limited-size here document to $tmp/undefs.sed.
24270 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24271 # Speed up: don't consider the non `#undef'
24272 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24273 # Work around the forget-to-reset-the-flag bug.
24274 echo 't clr' >>$CONFIG_STATUS
24275 echo ': clr' >>$CONFIG_STATUS
24276 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24277 echo 'CEOF
24278 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24279 rm -f $tmp/in
24280 mv $tmp/out $tmp/in
24281' >>$CONFIG_STATUS
24282 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24283 rm -f conftest.undefs
24284 mv conftest.tail conftest.undefs
24285done
24286rm -f conftest.undefs
24287
24288cat >>$CONFIG_STATUS <<\_ACEOF
24289 # Let's still pretend it is `configure' which instantiates (i.e., don't
24290 # use $as_me), people would be surprised to read:
24291 # /* config.h. Generated by config.status. */
24292 if test x"$ac_file" = x-; then
24293 echo "/* Generated by configure. */" >$tmp/config.h
24294 else
24295 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24296 fi
24297 cat $tmp/in >>$tmp/config.h
24298 rm -f $tmp/in
24299 if test x"$ac_file" != x-; then
John Criswell0c38eaf2003-09-10 15:17:25 +000024300 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000024301 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24302echo "$as_me: $ac_file is unchanged" >&6;}
24303 else
24304 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24305$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24306 X"$ac_file" : 'X\(//\)[^/]' \| \
24307 X"$ac_file" : 'X\(//\)$' \| \
24308 X"$ac_file" : 'X\(/\)' \| \
24309 . : '\(.\)' 2>/dev/null ||
24310echo X"$ac_file" |
24311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24312 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24313 /^X\(\/\/\)$/{ s//\1/; q; }
24314 /^X\(\/\).*/{ s//\1/; q; }
24315 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000024316 { if $as_mkdir_p; then
24317 mkdir -p "$ac_dir"
24318 else
24319 as_dir="$ac_dir"
24320 as_dirs=
24321 while test ! -d "$as_dir"; do
24322 as_dirs="$as_dir $as_dirs"
24323 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24324$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24325 X"$as_dir" : 'X\(//\)[^/]' \| \
24326 X"$as_dir" : 'X\(//\)$' \| \
24327 X"$as_dir" : 'X\(/\)' \| \
24328 . : '\(.\)' 2>/dev/null ||
24329echo X"$as_dir" |
24330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24331 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24332 /^X\(\/\/\)$/{ s//\1/; q; }
24333 /^X\(\/\).*/{ s//\1/; q; }
24334 s/.*/./; q'`
24335 done
24336 test ! -n "$as_dirs" || mkdir $as_dirs
24337 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24338echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24339 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000024340
24341 rm -f $ac_file
24342 mv $tmp/config.h $ac_file
24343 fi
24344 else
24345 cat $tmp/config.h
24346 rm -f $tmp/config.h
24347 fi
24348done
24349_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000024350cat >>$CONFIG_STATUS <<\_ACEOF
24351
24352#
24353# CONFIG_COMMANDS section.
24354#
24355for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24356 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24357 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24358 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24359$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24360 X"$ac_dest" : 'X\(//\)[^/]' \| \
24361 X"$ac_dest" : 'X\(//\)$' \| \
24362 X"$ac_dest" : 'X\(/\)' \| \
24363 . : '\(.\)' 2>/dev/null ||
24364echo X"$ac_dest" |
24365 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24366 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24367 /^X\(\/\/\)$/{ s//\1/; q; }
24368 /^X\(\/\).*/{ s//\1/; q; }
24369 s/.*/./; q'`
24370 ac_builddir=.
24371
24372if test "$ac_dir" != .; then
24373 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24374 # A "../" for each directory in $ac_dir_suffix.
24375 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24376else
24377 ac_dir_suffix= ac_top_builddir=
24378fi
24379
24380case $srcdir in
24381 .) # No --srcdir option. We are building in place.
24382 ac_srcdir=.
24383 if test -z "$ac_top_builddir"; then
24384 ac_top_srcdir=.
24385 else
24386 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24387 fi ;;
24388 [\\/]* | ?:[\\/]* ) # Absolute path.
24389 ac_srcdir=$srcdir$ac_dir_suffix;
24390 ac_top_srcdir=$srcdir ;;
24391 *) # Relative path.
24392 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24393 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24394esac
24395# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24396# absolute.
24397ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +000024398ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswellc764fbc2003-09-06 15:17:13 +000024399ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24400ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24401
24402
24403 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24404echo "$as_me: executing $ac_dest commands" >&6;}
24405 case $ac_dest in
24406 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
24407 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
24408 Makefile.rules ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.rules Makefile.rules ;;
24409 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
24410 lib/Analysis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/Makefile lib/Analysis/Makefile ;;
24411 lib/Analysis/DataStructure/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/DataStructure/Makefile lib/Analysis/DataStructure/Makefile ;;
24412 lib/Analysis/IPA/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/IPA/Makefile lib/Analysis/IPA/Makefile ;;
24413 lib/Analysis/LiveVar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/LiveVar/Makefile lib/Analysis/LiveVar/Makefile ;;
24414 lib/AsmParser/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/AsmParser/Makefile lib/AsmParser/Makefile ;;
24415 lib/Bytecode/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Makefile lib/Bytecode/Makefile ;;
24416 lib/Bytecode/Reader/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Reader/Makefile lib/Bytecode/Reader/Makefile ;;
24417 lib/Bytecode/Writer/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Writer/Makefile lib/Bytecode/Writer/Makefile ;;
24418 lib/CWriter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CWriter/Makefile lib/CWriter/Makefile ;;
24419 lib/CodeGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/Makefile lib/CodeGen/Makefile ;;
24420 lib/CodeGen/InstrSched/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSched/Makefile lib/CodeGen/InstrSched/Makefile ;;
24421 lib/CodeGen/InstrSelection/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSelection/Makefile lib/CodeGen/InstrSelection/Makefile ;;
24422 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 +000024423 lib/CodeGen/RegAlloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/RegAlloc/Makefile lib/CodeGen/RegAlloc/Makefile ;;
24424 lib/CodeGen/SelectionDAG/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/SelectionDAG/Makefile lib/CodeGen/SelectionDAG/Makefile ;;
24425 lib/ExecutionEngine/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Makefile lib/ExecutionEngine/Makefile ;;
24426 lib/ExecutionEngine/Interpreter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Interpreter/Makefile lib/ExecutionEngine/Interpreter/Makefile ;;
24427 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 +000024428 lib/Target/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Makefile lib/Target/Makefile ;;
24429 lib/Target/Sparc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Sparc/Makefile lib/Target/Sparc/Makefile ;;
24430 lib/Target/X86/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/X86/Makefile lib/Target/X86/Makefile ;;
24431 lib/Transforms/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Makefile lib/Transforms/Makefile ;;
24432 lib/Transforms/Hello/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Hello/Makefile lib/Transforms/Hello/Makefile ;;
24433 lib/Transforms/IPO/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/IPO/Makefile lib/Transforms/IPO/Makefile ;;
24434 lib/Transforms/Instrumentation/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/Makefile lib/Transforms/Instrumentation/Makefile ;;
24435 lib/Transforms/Instrumentation/ProfilePaths/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/ProfilePaths/Makefile lib/Transforms/Instrumentation/ProfilePaths/Makefile ;;
24436 lib/Transforms/Scalar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Scalar/Makefile lib/Transforms/Scalar/Makefile ;;
24437 lib/Transforms/Utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Utils/Makefile lib/Transforms/Utils/Makefile ;;
24438 lib/VMCore/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/VMCore/Makefile lib/VMCore/Makefile ;;
24439 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
24440 runtime/GCCLibraries/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/Makefile runtime/GCCLibraries/Makefile ;;
24441 runtime/GCCLibraries/crtend/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/crtend/Makefile runtime/GCCLibraries/crtend/Makefile ;;
24442 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 +000024443 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 +000024444 runtime/GCCLibraries/libg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libg/Makefile runtime/GCCLibraries/libg/Makefile ;;
24445 runtime/GCCLibraries/libgcc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libgcc/Makefile runtime/GCCLibraries/libgcc/Makefile ;;
24446 runtime/GCCLibraries/libm/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libm/Makefile runtime/GCCLibraries/libm/Makefile ;;
24447 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 +000024448 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 +000024449 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 +000024450 runtime/GCCLibraries/libutempter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libutempter/Makefile runtime/GCCLibraries/libutempter/Makefile ;;
24451 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 +000024452 runtime/libdummy/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libdummy/Makefile runtime/libdummy/Makefile ;;
24453 runtime/libtrace/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libtrace/Makefile runtime/libtrace/Makefile ;;
24454 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
24455 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
John Criswell08acb9b2003-09-16 02:12:45 +000024456 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 +000024457 test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
24458 test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
24459 test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
24460 test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
24461 test/Programs/TEST.micro.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.report test/Programs/TEST.micro.report ;;
24462 test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
24463 test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
24464 test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
24465 test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
24466 test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
24467 test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
24468 test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
24469 test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
24470 test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
24471 test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
24472 test/Programs/TEST.micro.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.Makefile test/Programs/TEST.micro.Makefile ;;
24473 test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
24474 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 +000024475 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 +000024476 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 ;;
24477 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 ;;
24478 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 ;;
24479 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 ;;
24480 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 ;;
24481 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 ;;
24482 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 ;;
24483 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 ;;
24484 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 ;;
24485 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 ;;
24486 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 ;;
24487 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 ;;
24488 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 ;;
24489 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 ;;
24490 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 ;;
24491 test/Programs/LLVMSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/LLVMSource/Makefile test/Programs/LLVMSource/Makefile ;;
24492 test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
24493 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 +000024494 test/Programs/MultiSource/Applications/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Applications/Makefile test/Programs/MultiSource/Applications/Makefile ;;
24495 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 +000024496 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 ;;
24497 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 +000024498 test/Programs/MultiSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Makefile test/Programs/MultiSource/Benchmarks/Makefile ;;
24499 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 ;;
24500 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 ;;
24501 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 ;;
24502 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 ;;
24503 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 ;;
24504 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 ;;
24505 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 ;;
24506 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 ;;
24507 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 ;;
24508 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 ;;
24509 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 ;;
24510 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 ;;
24511 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 ;;
24512 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 ;;
24513 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 ;;
24514 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 ;;
24515 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 ;;
24516 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 ;;
24517 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 ;;
24518 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 ;;
24519 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 ;;
24520 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 ;;
24521 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 +000024522 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 +000024523 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 ;;
24524 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 ;;
24525 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 ;;
24526 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 ;;
24527 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 ;;
24528 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 +000024529 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 +000024530 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 +000024531 test/Programs/NoSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Makefile test/Programs/NoSource/Makefile ;;
24532 test/Programs/NoSource/Flex/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Flex/Makefile test/Programs/NoSource/Flex/Makefile ;;
24533 test/Programs/NoSource/Larn/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Larn/Makefile test/Programs/NoSource/Larn/Makefile ;;
24534 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 ;;
24535 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 +000024536 test/Programs/NoSource/m4/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/m4/Makefile test/Programs/NoSource/m4/Makefile ;;
24537 test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
24538 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 +000024539 test/Programs/SingleSource/Gizmos/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Gizmos/Makefile test/Programs/SingleSource/Gizmos/Makefile ;;
24540 test/Programs/SingleSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Makefile test/Programs/SingleSource/Benchmarks/Makefile ;;
24541 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 ;;
24542 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 ;;
24543 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 ;;
24544 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 +000024545 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 +000024546 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 +000024547 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 +000024548 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 +000024549 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 ;;
24550 test/Programs/SingleSource/Regression/C++/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Regression/C++/Makefile test/Programs/SingleSource/Regression/C++/Makefile ;;
John Criswellc66bbd52003-09-29 21:35:32 +000024551 test/Programs/SingleSource/Regression/C++/EH/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Regression/C++/EH/Makefile test/Programs/SingleSource/Regression/C++/EH/Makefile ;;
24552 test/Programs/SingleSource/Regression/C++/CompileFail/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Regression/C++/CompileFail/Makefile test/Programs/SingleSource/Regression/C++/CompileFail/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024553 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
24554 tools/analyze/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/analyze/Makefile tools/analyze/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024555 tools/bugpoint/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/bugpoint/Makefile tools/bugpoint/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024556 tools/extract/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/extract/Makefile tools/extract/Makefile ;;
24557 tools/gccas/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccas/Makefile tools/gccas/Makefile ;;
24558 tools/gccld/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccld/Makefile tools/gccld/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024559 tools/llc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llc/Makefile tools/llc/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024560 tools/llee/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llee/Makefile tools/llee/Makefile ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000024561 tools/lli/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/lli/Makefile tools/lli/Makefile ;;
Chris Lattnerebd70302003-09-13 03:29:53 +000024562 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 +000024563 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 +000024564 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 +000024565 tools/llvm-link/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-link/Makefile tools/llvm-link/Makefile ;;
24566 tools/opt/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/opt/Makefile tools/opt/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024567 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024568 www/docs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/www/docs/Makefile www/docs/Makefile ;;
24569 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
24570 projects/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile projects/sample/Makefile ;;
24571 projects/sample/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.common projects/sample/Makefile.common ;;
24572 projects/sample/Makefile.config ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.config projects/sample/Makefile.config ;;
24573 projects/sample/lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/Makefile projects/sample/lib/Makefile ;;
24574 projects/sample/lib/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/sample/Makefile projects/sample/lib/sample/Makefile ;;
24575 projects/sample/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/Makefile projects/sample/tools/Makefile ;;
24576 projects/sample/tools/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/sample/Makefile projects/sample/tools/sample/Makefile ;;
24577 projects/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile projects/ModuleMaker/Makefile ;;
24578 projects/ModuleMaker/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile.common projects/ModuleMaker/Makefile.common ;;
24579 projects/ModuleMaker/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/Makefile projects/ModuleMaker/tools/Makefile ;;
24580 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 +000024581 support/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/support/Makefile support/Makefile ;;
24582 support/lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/support/lib/Makefile support/lib/Makefile ;;
24583 support/lib/Support/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/support/lib/Support/Makefile support/lib/Support/Makefile ;;
24584 support/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/support/tools/Makefile support/tools/Makefile ;;
24585 support/tools/Burg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/support/tools/Burg/Makefile support/tools/Burg/Makefile ;;
24586 support/tools/Burg/Doc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/support/tools/Burg/Doc/Makefile support/tools/Burg/Doc/Makefile ;;
24587 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 +000024588 esac
24589done
24590_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000024591
24592cat >>$CONFIG_STATUS <<\_ACEOF
24593
24594{ (exit 0); exit 0; }
24595_ACEOF
24596chmod +x $CONFIG_STATUS
24597ac_clean_files=$ac_clean_files_save
24598
24599
24600# configure is writing to config.log, and then calls config.status.
24601# config.status does its own redirection, appending to config.log.
24602# Unfortunately, on DOS this fails, as config.log is still kept open
24603# by configure, so config.status won't be able to write to it; its
24604# output is simply discarded. So we exec the FD to /dev/null,
24605# effectively closing config.log, so it can be properly (re)opened and
24606# appended to by config.status. When coming back to configure, we
24607# need to make the FD available again.
24608if test "$no_create" != yes; then
24609 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000024610 ac_config_status_args=
24611 test "$silent" = yes &&
24612 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000024613 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000024614 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000024615 exec 5>>config.log
24616 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24617 # would make configure fail if this is the last instruction.
24618 $ac_cs_success || { (exit 1); exit 1; }
24619fi
24620