* app.c (do_scrub_chars): Do not UNGET an EOF value.
[deliverable/binutils-gdb.git] / gas / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
ab509236 3# Generated by GNU Autoconf 2.59.
252b5132 4#
ab509236 5# Copyright (C) 2003 Free Software Foundation, Inc.
252b5132
RH
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
13b2be9c
DJ
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
ab509236 22DUALCASE=1; export DUALCASE # for MKS sh
13b2be9c
DJ
23
24# Support unset when possible.
ab509236 25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13b2be9c
DJ
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
ab509236 44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13b2be9c
DJ
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
ab509236 221 test -d ./-p && rmdir ./-p
13b2be9c
DJ
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
ab509236 228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13b2be9c
DJ
229
230# Sed expression to map a string onto a valid variable name.
ab509236 231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13b2be9c
DJ
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
d7040cdb
SE
244
245# Check that we are running under the correct shell.
246SHELL=${CONFIG_SHELL-/bin/sh}
247
248case X$lt_ECHO in
249X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
252 ;;
253esac
254
255ECHO=${lt_ECHO-echo}
256if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
258 shift
259elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
261 :
262elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $ECHO works!
264 :
265else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
268fi
269
270if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
272 shift
273 cat <<_LT_EOF
274$*
275_LT_EOF
276 exit 0
277fi
278
279# The HP-UX ksh and POSIX shell print the target directory to stdout
280# if CDPATH is set.
281(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
282
283if test -z "$lt_ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
289 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
290 then
291 break
292 fi
293 done
294 fi
295
296 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
297 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
298 test "X$echo_testing_string" = "X$echo_test_string"; then
299 :
300 else
301 # The Solaris, AIX, and Digital Unix default echo programs unquote
302 # backslashes. This makes it impossible to quote backslashes using
303 # echo "$something" | sed 's/\\/\\\\/g'
304 #
305 # So, first we look for a working echo in the user's PATH.
306
307 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
308 for dir in $PATH /usr/ucb; do
309 IFS="$lt_save_ifs"
310 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
311 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313 test "X$echo_testing_string" = "X$echo_test_string"; then
314 ECHO="$dir/echo"
315 break
316 fi
317 done
318 IFS="$lt_save_ifs"
319
320 if test "X$ECHO" = Xecho; then
321 # We didn't find a better echo, so look for alternatives.
322 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
323 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
324 test "X$echo_testing_string" = "X$echo_test_string"; then
325 # This shell has a builtin print -r that does the trick.
326 ECHO='print -r'
327 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
328 test "X$CONFIG_SHELL" != X/bin/ksh; then
329 # If we have ksh, try running configure again with it.
330 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
331 export ORIGINAL_CONFIG_SHELL
332 CONFIG_SHELL=/bin/ksh
333 export CONFIG_SHELL
334 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
335 else
336 # Try using printf.
337 ECHO='printf %s\n'
338 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
339 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
340 test "X$echo_testing_string" = "X$echo_test_string"; then
341 # Cool, printf works
342 :
343 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344 test "X$echo_testing_string" = 'X\t' &&
345 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346 test "X$echo_testing_string" = "X$echo_test_string"; then
347 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
348 export CONFIG_SHELL
349 SHELL="$CONFIG_SHELL"
350 export SHELL
351 ECHO="$CONFIG_SHELL $0 --fallback-echo"
352 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353 test "X$echo_testing_string" = 'X\t' &&
354 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355 test "X$echo_testing_string" = "X$echo_test_string"; then
356 ECHO="$CONFIG_SHELL $0 --fallback-echo"
357 else
358 # maybe with a smaller string...
359 prev=:
360
361 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
363 then
364 break
365 fi
366 prev="$cmd"
367 done
368
369 if test "$prev" != 'sed 50q "$0"'; then
370 echo_test_string=`eval $prev`
371 export echo_test_string
372 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
373 else
374 # Oops. We lost completely, so just stick with echo.
375 ECHO=echo
376 fi
377 fi
378 fi
379 fi
380 fi
381fi
382
383# Copy echo and quote the copy suitably for passing to libtool from
384# the Makefile, instead of quoting the original, which is used later.
385lt_ECHO=$ECHO
386if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
388fi
389
390
391
392
13b2be9c
DJ
393# Name of the host.
394# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395# so uname gets run too.
396ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
252b5132 397
13b2be9c
DJ
398exec 6>&1
399
400#
401# Initializations.
402#
252b5132 403ac_default_prefix=/usr/local
13b2be9c
DJ
404ac_config_libobj_dir=.
405cross_compiling=no
406subdirs=
407MFLAGS=
408MAKEFLAGS=
409SHELL=${CONFIG_SHELL-/bin/sh}
410
411# Maximum number of lines to put in a shell here document.
412# This variable seems obsolete. It should probably be removed, and
413# only ac_max_sed_lines should be used.
414: ${ac_max_here_lines=38}
415
416# Identity of this package.
417PACKAGE_NAME=
418PACKAGE_TARNAME=
419PACKAGE_VERSION=
420PACKAGE_STRING=
421PACKAGE_BUGREPORT=
422
423ac_unique_file="as.h"
424# Factoring default headers for most tests.
425ac_includes_default="\
426#include <stdio.h>
427#if HAVE_SYS_TYPES_H
428# include <sys/types.h>
429#endif
430#if HAVE_SYS_STAT_H
431# include <sys/stat.h>
432#endif
433#if STDC_HEADERS
434# include <stdlib.h>
435# include <stddef.h>
436#else
437# if HAVE_STDLIB_H
438# include <stdlib.h>
439# endif
440#endif
441#if HAVE_STRING_H
442# if !STDC_HEADERS && HAVE_MEMORY_H
443# include <memory.h>
444# endif
445# include <string.h>
446#endif
447#if HAVE_STRINGS_H
448# include <strings.h>
449#endif
450#if HAVE_INTTYPES_H
451# include <inttypes.h>
452#else
453# if HAVE_STDINT_H
454# include <stdint.h>
455# endif
456#endif
457#if HAVE_UNISTD_H
458# include <unistd.h>
459#endif"
460
d7040cdb 461ac_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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO CPP WARN_CFLAGS NO_WERROR GDBINIT cgen_cpu_prefix extra_objects target_cpu_type obj_format te_file install_tooldir atof OPCODES_LIB YACC LEX LEXLIB LEX_OUTPUT_ROOT USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GENINSRC_NEVER_TRUE GENINSRC_NEVER_FALSE ALLOCA LIBM datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
13b2be9c 462ac_subst_files=''
252b5132
RH
463
464# Initialize some variables set by options.
13b2be9c
DJ
465ac_init_help=
466ac_init_version=false
252b5132
RH
467# The variables have the same names as the options, with
468# dashes changed to underlines.
13b2be9c 469cache_file=/dev/null
252b5132 470exec_prefix=NONE
252b5132 471no_create=
252b5132
RH
472no_recursion=
473prefix=NONE
474program_prefix=NONE
475program_suffix=NONE
476program_transform_name=s,x,x,
477silent=
478site=
479srcdir=
252b5132
RH
480verbose=
481x_includes=NONE
482x_libraries=NONE
13b2be9c
DJ
483
484# Installation directory options.
485# These are left unexpanded so users can "make install exec_prefix=/foo"
486# and all the variables that are supposed to be based on exec_prefix
487# by default will actually change.
488# Use braces instead of parens because sh, perl, etc. also accept them.
252b5132
RH
489bindir='${exec_prefix}/bin'
490sbindir='${exec_prefix}/sbin'
491libexecdir='${exec_prefix}/libexec'
492datadir='${prefix}/share'
493sysconfdir='${prefix}/etc'
494sharedstatedir='${prefix}/com'
495localstatedir='${prefix}/var'
496libdir='${exec_prefix}/lib'
497includedir='${prefix}/include'
498oldincludedir='/usr/include'
499infodir='${prefix}/info'
500mandir='${prefix}/man'
501
252b5132
RH
502ac_prev=
503for ac_option
504do
252b5132
RH
505 # If the previous option needs an argument, assign it.
506 if test -n "$ac_prev"; then
507 eval "$ac_prev=\$ac_option"
508 ac_prev=
509 continue
510 fi
511
13b2be9c 512 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
252b5132
RH
513
514 # Accept the important Cygnus configure options, so we can diagnose typos.
515
13b2be9c 516 case $ac_option in
252b5132
RH
517
518 -bindir | --bindir | --bindi | --bind | --bin | --bi)
519 ac_prev=bindir ;;
520 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
13b2be9c 521 bindir=$ac_optarg ;;
252b5132
RH
522
523 -build | --build | --buil | --bui | --bu)
13b2be9c 524 ac_prev=build_alias ;;
252b5132 525 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
13b2be9c 526 build_alias=$ac_optarg ;;
252b5132
RH
527
528 -cache-file | --cache-file | --cache-fil | --cache-fi \
529 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
530 ac_prev=cache_file ;;
531 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
532 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
13b2be9c
DJ
533 cache_file=$ac_optarg ;;
534
535 --config-cache | -C)
536 cache_file=config.cache ;;
252b5132
RH
537
538 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
539 ac_prev=datadir ;;
540 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
541 | --da=*)
13b2be9c 542 datadir=$ac_optarg ;;
252b5132
RH
543
544 -disable-* | --disable-*)
13b2be9c 545 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 546 # Reject names that are not valid shell variable names.
13b2be9c
DJ
547 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
548 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
549 { (exit 1); exit 1; }; }
550 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
551 eval "enable_$ac_feature=no" ;;
252b5132
RH
552
553 -enable-* | --enable-*)
13b2be9c 554 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 555 # Reject names that are not valid shell variable names.
13b2be9c
DJ
556 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558 { (exit 1); exit 1; }; }
559 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560 case $ac_option in
561 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252b5132
RH
562 *) ac_optarg=yes ;;
563 esac
13b2be9c 564 eval "enable_$ac_feature='$ac_optarg'" ;;
252b5132
RH
565
566 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
567 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
568 | --exec | --exe | --ex)
569 ac_prev=exec_prefix ;;
570 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
571 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
572 | --exec=* | --exe=* | --ex=*)
13b2be9c 573 exec_prefix=$ac_optarg ;;
252b5132
RH
574
575 -gas | --gas | --ga | --g)
576 # Obsolete; use --with-gas.
577 with_gas=yes ;;
578
13b2be9c
DJ
579 -help | --help | --hel | --he | -h)
580 ac_init_help=long ;;
581 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
582 ac_init_help=recursive ;;
583 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
584 ac_init_help=short ;;
252b5132
RH
585
586 -host | --host | --hos | --ho)
13b2be9c 587 ac_prev=host_alias ;;
252b5132 588 -host=* | --host=* | --hos=* | --ho=*)
13b2be9c 589 host_alias=$ac_optarg ;;
252b5132
RH
590
591 -includedir | --includedir | --includedi | --included | --include \
592 | --includ | --inclu | --incl | --inc)
593 ac_prev=includedir ;;
594 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
595 | --includ=* | --inclu=* | --incl=* | --inc=*)
13b2be9c 596 includedir=$ac_optarg ;;
252b5132
RH
597
598 -infodir | --infodir | --infodi | --infod | --info | --inf)
599 ac_prev=infodir ;;
600 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
13b2be9c 601 infodir=$ac_optarg ;;
252b5132
RH
602
603 -libdir | --libdir | --libdi | --libd)
604 ac_prev=libdir ;;
605 -libdir=* | --libdir=* | --libdi=* | --libd=*)
13b2be9c 606 libdir=$ac_optarg ;;
252b5132
RH
607
608 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
609 | --libexe | --libex | --libe)
610 ac_prev=libexecdir ;;
611 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
612 | --libexe=* | --libex=* | --libe=*)
13b2be9c 613 libexecdir=$ac_optarg ;;
252b5132
RH
614
615 -localstatedir | --localstatedir | --localstatedi | --localstated \
616 | --localstate | --localstat | --localsta | --localst \
617 | --locals | --local | --loca | --loc | --lo)
618 ac_prev=localstatedir ;;
619 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
620 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
621 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
13b2be9c 622 localstatedir=$ac_optarg ;;
252b5132
RH
623
624 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
625 ac_prev=mandir ;;
626 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
13b2be9c 627 mandir=$ac_optarg ;;
252b5132
RH
628
629 -nfp | --nfp | --nf)
630 # Obsolete; use --without-fp.
631 with_fp=no ;;
632
633 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
13b2be9c 634 | --no-cr | --no-c | -n)
252b5132
RH
635 no_create=yes ;;
636
637 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
638 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
639 no_recursion=yes ;;
640
641 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
642 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
643 | --oldin | --oldi | --old | --ol | --o)
644 ac_prev=oldincludedir ;;
645 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
646 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
647 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
13b2be9c 648 oldincludedir=$ac_optarg ;;
252b5132
RH
649
650 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
651 ac_prev=prefix ;;
652 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
13b2be9c 653 prefix=$ac_optarg ;;
252b5132
RH
654
655 -program-prefix | --program-prefix | --program-prefi | --program-pref \
656 | --program-pre | --program-pr | --program-p)
657 ac_prev=program_prefix ;;
658 -program-prefix=* | --program-prefix=* | --program-prefi=* \
659 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
13b2be9c 660 program_prefix=$ac_optarg ;;
252b5132
RH
661
662 -program-suffix | --program-suffix | --program-suffi | --program-suff \
663 | --program-suf | --program-su | --program-s)
664 ac_prev=program_suffix ;;
665 -program-suffix=* | --program-suffix=* | --program-suffi=* \
666 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
13b2be9c 667 program_suffix=$ac_optarg ;;
252b5132
RH
668
669 -program-transform-name | --program-transform-name \
670 | --program-transform-nam | --program-transform-na \
671 | --program-transform-n | --program-transform- \
672 | --program-transform | --program-transfor \
673 | --program-transfo | --program-transf \
674 | --program-trans | --program-tran \
675 | --progr-tra | --program-tr | --program-t)
676 ac_prev=program_transform_name ;;
677 -program-transform-name=* | --program-transform-name=* \
678 | --program-transform-nam=* | --program-transform-na=* \
679 | --program-transform-n=* | --program-transform-=* \
680 | --program-transform=* | --program-transfor=* \
681 | --program-transfo=* | --program-transf=* \
682 | --program-trans=* | --program-tran=* \
683 | --progr-tra=* | --program-tr=* | --program-t=*)
13b2be9c 684 program_transform_name=$ac_optarg ;;
252b5132
RH
685
686 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
687 | -silent | --silent | --silen | --sile | --sil)
688 silent=yes ;;
689
690 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
691 ac_prev=sbindir ;;
692 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
693 | --sbi=* | --sb=*)
13b2be9c 694 sbindir=$ac_optarg ;;
252b5132
RH
695
696 -sharedstatedir | --sharedstatedir | --sharedstatedi \
697 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
698 | --sharedst | --shareds | --shared | --share | --shar \
699 | --sha | --sh)
700 ac_prev=sharedstatedir ;;
701 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
702 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
703 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
704 | --sha=* | --sh=*)
13b2be9c 705 sharedstatedir=$ac_optarg ;;
252b5132
RH
706
707 -site | --site | --sit)
708 ac_prev=site ;;
709 -site=* | --site=* | --sit=*)
13b2be9c 710 site=$ac_optarg ;;
76bff705 711
252b5132
RH
712 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
713 ac_prev=srcdir ;;
714 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
13b2be9c 715 srcdir=$ac_optarg ;;
252b5132
RH
716
717 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
718 | --syscon | --sysco | --sysc | --sys | --sy)
719 ac_prev=sysconfdir ;;
720 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
721 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
13b2be9c 722 sysconfdir=$ac_optarg ;;
252b5132
RH
723
724 -target | --target | --targe | --targ | --tar | --ta | --t)
13b2be9c 725 ac_prev=target_alias ;;
252b5132 726 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
13b2be9c 727 target_alias=$ac_optarg ;;
252b5132
RH
728
729 -v | -verbose | --verbose | --verbos | --verbo | --verb)
730 verbose=yes ;;
731
13b2be9c
DJ
732 -version | --version | --versio | --versi | --vers | -V)
733 ac_init_version=: ;;
252b5132
RH
734
735 -with-* | --with-*)
13b2be9c 736 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 737 # Reject names that are not valid shell variable names.
13b2be9c
DJ
738 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
739 { echo "$as_me: error: invalid package name: $ac_package" >&2
740 { (exit 1); exit 1; }; }
252b5132 741 ac_package=`echo $ac_package| sed 's/-/_/g'`
13b2be9c
DJ
742 case $ac_option in
743 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252b5132
RH
744 *) ac_optarg=yes ;;
745 esac
13b2be9c 746 eval "with_$ac_package='$ac_optarg'" ;;
252b5132
RH
747
748 -without-* | --without-*)
13b2be9c 749 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 750 # Reject names that are not valid shell variable names.
13b2be9c
DJ
751 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
752 { echo "$as_me: error: invalid package name: $ac_package" >&2
753 { (exit 1); exit 1; }; }
754 ac_package=`echo $ac_package | sed 's/-/_/g'`
755 eval "with_$ac_package=no" ;;
252b5132
RH
756
757 --x)
758 # Obsolete; use --with-x.
759 with_x=yes ;;
760
761 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
762 | --x-incl | --x-inc | --x-in | --x-i)
763 ac_prev=x_includes ;;
764 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
765 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
13b2be9c 766 x_includes=$ac_optarg ;;
252b5132
RH
767
768 -x-libraries | --x-libraries | --x-librarie | --x-librari \
769 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
770 ac_prev=x_libraries ;;
771 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
772 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
13b2be9c 773 x_libraries=$ac_optarg ;;
252b5132 774
13b2be9c
DJ
775 -*) { echo "$as_me: error: unrecognized option: $ac_option
776Try \`$0 --help' for more information." >&2
777 { (exit 1); exit 1; }; }
252b5132
RH
778 ;;
779
13b2be9c
DJ
780 *=*)
781 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
782 # Reject names that are not valid shell variable names.
783 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
784 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
785 { (exit 1); exit 1; }; }
786 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
787 eval "$ac_envvar='$ac_optarg'"
788 export $ac_envvar ;;
789
252b5132 790 *)
13b2be9c
DJ
791 # FIXME: should be removed in autoconf 3.0.
792 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
793 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
794 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
795 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
252b5132
RH
796 ;;
797
798 esac
799done
800
801if test -n "$ac_prev"; then
13b2be9c
DJ
802 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
803 { echo "$as_me: error: missing argument to $ac_option" >&2
804 { (exit 1); exit 1; }; }
c8615825 805fi
c8615825 806
13b2be9c
DJ
807# Be sure to have absolute paths.
808for ac_var in exec_prefix prefix
809do
810 eval ac_val=$`echo $ac_var`
811 case $ac_val in
812 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
813 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
814 { (exit 1); exit 1; }; };;
815 esac
816done
252b5132 817
13b2be9c
DJ
818# Be sure to have absolute paths.
819for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
ab509236 820 localstatedir libdir includedir oldincludedir infodir mandir
252b5132 821do
13b2be9c
DJ
822 eval ac_val=$`echo $ac_var`
823 case $ac_val in
824 [\\/$]* | ?:[\\/]* ) ;;
825 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
826 { (exit 1); exit 1; }; };;
252b5132
RH
827 esac
828done
829
13b2be9c
DJ
830# There might be people who depend on the old broken behavior: `$host'
831# used to hold the argument of --host etc.
832# FIXME: To remove some day.
833build=$build_alias
834host=$host_alias
835target=$target_alias
836
837# FIXME: To remove some day.
838if test "x$host_alias" != x; then
839 if test "x$build_alias" = x; then
840 cross_compiling=maybe
841 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
842 If a cross compiler is detected then cross compile mode will be used." >&2
843 elif test "x$build_alias" != "x$host_alias"; then
844 cross_compiling=yes
845 fi
846fi
9b2b7d69 847
13b2be9c
DJ
848ac_tool_prefix=
849test -n "$host_alias" && ac_tool_prefix=$host_alias-
850
851test "$silent" = yes && exec 6>/dev/null
252b5132 852
252b5132
RH
853
854# Find the source files, if location was not specified.
855if test -z "$srcdir"; then
856 ac_srcdir_defaulted=yes
857 # Try the directory containing this script, then its parent.
13b2be9c
DJ
858 ac_confdir=`(dirname "$0") 2>/dev/null ||
859$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
860 X"$0" : 'X\(//\)[^/]' \| \
861 X"$0" : 'X\(//\)$' \| \
862 X"$0" : 'X\(/\)' \| \
863 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
864echo X"$0" |
865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
866 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
867 /^X\(\/\/\)$/{ s//\1/; q; }
868 /^X\(\/\).*/{ s//\1/; q; }
869 s/.*/./; q'`
252b5132
RH
870 srcdir=$ac_confdir
871 if test ! -r $srcdir/$ac_unique_file; then
872 srcdir=..
873 fi
874else
875 ac_srcdir_defaulted=no
876fi
877if test ! -r $srcdir/$ac_unique_file; then
878 if test "$ac_srcdir_defaulted" = yes; then
13b2be9c
DJ
879 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
880 { (exit 1); exit 1; }; }
252b5132 881 else
13b2be9c
DJ
882 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
883 { (exit 1); exit 1; }; }
252b5132
RH
884 fi
885fi
13b2be9c
DJ
886(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
887 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
888 { (exit 1); exit 1; }; }
889srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
890ac_env_build_alias_set=${build_alias+set}
891ac_env_build_alias_value=$build_alias
892ac_cv_env_build_alias_set=${build_alias+set}
893ac_cv_env_build_alias_value=$build_alias
894ac_env_host_alias_set=${host_alias+set}
895ac_env_host_alias_value=$host_alias
896ac_cv_env_host_alias_set=${host_alias+set}
897ac_cv_env_host_alias_value=$host_alias
898ac_env_target_alias_set=${target_alias+set}
899ac_env_target_alias_value=$target_alias
900ac_cv_env_target_alias_set=${target_alias+set}
901ac_cv_env_target_alias_value=$target_alias
902ac_env_CC_set=${CC+set}
903ac_env_CC_value=$CC
904ac_cv_env_CC_set=${CC+set}
905ac_cv_env_CC_value=$CC
906ac_env_CFLAGS_set=${CFLAGS+set}
907ac_env_CFLAGS_value=$CFLAGS
908ac_cv_env_CFLAGS_set=${CFLAGS+set}
909ac_cv_env_CFLAGS_value=$CFLAGS
910ac_env_LDFLAGS_set=${LDFLAGS+set}
911ac_env_LDFLAGS_value=$LDFLAGS
912ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
913ac_cv_env_LDFLAGS_value=$LDFLAGS
914ac_env_CPPFLAGS_set=${CPPFLAGS+set}
915ac_env_CPPFLAGS_value=$CPPFLAGS
916ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
917ac_cv_env_CPPFLAGS_value=$CPPFLAGS
918ac_env_CPP_set=${CPP+set}
919ac_env_CPP_value=$CPP
920ac_cv_env_CPP_set=${CPP+set}
921ac_cv_env_CPP_value=$CPP
d6d788bd 922
13b2be9c
DJ
923#
924# Report the --help message.
925#
926if test "$ac_init_help" = "long"; then
927 # Omit some internal or obsolete options to make the list less imposing.
928 # This message is too long to be a string in the A/UX 3.1 sh.
929 cat <<_ACEOF
930\`configure' configures this package to adapt to many kinds of systems.
9b2b7d69 931
13b2be9c 932Usage: $0 [OPTION]... [VAR=VALUE]...
9b2b7d69 933
13b2be9c
DJ
934To assign environment variables (e.g., CC, CFLAGS...), specify them as
935VAR=VALUE. See below for descriptions of some of the useful variables.
9b2b7d69 936
13b2be9c 937Defaults for the options are specified in brackets.
9b2b7d69 938
13b2be9c
DJ
939Configuration:
940 -h, --help display this help and exit
941 --help=short display options specific to this package
942 --help=recursive display the short help of all the included packages
943 -V, --version display version information and exit
944 -q, --quiet, --silent do not print \`checking...' messages
945 --cache-file=FILE cache test results in FILE [disabled]
946 -C, --config-cache alias for \`--cache-file=config.cache'
947 -n, --no-create do not create output files
948 --srcdir=DIR find the sources in DIR [configure dir or \`..']
949
950_ACEOF
951
952 cat <<_ACEOF
953Installation directories:
954 --prefix=PREFIX install architecture-independent files in PREFIX
ab509236 955 [$ac_default_prefix]
13b2be9c 956 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ab509236 957 [PREFIX]
9b2b7d69 958
13b2be9c
DJ
959By default, \`make install' will install all the files in
960\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
961an installation prefix other than \`$ac_default_prefix' using \`--prefix',
962for instance \`--prefix=\$HOME'.
9b2b7d69 963
13b2be9c 964For better control, use the options below.
9b2b7d69 965
13b2be9c
DJ
966Fine tuning of the installation directories:
967 --bindir=DIR user executables [EPREFIX/bin]
968 --sbindir=DIR system admin executables [EPREFIX/sbin]
969 --libexecdir=DIR program executables [EPREFIX/libexec]
970 --datadir=DIR read-only architecture-independent data [PREFIX/share]
971 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
972 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
973 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
974 --libdir=DIR object code libraries [EPREFIX/lib]
975 --includedir=DIR C header files [PREFIX/include]
976 --oldincludedir=DIR C header files for non-gcc [/usr/include]
977 --infodir=DIR info documentation [PREFIX/info]
978 --mandir=DIR man documentation [PREFIX/man]
979_ACEOF
9b2b7d69 980
13b2be9c 981 cat <<\_ACEOF
9b2b7d69 982
13b2be9c
DJ
983Program names:
984 --program-prefix=PREFIX prepend PREFIX to installed program names
985 --program-suffix=SUFFIX append SUFFIX to installed program names
986 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
9b2b7d69 987
13b2be9c
DJ
988System types:
989 --build=BUILD configure for building on BUILD [guessed]
990 --host=HOST cross-compile to build programs to run on HOST [BUILD]
991 --target=TARGET configure for building compilers for TARGET [HOST]
992_ACEOF
9b2b7d69 993fi
9b2b7d69 994
13b2be9c 995if test -n "$ac_init_help"; then
9b2b7d69 996
13b2be9c 997 cat <<\_ACEOF
9b2b7d69 998
13b2be9c
DJ
999Optional Features:
1000 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1001 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
ab509236
L
1002 --disable-dependency-tracking speeds up one-time build
1003 --enable-dependency-tracking do not reject slow dependency extractors
d7040cdb
SE
1004 --enable-shared[=PKGS]
1005 build shared libraries [default=yes]
1006 --enable-static[=PKGS]
1007 build static libraries [default=yes]
1008 --enable-fast-install[=PKGS]
1009 optimize for fast installation [default=yes]
13b2be9c 1010 --disable-libtool-lock avoid locking (might break parallel builds)
241a6c40 1011 --enable-targets alternative target configurations besides the primary
13b2be9c 1012 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
c43a438d 1013 --enable-checking enable run-time checks
241a6c40
AM
1014 --enable-werror treat compile warnings as errors
1015 --enable-build-warnings enable build-time compiler warnings
13b2be9c 1016 --disable-nls do not use Native Language Support
ab509236
L
1017 --enable-maintainer-mode enable make rules and dependencies not useful
1018 (and sometimes confusing) to the casual installer
9b2b7d69 1019
13b2be9c
DJ
1020Optional Packages:
1021 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1022 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d7040cdb
SE
1023 --with-pic try to use only PIC/non-PIC objects [default=use
1024 both]
1025 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
9b2b7d69 1026
13b2be9c
DJ
1027Some influential environment variables:
1028 CC C compiler command
1029 CFLAGS C compiler flags
1030 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1031 nonstandard directory <lib dir>
1032 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1033 headers in a nonstandard directory <include dir>
1034 CPP C preprocessor
1035
1036Use these variables to override the choices made by `configure' or to help
1037it to find libraries and programs with nonstandard names/locations.
1038
1039_ACEOF
9b2b7d69 1040fi
9b2b7d69 1041
13b2be9c
DJ
1042if test "$ac_init_help" = "recursive"; then
1043 # If there are subdirs, report their specific --help.
1044 ac_popdir=`pwd`
1045 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1046 test -d $ac_dir || continue
1047 ac_builddir=.
1048
1049if test "$ac_dir" != .; then
1050 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1051 # A "../" for each directory in $ac_dir_suffix.
1052 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1053else
1054 ac_dir_suffix= ac_top_builddir=
1055fi
9b2b7d69 1056
13b2be9c
DJ
1057case $srcdir in
1058 .) # No --srcdir option. We are building in place.
1059 ac_srcdir=.
1060 if test -z "$ac_top_builddir"; then
1061 ac_top_srcdir=.
1062 else
1063 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
c8615825 1064 fi ;;
13b2be9c
DJ
1065 [\\/]* | ?:[\\/]* ) # Absolute path.
1066 ac_srcdir=$srcdir$ac_dir_suffix;
1067 ac_top_srcdir=$srcdir ;;
1068 *) # Relative path.
1069 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1070 ac_top_srcdir=$ac_top_builddir$srcdir ;;
c8615825 1071esac
ab509236
L
1072
1073# Do not use `cd foo && pwd` to compute absolute paths, because
1074# the directories may not exist.
1075case `pwd` in
1076.) ac_abs_builddir="$ac_dir";;
1077*)
1078 case "$ac_dir" in
1079 .) ac_abs_builddir=`pwd`;;
1080 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1081 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1082 esac;;
1083esac
1084case $ac_abs_builddir in
1085.) ac_abs_top_builddir=${ac_top_builddir}.;;
1086*)
1087 case ${ac_top_builddir}. in
1088 .) ac_abs_top_builddir=$ac_abs_builddir;;
1089 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1090 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1091 esac;;
1092esac
1093case $ac_abs_builddir in
1094.) ac_abs_srcdir=$ac_srcdir;;
1095*)
1096 case $ac_srcdir in
1097 .) ac_abs_srcdir=$ac_abs_builddir;;
1098 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1099 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1100 esac;;
1101esac
1102case $ac_abs_builddir in
1103.) ac_abs_top_srcdir=$ac_top_srcdir;;
1104*)
1105 case $ac_top_srcdir in
1106 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1107 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1108 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1109 esac;;
1110esac
13b2be9c
DJ
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 ||
ab509236 1121 test -f $ac_srcdir/configure.in; then
13b2be9c
DJ
1122 echo
1123 $ac_configure --help
1124 else
1125 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1126 fi
1ad12f97 1127 cd $ac_popdir
13b2be9c
DJ
1128 done
1129fi
6840198f 1130
13b2be9c
DJ
1131test -n "$ac_init_help" && exit 0
1132if $ac_init_version; then
1133 cat <<\_ACEOF
c8615825 1134
ab509236 1135Copyright (C) 2003 Free Software Foundation, Inc.
13b2be9c
DJ
1136This configure script is free software; the Free Software Foundation
1137gives unlimited permission to copy, distribute and modify it.
1138_ACEOF
1139 exit 0
1140fi
1141exec 5>config.log
1142cat >&5 <<_ACEOF
1143This file contains any messages produced by compilers while
1144running configure, to aid debugging if configure makes a mistake.
c8615825 1145
13b2be9c 1146It was created by $as_me, which was
ab509236 1147generated by GNU Autoconf 2.59. Invocation command line was
c8615825 1148
13b2be9c 1149 $ $0 $@
c8615825 1150
13b2be9c
DJ
1151_ACEOF
1152{
1153cat <<_ASUNAME
1154## --------- ##
1155## Platform. ##
1156## --------- ##
1157
1158hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1159uname -m = `(uname -m) 2>/dev/null || echo unknown`
1160uname -r = `(uname -r) 2>/dev/null || echo unknown`
1161uname -s = `(uname -s) 2>/dev/null || echo unknown`
1162uname -v = `(uname -v) 2>/dev/null || echo unknown`
1163
1164/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1165/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1166
1167/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1168/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1169/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1170hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1171/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1172/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1173/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1174
1175_ASUNAME
1176
1177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1178for as_dir in $PATH
1179do
1180 IFS=$as_save_IFS
1181 test -z "$as_dir" && as_dir=.
1182 echo "PATH: $as_dir"
1183done
9b2b7d69 1184
13b2be9c 1185} >&5
6840198f 1186
13b2be9c 1187cat >&5 <<_ACEOF
c8615825 1188
9b2b7d69 1189
13b2be9c
DJ
1190## ----------- ##
1191## Core tests. ##
1192## ----------- ##
87ccc1b0 1193
13b2be9c 1194_ACEOF
9b2b7d69 1195
13b2be9c
DJ
1196
1197# Keep a trace of the command line.
1198# Strip out --no-create and --no-recursion so they do not pile up.
1199# Strip out --silent because we don't want to record it for future runs.
1200# Also quote any args containing shell meta-characters.
1201# Make two passes to allow for proper duplicate-argument suppression.
1202ac_configure_args=
1203ac_configure_args0=
1204ac_configure_args1=
1205ac_sep=
1206ac_must_keep_next=false
1207for ac_pass in 1 2
1208do
1209 for ac_arg
1210 do
1211 case $ac_arg in
1212 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1213 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1214 | -silent | --silent | --silen | --sile | --sil)
1215 continue ;;
1216 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1217 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1218 esac
1219 case $ac_pass in
1220 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1221 2)
1222 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1223 if test $ac_must_keep_next = true; then
ab509236 1224 ac_must_keep_next=false # Got value, back to normal.
13b2be9c 1225 else
ab509236
L
1226 case $ac_arg in
1227 *=* | --config-cache | -C | -disable-* | --disable-* \
1228 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1229 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1230 | -with-* | --with-* | -without-* | --without-* | --x)
1231 case "$ac_configure_args0 " in
1232 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1233 esac
1234 ;;
1235 -* ) ac_must_keep_next=true ;;
1236 esac
13b2be9c
DJ
1237 fi
1238 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1239 # Get rid of the leading space.
1240 ac_sep=" "
c8615825
AM
1241 ;;
1242 esac
1243 done
13b2be9c
DJ
1244done
1245$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1246$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1247
1248# When interrupted or exit'd, cleanup temporary files, and complete
1249# config.log. We remove comments because anyway the quotes in there
1250# would cause problems or look ugly.
1251# WARNING: Be sure not to use single quotes in there, as some shells,
1252# such as our DU 5.0 friend, will then `close' the trap.
1253trap 'exit_status=$?
1254 # Save into config.log some information that might help in debugging.
1255 {
1256 echo
1257
1258 cat <<\_ASBOX
1259## ---------------- ##
1260## Cache variables. ##
1261## ---------------- ##
1262_ASBOX
1263 echo
1264 # The following way of writing the cache mishandles newlines in values,
1265{
1266 (set) 2>&1 |
1267 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1268 *ac_space=\ *)
1269 sed -n \
ab509236
L
1270 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1271 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
13b2be9c
DJ
1272 ;;
1273 *)
1274 sed -n \
ab509236 1275 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13b2be9c
DJ
1276 ;;
1277 esac;
1278}
1279 echo
1280
1281 cat <<\_ASBOX
1282## ----------------- ##
1283## Output variables. ##
1284## ----------------- ##
1285_ASBOX
1286 echo
1287 for ac_var in $ac_subst_vars
1288 do
1289 eval ac_val=$`echo $ac_var`
1290 echo "$ac_var='"'"'$ac_val'"'"'"
1291 done | sort
1292 echo
1293
1294 if test -n "$ac_subst_files"; then
1295 cat <<\_ASBOX
1296## ------------- ##
1297## Output files. ##
1298## ------------- ##
1299_ASBOX
1300 echo
1301 for ac_var in $ac_subst_files
1302 do
1303 eval ac_val=$`echo $ac_var`
ab509236 1304 echo "$ac_var='"'"'$ac_val'"'"'"
13b2be9c
DJ
1305 done | sort
1306 echo
1307 fi
1308
1309 if test -s confdefs.h; then
1310 cat <<\_ASBOX
1311## ----------- ##
1312## confdefs.h. ##
1313## ----------- ##
1314_ASBOX
1315 echo
1316 sed "/^$/d" confdefs.h | sort
1317 echo
1318 fi
1319 test "$ac_signal" != 0 &&
1320 echo "$as_me: caught signal $ac_signal"
1321 echo "$as_me: exit $exit_status"
1322 } >&5
ab509236 1323 rm -f core *.core &&
13b2be9c
DJ
1324 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1325 exit $exit_status
1326 ' 0
1327for ac_signal in 1 2 13 15; do
1328 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1329done
1330ac_signal=0
1331
1332# confdefs.h avoids OS command line length limits that DEFS can exceed.
1333rm -rf conftest* confdefs.h
1334# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1335echo >confdefs.h
1336
1337# Predefined preprocessor variables.
1338
1339cat >>confdefs.h <<_ACEOF
1340#define PACKAGE_NAME "$PACKAGE_NAME"
1341_ACEOF
1342
1343
1344cat >>confdefs.h <<_ACEOF
1345#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1346_ACEOF
1347
1348
1349cat >>confdefs.h <<_ACEOF
1350#define PACKAGE_VERSION "$PACKAGE_VERSION"
1351_ACEOF
1352
1353
1354cat >>confdefs.h <<_ACEOF
1355#define PACKAGE_STRING "$PACKAGE_STRING"
1356_ACEOF
1357
1358
1359cat >>confdefs.h <<_ACEOF
1360#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1361_ACEOF
1362
1363
1364# Let the site file select an alternate cache file if it wants to.
1365# Prefer explicitly selected file to automatically selected ones.
1366if test -z "$CONFIG_SITE"; then
1367 if test "x$prefix" != xNONE; then
1368 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1369 else
1370 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1371 fi
1372fi
1373for ac_site_file in $CONFIG_SITE; do
1374 if test -r "$ac_site_file"; then
1375 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1376echo "$as_me: loading site script $ac_site_file" >&6;}
1377 sed 's/^/| /' "$ac_site_file" >&5
1378 . "$ac_site_file"
1379 fi
1380done
1381
1382if test -r "$cache_file"; then
1383 # Some versions of bash will fail to source /dev/null (special
1384 # files actually), so we avoid doing that.
1385 if test -f "$cache_file"; then
1386 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1387echo "$as_me: loading cache $cache_file" >&6;}
1388 case $cache_file in
1389 [\\/]* | ?:[\\/]* ) . $cache_file;;
1390 *) . ./$cache_file;;
1391 esac
1392 fi
1393else
1394 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1395echo "$as_me: creating cache $cache_file" >&6;}
1396 >$cache_file
1397fi
1398
1399# Check that the precious variables saved in the cache have kept the same
1400# value.
1401ac_cache_corrupted=false
1402for ac_var in `(set) 2>&1 |
ab509236 1403 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
13b2be9c
DJ
1404 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1405 eval ac_new_set=\$ac_env_${ac_var}_set
1406 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1407 eval ac_new_val="\$ac_env_${ac_var}_value"
1408 case $ac_old_set,$ac_new_set in
1409 set,)
1410 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1411echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1412 ac_cache_corrupted=: ;;
1413 ,set)
1414 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1415echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1416 ac_cache_corrupted=: ;;
1417 ,);;
1418 *)
1419 if test "x$ac_old_val" != "x$ac_new_val"; then
6194aaab
L
1420 # differences in whitespace do not lead to failure.
1421 ac_old_val_w=`echo x $ac_old_val`
1422 ac_new_val_w=`echo x $ac_new_val`
1423 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1424 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
13b2be9c 1425echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
6194aaab
L
1426 ac_cache_corrupted=:
1427 else
1428 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1429echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1430 eval $ac_var=\$ac_old_val
1431 fi
1432 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1433echo "$as_me: former value: \`$ac_old_val'" >&2;}
1434 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1435echo "$as_me: current value: \`$ac_new_val'" >&2;}
13b2be9c
DJ
1436 fi;;
1437 esac
1438 # Pass precious variables to config.status.
1439 if test "$ac_new_set" = set; then
1440 case $ac_new_val in
1441 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1442 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1443 *) ac_arg=$ac_var=$ac_new_val ;;
1444 esac
1445 case " $ac_configure_args " in
1446 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1447 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1448 esac
1449 fi
1450done
1451if $ac_cache_corrupted; then
1452 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1453echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1454 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1455echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1456 { (exit 1); exit 1; }; }
1457fi
1458
1459ac_ext=c
1460ac_cpp='$CPP $CPPFLAGS'
1461ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1462ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1463ac_compiler_gnu=$ac_cv_c_compiler_gnu
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484ac_aux_dir=
1485for ac_dir in .. $srcdir/..; do
1486 if test -f $ac_dir/install-sh; then
1487 ac_aux_dir=$ac_dir
1488 ac_install_sh="$ac_aux_dir/install-sh -c"
1489 break
1490 elif test -f $ac_dir/install.sh; then
1491 ac_aux_dir=$ac_dir
1492 ac_install_sh="$ac_aux_dir/install.sh -c"
1493 break
1494 elif test -f $ac_dir/shtool; then
1495 ac_aux_dir=$ac_dir
1496 ac_install_sh="$ac_aux_dir/shtool install -c"
1497 break
1498 fi
1499done
1500if test -z "$ac_aux_dir"; then
1501 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
1502echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
1503 { (exit 1); exit 1; }; }
1504fi
1505ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1506ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1507ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1508
1509# Make sure we can run config.sub.
1510$ac_config_sub sun4 >/dev/null 2>&1 ||
1511 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1512echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1513 { (exit 1); exit 1; }; }
1514
1515echo "$as_me:$LINENO: checking build system type" >&5
1516echo $ECHO_N "checking build system type... $ECHO_C" >&6
1517if test "${ac_cv_build+set}" = set; then
1518 echo $ECHO_N "(cached) $ECHO_C" >&6
1519else
1520 ac_cv_build_alias=$build_alias
1521test -z "$ac_cv_build_alias" &&
1522 ac_cv_build_alias=`$ac_config_guess`
1523test -z "$ac_cv_build_alias" &&
1524 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1525echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1526 { (exit 1); exit 1; }; }
1527ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1528 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1529echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1530 { (exit 1); exit 1; }; }
1531
1532fi
1533echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1534echo "${ECHO_T}$ac_cv_build" >&6
1535build=$ac_cv_build
1536build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1537build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1538build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1539
1540
1541echo "$as_me:$LINENO: checking host system type" >&5
1542echo $ECHO_N "checking host system type... $ECHO_C" >&6
1543if test "${ac_cv_host+set}" = set; then
1544 echo $ECHO_N "(cached) $ECHO_C" >&6
1545else
1546 ac_cv_host_alias=$host_alias
1547test -z "$ac_cv_host_alias" &&
1548 ac_cv_host_alias=$ac_cv_build_alias
1549ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1550 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1551echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1552 { (exit 1); exit 1; }; }
1553
1554fi
1555echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1556echo "${ECHO_T}$ac_cv_host" >&6
1557host=$ac_cv_host
1558host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1559host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1560host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1561
1562
1563echo "$as_me:$LINENO: checking target system type" >&5
1564echo $ECHO_N "checking target system type... $ECHO_C" >&6
1565if test "${ac_cv_target+set}" = set; then
1566 echo $ECHO_N "(cached) $ECHO_C" >&6
1567else
1568 ac_cv_target_alias=$target_alias
1569test "x$ac_cv_target_alias" = "x" &&
1570 ac_cv_target_alias=$ac_cv_host_alias
1571ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1572 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1573echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1574 { (exit 1); exit 1; }; }
1575
1576fi
1577echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1578echo "${ECHO_T}$ac_cv_target" >&6
1579target=$ac_cv_target
1580target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1581target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1582target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1583
1584
1585# The aliases save the names the user supplied, while $host etc.
1586# will get canonicalized.
1587test -n "$target_alias" &&
1588 test "$program_prefix$program_suffix$program_transform_name" = \
1589 NONENONEs,x,x, &&
1590 program_prefix=${target_alias}-
1591ac_ext=c
1592ac_cpp='$CPP $CPPFLAGS'
1593ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1594ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1595ac_compiler_gnu=$ac_cv_c_compiler_gnu
1596if test -n "$ac_tool_prefix"; then
1597 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1598set dummy ${ac_tool_prefix}gcc; ac_word=$2
1599echo "$as_me:$LINENO: checking for $ac_word" >&5
1600echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1601if test "${ac_cv_prog_CC+set}" = set; then
1602 echo $ECHO_N "(cached) $ECHO_C" >&6
1603else
1604 if test -n "$CC"; then
1605 ac_cv_prog_CC="$CC" # Let the user override the test.
1606else
1607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1608for as_dir in $PATH
1609do
1610 IFS=$as_save_IFS
1611 test -z "$as_dir" && as_dir=.
1612 for ac_exec_ext in '' $ac_executable_extensions; do
1613 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1614 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1616 break 2
1617 fi
1618done
1619done
1620
1621fi
1622fi
1623CC=$ac_cv_prog_CC
1624if test -n "$CC"; then
1625 echo "$as_me:$LINENO: result: $CC" >&5
1626echo "${ECHO_T}$CC" >&6
1627else
1628 echo "$as_me:$LINENO: result: no" >&5
1629echo "${ECHO_T}no" >&6
1630fi
1631
1632fi
1633if test -z "$ac_cv_prog_CC"; then
1634 ac_ct_CC=$CC
1635 # Extract the first word of "gcc", so it can be a program name with args.
1636set dummy gcc; ac_word=$2
1637echo "$as_me:$LINENO: checking for $ac_word" >&5
1638echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1639if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1640 echo $ECHO_N "(cached) $ECHO_C" >&6
1641else
1642 if test -n "$ac_ct_CC"; then
1643 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1644else
1645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1646for as_dir in $PATH
1647do
1648 IFS=$as_save_IFS
1649 test -z "$as_dir" && as_dir=.
1650 for ac_exec_ext in '' $ac_executable_extensions; do
1651 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1652 ac_cv_prog_ac_ct_CC="gcc"
1653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1654 break 2
1655 fi
1656done
1657done
1658
1659fi
1660fi
1661ac_ct_CC=$ac_cv_prog_ac_ct_CC
1662if test -n "$ac_ct_CC"; then
1663 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1664echo "${ECHO_T}$ac_ct_CC" >&6
1665else
1666 echo "$as_me:$LINENO: result: no" >&5
1667echo "${ECHO_T}no" >&6
1668fi
1669
1670 CC=$ac_ct_CC
1671else
1672 CC="$ac_cv_prog_CC"
1673fi
1674
1675if test -z "$CC"; then
1676 if test -n "$ac_tool_prefix"; then
1677 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1678set dummy ${ac_tool_prefix}cc; ac_word=$2
1679echo "$as_me:$LINENO: checking for $ac_word" >&5
1680echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1681if test "${ac_cv_prog_CC+set}" = set; then
1682 echo $ECHO_N "(cached) $ECHO_C" >&6
1683else
1684 if test -n "$CC"; then
1685 ac_cv_prog_CC="$CC" # Let the user override the test.
1686else
1687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1688for as_dir in $PATH
1689do
1690 IFS=$as_save_IFS
1691 test -z "$as_dir" && as_dir=.
1692 for ac_exec_ext in '' $ac_executable_extensions; do
1693 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1694 ac_cv_prog_CC="${ac_tool_prefix}cc"
1695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1696 break 2
1697 fi
1698done
1699done
1700
1701fi
1702fi
1703CC=$ac_cv_prog_CC
1704if test -n "$CC"; then
1705 echo "$as_me:$LINENO: result: $CC" >&5
1706echo "${ECHO_T}$CC" >&6
1707else
1708 echo "$as_me:$LINENO: result: no" >&5
1709echo "${ECHO_T}no" >&6
1710fi
1711
1712fi
1713if test -z "$ac_cv_prog_CC"; then
1714 ac_ct_CC=$CC
1715 # Extract the first word of "cc", so it can be a program name with args.
1716set dummy cc; ac_word=$2
1717echo "$as_me:$LINENO: checking for $ac_word" >&5
1718echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1719if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1720 echo $ECHO_N "(cached) $ECHO_C" >&6
1721else
1722 if test -n "$ac_ct_CC"; then
1723 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1724else
1725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1726for as_dir in $PATH
1727do
1728 IFS=$as_save_IFS
1729 test -z "$as_dir" && as_dir=.
1730 for ac_exec_ext in '' $ac_executable_extensions; do
1731 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1732 ac_cv_prog_ac_ct_CC="cc"
1733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1734 break 2
1735 fi
1736done
1737done
1738
1739fi
1740fi
1741ac_ct_CC=$ac_cv_prog_ac_ct_CC
1742if test -n "$ac_ct_CC"; then
1743 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1744echo "${ECHO_T}$ac_ct_CC" >&6
1745else
1746 echo "$as_me:$LINENO: result: no" >&5
1747echo "${ECHO_T}no" >&6
1748fi
1749
1750 CC=$ac_ct_CC
1751else
1752 CC="$ac_cv_prog_CC"
1753fi
1754
1755fi
1756if test -z "$CC"; then
1757 # Extract the first word of "cc", so it can be a program name with args.
1758set dummy cc; ac_word=$2
1759echo "$as_me:$LINENO: checking for $ac_word" >&5
1760echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1761if test "${ac_cv_prog_CC+set}" = set; then
1762 echo $ECHO_N "(cached) $ECHO_C" >&6
1763else
1764 if test -n "$CC"; then
1765 ac_cv_prog_CC="$CC" # Let the user override the test.
1766else
1767 ac_prog_rejected=no
1768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1769for as_dir in $PATH
1770do
1771 IFS=$as_save_IFS
1772 test -z "$as_dir" && as_dir=.
1773 for ac_exec_ext in '' $ac_executable_extensions; do
1774 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1775 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1776 ac_prog_rejected=yes
1777 continue
1778 fi
1779 ac_cv_prog_CC="cc"
1780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1781 break 2
1782 fi
1783done
1784done
1785
1786if test $ac_prog_rejected = yes; then
1787 # We found a bogon in the path, so make sure we never use it.
1788 set dummy $ac_cv_prog_CC
1789 shift
1790 if test $# != 0; then
1791 # We chose a different compiler from the bogus one.
1792 # However, it has the same basename, so the bogon will be chosen
1793 # first if we set CC to just the basename; use the full file name.
1794 shift
1795 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1796 fi
1797fi
1798fi
1799fi
1800CC=$ac_cv_prog_CC
1801if test -n "$CC"; then
1802 echo "$as_me:$LINENO: result: $CC" >&5
1803echo "${ECHO_T}$CC" >&6
1804else
1805 echo "$as_me:$LINENO: result: no" >&5
1806echo "${ECHO_T}no" >&6
1807fi
1808
1809fi
1810if test -z "$CC"; then
1811 if test -n "$ac_tool_prefix"; then
1812 for ac_prog in cl
1813 do
1814 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1815set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1816echo "$as_me:$LINENO: checking for $ac_word" >&5
1817echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1818if test "${ac_cv_prog_CC+set}" = set; then
1819 echo $ECHO_N "(cached) $ECHO_C" >&6
1820else
1821 if test -n "$CC"; then
1822 ac_cv_prog_CC="$CC" # Let the user override the test.
1823else
1824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1825for as_dir in $PATH
1826do
1827 IFS=$as_save_IFS
1828 test -z "$as_dir" && as_dir=.
1829 for ac_exec_ext in '' $ac_executable_extensions; do
1830 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1831 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1833 break 2
1834 fi
1835done
1836done
1837
1838fi
1839fi
1840CC=$ac_cv_prog_CC
1841if test -n "$CC"; then
1842 echo "$as_me:$LINENO: result: $CC" >&5
1843echo "${ECHO_T}$CC" >&6
1844else
1845 echo "$as_me:$LINENO: result: no" >&5
1846echo "${ECHO_T}no" >&6
1847fi
1848
1849 test -n "$CC" && break
1850 done
1851fi
1852if test -z "$CC"; then
1853 ac_ct_CC=$CC
1854 for ac_prog in cl
1855do
1856 # Extract the first word of "$ac_prog", so it can be a program name with args.
1857set dummy $ac_prog; ac_word=$2
1858echo "$as_me:$LINENO: checking for $ac_word" >&5
1859echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1860if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1861 echo $ECHO_N "(cached) $ECHO_C" >&6
1862else
1863 if test -n "$ac_ct_CC"; then
1864 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1865else
1866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1867for as_dir in $PATH
1868do
1869 IFS=$as_save_IFS
1870 test -z "$as_dir" && as_dir=.
1871 for ac_exec_ext in '' $ac_executable_extensions; do
1872 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1873 ac_cv_prog_ac_ct_CC="$ac_prog"
1874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1875 break 2
1876 fi
1877done
1878done
1879
1880fi
1881fi
1882ac_ct_CC=$ac_cv_prog_ac_ct_CC
1883if test -n "$ac_ct_CC"; then
1884 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1885echo "${ECHO_T}$ac_ct_CC" >&6
1886else
1887 echo "$as_me:$LINENO: result: no" >&5
1888echo "${ECHO_T}no" >&6
1889fi
1890
1891 test -n "$ac_ct_CC" && break
1892done
1893
1894 CC=$ac_ct_CC
1895fi
1896
1897fi
1898
1899
1900test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1901See \`config.log' for more details." >&5
1902echo "$as_me: error: no acceptable C compiler found in \$PATH
1903See \`config.log' for more details." >&2;}
1904 { (exit 1); exit 1; }; }
1905
1906# Provide some information about the compiler.
1907echo "$as_me:$LINENO:" \
1908 "checking for C compiler version" >&5
1909ac_compiler=`set X $ac_compile; echo $2`
1910{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1911 (eval $ac_compiler --version </dev/null >&5) 2>&5
1912 ac_status=$?
1913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1914 (exit $ac_status); }
1915{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1916 (eval $ac_compiler -v </dev/null >&5) 2>&5
1917 ac_status=$?
1918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1919 (exit $ac_status); }
1920{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1921 (eval $ac_compiler -V </dev/null >&5) 2>&5
1922 ac_status=$?
1923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1924 (exit $ac_status); }
1925
1926cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
1927/* confdefs.h. */
1928_ACEOF
1929cat confdefs.h >>conftest.$ac_ext
1930cat >>conftest.$ac_ext <<_ACEOF
1931/* end confdefs.h. */
1932
1933int
1934main ()
1935{
1936
1937 ;
1938 return 0;
1939}
1940_ACEOF
1941ac_clean_files_save=$ac_clean_files
1942ac_clean_files="$ac_clean_files a.out a.exe b.out"
1943# Try to create an executable without -o first, disregard a.out.
1944# It will help us diagnose broken compilers, and finding out an intuition
1945# of exeext.
ab509236
L
1946echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1947echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
13b2be9c
DJ
1948ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1949if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1950 (eval $ac_link_default) 2>&5
1951 ac_status=$?
1952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1953 (exit $ac_status); }; then
1954 # Find the output, starting from the most likely. This scheme is
1955# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1956# resort.
1957
1958# Be careful to initialize this variable, since it used to be cached.
1959# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1960ac_cv_exeext=
1961# b.out is created by i960 compilers.
1962for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1963do
1964 test -f "$ac_file" || continue
1965 case $ac_file in
1966 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ab509236 1967 ;;
13b2be9c 1968 conftest.$ac_ext )
ab509236
L
1969 # This is the source file.
1970 ;;
13b2be9c 1971 [ab].out )
ab509236
L
1972 # We found the default executable, but exeext='' is most
1973 # certainly right.
1974 break;;
13b2be9c 1975 *.* )
ab509236
L
1976 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1977 # FIXME: I believe we export ac_cv_exeext for Libtool,
1978 # but it would be cool to find out if it's true. Does anybody
1979 # maintain Libtool? --akim.
1980 export ac_cv_exeext
1981 break;;
13b2be9c 1982 * )
ab509236 1983 break;;
13b2be9c
DJ
1984 esac
1985done
1986else
1987 echo "$as_me: failed program was:" >&5
1988sed 's/^/| /' conftest.$ac_ext >&5
1989
1990{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1991See \`config.log' for more details." >&5
1992echo "$as_me: error: C compiler cannot create executables
1993See \`config.log' for more details." >&2;}
1994 { (exit 77); exit 77; }; }
1995fi
1996
1997ac_exeext=$ac_cv_exeext
1998echo "$as_me:$LINENO: result: $ac_file" >&5
1999echo "${ECHO_T}$ac_file" >&6
2000
2001# Check the compiler produces executables we can run. If not, either
2002# the compiler is broken, or we cross compile.
2003echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2004echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2005# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2006# If not cross compiling, check that we can run a simple program.
2007if test "$cross_compiling" != yes; then
2008 if { ac_try='./$ac_file'
2009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2010 (eval $ac_try) 2>&5
2011 ac_status=$?
2012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2013 (exit $ac_status); }; }; then
2014 cross_compiling=no
2015 else
2016 if test "$cross_compiling" = maybe; then
2017 cross_compiling=yes
2018 else
2019 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2020If you meant to cross compile, use \`--host'.
2021See \`config.log' for more details." >&5
2022echo "$as_me: error: cannot run C compiled programs.
2023If you meant to cross compile, use \`--host'.
2024See \`config.log' for more details." >&2;}
2025 { (exit 1); exit 1; }; }
2026 fi
2027 fi
2028fi
2029echo "$as_me:$LINENO: result: yes" >&5
2030echo "${ECHO_T}yes" >&6
2031
2032rm -f a.out a.exe conftest$ac_cv_exeext b.out
2033ac_clean_files=$ac_clean_files_save
2034# Check the compiler produces executables we can run. If not, either
2035# the compiler is broken, or we cross compile.
2036echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2037echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2038echo "$as_me:$LINENO: result: $cross_compiling" >&5
2039echo "${ECHO_T}$cross_compiling" >&6
2040
2041echo "$as_me:$LINENO: checking for suffix of executables" >&5
2042echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2043if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2044 (eval $ac_link) 2>&5
2045 ac_status=$?
2046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2047 (exit $ac_status); }; then
2048 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2049# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2050# work properly (i.e., refer to `conftest.exe'), while it won't with
2051# `rm'.
2052for ac_file in conftest.exe conftest conftest.*; do
2053 test -f "$ac_file" || continue
2054 case $ac_file in
2055 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2056 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ab509236
L
2057 export ac_cv_exeext
2058 break;;
13b2be9c
DJ
2059 * ) break;;
2060 esac
2061done
2062else
2063 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2064See \`config.log' for more details." >&5
2065echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2066See \`config.log' for more details." >&2;}
2067 { (exit 1); exit 1; }; }
2068fi
2069
2070rm -f conftest$ac_cv_exeext
2071echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2072echo "${ECHO_T}$ac_cv_exeext" >&6
2073
2074rm -f conftest.$ac_ext
2075EXEEXT=$ac_cv_exeext
2076ac_exeext=$EXEEXT
2077echo "$as_me:$LINENO: checking for suffix of object files" >&5
2078echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2079if test "${ac_cv_objext+set}" = set; then
2080 echo $ECHO_N "(cached) $ECHO_C" >&6
2081else
2082 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
2083/* confdefs.h. */
2084_ACEOF
2085cat confdefs.h >>conftest.$ac_ext
2086cat >>conftest.$ac_ext <<_ACEOF
2087/* end confdefs.h. */
2088
2089int
2090main ()
2091{
2092
2093 ;
2094 return 0;
2095}
2096_ACEOF
2097rm -f conftest.o conftest.obj
2098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2099 (eval $ac_compile) 2>&5
2100 ac_status=$?
2101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2102 (exit $ac_status); }; then
2103 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2104 case $ac_file in
2105 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2106 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2107 break;;
2108 esac
2109done
2110else
2111 echo "$as_me: failed program was:" >&5
2112sed 's/^/| /' conftest.$ac_ext >&5
2113
2114{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2115See \`config.log' for more details." >&5
2116echo "$as_me: error: cannot compute suffix of object files: cannot compile
2117See \`config.log' for more details." >&2;}
2118 { (exit 1); exit 1; }; }
2119fi
2120
2121rm -f conftest.$ac_cv_objext conftest.$ac_ext
2122fi
2123echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2124echo "${ECHO_T}$ac_cv_objext" >&6
2125OBJEXT=$ac_cv_objext
2126ac_objext=$OBJEXT
2127echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2128echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2129if test "${ac_cv_c_compiler_gnu+set}" = set; then
2130 echo $ECHO_N "(cached) $ECHO_C" >&6
2131else
2132 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
2133/* confdefs.h. */
2134_ACEOF
2135cat confdefs.h >>conftest.$ac_ext
2136cat >>conftest.$ac_ext <<_ACEOF
2137/* end confdefs.h. */
2138
2139int
2140main ()
2141{
2142#ifndef __GNUC__
2143 choke me
2144#endif
2145
2146 ;
2147 return 0;
2148}
2149_ACEOF
2150rm -f conftest.$ac_objext
2151if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 2152 (eval $ac_compile) 2>conftest.er1
13b2be9c 2153 ac_status=$?
ab509236
L
2154 grep -v '^ *+' conftest.er1 >conftest.err
2155 rm -f conftest.er1
2156 cat conftest.err >&5
13b2be9c
DJ
2157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158 (exit $ac_status); } &&
1ad12f97
NC
2159 { ac_try='test -z "$ac_c_werror_flag"
2160 || test ! -s conftest.err'
ab509236
L
2161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2162 (eval $ac_try) 2>&5
2163 ac_status=$?
2164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2165 (exit $ac_status); }; } &&
2166 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
2167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2168 (eval $ac_try) 2>&5
2169 ac_status=$?
2170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171 (exit $ac_status); }; }; then
2172 ac_compiler_gnu=yes
2173else
2174 echo "$as_me: failed program was:" >&5
2175sed 's/^/| /' conftest.$ac_ext >&5
2176
2177ac_compiler_gnu=no
2178fi
ab509236 2179rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
2180ac_cv_c_compiler_gnu=$ac_compiler_gnu
2181
2182fi
2183echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2184echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2185GCC=`test $ac_compiler_gnu = yes && echo yes`
2186ac_test_CFLAGS=${CFLAGS+set}
2187ac_save_CFLAGS=$CFLAGS
2188CFLAGS="-g"
2189echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2190echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2191if test "${ac_cv_prog_cc_g+set}" = set; then
2192 echo $ECHO_N "(cached) $ECHO_C" >&6
2193else
2194 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
2195/* confdefs.h. */
2196_ACEOF
2197cat confdefs.h >>conftest.$ac_ext
2198cat >>conftest.$ac_ext <<_ACEOF
2199/* end confdefs.h. */
2200
2201int
2202main ()
2203{
2204
2205 ;
2206 return 0;
2207}
2208_ACEOF
2209rm -f conftest.$ac_objext
2210if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 2211 (eval $ac_compile) 2>conftest.er1
13b2be9c 2212 ac_status=$?
ab509236
L
2213 grep -v '^ *+' conftest.er1 >conftest.err
2214 rm -f conftest.er1
2215 cat conftest.err >&5
13b2be9c
DJ
2216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2217 (exit $ac_status); } &&
1ad12f97
NC
2218 { ac_try='test -z "$ac_c_werror_flag"
2219 || test ! -s conftest.err'
ab509236
L
2220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2221 (eval $ac_try) 2>&5
2222 ac_status=$?
2223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224 (exit $ac_status); }; } &&
2225 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
2226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2227 (eval $ac_try) 2>&5
2228 ac_status=$?
2229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2230 (exit $ac_status); }; }; then
2231 ac_cv_prog_cc_g=yes
2232else
2233 echo "$as_me: failed program was:" >&5
2234sed 's/^/| /' conftest.$ac_ext >&5
2235
2236ac_cv_prog_cc_g=no
2237fi
ab509236 2238rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
2239fi
2240echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2241echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2242if test "$ac_test_CFLAGS" = set; then
2243 CFLAGS=$ac_save_CFLAGS
2244elif test $ac_cv_prog_cc_g = yes; then
2245 if test "$GCC" = yes; then
2246 CFLAGS="-g -O2"
2247 else
2248 CFLAGS="-g"
2249 fi
2250else
2251 if test "$GCC" = yes; then
2252 CFLAGS="-O2"
2253 else
2254 CFLAGS=
2255 fi
2256fi
2257echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2258echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2259if test "${ac_cv_prog_cc_stdc+set}" = set; then
2260 echo $ECHO_N "(cached) $ECHO_C" >&6
2261else
2262 ac_cv_prog_cc_stdc=no
2263ac_save_CC=$CC
2264cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
2265/* confdefs.h. */
2266_ACEOF
2267cat confdefs.h >>conftest.$ac_ext
2268cat >>conftest.$ac_ext <<_ACEOF
2269/* end confdefs.h. */
2270#include <stdarg.h>
2271#include <stdio.h>
2272#include <sys/types.h>
2273#include <sys/stat.h>
2274/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2275struct buf { int x; };
2276FILE * (*rcsopen) (struct buf *, struct stat *, int);
2277static char *e (p, i)
2278 char **p;
2279 int i;
2280{
2281 return p[i];
2282}
2283static char *f (char * (*g) (char **, int), char **p, ...)
2284{
2285 char *s;
2286 va_list v;
2287 va_start (v,p);
2288 s = g (p, va_arg (v,int));
2289 va_end (v);
2290 return s;
2291}
ab509236
L
2292
2293/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2294 function prototypes and stuff, but not '\xHH' hex character constants.
2295 These don't provoke an error unfortunately, instead are silently treated
2296 as 'x'. The following induces an error, until -std1 is added to get
2297 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2298 array size at least. It's necessary to write '\x00'==0 to get something
2299 that's true only with -std1. */
2300int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2301
13b2be9c
DJ
2302int test (int i, double x);
2303struct s1 {int (*f) (int a);};
2304struct s2 {int (*f) (double a);};
2305int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2306int argc;
2307char **argv;
2308int
2309main ()
2310{
2311return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2312 ;
2313 return 0;
2314}
2315_ACEOF
2316# Don't try gcc -ansi; that turns off useful extensions and
2317# breaks some systems' header files.
2318# AIX -qlanglvl=ansi
2319# Ultrix and OSF/1 -std1
2320# HP-UX 10.20 and later -Ae
2321# HP-UX older versions -Aa -D_HPUX_SOURCE
2322# SVR4 -Xc -D__EXTENSIONS__
2323for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2324do
2325 CC="$ac_save_CC $ac_arg"
2326 rm -f conftest.$ac_objext
2327if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 2328 (eval $ac_compile) 2>conftest.er1
13b2be9c 2329 ac_status=$?
ab509236
L
2330 grep -v '^ *+' conftest.er1 >conftest.err
2331 rm -f conftest.er1
2332 cat conftest.err >&5
13b2be9c
DJ
2333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2334 (exit $ac_status); } &&
1ad12f97
NC
2335 { ac_try='test -z "$ac_c_werror_flag"
2336 || test ! -s conftest.err'
ab509236
L
2337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2338 (eval $ac_try) 2>&5
2339 ac_status=$?
2340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2341 (exit $ac_status); }; } &&
2342 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
2343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2344 (eval $ac_try) 2>&5
2345 ac_status=$?
2346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2347 (exit $ac_status); }; }; then
2348 ac_cv_prog_cc_stdc=$ac_arg
2349break
2350else
2351 echo "$as_me: failed program was:" >&5
2352sed 's/^/| /' conftest.$ac_ext >&5
2353
2354fi
ab509236 2355rm -f conftest.err conftest.$ac_objext
13b2be9c
DJ
2356done
2357rm -f conftest.$ac_ext conftest.$ac_objext
2358CC=$ac_save_CC
2359
2360fi
2361
2362case "x$ac_cv_prog_cc_stdc" in
2363 x|xno)
2364 echo "$as_me:$LINENO: result: none needed" >&5
2365echo "${ECHO_T}none needed" >&6 ;;
2366 *)
2367 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2368echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2369 CC="$CC $ac_cv_prog_cc_stdc" ;;
2370esac
2371
2372# Some people use a C++ compiler to compile C. Since we use `exit',
2373# in C++ we need to declare it. In case someone uses the same compiler
2374# for both compiling C and C++ we need to have the C++ compiler decide
2375# the declaration of exit, since it's the most demanding environment.
2376cat >conftest.$ac_ext <<_ACEOF
2377#ifndef __cplusplus
2378 choke me
2379#endif
2380_ACEOF
2381rm -f conftest.$ac_objext
2382if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 2383 (eval $ac_compile) 2>conftest.er1
13b2be9c 2384 ac_status=$?
ab509236
L
2385 grep -v '^ *+' conftest.er1 >conftest.err
2386 rm -f conftest.er1
2387 cat conftest.err >&5
13b2be9c
DJ
2388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389 (exit $ac_status); } &&
1ad12f97
NC
2390 { ac_try='test -z "$ac_c_werror_flag"
2391 || test ! -s conftest.err'
ab509236
L
2392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2393 (eval $ac_try) 2>&5
2394 ac_status=$?
2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); }; } &&
2397 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
2398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2399 (eval $ac_try) 2>&5
2400 ac_status=$?
2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); }; }; then
2403 for ac_declaration in \
ab509236 2404 '' \
13b2be9c
DJ
2405 'extern "C" void std::exit (int) throw (); using std::exit;' \
2406 'extern "C" void std::exit (int); using std::exit;' \
2407 'extern "C" void exit (int) throw ();' \
2408 'extern "C" void exit (int);' \
2409 'void exit (int);'
2410do
2411 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
2412/* confdefs.h. */
2413_ACEOF
2414cat confdefs.h >>conftest.$ac_ext
2415cat >>conftest.$ac_ext <<_ACEOF
2416/* end confdefs.h. */
13dfd2d0 2417$ac_declaration
ab509236 2418#include <stdlib.h>
13b2be9c
DJ
2419int
2420main ()
2421{
2422exit (42);
2423 ;
2424 return 0;
2425}
2426_ACEOF
2427rm -f conftest.$ac_objext
2428if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 2429 (eval $ac_compile) 2>conftest.er1
13b2be9c 2430 ac_status=$?
ab509236
L
2431 grep -v '^ *+' conftest.er1 >conftest.err
2432 rm -f conftest.er1
2433 cat conftest.err >&5
13b2be9c
DJ
2434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435 (exit $ac_status); } &&
1ad12f97
NC
2436 { ac_try='test -z "$ac_c_werror_flag"
2437 || test ! -s conftest.err'
ab509236
L
2438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2439 (eval $ac_try) 2>&5
2440 ac_status=$?
2441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442 (exit $ac_status); }; } &&
2443 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
2444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2445 (eval $ac_try) 2>&5
2446 ac_status=$?
2447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448 (exit $ac_status); }; }; then
2449 :
2450else
2451 echo "$as_me: failed program was:" >&5
2452sed 's/^/| /' conftest.$ac_ext >&5
2453
2454continue
2455fi
ab509236 2456rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c 2457 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
2458/* confdefs.h. */
2459_ACEOF
2460cat confdefs.h >>conftest.$ac_ext
2461cat >>conftest.$ac_ext <<_ACEOF
2462/* end confdefs.h. */
2463$ac_declaration
2464int
2465main ()
2466{
2467exit (42);
2468 ;
2469 return 0;
2470}
2471_ACEOF
2472rm -f conftest.$ac_objext
2473if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 2474 (eval $ac_compile) 2>conftest.er1
13b2be9c 2475 ac_status=$?
ab509236
L
2476 grep -v '^ *+' conftest.er1 >conftest.err
2477 rm -f conftest.er1
2478 cat conftest.err >&5
13b2be9c
DJ
2479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480 (exit $ac_status); } &&
1ad12f97
NC
2481 { ac_try='test -z "$ac_c_werror_flag"
2482 || test ! -s conftest.err'
ab509236
L
2483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2484 (eval $ac_try) 2>&5
2485 ac_status=$?
2486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487 (exit $ac_status); }; } &&
2488 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
2489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2490 (eval $ac_try) 2>&5
2491 ac_status=$?
2492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493 (exit $ac_status); }; }; then
2494 break
2495else
2496 echo "$as_me: failed program was:" >&5
2497sed 's/^/| /' conftest.$ac_ext >&5
2498
2499fi
ab509236 2500rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
2501done
2502rm -f conftest*
2503if test -n "$ac_declaration"; then
2504 echo '#ifdef __cplusplus' >>confdefs.h
2505 echo $ac_declaration >>confdefs.h
2506 echo '#endif' >>confdefs.h
2507fi
2508
2509else
2510 echo "$as_me: failed program was:" >&5
2511sed 's/^/| /' conftest.$ac_ext >&5
2512
2513fi
ab509236 2514rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
2515ac_ext=c
2516ac_cpp='$CPP $CPPFLAGS'
2517ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2518ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2519ac_compiler_gnu=$ac_cv_c_compiler_gnu
2520
2521
ab509236
L
2522echo "$as_me:$LINENO: checking for library containing strerror" >&5
2523echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2524if test "${ac_cv_search_strerror+set}" = set; then
13b2be9c
DJ
2525 echo $ECHO_N "(cached) $ECHO_C" >&6
2526else
ab509236
L
2527 ac_func_search_save_LIBS=$LIBS
2528ac_cv_search_strerror=no
13b2be9c 2529cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
2530/* confdefs.h. */
2531_ACEOF
2532cat confdefs.h >>conftest.$ac_ext
2533cat >>conftest.$ac_ext <<_ACEOF
2534/* end confdefs.h. */
2535
2536/* Override any gcc2 internal prototype to avoid an error. */
2537#ifdef __cplusplus
2538extern "C"
2539#endif
2540/* We use char because int might match the return type of a gcc2
2541 builtin and then its argument prototype would still apply. */
2542char strerror ();
2543int
2544main ()
2545{
2546strerror ();
2547 ;
2548 return 0;
2549}
2550_ACEOF
2551rm -f conftest.$ac_objext conftest$ac_exeext
2552if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 2553 (eval $ac_link) 2>conftest.er1
13b2be9c 2554 ac_status=$?
ab509236
L
2555 grep -v '^ *+' conftest.er1 >conftest.err
2556 rm -f conftest.er1
2557 cat conftest.err >&5
13b2be9c
DJ
2558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559 (exit $ac_status); } &&
1ad12f97
NC
2560 { ac_try='test -z "$ac_c_werror_flag"
2561 || test ! -s conftest.err'
ab509236
L
2562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2563 (eval $ac_try) 2>&5
2564 ac_status=$?
2565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566 (exit $ac_status); }; } &&
2567 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
2568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2569 (eval $ac_try) 2>&5
2570 ac_status=$?
2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572 (exit $ac_status); }; }; then
ab509236 2573 ac_cv_search_strerror="none required"
13b2be9c
DJ
2574else
2575 echo "$as_me: failed program was:" >&5
2576sed 's/^/| /' conftest.$ac_ext >&5
2577
13b2be9c 2578fi
ab509236
L
2579rm -f conftest.err conftest.$ac_objext \
2580 conftest$ac_exeext conftest.$ac_ext
2581if test "$ac_cv_search_strerror" = no; then
2582 for ac_lib in cposix; do
2583 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2584 cat >conftest.$ac_ext <<_ACEOF
2585/* confdefs.h. */
2586_ACEOF
2587cat confdefs.h >>conftest.$ac_ext
2588cat >>conftest.$ac_ext <<_ACEOF
2589/* end confdefs.h. */
2590
2591/* Override any gcc2 internal prototype to avoid an error. */
2592#ifdef __cplusplus
2593extern "C"
2594#endif
2595/* We use char because int might match the return type of a gcc2
2596 builtin and then its argument prototype would still apply. */
2597char strerror ();
2598int
2599main ()
2600{
2601strerror ();
2602 ;
2603 return 0;
2604}
2605_ACEOF
2606rm -f conftest.$ac_objext conftest$ac_exeext
2607if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2608 (eval $ac_link) 2>conftest.er1
2609 ac_status=$?
2610 grep -v '^ *+' conftest.er1 >conftest.err
2611 rm -f conftest.er1
2612 cat conftest.err >&5
2613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614 (exit $ac_status); } &&
1ad12f97
NC
2615 { ac_try='test -z "$ac_c_werror_flag"
2616 || test ! -s conftest.err'
ab509236
L
2617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2618 (eval $ac_try) 2>&5
2619 ac_status=$?
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); }; } &&
2622 { ac_try='test -s conftest$ac_exeext'
2623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2624 (eval $ac_try) 2>&5
2625 ac_status=$?
2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627 (exit $ac_status); }; }; then
2628 ac_cv_search_strerror="-l$ac_lib"
2629break
2630else
2631 echo "$as_me: failed program was:" >&5
2632sed 's/^/| /' conftest.$ac_ext >&5
2633
13b2be9c 2634fi
ab509236
L
2635rm -f conftest.err conftest.$ac_objext \
2636 conftest$ac_exeext conftest.$ac_ext
2637 done
13b2be9c 2638fi
ab509236
L
2639LIBS=$ac_func_search_save_LIBS
2640fi
2641echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2642echo "${ECHO_T}$ac_cv_search_strerror" >&6
2643if test "$ac_cv_search_strerror" != no; then
2644 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
13b2be9c 2645
ab509236 2646fi
13b2be9c
DJ
2647
2648
2649BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
8ea2b00f 2650am__api_version="1.9"
13b2be9c
DJ
2651# Find a good install program. We prefer a C program (faster),
2652# so one script is as good as another. But avoid the broken or
2653# incompatible versions:
2654# SysV /etc/install, /usr/sbin/install
2655# SunOS /usr/etc/install
2656# IRIX /sbin/install
2657# AIX /bin/install
2658# AmigaOS /C/install, which installs bootblocks on floppy discs
2659# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2660# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2661# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ab509236 2662# OS/2's system install, which has a completely different semantic
13b2be9c 2663# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 2664# Reject install programs that cannot install multiple files.
13b2be9c
DJ
2665echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2666echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2667if test -z "$INSTALL"; then
2668if test "${ac_cv_path_install+set}" = set; then
2669 echo $ECHO_N "(cached) $ECHO_C" >&6
2670else
2671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2672for as_dir in $PATH
2673do
2674 IFS=$as_save_IFS
2675 test -z "$as_dir" && as_dir=.
2676 # Account for people who put trailing slashes in PATH elements.
2677case $as_dir/ in
2678 ./ | .// | /cC/* | \
2679 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ab509236 2680 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
13b2be9c
DJ
2681 /usr/ucb/* ) ;;
2682 *)
2683 # OSF1 and SCO ODT 3.0 have their own names for install.
2684 # Don't use installbsd from OSF since it installs stuff as root
2685 # by default.
2686 for ac_prog in ginstall scoinst install; do
2687 for ac_exec_ext in '' $ac_executable_extensions; do
ab509236
L
2688 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2689 if test $ac_prog = install &&
2690 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2691 # AIX install. It has an incompatible calling convention.
2692 :
2693 elif test $ac_prog = install &&
2694 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2695 # program-specific install script used by HP pwplus--don't use.
2696 :
2697 else
58c85be7
RW
2698 rm -rf conftest.one conftest.two conftest.dir
2699 echo one > conftest.one
2700 echo two > conftest.two
2701 mkdir conftest.dir
2702 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2703 test -s conftest.one && test -s conftest.two &&
2704 test -s conftest.dir/conftest.one &&
2705 test -s conftest.dir/conftest.two
2706 then
2707 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2708 break 3
2709 fi
ab509236
L
2710 fi
2711 fi
13b2be9c
DJ
2712 done
2713 done
2714 ;;
2715esac
2716done
2717
58c85be7 2718rm -rf conftest.one conftest.two conftest.dir
252b5132
RH
2719
2720fi
2721 if test "${ac_cv_path_install+set}" = set; then
13b2be9c 2722 INSTALL=$ac_cv_path_install
252b5132 2723 else
58c85be7
RW
2724 # As a last resort, use the slow shell script. Don't cache a
2725 # value for INSTALL within a source directory, because that will
252b5132 2726 # break other packages using the cache if that directory is
58c85be7 2727 # removed, or if the value is a relative name.
13b2be9c 2728 INSTALL=$ac_install_sh
252b5132
RH
2729 fi
2730fi
13b2be9c
DJ
2731echo "$as_me:$LINENO: result: $INSTALL" >&5
2732echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
2733
2734# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2735# It thinks the first close brace ends the variable substitution.
2736test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2737
13b2be9c 2738test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
2739
2740test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2741
13b2be9c
DJ
2742echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2743echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
252b5132
RH
2744# Just in case
2745sleep 1
13b2be9c 2746echo timestamp > conftest.file
252b5132
RH
2747# Do `set' in a subshell so we don't clobber the current shell's
2748# arguments. Must try -L first in case configure is actually a
2749# symlink; some systems play weird games with the mod time of symlinks
2750# (eg FreeBSD returns the mod time of the symlink's containing
2751# directory).
2752if (
13b2be9c 2753 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
252b5132
RH
2754 if test "$*" = "X"; then
2755 # -L didn't work.
13b2be9c 2756 set X `ls -t $srcdir/configure conftest.file`
252b5132 2757 fi
13b2be9c
DJ
2758 rm -f conftest.file
2759 if test "$*" != "X $srcdir/configure conftest.file" \
2760 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
2761
2762 # If neither matched, then we have a broken ls. This can happen
2763 # if, for instance, CONFIG_SHELL is bash and it inherits a
2764 # broken ls alias from the environment. This has actually
2765 # happened. Such a system could not be considered "sane".
13b2be9c
DJ
2766 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2767alias in your environment" >&5
2768echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2769alias in your environment" >&2;}
2770 { (exit 1); exit 1; }; }
252b5132
RH
2771 fi
2772
13b2be9c
DJ
2773 test "$2" = conftest.file
2774 )
2775then
2776 # Ok.
2777 :
2778else
2779 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2780Check your system clock" >&5
2781echo "$as_me: error: newly created file is older than distributed files!
2782Check your system clock" >&2;}
2783 { (exit 1); exit 1; }; }
2784fi
2785echo "$as_me:$LINENO: result: yes" >&5
2786echo "${ECHO_T}yes" >&6
2787test "$program_prefix" != NONE &&
2788 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2789# Use a double $ so make ignores it.
2790test "$program_suffix" != NONE &&
2791 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2792# Double any \ or $. echo might interpret backslashes.
2793# By default was `s,x,x', remove it if useless.
2794cat <<\_ACEOF >conftest.sed
2795s/[\\$]/&&/g;s/;s,x,x,$//
2796_ACEOF
2797program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2798rm conftest.sed
2799
13b2be9c
DJ
2800# expand $ac_aux_dir to an absolute path
2801am_aux_dir=`cd $ac_aux_dir && pwd`
2802
2803test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2804# Use eval to expand $SHELL
2805if eval "$MISSING --run true"; then
2806 am_missing_run="$MISSING --run "
2807else
2808 am_missing_run=
2809 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2810echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2811fi
2812
4b363073 2813if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
8ea2b00f
AM
2814 # We used to keeping the `.' as first argument, in order to
2815 # allow $(mkdir_p) to be used without argument. As in
ab509236 2816 # $(mkdir_p) $(somedir)
8ea2b00f
AM
2817 # where $(somedir) is conditionally defined. However this is wrong
2818 # for two reasons:
2819 # 1. if the package is installed by a user who cannot write `.'
2820 # make install will fail,
2821 # 2. the above comment should most certainly read
2822 # $(mkdir_p) $(DESTDIR)$(somedir)
2823 # so it does not work when $(somedir) is undefined and
2824 # $(DESTDIR) is not.
2825 # To support the latter case, we have to write
2826 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2827 # so the `.' trick is pointless.
2828 mkdir_p='mkdir -p --'
ab509236
L
2829else
2830 # On NextStep and OpenStep, the `mkdir' command does not
2831 # recognize any option. It will interpret all options as
2832 # directories to create, and then abort because `.' already
2833 # exists.
4b363073 2834 for d in ./-p ./--version;
ab509236
L
2835 do
2836 test -d $d && rmdir $d
2837 done
2838 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2839 if test -f "$ac_aux_dir/mkinstalldirs"; then
2840 mkdir_p='$(mkinstalldirs)'
2841 else
2842 mkdir_p='$(install_sh) -d'
2843 fi
2844fi
2845
13b2be9c
DJ
2846for ac_prog in gawk mawk nawk awk
2847do
2848 # Extract the first word of "$ac_prog", so it can be a program name with args.
2849set dummy $ac_prog; ac_word=$2
2850echo "$as_me:$LINENO: checking for $ac_word" >&5
2851echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2852if test "${ac_cv_prog_AWK+set}" = set; then
2853 echo $ECHO_N "(cached) $ECHO_C" >&6
2854else
2855 if test -n "$AWK"; then
2856 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2857else
2858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2859for as_dir in $PATH
2860do
2861 IFS=$as_save_IFS
2862 test -z "$as_dir" && as_dir=.
2863 for ac_exec_ext in '' $ac_executable_extensions; do
2864 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2865 ac_cv_prog_AWK="$ac_prog"
2866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2867 break 2
2868 fi
2869done
2870done
2871
2872fi
2873fi
2874AWK=$ac_cv_prog_AWK
2875if test -n "$AWK"; then
2876 echo "$as_me:$LINENO: result: $AWK" >&5
2877echo "${ECHO_T}$AWK" >&6
2878else
2879 echo "$as_me:$LINENO: result: no" >&5
2880echo "${ECHO_T}no" >&6
2881fi
2882
2883 test -n "$AWK" && break
2884done
2885
2886echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2887echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ab509236 2888set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
13b2be9c
DJ
2889if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2890 echo $ECHO_N "(cached) $ECHO_C" >&6
2891else
2892 cat >conftest.make <<\_ACEOF
2893all:
2894 @echo 'ac_maketemp="$(MAKE)"'
2895_ACEOF
2896# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2897eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2898if test -n "$ac_maketemp"; then
2899 eval ac_cv_prog_make_${ac_make}_set=yes
2900else
2901 eval ac_cv_prog_make_${ac_make}_set=no
2902fi
2903rm -f conftest.make
2904fi
2905if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2906 echo "$as_me:$LINENO: result: yes" >&5
2907echo "${ECHO_T}yes" >&6
2908 SET_MAKE=
2909else
2910 echo "$as_me:$LINENO: result: no" >&5
2911echo "${ECHO_T}no" >&6
2912 SET_MAKE="MAKE=${MAKE-make}"
2913fi
2914
2915rm -rf .tst 2>/dev/null
2916mkdir .tst 2>/dev/null
2917if test -d .tst; then
2918 am__leading_dot=.
2919else
2920 am__leading_dot=_
2921fi
2922rmdir .tst 2>/dev/null
2923
2924DEPDIR="${am__leading_dot}deps"
2925
2926 ac_config_commands="$ac_config_commands depfiles"
2927
2928
2929am_make=${MAKE-make}
2930cat > confinc << 'END'
2931am__doit:
2932 @echo done
2933.PHONY: am__doit
2934END
2935# If we don't find an include directive, just comment out the code.
2936echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2937echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2938am__include="#"
2939am__quote=
2940_am_result=none
2941# First try GNU make style include.
2942echo "include confinc" > confmf
2943# We grep out `Entering directory' and `Leaving directory'
2944# messages which can occur if `w' ends up in MAKEFLAGS.
2945# In particular we don't look at `^make:' because GNU make might
2946# be invoked under some other name (usually "gmake"), in which
2947# case it prints its new name instead of `make'.
2948if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2949 am__include=include
2950 am__quote=
2951 _am_result=GNU
2952fi
2953# Now try BSD make style include.
2954if test "$am__include" = "#"; then
2955 echo '.include "confinc"' > confmf
2956 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2957 am__include=.include
2958 am__quote="\""
2959 _am_result=BSD
2960 fi
2961fi
2962
2963
2964echo "$as_me:$LINENO: result: $_am_result" >&5
2965echo "${ECHO_T}$_am_result" >&6
2966rm -f confinc confmf
2967
2968# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2969if test "${enable_dependency_tracking+set}" = set; then
2970 enableval="$enable_dependency_tracking"
2971
2972fi;
2973if test "x$enable_dependency_tracking" != xno; then
2974 am_depcomp="$ac_aux_dir/depcomp"
2975 AMDEPBACKSLASH='\'
2976fi
2977
2978
2979if test "x$enable_dependency_tracking" != xno; then
2980 AMDEP_TRUE=
2981 AMDEP_FALSE='#'
2982else
2983 AMDEP_TRUE='#'
2984 AMDEP_FALSE=
2985fi
2986
2987
2988
ab509236 2989# test to see if srcdir already configured
13b2be9c
DJ
2990if test "`cd $srcdir && pwd`" != "`pwd`" &&
2991 test -f $srcdir/config.status; then
2992 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2993echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2994 { (exit 1); exit 1; }; }
2995fi
2996
2997# test whether we have cygpath
2998if test -z "$CYGPATH_W"; then
2999 if (cygpath --version) >/dev/null 2>/dev/null; then
3000 CYGPATH_W='cygpath -w'
3001 else
3002 CYGPATH_W=echo
3003 fi
3004fi
3005
3006
3007# Define the identity of the package.
3008 PACKAGE=gas
3009 VERSION=${BFD_VERSION}
3010
3011
3012cat >>confdefs.h <<_ACEOF
3013#define PACKAGE "$PACKAGE"
3014_ACEOF
3015
3016
3017cat >>confdefs.h <<_ACEOF
3018#define VERSION "$VERSION"
3019_ACEOF
3020
3021# Some tools Automake needs.
3022
3023ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3024
3025
3026AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3027
3028
3029AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3030
3031
3032AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3033
3034
3035MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3036
13b2be9c
DJ
3037install_sh=${install_sh-"$am_aux_dir/install-sh"}
3038
3039# Installed binaries are usually stripped using `strip' when the user
3040# run `make install-strip'. However `strip' might not be the right
3041# tool to use in cross-compilation environments, therefore Automake
3042# will honor the `STRIP' environment variable to overrule this program.
3043if test "$cross_compiling" != no; then
3044 if test -n "$ac_tool_prefix"; then
3045 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3046set dummy ${ac_tool_prefix}strip; ac_word=$2
3047echo "$as_me:$LINENO: checking for $ac_word" >&5
3048echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3049if test "${ac_cv_prog_STRIP+set}" = set; then
3050 echo $ECHO_N "(cached) $ECHO_C" >&6
3051else
3052 if test -n "$STRIP"; then
3053 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
252b5132 3054else
13b2be9c
DJ
3055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3056for as_dir in $PATH
3057do
3058 IFS=$as_save_IFS
3059 test -z "$as_dir" && as_dir=.
3060 for ac_exec_ext in '' $ac_executable_extensions; do
3061 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3062 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3064 break 2
3065 fi
3066done
3067done
3068
252b5132 3069fi
13b2be9c
DJ
3070fi
3071STRIP=$ac_cv_prog_STRIP
3072if test -n "$STRIP"; then
3073 echo "$as_me:$LINENO: result: $STRIP" >&5
3074echo "${ECHO_T}$STRIP" >&6
c8615825 3075else
13b2be9c
DJ
3076 echo "$as_me:$LINENO: result: no" >&5
3077echo "${ECHO_T}no" >&6
c8615825 3078fi
c8615825 3079
13b2be9c
DJ
3080fi
3081if test -z "$ac_cv_prog_STRIP"; then
3082 ac_ct_STRIP=$STRIP
3083 # Extract the first word of "strip", so it can be a program name with args.
3084set dummy strip; ac_word=$2
3085echo "$as_me:$LINENO: checking for $ac_word" >&5
3086echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3087if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3088 echo $ECHO_N "(cached) $ECHO_C" >&6
c8615825 3089else
13b2be9c
DJ
3090 if test -n "$ac_ct_STRIP"; then
3091 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
252b5132 3092else
13b2be9c
DJ
3093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3094for as_dir in $PATH
3095do
3096 IFS=$as_save_IFS
3097 test -z "$as_dir" && as_dir=.
3098 for ac_exec_ext in '' $ac_executable_extensions; do
3099 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3100 ac_cv_prog_ac_ct_STRIP="strip"
3101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3102 break 2
3103 fi
3104done
3105done
3106
3107 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
252b5132 3108fi
252b5132 3109fi
13b2be9c
DJ
3110ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3111if test -n "$ac_ct_STRIP"; then
3112 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3113echo "${ECHO_T}$ac_ct_STRIP" >&6
252b5132 3114else
13b2be9c
DJ
3115 echo "$as_me:$LINENO: result: no" >&5
3116echo "${ECHO_T}no" >&6
252b5132
RH
3117fi
3118
13b2be9c
DJ
3119 STRIP=$ac_ct_STRIP
3120else
3121 STRIP="$ac_cv_prog_STRIP"
3122fi
d6d788bd 3123
252b5132 3124fi
13b2be9c 3125INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
252b5132 3126
13b2be9c
DJ
3127# We need awk for the "check" target. The system "awk" is bad on
3128# some platforms.
8ea2b00f
AM
3129# Always define AMTAR for backward compatibility.
3130
3131AMTAR=${AMTAR-"${am_missing_run}tar"}
3132
3133am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3134
3135
252b5132 3136
d6d788bd 3137
13b2be9c 3138depcc="$CC" am_compiler_list=
d6d788bd 3139
13b2be9c
DJ
3140echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3141echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3142if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3143 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3144else
13b2be9c
DJ
3145 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3146 # We make a subdir and do the tests there. Otherwise we can end up
3147 # making bogus files that we don't know about and never remove. For
3148 # instance it was reported that on HP-UX the gcc test will end up
3149 # making a dummy file named `D' -- because `-MD' means `put the output
3150 # in D'.
3151 mkdir conftest.dir
3152 # Copy depcomp to subdir because otherwise we won't find it if we're
3153 # using a relative directory.
3154 cp "$am_depcomp" conftest.dir
3155 cd conftest.dir
3156 # We will build objects and dependencies in a subdirectory because
3157 # it helps to detect inapplicable dependency modes. For instance
3158 # both Tru64's cc and ICC support -MD to output dependencies as a
3159 # side effect of compilation, but ICC will put the dependencies in
3160 # the current directory while Tru64 will put them in the object
3161 # directory.
3162 mkdir sub
252b5132 3163
13b2be9c
DJ
3164 am_cv_CC_dependencies_compiler_type=none
3165 if test "$am_compiler_list" = ""; then
3166 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3167 fi
3168 for depmode in $am_compiler_list; do
3169 # Setup a source with many dependencies, because some compilers
3170 # like to wrap large dependency lists on column 80 (with \), and
3171 # we should not choose a depcomp mode which is confused by this.
3172 #
3173 # We need to recreate these files for each test, as the compiler may
3174 # overwrite some of them when testing with obscure command lines.
3175 # This happens at least with the AIX C compiler.
3176 : > sub/conftest.c
3177 for i in 1 2 3 4 5 6; do
3178 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4b363073
NC
3179 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3180 # Solaris 8's {/usr,}/bin/sh.
3181 touch sub/conftst$i.h
13b2be9c
DJ
3182 done
3183 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3184
3185 case $depmode in
3186 nosideeffect)
3187 # after this tag, mechanisms are not by side-effect, so they'll
3188 # only be used when explicitly requested
3189 if test "x$enable_dependency_tracking" = xyes; then
3190 continue
3191 else
3192 break
3193 fi
3194 ;;
3195 none) break ;;
3196 esac
3197 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3198 # mode. It turns out that the SunPro C++ compiler does not properly
3199 # handle `-M -o', and we need to detect this.
3200 if depmode=$depmode \
3201 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3202 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3203 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3204 >/dev/null 2>conftest.err &&
3205 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3206 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3207 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3208 # icc doesn't choke on unknown options, it will just issue warnings
4b363073
NC
3209 # or remarks (even with -Werror). So we grep stderr for any message
3210 # that says an option was ignored or not supported.
3211 # When given -MP, icc 7.0 and 7.1 complain thusly:
3212 # icc: Command line warning: ignoring option '-M'; no argument required
3213 # The diagnosis changed in icc 8.0:
3214 # icc: Command line remark: option '-MP' not supported
3215 if (grep 'ignoring option' conftest.err ||
3216 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13b2be9c
DJ
3217 am_cv_CC_dependencies_compiler_type=$depmode
3218 break
3219 fi
3220 fi
3221 done
252b5132 3222
13b2be9c
DJ
3223 cd ..
3224 rm -rf conftest.dir
252b5132 3225else
13b2be9c 3226 am_cv_CC_dependencies_compiler_type=none
252b5132
RH
3227fi
3228
252b5132 3229fi
13b2be9c
DJ
3230echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3231echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3232CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
252b5132 3233
13b2be9c
DJ
3234
3235
3236if
3237 test "x$enable_dependency_tracking" != xno \
3238 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3239 am__fastdepCC_TRUE=
3240 am__fastdepCC_FALSE='#'
252b5132 3241else
13b2be9c
DJ
3242 am__fastdepCC_TRUE='#'
3243 am__fastdepCC_FALSE=
252b5132
RH
3244fi
3245
d6d788bd
L
3246
3247
13b2be9c 3248
ce2cded5
L
3249ac_ext=c
3250ac_cpp='$CPP $CPPFLAGS'
3251ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3252ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3253ac_compiler_gnu=$ac_cv_c_compiler_gnu
3254if test -n "$ac_tool_prefix"; then
3255 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3256set dummy ${ac_tool_prefix}gcc; ac_word=$2
3257echo "$as_me:$LINENO: checking for $ac_word" >&5
3258echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3259if test "${ac_cv_prog_CC+set}" = set; then
3260 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3261else
ce2cded5
L
3262 if test -n "$CC"; then
3263 ac_cv_prog_CC="$CC" # Let the user override the test.
d7040cdb 3264else
ce2cded5
L
3265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3266for as_dir in $PATH
3267do
3268 IFS=$as_save_IFS
3269 test -z "$as_dir" && as_dir=.
3270 for ac_exec_ext in '' $ac_executable_extensions; do
3271 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3272 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3274 break 2
3275 fi
3276done
3277done
d7040cdb 3278
ce2cded5
L
3279fi
3280fi
3281CC=$ac_cv_prog_CC
3282if test -n "$CC"; then
3283 echo "$as_me:$LINENO: result: $CC" >&5
3284echo "${ECHO_T}$CC" >&6
bedf545c 3285else
ce2cded5
L
3286 echo "$as_me:$LINENO: result: no" >&5
3287echo "${ECHO_T}no" >&6
3288fi
d7040cdb 3289
ce2cded5
L
3290fi
3291if test -z "$ac_cv_prog_CC"; then
3292 ac_ct_CC=$CC
3293 # Extract the first word of "gcc", so it can be a program name with args.
3294set dummy gcc; ac_word=$2
3295echo "$as_me:$LINENO: checking for $ac_word" >&5
3296echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3297if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
d7040cdb
SE
3298 echo $ECHO_N "(cached) $ECHO_C" >&6
3299else
ce2cded5
L
3300 if test -n "$ac_ct_CC"; then
3301 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3302else
d7040cdb
SE
3303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3304for as_dir in $PATH
3305do
3306 IFS=$as_save_IFS
3307 test -z "$as_dir" && as_dir=.
ce2cded5
L
3308 for ac_exec_ext in '' $ac_executable_extensions; do
3309 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3310 ac_cv_prog_ac_ct_CC="gcc"
3311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3312 break 2
d7040cdb 3313 fi
ce2cded5 3314done
d7040cdb
SE
3315done
3316
ce2cded5
L
3317fi
3318fi
3319ac_ct_CC=$ac_cv_prog_ac_ct_CC
3320if test -n "$ac_ct_CC"; then
3321 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3322echo "${ECHO_T}$ac_ct_CC" >&6
3323else
3324 echo "$as_me:$LINENO: result: no" >&5
3325echo "${ECHO_T}no" >&6
d7040cdb
SE
3326fi
3327
ce2cded5
L
3328 CC=$ac_ct_CC
3329else
3330 CC="$ac_cv_prog_CC"
3331fi
d7040cdb 3332
ce2cded5
L
3333if test -z "$CC"; then
3334 if test -n "$ac_tool_prefix"; then
3335 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3336set dummy ${ac_tool_prefix}cc; ac_word=$2
3337echo "$as_me:$LINENO: checking for $ac_word" >&5
3338echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3339if test "${ac_cv_prog_CC+set}" = set; then
d7040cdb
SE
3340 echo $ECHO_N "(cached) $ECHO_C" >&6
3341else
ce2cded5
L
3342 if test -n "$CC"; then
3343 ac_cv_prog_CC="$CC" # Let the user override the test.
d7040cdb 3344else
ce2cded5
L
3345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3346for as_dir in $PATH
3347do
3348 IFS=$as_save_IFS
3349 test -z "$as_dir" && as_dir=.
3350 for ac_exec_ext in '' $ac_executable_extensions; do
3351 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3352 ac_cv_prog_CC="${ac_tool_prefix}cc"
3353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3354 break 2
3355 fi
3356done
3357done
d7040cdb 3358
252b5132
RH
3359fi
3360fi
ce2cded5
L
3361CC=$ac_cv_prog_CC
3362if test -n "$CC"; then
3363 echo "$as_me:$LINENO: result: $CC" >&5
3364echo "${ECHO_T}$CC" >&6
252b5132 3365else
13b2be9c
DJ
3366 echo "$as_me:$LINENO: result: no" >&5
3367echo "${ECHO_T}no" >&6
252b5132 3368fi
d7040cdb 3369
252b5132 3370fi
ce2cded5
L
3371if test -z "$ac_cv_prog_CC"; then
3372 ac_ct_CC=$CC
3373 # Extract the first word of "cc", so it can be a program name with args.
3374set dummy cc; ac_word=$2
d7040cdb
SE
3375echo "$as_me:$LINENO: checking for $ac_word" >&5
3376echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ce2cded5 3377if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
13b2be9c 3378 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3379else
ce2cded5
L
3380 if test -n "$ac_ct_CC"; then
3381 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
d7040cdb
SE
3382else
3383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3384for as_dir in $PATH
3385do
3386 IFS=$as_save_IFS
3387 test -z "$as_dir" && as_dir=.
3388 for ac_exec_ext in '' $ac_executable_extensions; do
3389 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ce2cded5 3390 ac_cv_prog_ac_ct_CC="cc"
d7040cdb
SE
3391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3392 break 2
3393 fi
3394done
3395done
ac48eca1 3396
d7040cdb
SE
3397fi
3398fi
ce2cded5
L
3399ac_ct_CC=$ac_cv_prog_ac_ct_CC
3400if test -n "$ac_ct_CC"; then
3401 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3402echo "${ECHO_T}$ac_ct_CC" >&6
3403else
3404 echo "$as_me:$LINENO: result: no" >&5
d7040cdb
SE
3405echo "${ECHO_T}no" >&6
3406fi
f9c19112 3407
ce2cded5
L
3408 CC=$ac_ct_CC
3409else
3410 CC="$ac_cv_prog_CC"
3411fi
3412
3413fi
3414if test -z "$CC"; then
3415 # Extract the first word of "cc", so it can be a program name with args.
3416set dummy cc; ac_word=$2
3417echo "$as_me:$LINENO: checking for $ac_word" >&5
3418echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3419if test "${ac_cv_prog_CC+set}" = set; then
3420 echo $ECHO_N "(cached) $ECHO_C" >&6
3421else
3422 if test -n "$CC"; then
3423 ac_cv_prog_CC="$CC" # Let the user override the test.
3424else
3425 ac_prog_rejected=no
3426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3427for as_dir in $PATH
3428do
3429 IFS=$as_save_IFS
3430 test -z "$as_dir" && as_dir=.
3431 for ac_exec_ext in '' $ac_executable_extensions; do
3432 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3433 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3434 ac_prog_rejected=yes
3435 continue
3436 fi
3437 ac_cv_prog_CC="cc"
3438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3439 break 2
3440 fi
3441done
3442done
3443
3444if test $ac_prog_rejected = yes; then
3445 # We found a bogon in the path, so make sure we never use it.
3446 set dummy $ac_cv_prog_CC
3447 shift
3448 if test $# != 0; then
3449 # We chose a different compiler from the bogus one.
3450 # However, it has the same basename, so the bogon will be chosen
3451 # first if we set CC to just the basename; use the full file name.
3452 shift
3453 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3454 fi
3455fi
3456fi
3457fi
3458CC=$ac_cv_prog_CC
3459if test -n "$CC"; then
3460 echo "$as_me:$LINENO: result: $CC" >&5
3461echo "${ECHO_T}$CC" >&6
3462else
3463 echo "$as_me:$LINENO: result: no" >&5
3464echo "${ECHO_T}no" >&6
3465fi
3466
3467fi
3468if test -z "$CC"; then
3469 if test -n "$ac_tool_prefix"; then
3470 for ac_prog in cl
3471 do
3472 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3473set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3474echo "$as_me:$LINENO: checking for $ac_word" >&5
3475echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3476if test "${ac_cv_prog_CC+set}" = set; then
3477 echo $ECHO_N "(cached) $ECHO_C" >&6
3478else
3479 if test -n "$CC"; then
3480 ac_cv_prog_CC="$CC" # Let the user override the test.
3481else
3482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3483for as_dir in $PATH
3484do
3485 IFS=$as_save_IFS
3486 test -z "$as_dir" && as_dir=.
3487 for ac_exec_ext in '' $ac_executable_extensions; do
3488 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3489 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3491 break 2
3492 fi
3493done
3494done
3495
3496fi
3497fi
3498CC=$ac_cv_prog_CC
3499if test -n "$CC"; then
3500 echo "$as_me:$LINENO: result: $CC" >&5
3501echo "${ECHO_T}$CC" >&6
3502else
3503 echo "$as_me:$LINENO: result: no" >&5
3504echo "${ECHO_T}no" >&6
3505fi
3506
3507 test -n "$CC" && break
d7040cdb
SE
3508 done
3509fi
ce2cded5
L
3510if test -z "$CC"; then
3511 ac_ct_CC=$CC
3512 for ac_prog in cl
d7040cdb
SE
3513do
3514 # Extract the first word of "$ac_prog", so it can be a program name with args.
3515set dummy $ac_prog; ac_word=$2
3516echo "$as_me:$LINENO: checking for $ac_word" >&5
3517echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ce2cded5 3518if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
d7040cdb
SE
3519 echo $ECHO_N "(cached) $ECHO_C" >&6
3520else
ce2cded5
L
3521 if test -n "$ac_ct_CC"; then
3522 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
d7040cdb
SE
3523else
3524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3525for as_dir in $PATH
3526do
3527 IFS=$as_save_IFS
3528 test -z "$as_dir" && as_dir=.
3529 for ac_exec_ext in '' $ac_executable_extensions; do
3530 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ce2cded5 3531 ac_cv_prog_ac_ct_CC="$ac_prog"
d7040cdb
SE
3532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3533 break 2
ac48eca1 3534 fi
d7040cdb
SE
3535done
3536done
ac48eca1 3537
d7040cdb
SE
3538fi
3539fi
ce2cded5
L
3540ac_ct_CC=$ac_cv_prog_ac_ct_CC
3541if test -n "$ac_ct_CC"; then
3542 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3543echo "${ECHO_T}$ac_ct_CC" >&6
d7040cdb
SE
3544else
3545 echo "$as_me:$LINENO: result: no" >&5
3546echo "${ECHO_T}no" >&6
3547fi
ac48eca1 3548
ce2cded5 3549 test -n "$ac_ct_CC" && break
d7040cdb 3550done
ac48eca1 3551
ce2cded5 3552 CC=$ac_ct_CC
d7040cdb 3553fi
ac48eca1 3554
d7040cdb 3555fi
ac48eca1 3556
ac48eca1 3557
ce2cded5
L
3558test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3559See \`config.log' for more details." >&5
3560echo "$as_me: error: no acceptable C compiler found in \$PATH
3561See \`config.log' for more details." >&2;}
3562 { (exit 1); exit 1; }; }
6be7c12c 3563
ce2cded5
L
3564# Provide some information about the compiler.
3565echo "$as_me:$LINENO:" \
3566 "checking for C compiler version" >&5
3567ac_compiler=`set X $ac_compile; echo $2`
3568{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3569 (eval $ac_compiler --version </dev/null >&5) 2>&5
3570 ac_status=$?
3571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572 (exit $ac_status); }
3573{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3574 (eval $ac_compiler -v </dev/null >&5) 2>&5
3575 ac_status=$?
3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577 (exit $ac_status); }
3578{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3579 (eval $ac_compiler -V </dev/null >&5) 2>&5
3580 ac_status=$?
3581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582 (exit $ac_status); }
ac48eca1 3583
ce2cded5
L
3584echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3585echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3586if test "${ac_cv_c_compiler_gnu+set}" = set; then
d7040cdb
SE
3587 echo $ECHO_N "(cached) $ECHO_C" >&6
3588else
ce2cded5
L
3589 cat >conftest.$ac_ext <<_ACEOF
3590/* confdefs.h. */
3591_ACEOF
3592cat confdefs.h >>conftest.$ac_ext
3593cat >>conftest.$ac_ext <<_ACEOF
3594/* end confdefs.h. */
c8615825 3595
ce2cded5
L
3596int
3597main ()
3598{
3599#ifndef __GNUC__
3600 choke me
3601#endif
3602
3603 ;
3604 return 0;
3605}
3606_ACEOF
3607rm -f conftest.$ac_objext
3608if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3609 (eval $ac_compile) 2>conftest.er1
3610 ac_status=$?
3611 grep -v '^ *+' conftest.er1 >conftest.err
3612 rm -f conftest.er1
3613 cat conftest.err >&5
3614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615 (exit $ac_status); } &&
3616 { ac_try='test -z "$ac_c_werror_flag"
3617 || test ! -s conftest.err'
3618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3619 (eval $ac_try) 2>&5
3620 ac_status=$?
3621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622 (exit $ac_status); }; } &&
3623 { ac_try='test -s conftest.$ac_objext'
3624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3625 (eval $ac_try) 2>&5
3626 ac_status=$?
3627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628 (exit $ac_status); }; }; then
3629 ac_compiler_gnu=yes
d7040cdb 3630else
ce2cded5
L
3631 echo "$as_me: failed program was:" >&5
3632sed 's/^/| /' conftest.$ac_ext >&5
3633
3634ac_compiler_gnu=no
d7040cdb 3635fi
ce2cded5
L
3636rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3637ac_cv_c_compiler_gnu=$ac_compiler_gnu
ac48eca1 3638
ce2cded5
L
3639fi
3640echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3641echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3642GCC=`test $ac_compiler_gnu = yes && echo yes`
3643ac_test_CFLAGS=${CFLAGS+set}
3644ac_save_CFLAGS=$CFLAGS
3645CFLAGS="-g"
3646echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3647echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3648if test "${ac_cv_prog_cc_g+set}" = set; then
d70c5fc7
NC
3649 echo $ECHO_N "(cached) $ECHO_C" >&6
3650else
ce2cded5
L
3651 cat >conftest.$ac_ext <<_ACEOF
3652/* confdefs.h. */
3653_ACEOF
3654cat confdefs.h >>conftest.$ac_ext
3655cat >>conftest.$ac_ext <<_ACEOF
3656/* end confdefs.h. */
d7040cdb 3657
ce2cded5
L
3658int
3659main ()
3660{
d7040cdb 3661
ce2cded5
L
3662 ;
3663 return 0;
3664}
3665_ACEOF
3666rm -f conftest.$ac_objext
3667if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3668 (eval $ac_compile) 2>conftest.er1
3669 ac_status=$?
3670 grep -v '^ *+' conftest.er1 >conftest.err
3671 rm -f conftest.er1
3672 cat conftest.err >&5
3673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674 (exit $ac_status); } &&
3675 { ac_try='test -z "$ac_c_werror_flag"
3676 || test ! -s conftest.err'
3677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3678 (eval $ac_try) 2>&5
3679 ac_status=$?
3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681 (exit $ac_status); }; } &&
3682 { ac_try='test -s conftest.$ac_objext'
3683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3684 (eval $ac_try) 2>&5
3685 ac_status=$?
3686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687 (exit $ac_status); }; }; then
3688 ac_cv_prog_cc_g=yes
3689else
3690 echo "$as_me: failed program was:" >&5
3691sed 's/^/| /' conftest.$ac_ext >&5
d70c5fc7 3692
ce2cded5 3693ac_cv_prog_cc_g=no
d70c5fc7 3694fi
ce2cded5 3695rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d70c5fc7 3696fi
ce2cded5
L
3697echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3698echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3699if test "$ac_test_CFLAGS" = set; then
3700 CFLAGS=$ac_save_CFLAGS
3701elif test $ac_cv_prog_cc_g = yes; then
3702 if test "$GCC" = yes; then
3703 CFLAGS="-g -O2"
3704 else
3705 CFLAGS="-g"
3706 fi
ac48eca1 3707else
ce2cded5
L
3708 if test "$GCC" = yes; then
3709 CFLAGS="-O2"
3710 else
3711 CFLAGS=
3712 fi
ac48eca1 3713fi
ce2cded5
L
3714echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3715echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3716if test "${ac_cv_prog_cc_stdc+set}" = set; then
13b2be9c 3717 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3718else
ce2cded5
L
3719 ac_cv_prog_cc_stdc=no
3720ac_save_CC=$CC
3721cat >conftest.$ac_ext <<_ACEOF
3722/* confdefs.h. */
3723_ACEOF
3724cat confdefs.h >>conftest.$ac_ext
3725cat >>conftest.$ac_ext <<_ACEOF
3726/* end confdefs.h. */
3727#include <stdarg.h>
3728#include <stdio.h>
3729#include <sys/types.h>
3730#include <sys/stat.h>
3731/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3732struct buf { int x; };
3733FILE * (*rcsopen) (struct buf *, struct stat *, int);
3734static char *e (p, i)
3735 char **p;
3736 int i;
3737{
3738 return p[i];
3739}
3740static char *f (char * (*g) (char **, int), char **p, ...)
3741{
3742 char *s;
3743 va_list v;
3744 va_start (v,p);
3745 s = g (p, va_arg (v,int));
3746 va_end (v);
3747 return s;
3748}
3749
3750/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3751 function prototypes and stuff, but not '\xHH' hex character constants.
3752 These don't provoke an error unfortunately, instead are silently treated
3753 as 'x'. The following induces an error, until -std1 is added to get
3754 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3755 array size at least. It's necessary to write '\x00'==0 to get something
3756 that's true only with -std1. */
3757int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3758
3759int test (int i, double x);
3760struct s1 {int (*f) (int a);};
3761struct s2 {int (*f) (double a);};
3762int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3763int argc;
3764char **argv;
3765int
3766main ()
3767{
3768return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3769 ;
3770 return 0;
3771}
3772_ACEOF
3773# Don't try gcc -ansi; that turns off useful extensions and
3774# breaks some systems' header files.
3775# AIX -qlanglvl=ansi
3776# Ultrix and OSF/1 -std1
3777# HP-UX 10.20 and later -Ae
3778# HP-UX older versions -Aa -D_HPUX_SOURCE
3779# SVR4 -Xc -D__EXTENSIONS__
3780for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3781do
3782 CC="$ac_save_CC $ac_arg"
3783 rm -f conftest.$ac_objext
3784if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3785 (eval $ac_compile) 2>conftest.er1
3786 ac_status=$?
3787 grep -v '^ *+' conftest.er1 >conftest.err
3788 rm -f conftest.er1
3789 cat conftest.err >&5
3790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791 (exit $ac_status); } &&
3792 { ac_try='test -z "$ac_c_werror_flag"
3793 || test ! -s conftest.err'
3794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3795 (eval $ac_try) 2>&5
3796 ac_status=$?
3797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798 (exit $ac_status); }; } &&
3799 { ac_try='test -s conftest.$ac_objext'
3800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3801 (eval $ac_try) 2>&5
3802 ac_status=$?
3803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804 (exit $ac_status); }; }; then
3805 ac_cv_prog_cc_stdc=$ac_arg
3806break
3807else
3808 echo "$as_me: failed program was:" >&5
3809sed 's/^/| /' conftest.$ac_ext >&5
3810
3811fi
3812rm -f conftest.err conftest.$ac_objext
3813done
3814rm -f conftest.$ac_ext conftest.$ac_objext
3815CC=$ac_save_CC
3816
3817fi
3818
3819case "x$ac_cv_prog_cc_stdc" in
3820 x|xno)
3821 echo "$as_me:$LINENO: result: none needed" >&5
3822echo "${ECHO_T}none needed" >&6 ;;
3823 *)
3824 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3825echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3826 CC="$CC $ac_cv_prog_cc_stdc" ;;
d7040cdb
SE
3827esac
3828
ce2cded5
L
3829# Some people use a C++ compiler to compile C. Since we use `exit',
3830# in C++ we need to declare it. In case someone uses the same compiler
3831# for both compiling C and C++ we need to have the C++ compiler decide
3832# the declaration of exit, since it's the most demanding environment.
3833cat >conftest.$ac_ext <<_ACEOF
3834#ifndef __cplusplus
3835 choke me
3836#endif
3837_ACEOF
3838rm -f conftest.$ac_objext
3839if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3840 (eval $ac_compile) 2>conftest.er1
3841 ac_status=$?
3842 grep -v '^ *+' conftest.er1 >conftest.err
3843 rm -f conftest.er1
3844 cat conftest.err >&5
3845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846 (exit $ac_status); } &&
3847 { ac_try='test -z "$ac_c_werror_flag"
3848 || test ! -s conftest.err'
3849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3850 (eval $ac_try) 2>&5
3851 ac_status=$?
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); }; } &&
3854 { ac_try='test -s conftest.$ac_objext'
3855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3856 (eval $ac_try) 2>&5
3857 ac_status=$?
3858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859 (exit $ac_status); }; }; then
3860 for ac_declaration in \
3861 '' \
3862 'extern "C" void std::exit (int) throw (); using std::exit;' \
3863 'extern "C" void std::exit (int); using std::exit;' \
3864 'extern "C" void exit (int) throw ();' \
3865 'extern "C" void exit (int);' \
3866 'void exit (int);'
3867do
3868 cat >conftest.$ac_ext <<_ACEOF
3869/* confdefs.h. */
3870_ACEOF
3871cat confdefs.h >>conftest.$ac_ext
3872cat >>conftest.$ac_ext <<_ACEOF
3873/* end confdefs.h. */
3874$ac_declaration
3875#include <stdlib.h>
3876int
3877main ()
3878{
3879exit (42);
3880 ;
3881 return 0;
3882}
3883_ACEOF
3884rm -f conftest.$ac_objext
3885if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3886 (eval $ac_compile) 2>conftest.er1
3887 ac_status=$?
3888 grep -v '^ *+' conftest.er1 >conftest.err
3889 rm -f conftest.er1
3890 cat conftest.err >&5
3891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3892 (exit $ac_status); } &&
3893 { ac_try='test -z "$ac_c_werror_flag"
3894 || test ! -s conftest.err'
3895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3896 (eval $ac_try) 2>&5
3897 ac_status=$?
3898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899 (exit $ac_status); }; } &&
3900 { ac_try='test -s conftest.$ac_objext'
3901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3902 (eval $ac_try) 2>&5
3903 ac_status=$?
3904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3905 (exit $ac_status); }; }; then
3906 :
3907else
3908 echo "$as_me: failed program was:" >&5
3909sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 3910
ce2cded5
L
3911continue
3912fi
3913rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3914 cat >conftest.$ac_ext <<_ACEOF
3915/* confdefs.h. */
3916_ACEOF
3917cat confdefs.h >>conftest.$ac_ext
3918cat >>conftest.$ac_ext <<_ACEOF
3919/* end confdefs.h. */
3920$ac_declaration
3921int
3922main ()
3923{
3924exit (42);
3925 ;
3926 return 0;
3927}
3928_ACEOF
3929rm -f conftest.$ac_objext
3930if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3931 (eval $ac_compile) 2>conftest.er1
3932 ac_status=$?
3933 grep -v '^ *+' conftest.er1 >conftest.err
3934 rm -f conftest.er1
3935 cat conftest.err >&5
3936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937 (exit $ac_status); } &&
3938 { ac_try='test -z "$ac_c_werror_flag"
3939 || test ! -s conftest.err'
3940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3941 (eval $ac_try) 2>&5
3942 ac_status=$?
3943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3944 (exit $ac_status); }; } &&
3945 { ac_try='test -s conftest.$ac_objext'
3946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3947 (eval $ac_try) 2>&5
3948 ac_status=$?
3949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3950 (exit $ac_status); }; }; then
3951 break
3952else
3953 echo "$as_me: failed program was:" >&5
3954sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 3955
ce2cded5
L
3956fi
3957rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3958done
3959rm -f conftest*
3960if test -n "$ac_declaration"; then
3961 echo '#ifdef __cplusplus' >>confdefs.h
3962 echo $ac_declaration >>confdefs.h
3963 echo '#endif' >>confdefs.h
3964fi
d7040cdb 3965
ce2cded5
L
3966else
3967 echo "$as_me: failed program was:" >&5
3968sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 3969
ce2cded5
L
3970fi
3971rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3972ac_ext=c
3973ac_cpp='$CPP $CPPFLAGS'
3974ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3975ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3976ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb
SE
3977
3978
ce2cded5
L
3979cat >>confdefs.h <<\_ACEOF
3980#define _GNU_SOURCE 1
3981_ACEOF
d7040cdb
SE
3982
3983
3984
d7040cdb 3985
d7040cdb 3986
ce2cded5
L
3987macro_version='2.1a'
3988macro_revision='1.2435'
d7040cdb 3989
d7040cdb 3990
d7040cdb 3991
d7040cdb 3992
d7040cdb 3993
d7040cdb 3994
d7040cdb 3995
ac48eca1 3996
ac48eca1 3997
ac48eca1 3998
ac48eca1 3999
d7040cdb 4000
ce2cded5 4001ltmain="$ac_aux_dir/ltmain.sh"
d7040cdb 4002
ce2cded5 4003# Set options
ac48eca1 4004
ce2cded5 4005enable_dlopen=no
d7040cdb 4006
d7040cdb 4007
ce2cded5 4008enable_win32_dll=no
d7040cdb 4009
d7040cdb 4010
ce2cded5
L
4011# Check whether --enable-shared or --disable-shared was given.
4012if test "${enable_shared+set}" = set; then
4013 enableval="$enable_shared"
4014 p=${PACKAGE-default}
4015 case $enableval in
4016 yes) enable_shared=yes ;;
4017 no) enable_shared=no ;;
4018 *)
4019 enable_shared=no
4020 # Look at the argument we got. We use all the common list separators.
4021 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4022 for pkg in $enableval; do
4023 IFS="$lt_save_ifs"
4024 if test "X$pkg" = "X$p"; then
4025 enable_shared=yes
4026 fi
4027 done
4028 IFS="$lt_save_ifs"
4029 ;;
4030 esac
4031else
4032 enable_shared=yes
4033fi;
d7040cdb 4034
d7040cdb 4035
ac48eca1 4036
d7040cdb
SE
4037
4038
4039
4040
4041
ce2cded5
L
4042# Check whether --enable-static or --disable-static was given.
4043if test "${enable_static+set}" = set; then
4044 enableval="$enable_static"
4045 p=${PACKAGE-default}
4046 case $enableval in
4047 yes) enable_static=yes ;;
4048 no) enable_static=no ;;
4049 *)
4050 enable_static=no
4051 # Look at the argument we got. We use all the common list separators.
4052 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4053 for pkg in $enableval; do
4054 IFS="$lt_save_ifs"
4055 if test "X$pkg" = "X$p"; then
4056 enable_static=yes
4057 fi
4058 done
4059 IFS="$lt_save_ifs"
4060 ;;
4061 esac
4062else
4063 enable_static=yes
4064fi;
d7040cdb
SE
4065
4066
4067
4068
4069
4070
4071
ce2cded5
L
4072
4073
4074# Check whether --with-pic or --without-pic was given.
4075if test "${with_pic+set}" = set; then
4076 withval="$with_pic"
4077 pic_mode="$withval"
ac48eca1 4078else
ce2cded5
L
4079 pic_mode=default
4080fi;
13b2be9c 4081
ce2cded5
L
4082test -z "$pic_mode" && pic_mode=default
4083
4084
4085
4086
4087
4088
4089
4090# Check whether --enable-fast-install or --disable-fast-install was given.
4091if test "${enable_fast_install+set}" = set; then
4092 enableval="$enable_fast_install"
4093 p=${PACKAGE-default}
4094 case $enableval in
4095 yes) enable_fast_install=yes ;;
4096 no) enable_fast_install=no ;;
4097 *)
4098 enable_fast_install=no
4099 # Look at the argument we got. We use all the common list separators.
4100 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4101 for pkg in $enableval; do
4102 IFS="$lt_save_ifs"
4103 if test "X$pkg" = "X$p"; then
4104 enable_fast_install=yes
4105 fi
4106 done
4107 IFS="$lt_save_ifs"
4108 ;;
4109 esac
ac48eca1 4110else
ce2cded5
L
4111 enable_fast_install=yes
4112fi;
ac48eca1 4113
ce2cded5
L
4114
4115
4116
4117
4118
4119
4120
4121echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4122echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4123if test "${lt_cv_path_SED+set}" = set; then
13b2be9c 4124 echo $ECHO_N "(cached) $ECHO_C" >&6
d6d788bd 4125else
ce2cded5
L
4126 # Loop through the user's path and test for sed and gsed.
4127# Then use that list of sed's as ones to test for truncation.
13b2be9c
DJ
4128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4129for as_dir in $PATH
4130do
4131 IFS=$as_save_IFS
4132 test -z "$as_dir" && as_dir=.
ce2cded5
L
4133 for lt_ac_prog in sed gsed; do
4134 for ac_exec_ext in '' $ac_executable_extensions; do
4135 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4136 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4137 fi
4138 done
4139 done
13b2be9c 4140done
ce2cded5
L
4141IFS=$as_save_IFS
4142lt_ac_max=0
4143lt_ac_count=0
4144# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4145# along with /bin/sed that truncates output.
4146for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4147 test ! -f $lt_ac_sed && continue
4148 cat /dev/null > conftest.in
4149 lt_ac_count=0
4150 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4151 # Check for GNU sed and select it if it is found.
4152 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4153 lt_cv_path_SED=$lt_ac_sed
4154 break
4155 fi
4156 while true; do
4157 cat conftest.in conftest.in >conftest.tmp
4158 mv conftest.tmp conftest.in
4159 cp conftest.in conftest.nl
4160 echo >>conftest.nl
4161 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4162 cmp -s conftest.out conftest.nl || break
4163 # 10000 chars as input seems more than enough
4164 test $lt_ac_count -gt 10 && break
4165 lt_ac_count=`expr $lt_ac_count + 1`
4166 if test $lt_ac_count -gt $lt_ac_max; then
4167 lt_ac_max=$lt_ac_count
4168 lt_cv_path_SED=$lt_ac_sed
4169 fi
4170 done
13b2be9c
DJ
4171done
4172
ac48eca1
AO
4173fi
4174
ce2cded5 4175SED=$lt_cv_path_SED
ac48eca1 4176
ce2cded5
L
4177echo "$as_me:$LINENO: result: $SED" >&5
4178echo "${ECHO_T}$SED" >&6
d7040cdb 4179
ce2cded5
L
4180test -z "$SED" && SED=sed
4181Xsed="$SED -e 1s/^X//"
d7040cdb
SE
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
13b2be9c 4192
ce2cded5
L
4193echo "$as_me:$LINENO: checking for egrep" >&5
4194echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4195if test "${ac_cv_prog_egrep+set}" = set; then
4196 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 4197else
ce2cded5
L
4198 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4199 then ac_cv_prog_egrep='grep -E'
4200 else ac_cv_prog_egrep='egrep'
4201 fi
ac48eca1 4202fi
ce2cded5
L
4203echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4204echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4205 EGREP=$ac_cv_prog_egrep
ac48eca1 4206
13b2be9c 4207
ce2cded5
L
4208echo "$as_me:$LINENO: checking for fgrep" >&5
4209echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4210if test "${ac_cv_prog_fgrep+set}" = set; then
4211 echo $ECHO_N "(cached) $ECHO_C" >&6
d6d788bd 4212else
ce2cded5
L
4213 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4214 then ac_cv_prog_fgrep='grep -F'
4215 else ac_cv_prog_fgrep='fgrep'
4216 fi
d6d788bd 4217fi
ce2cded5
L
4218echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4219echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4220 FGREP=$ac_cv_prog_fgrep
d6d788bd 4221
d6d788bd 4222
ce2cded5 4223test -z "$GREP" && GREP=grep
252b5132 4224
252b5132 4225
d6d788bd 4226
a74801ba 4227
a74801ba 4228
13b2be9c 4229
252b5132 4230
4867be41 4231
ce2cded5
L
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243# Check whether --with-gnu-ld or --without-gnu-ld was given.
4244if test "${with_gnu_ld+set}" = set; then
4245 withval="$with_gnu_ld"
4246 test "$withval" = no || with_gnu_ld=yes
4247else
4248 with_gnu_ld=no
4249fi;
4250ac_prog=ld
4251if test "$GCC" = yes; then
4252 # Check if gcc -print-prog-name=ld gives a path.
4253 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4254echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4255 case $host in
4256 *-*-mingw*)
4257 # gcc leaves a trailing carriage return which upsets mingw
4258 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4259 *)
4260 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4261 esac
4262 case $ac_prog in
4263 # Accept absolute paths.
4264 [\\/]* | ?:[\\/]*)
4265 re_direlt='/[^/][^/]*/\.\./'
4266 # Canonicalize the pathname of ld
4267 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4268 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4269 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4270 done
4271 test -z "$LD" && LD="$ac_prog"
4272 ;;
4273 "")
4274 # If it fails, then pretend we aren't using GCC.
4275 ac_prog=ld
4276 ;;
4277 *)
4278 # If it is relative, then search for the first ld in PATH.
4279 with_gnu_ld=unknown
4280 ;;
4281 esac
4282elif test "$with_gnu_ld" = yes; then
4283 echo "$as_me:$LINENO: checking for GNU ld" >&5
4284echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4285else
4286 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4287echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4288fi
4289if test "${lt_cv_path_LD+set}" = set; then
4290 echo $ECHO_N "(cached) $ECHO_C" >&6
4291else
4292 if test -z "$LD"; then
4293 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4294 for ac_dir in $PATH; do
4295 IFS="$lt_save_ifs"
4296 test -z "$ac_dir" && ac_dir=.
4297 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4298 lt_cv_path_LD="$ac_dir/$ac_prog"
4299 # Check to see if the program is GNU ld. I'd rather use --version,
4300 # but apparently some variants of GNU ld only accept -v.
4301 # Break only if it was the GNU/non-GNU ld that we prefer.
4302 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4303 *GNU* | *'with BFD'*)
4304 test "$with_gnu_ld" != no && break
4305 ;;
4306 *)
4307 test "$with_gnu_ld" != yes && break
4308 ;;
4309 esac
4310 fi
4311 done
4312 IFS="$lt_save_ifs"
4313else
4314 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4315fi
4316fi
4317
4318LD="$lt_cv_path_LD"
4319if test -n "$LD"; then
4320 echo "$as_me:$LINENO: result: $LD" >&5
4321echo "${ECHO_T}$LD" >&6
4322else
4323 echo "$as_me:$LINENO: result: no" >&5
4324echo "${ECHO_T}no" >&6
4325fi
4326test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4327echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4328 { (exit 1); exit 1; }; }
4329echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4330echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4331if test "${lt_cv_prog_gnu_ld+set}" = set; then
4332 echo $ECHO_N "(cached) $ECHO_C" >&6
4333else
4334 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4335case `$LD -v 2>&1 </dev/null` in
4336*GNU* | *'with BFD'*)
4337 lt_cv_prog_gnu_ld=yes
4338 ;;
4339*)
4340 lt_cv_prog_gnu_ld=no
4341 ;;
4342esac
4343fi
4344echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4345echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4346with_gnu_ld=$lt_cv_prog_gnu_ld
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4358echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
4359if test "${lt_cv_path_NM+set}" = set; then
4360 echo $ECHO_N "(cached) $ECHO_C" >&6
4361else
4362 if test -n "$NM"; then
4363 # Let the user override the test.
4364 lt_cv_path_NM="$NM"
4365else
4366 lt_nm_to_check="${ac_tool_prefix}nm"
4367 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4368 lt_nm_to_check="$lt_nm_to_check nm"
4369 fi
4370 for lt_tmp_nm in $lt_nm_to_check; do
4371 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4372 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4373 IFS="$lt_save_ifs"
4374 test -z "$ac_dir" && ac_dir=.
4375 tmp_nm="$ac_dir/$lt_tmp_nm"
4376 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4377 # Check to see if the nm accepts a BSD-compat flag.
4378 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4379 # nm: unknown option "B" ignored
4380 # Tru64's nm complains that /dev/null is an invalid object file
4381 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4382 */dev/null* | *'Invalid file or object type'*)
4383 lt_cv_path_NM="$tmp_nm -B"
4384 break
4385 ;;
4386 *)
4387 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4388 */dev/null*)
4389 lt_cv_path_NM="$tmp_nm -p"
4390 break
4391 ;;
4392 *)
4393 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4394 continue # so that we can try to find one that supports BSD flags
4395 ;;
4396 esac
4397 ;;
4398 esac
4399 fi
4400 done
4401 IFS="$lt_save_ifs"
4402 done
4403 : ${lt_cv_path_NM=no}
4404fi
4405fi
4406echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4407echo "${ECHO_T}$lt_cv_path_NM" >&6
4408if test "$lt_cv_path_NM" != "no"; then
4409 NM="$lt_cv_path_NM"
4410else
4411 # Didn't find any BSD compatible name lister, look for dumpbin.
4412 if test -n "$ac_tool_prefix"; then
4413 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4414 do
4415 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4416set dummy $ac_tool_prefix$ac_prog; ac_word=$2
d7040cdb
SE
4417echo "$as_me:$LINENO: checking for $ac_word" >&5
4418echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ce2cded5 4419if test "${ac_cv_prog_DUMPBIN+set}" = set; then
d7040cdb
SE
4420 echo $ECHO_N "(cached) $ECHO_C" >&6
4421else
ce2cded5
L
4422 if test -n "$DUMPBIN"; then
4423 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
d7040cdb
SE
4424else
4425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4426for as_dir in $PATH
4427do
4428 IFS=$as_save_IFS
4429 test -z "$as_dir" && as_dir=.
4430 for ac_exec_ext in '' $ac_executable_extensions; do
4431 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ce2cded5 4432 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
d7040cdb
SE
4433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4434 break 2
d70c5fc7 4435 fi
d7040cdb
SE
4436done
4437done
d70c5fc7 4438
d7040cdb
SE
4439fi
4440fi
ce2cded5
L
4441DUMPBIN=$ac_cv_prog_DUMPBIN
4442if test -n "$DUMPBIN"; then
4443 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4444echo "${ECHO_T}$DUMPBIN" >&6
bedf545c 4445else
d7040cdb
SE
4446 echo "$as_me:$LINENO: result: no" >&5
4447echo "${ECHO_T}no" >&6
4448fi
13b2be9c 4449
ce2cded5
L
4450 test -n "$DUMPBIN" && break
4451 done
4452fi
4453if test -z "$DUMPBIN"; then
4454 ac_ct_DUMPBIN=$DUMPBIN
4455 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4456do
4457 # Extract the first word of "$ac_prog", so it can be a program name with args.
4458set dummy $ac_prog; ac_word=$2
4459echo "$as_me:$LINENO: checking for $ac_word" >&5
4460echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4461if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4462 echo $ECHO_N "(cached) $ECHO_C" >&6
d7040cdb 4463else
ce2cded5
L
4464 if test -n "$ac_ct_DUMPBIN"; then
4465 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4466else
4467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4468for as_dir in $PATH
4469do
4470 IFS=$as_save_IFS
4471 test -z "$as_dir" && as_dir=.
4472 for ac_exec_ext in '' $ac_executable_extensions; do
4473 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4474 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4476 break 2
4477 fi
4478done
4479done
4480
4481fi
4482fi
4483ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4484if test -n "$ac_ct_DUMPBIN"; then
4485 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4486echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4487else
4488 echo "$as_me:$LINENO: result: no" >&5
4489echo "${ECHO_T}no" >&6
d7040cdb
SE
4490fi
4491
ce2cded5
L
4492 test -n "$ac_ct_DUMPBIN" && break
4493done
4494test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
13b2be9c 4495
ce2cded5
L
4496 DUMPBIN=$ac_ct_DUMPBIN
4497fi
13b2be9c 4498
bedf545c 4499
ce2cded5
L
4500 if test "$DUMPBIN" != ":"; then
4501 NM="$DUMPBIN"
4502 fi
4503fi
4504test -z "$NM" && NM=nm
6840198f 4505
13b2be9c 4506
ac48eca1 4507
d7040cdb 4508
ce2cded5
L
4509
4510
4511echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4512echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4513if test "${lt_cv_nm_interface+set}" = set; then
4514 echo $ECHO_N "(cached) $ECHO_C" >&6
4515else
4516 lt_cv_nm_interface="BSD nm"
4517 echo "int some_variable = 0;" > conftest.$ac_ext
6194aaab 4518 (eval echo "\"\$as_me:4518: $ac_compile\"" >&5)
ce2cded5
L
4519 (eval "$ac_compile" 2>conftest.err)
4520 cat conftest.err >&5
6194aaab 4521 (eval echo "\"\$as_me:4521: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
ce2cded5
L
4522 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4523 cat conftest.err >&5
6194aaab 4524 (eval echo "\"\$as_me:4524: output\"" >&5)
ce2cded5
L
4525 cat conftest.out >&5
4526 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4527 lt_cv_nm_interface="MS dumpbin"
4528 fi
4529 rm -f conftest*
4530fi
4531echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4532echo "${ECHO_T}$lt_cv_nm_interface" >&6
4533
4534echo "$as_me:$LINENO: checking whether ln -s works" >&5
4535echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4536LN_S=$as_ln_s
4537if test "$LN_S" = "ln -s"; then
4538 echo "$as_me:$LINENO: result: yes" >&5
4539echo "${ECHO_T}yes" >&6
4540else
4541 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4542echo "${ECHO_T}no, using $LN_S" >&6
4543fi
4544
4545# find the maximum length of command line arguments
4546echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4547echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4548if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4549 echo $ECHO_N "(cached) $ECHO_C" >&6
4550else
4551 i=0
4552 teststring="ABCD"
4553
4554 case $build_os in
4555 msdosdjgpp*)
4556 # On DJGPP, this test can blow up pretty badly due to problems in libc
4557 # (any single argument exceeding 2000 bytes causes a buffer overrun
4558 # during glob expansion). Even if it were fixed, the result of this
4559 # check would be larger than it should be.
4560 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4561 ;;
4562
4563 gnu*)
4564 # Under GNU Hurd, this test is not required because there is
4565 # no limit to the length of command line arguments.
4566 # Libtool will interpret -1 as no limit whatsoever
4567 lt_cv_sys_max_cmd_len=-1;
4568 ;;
4569
4570 cygwin* | mingw*)
4571 # On Win9x/ME, this test blows up -- it succeeds, but takes
4572 # about 5 minutes as the teststring grows exponentially.
4573 # Worse, since 9x/ME are not pre-emptively multitasking,
4574 # you end up with a "frozen" computer, even though with patience
4575 # the test eventually succeeds (with a max line length of 256k).
4576 # Instead, let's just punt: use the minimum linelength reported by
4577 # all of the supported platforms: 8192 (on NT/2K/XP).
4578 lt_cv_sys_max_cmd_len=8192;
4579 ;;
4580
4581 amigaos*)
4582 # On AmigaOS with pdksh, this test takes hours, literally.
4583 # So we just punt and use a minimum line length of 8192.
4584 lt_cv_sys_max_cmd_len=8192;
4585 ;;
4586
4587 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4588 # This has been around since 386BSD, at least. Likely further.
4589 if test -x /sbin/sysctl; then
4590 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4591 elif test -x /usr/sbin/sysctl; then
4592 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4593 else
4594 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4595 fi
4596 # And add a safety zone
4597 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4598 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4599 ;;
4600
4601 interix*)
4602 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4603 lt_cv_sys_max_cmd_len=196608
4604 ;;
4605
4606 osf*)
4607 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4608 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4609 # nice to cause kernel panics so lets avoid the loop below.
4610 # First set a reasonable default.
4611 lt_cv_sys_max_cmd_len=16384
4612 #
4613 if test -x /sbin/sysconfig; then
4614 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4615 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4616 esac
4617 fi
4618 ;;
4619 sco3.2v5*)
4620 lt_cv_sys_max_cmd_len=102400
4621 ;;
4622 sysv5* | sco5v6* | sysv4.2uw2*)
4623 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4624 if test -n "$kargmax"; then
4625 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4626 else
4627 lt_cv_sys_max_cmd_len=32768
4628 fi
d7040cdb
SE
4629 ;;
4630 *)
ce2cded5
L
4631 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
4632 if test -n $lt_cv_sys_max_cmd_len; then
4633 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4634 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4635 else
4636 # Make teststring a little bigger before we do anything with it.
4637 # a 1K string should be a reasonable start.
4638 for i in 1 2 3 4 5 6 7 8 ; do
4639 teststring=$teststring$teststring
4640 done
4641 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4642 # If test is not a shell built-in, we'll probably end up computing a
4643 # maximum length that is only half of the actual maximum length, but
4644 # we can't tell.
4645 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4646 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4647 test $i != 17 # 1/2 MB should be enough
4648 do
4649 i=`expr $i + 1`
4650 teststring=$teststring$teststring
4651 done
4652 # Only check the string length outside the loop.
4653 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4654 teststring=
4655 # Add a significant safety factor because C++ compilers can tack on
4656 # massive amounts of additional arguments before passing them to the
4657 # linker. It appears as though 1/2 is a usable value.
4658 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4659 fi
d7040cdb
SE
4660 ;;
4661 esac
252b5132 4662
ce2cded5 4663fi
d6d788bd 4664
ce2cded5
L
4665if test -n $lt_cv_sys_max_cmd_len ; then
4666 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4667echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4668else
4669 echo "$as_me:$LINENO: result: none" >&5
4670echo "${ECHO_T}none" >&6
4671fi
4672max_cmd_len=$lt_cv_sys_max_cmd_len
252b5132 4673
d6d788bd 4674
13b2be9c 4675
13b2be9c 4676
bedf545c 4677
252b5132 4678
bedf545c 4679
ce2cded5
L
4680: ${CP="cp -f"}
4681: ${MV="mv -f"}
4682: ${RM="rm -f"}
d6d788bd 4683
ce2cded5
L
4684echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4685echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4686# Try some XSI features
4687xsi_shell=no
4688( _lt_dummy="a/b/c"
4689 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4690 = c,a/b,, ) >/dev/null 2>&1 \
4691 && xsi_shell=yes
4692echo "$as_me:$LINENO: result: $xsi_shell" >&5
4693echo "${ECHO_T}$xsi_shell" >&6
bedf545c 4694
bedf545c 4695
ce2cded5
L
4696echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4697echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4698lt_shell_append=no
4699( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4700 >/dev/null 2>&1 \
4701 && lt_shell_append=yes
4702echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4703echo "${ECHO_T}$lt_shell_append" >&6
252b5132 4704
d6d788bd 4705
ce2cded5
L
4706if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4707 lt_unset=unset
4708else
4709 lt_unset=false
4710fi
13b2be9c
DJ
4711
4712
4713
4714
d6d788bd 4715
ce2cded5
L
4716# test EBCDIC or ASCII
4717case `echo X|tr X '\101'` in
4718 A) # ASCII based system
4719 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4720 lt_SP2NL='tr \040 \012'
4721 lt_NL2SP='tr \015\012 \040\040'
4722 ;;
4723 *) # EBCDIC based system
4724 lt_SP2NL='tr \100 \n'
4725 lt_NL2SP='tr \r\n \100\100'
4726 ;;
4727esac
c43a438d 4728
c43a438d 4729
c43a438d 4730
252b5132 4731
ad22bfe8 4732
1ad12f97 4733
1ad12f97 4734
9e9b66a9 4735
1ad12f97 4736
ce2cded5
L
4737echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4738echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4739if test "${lt_cv_ld_reload_flag+set}" = set; then
4740 echo $ECHO_N "(cached) $ECHO_C" >&6
4741else
4742 lt_cv_ld_reload_flag='-r'
4743fi
4744echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4745echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4746reload_flag=$lt_cv_ld_reload_flag
4747case $reload_flag in
4748"" | " "*) ;;
4749*) reload_flag=" $reload_flag" ;;
4750esac
4751reload_cmds='$LD$reload_flag -o $output$reload_objs'
4752case $host_os in
4753 darwin*)
4754 if test "$GCC" = yes; then
4755 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4756 else
4757 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4758 fi
4759 ;;
4760esac
a541e3ce 4761
9e9b66a9 4762
a2d91340 4763
d6d788bd 4764
9e9b66a9
AM
4765
4766
4767
d6d788bd 4768
252b5132 4769
13b2be9c 4770
ce2cded5
L
4771echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4772echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4773if test "${lt_cv_deplibs_check_method+set}" = set; then
d7040cdb
SE
4774 echo $ECHO_N "(cached) $ECHO_C" >&6
4775else
ce2cded5
L
4776 lt_cv_file_magic_cmd='$MAGIC_CMD'
4777lt_cv_file_magic_test_file=
4778lt_cv_deplibs_check_method='unknown'
4779# Need to set the preceding variable on all platforms that support
4780# interlibrary dependencies.
4781# 'none' -- dependencies not supported.
4782# `unknown' -- same as none, but documents that we really don't know.
4783# 'pass_all' -- all dependencies passed with no checks.
4784# 'test_compile' -- check by making test program.
4785# 'file_magic [[regex]]' -- check by looking for files in library path
4786# which responds to the $file_magic_cmd with a given extended regex.
4787# If you have `file' or equivalent on your system and you're not sure
4788# whether `pass_all' will *always* work, you probably want this one.
13b2be9c 4789
ce2cded5 4790case $host_os in
50e7d84b 4791aix[4-9]*)
ce2cded5
L
4792 lt_cv_deplibs_check_method=pass_all
4793 ;;
d7040cdb 4794
ce2cded5
L
4795beos*)
4796 lt_cv_deplibs_check_method=pass_all
4797 ;;
d7040cdb 4798
ce2cded5
L
4799bsdi[45]*)
4800 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4801 lt_cv_file_magic_cmd='/usr/bin/file -L'
4802 lt_cv_file_magic_test_file=/shlib/libc.so
4803 ;;
d7040cdb 4804
ce2cded5
L
4805cygwin*)
4806 # func_win32_libid is a shell function defined in ltmain.sh
4807 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4808 lt_cv_file_magic_cmd='func_win32_libid'
d7040cdb 4809 ;;
ce2cded5
L
4810
4811mingw* | pw32*)
4812 # Base MSYS/MinGW do not provide the 'file' command needed by
4813 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4814 # unless we find 'file', for example because we are cross-compiling.
4815 if ( file / ) >/dev/null 2>&1; then
4816 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4817 lt_cv_file_magic_cmd='func_win32_libid'
4818 else
4819 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4820 lt_cv_file_magic_cmd='$OBJDUMP -f'
4821 fi
d7040cdb 4822 ;;
ce2cded5
L
4823
4824darwin* | rhapsody*)
4825 lt_cv_deplibs_check_method=pass_all
4826 ;;
4827
4828freebsd* | dragonfly*)
4829 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4830 case $host_cpu in
4831 i*86 )
4832 # Not sure whether the presence of OpenBSD here was a mistake.
4833 # Let's accept both of them until this is cleared up.
4834 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4835 lt_cv_file_magic_cmd=/usr/bin/file
4836 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4837 ;;
4838 esac
4839 else
4840 lt_cv_deplibs_check_method=pass_all
d7040cdb
SE
4841 fi
4842 ;;
ce2cded5
L
4843
4844gnu*)
4845 lt_cv_deplibs_check_method=pass_all
d7040cdb 4846 ;;
ce2cded5
L
4847
4848hpux10.20* | hpux11*)
4849 lt_cv_file_magic_cmd=/usr/bin/file
4850 case $host_cpu in
4851 ia64*)
4852 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4853 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4854 ;;
4855 hppa*64*)
4856 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]'
4857 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4858 ;;
4859 *)
4860 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4861 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4862 ;;
4863 esac
d7040cdb 4864 ;;
ce2cded5
L
4865
4866interix[3-9]*)
4867 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4868 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
d7040cdb 4869 ;;
ce2cded5
L
4870
4871irix5* | irix6* | nonstopux*)
4872 case $LD in
4873 *-32|*"-32 ") libmagic=32-bit;;
4874 *-n32|*"-n32 ") libmagic=N32;;
4875 *-64|*"-64 ") libmagic=64-bit;;
4876 *) libmagic=never-match;;
4877 esac
4878 lt_cv_deplibs_check_method=pass_all
d7040cdb 4879 ;;
ce2cded5
L
4880
4881# This must be Linux ELF.
4882linux* | k*bsd*-gnu)
4883 lt_cv_deplibs_check_method=pass_all
d7040cdb 4884 ;;
ce2cded5
L
4885
4886netbsd*)
4887 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4888 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4889 else
4890 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4891 fi
d7040cdb 4892 ;;
ce2cded5
L
4893
4894newos6*)
4895 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4896 lt_cv_file_magic_cmd=/usr/bin/file
4897 lt_cv_file_magic_test_file=/usr/lib/libnls.so
d7040cdb 4898 ;;
76a27922 4899
ce2cded5
L
4900*nto* | *qnx*)
4901 lt_cv_deplibs_check_method=pass_all
4902 ;;
d6d788bd 4903
ce2cded5
L
4904openbsd*)
4905 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4906 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4907 else
4908 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4909 fi
4910 ;;
44f2f9d2 4911
ce2cded5
L
4912osf3* | osf4* | osf5*)
4913 lt_cv_deplibs_check_method=pass_all
4914 ;;
44f2f9d2 4915
ce2cded5
L
4916rdos*)
4917 lt_cv_deplibs_check_method=pass_all
4918 ;;
4919
4920solaris*)
4921 lt_cv_deplibs_check_method=pass_all
4922 ;;
4923
4924sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4925 lt_cv_deplibs_check_method=pass_all
4926 ;;
4927
4928sysv4 | sysv4.3*)
4929 case $host_vendor in
4930 motorola)
4931 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]'
4932 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4933 ;;
4934 ncr)
4935 lt_cv_deplibs_check_method=pass_all
4936 ;;
4937 sequent)
4938 lt_cv_file_magic_cmd='/bin/file'
4939 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4940 ;;
4941 sni)
4942 lt_cv_file_magic_cmd='/bin/file'
4943 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4944 lt_cv_file_magic_test_file=/lib/libc.so
4945 ;;
4946 siemens)
4947 lt_cv_deplibs_check_method=pass_all
4948 ;;
4949 pc)
4950 lt_cv_deplibs_check_method=pass_all
4951 ;;
4952 esac
4953 ;;
4954
4955tpf*)
4956 lt_cv_deplibs_check_method=pass_all
d7040cdb
SE
4957 ;;
4958esac
4959
ce2cded5
L
4960fi
4961echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4962echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4963file_magic_cmd=$lt_cv_file_magic_cmd
4964deplibs_check_method=$lt_cv_deplibs_check_method
4965test -z "$deplibs_check_method" && deplibs_check_method=unknown
d7040cdb 4966
d7040cdb 4967
d7040cdb 4968
d7040cdb 4969
d7040cdb 4970
44f2f9d2 4971
d7040cdb 4972
d7040cdb 4973
d7040cdb 4974
d7040cdb 4975
44f2f9d2 4976
d7040cdb 4977
ce2cded5
L
4978if test -n "$ac_tool_prefix"; then
4979 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4980set dummy ${ac_tool_prefix}ar; ac_word=$2
4981echo "$as_me:$LINENO: checking for $ac_word" >&5
4982echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4983if test "${ac_cv_prog_AR+set}" = set; then
4984 echo $ECHO_N "(cached) $ECHO_C" >&6
4985else
4986 if test -n "$AR"; then
4987 ac_cv_prog_AR="$AR" # Let the user override the test.
4988else
4989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4990for as_dir in $PATH
4991do
4992 IFS=$as_save_IFS
4993 test -z "$as_dir" && as_dir=.
4994 for ac_exec_ext in '' $ac_executable_extensions; do
4995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4996 ac_cv_prog_AR="${ac_tool_prefix}ar"
4997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4998 break 2
d7040cdb
SE
4999 fi
5000done
ce2cded5 5001done
44f2f9d2 5002
ce2cded5
L
5003fi
5004fi
5005AR=$ac_cv_prog_AR
5006if test -n "$AR"; then
5007 echo "$as_me:$LINENO: result: $AR" >&5
5008echo "${ECHO_T}$AR" >&6
5009else
5010 echo "$as_me:$LINENO: result: no" >&5
5011echo "${ECHO_T}no" >&6
44f2f9d2 5012fi
d7040cdb 5013
d7040cdb 5014fi
ce2cded5
L
5015if test -z "$ac_cv_prog_AR"; then
5016 ac_ct_AR=$AR
5017 # Extract the first word of "ar", so it can be a program name with args.
5018set dummy ar; ac_word=$2
5019echo "$as_me:$LINENO: checking for $ac_word" >&5
5020echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5021if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5022 echo $ECHO_N "(cached) $ECHO_C" >&6
44f2f9d2 5023else
ce2cded5
L
5024 if test -n "$ac_ct_AR"; then
5025 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5026else
5027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5028for as_dir in $PATH
5029do
5030 IFS=$as_save_IFS
5031 test -z "$as_dir" && as_dir=.
5032 for ac_exec_ext in '' $ac_executable_extensions; do
5033 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5034 ac_cv_prog_ac_ct_AR="ar"
5035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5036 break 2
5037 fi
5038done
5039done
5040
5041 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5042fi
5043fi
5044ac_ct_AR=$ac_cv_prog_ac_ct_AR
5045if test -n "$ac_ct_AR"; then
5046 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5047echo "${ECHO_T}$ac_ct_AR" >&6
5048else
5049 echo "$as_me:$LINENO: result: no" >&5
5050echo "${ECHO_T}no" >&6
d7040cdb 5051fi
44f2f9d2 5052
ce2cded5
L
5053 AR=$ac_ct_AR
5054else
5055 AR="$ac_cv_prog_AR"
5056fi
d7040cdb 5057
ce2cded5
L
5058test -z "$AR" && AR=ar
5059test -z "$AR_FLAGS" && AR_FLAGS=cru
d7040cdb
SE
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
ce2cded5
L
5071if test -n "$ac_tool_prefix"; then
5072 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5073set dummy ${ac_tool_prefix}strip; ac_word=$2
5074echo "$as_me:$LINENO: checking for $ac_word" >&5
5075echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5076if test "${ac_cv_prog_STRIP+set}" = set; then
5077 echo $ECHO_N "(cached) $ECHO_C" >&6
5078else
5079 if test -n "$STRIP"; then
5080 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5081else
5082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5083for as_dir in $PATH
5084do
5085 IFS=$as_save_IFS
5086 test -z "$as_dir" && as_dir=.
5087 for ac_exec_ext in '' $ac_executable_extensions; do
5088 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5089 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5091 break 2
5092 fi
5093done
5094done
d7040cdb 5095
ce2cded5
L
5096fi
5097fi
5098STRIP=$ac_cv_prog_STRIP
5099if test -n "$STRIP"; then
5100 echo "$as_me:$LINENO: result: $STRIP" >&5
5101echo "${ECHO_T}$STRIP" >&6
5102else
5103 echo "$as_me:$LINENO: result: no" >&5
5104echo "${ECHO_T}no" >&6
5105fi
d7040cdb 5106
ce2cded5
L
5107fi
5108if test -z "$ac_cv_prog_STRIP"; then
5109 ac_ct_STRIP=$STRIP
5110 # Extract the first word of "strip", so it can be a program name with args.
5111set dummy strip; ac_word=$2
5112echo "$as_me:$LINENO: checking for $ac_word" >&5
5113echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5114if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5115 echo $ECHO_N "(cached) $ECHO_C" >&6
5116else
5117 if test -n "$ac_ct_STRIP"; then
5118 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5119else
5120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5121for as_dir in $PATH
5122do
5123 IFS=$as_save_IFS
5124 test -z "$as_dir" && as_dir=.
5125 for ac_exec_ext in '' $ac_executable_extensions; do
5126 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5127 ac_cv_prog_ac_ct_STRIP="strip"
5128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5129 break 2
5130 fi
5131done
5132done
d7040cdb 5133
ce2cded5
L
5134 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5135fi
5136fi
5137ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5138if test -n "$ac_ct_STRIP"; then
5139 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5140echo "${ECHO_T}$ac_ct_STRIP" >&6
5141else
5142 echo "$as_me:$LINENO: result: no" >&5
5143echo "${ECHO_T}no" >&6
5144fi
d7040cdb 5145
ce2cded5
L
5146 STRIP=$ac_ct_STRIP
5147else
5148 STRIP="$ac_cv_prog_STRIP"
5149fi
d7040cdb 5150
ce2cded5 5151test -z "$STRIP" && STRIP=:
d7040cdb 5152
d7040cdb 5153
d7040cdb 5154
d7040cdb 5155
d7040cdb 5156
d7040cdb 5157
ce2cded5
L
5158if test -n "$ac_tool_prefix"; then
5159 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5160set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5161echo "$as_me:$LINENO: checking for $ac_word" >&5
5162echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5163if test "${ac_cv_prog_RANLIB+set}" = set; then
5164 echo $ECHO_N "(cached) $ECHO_C" >&6
44f2f9d2 5165else
ce2cded5
L
5166 if test -n "$RANLIB"; then
5167 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5168else
5169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5170for as_dir in $PATH
5171do
5172 IFS=$as_save_IFS
5173 test -z "$as_dir" && as_dir=.
5174 for ac_exec_ext in '' $ac_executable_extensions; do
5175 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5176 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5178 break 2
5179 fi
5180done
5181done
44f2f9d2 5182
d7040cdb 5183fi
44f2f9d2 5184fi
ce2cded5
L
5185RANLIB=$ac_cv_prog_RANLIB
5186if test -n "$RANLIB"; then
5187 echo "$as_me:$LINENO: result: $RANLIB" >&5
5188echo "${ECHO_T}$RANLIB" >&6
5189else
5190 echo "$as_me:$LINENO: result: no" >&5
5191echo "${ECHO_T}no" >&6
5192fi
d7040cdb 5193
d7040cdb 5194fi
ce2cded5
L
5195if test -z "$ac_cv_prog_RANLIB"; then
5196 ac_ct_RANLIB=$RANLIB
5197 # Extract the first word of "ranlib", so it can be a program name with args.
5198set dummy ranlib; ac_word=$2
5199echo "$as_me:$LINENO: checking for $ac_word" >&5
5200echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5201if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
d7040cdb 5202 echo $ECHO_N "(cached) $ECHO_C" >&6
44f2f9d2 5203else
ce2cded5
L
5204 if test -n "$ac_ct_RANLIB"; then
5205 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5206else
5207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5208for as_dir in $PATH
d7040cdb 5209do
ce2cded5
L
5210 IFS=$as_save_IFS
5211 test -z "$as_dir" && as_dir=.
5212 for ac_exec_ext in '' $ac_executable_extensions; do
5213 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5214 ac_cv_prog_ac_ct_RANLIB="ranlib"
5215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5216 break 2
d7040cdb 5217 fi
ce2cded5
L
5218done
5219done
5220
5221 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
d7040cdb 5222fi
ce2cded5
L
5223fi
5224ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5225if test -n "$ac_ct_RANLIB"; then
5226 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5227echo "${ECHO_T}$ac_ct_RANLIB" >&6
d7040cdb 5228else
ce2cded5
L
5229 echo "$as_me:$LINENO: result: no" >&5
5230echo "${ECHO_T}no" >&6
44f2f9d2 5231fi
44f2f9d2 5232
ce2cded5 5233 RANLIB=$ac_ct_RANLIB
d7040cdb 5234else
ce2cded5 5235 RANLIB="$ac_cv_prog_RANLIB"
d7040cdb 5236fi
252b5132 5237
ce2cded5 5238test -z "$RANLIB" && RANLIB=:
252b5132 5239
252b5132 5240
ae57792d 5241
252b5132 5242
13b2be9c 5243
14ee9f48 5244
ce2cded5
L
5245# Determine commands to create old-style static archives.
5246old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5247old_postinstall_cmds='chmod 644 $oldlib'
5248old_postuninstall_cmds=
14ee9f48 5249
ce2cded5
L
5250if test -n "$RANLIB"; then
5251 case $host_os in
5252 openbsd*)
5253 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5254 ;;
5255 *)
5256 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5257 ;;
5258 esac
5259 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
d7040cdb 5260fi
14ee9f48 5261
f8fc3443 5262
f8fc3443 5263
252b5132 5264
85fbca6a 5265
85fbca6a 5266
13b2be9c 5267
13b2be9c 5268
d7040cdb 5269
d7040cdb
SE
5270
5271
5272
252b5132 5273
93fbbb04 5274
93fbbb04 5275
d70c5fc7 5276
e0001a05 5277
252b5132 5278
252b5132 5279
252b5132 5280
252b5132 5281
252b5132 5282
3bcbcc3d 5283
252b5132 5284
252b5132 5285
252b5132 5286
15886821 5287
252b5132 5288
252b5132 5289
13b2be9c
DJ
5290
5291
252b5132 5292
252b5132 5293
d6d788bd 5294
ce2cded5
L
5295# If no C compiler was specified, use CC.
5296LTCC=${LTCC-"$CC"}
252b5132 5297
ce2cded5
L
5298# If no C compiler flags were specified, use CFLAGS.
5299LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
252b5132 5300
ce2cded5
L
5301# Allow CC to be a program name with arguments.
5302compiler=$CC
252b5132 5303
252b5132 5304
ce2cded5
L
5305# Check for command to grab the raw symbol name followed by C symbol from nm.
5306echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5307echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5308if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5309 echo $ECHO_N "(cached) $ECHO_C" >&6
5310else
252b5132 5311
ce2cded5
L
5312# These are sane defaults that work on at least a few old systems.
5313# [They come from Ultrix. What could be older than Ultrix?!! ;)]
252b5132 5314
ce2cded5
L
5315# Character class describing NM global symbol codes.
5316symcode='[BCDEGRST]'
252b5132 5317
ce2cded5
L
5318# Regexp to match symbols that can be accessed directly from C.
5319sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13b2be9c 5320
ce2cded5
L
5321# Define system-specific variables.
5322case $host_os in
5323aix*)
5324 symcode='[BCDT]'
5325 ;;
5326cygwin* | mingw* | pw32*)
5327 symcode='[ABCDGISTW]'
5328 ;;
5329hpux*)
5330 if test "$host_cpu" = ia64; then
5331 symcode='[ABCDEGRST]'
5332 fi
5333 ;;
5334irix* | nonstopux*)
5335 symcode='[BCDEGRST]'
5336 ;;
5337osf*)
5338 symcode='[BCDEGQRST]'
5339 ;;
5340solaris*)
5341 symcode='[BDRT]'
5342 ;;
5343sco3.2v5*)
5344 symcode='[DT]'
5345 ;;
5346sysv4.2uw2*)
5347 symcode='[DT]'
5348 ;;
5349sysv5* | sco5v6* | unixware* | OpenUNIX*)
5350 symcode='[ABDT]'
5351 ;;
5352sysv4)
5353 symcode='[DFNSTU]'
5354 ;;
5355esac
5356
5357# If we're using GNU nm, then use its standard symbol codes.
5358case `$NM -V 2>&1` in
5359*GNU* | *'with BFD'*)
5360 symcode='[ABCDGIRSTW]' ;;
5361esac
252b5132 5362
ce2cded5
L
5363# Transform an extracted symbol line into a proper C declaration.
5364# Some systems (esp. on ia64) link data and code symbols differently,
5365# so use this general approach.
5366lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13b2be9c 5367
ce2cded5
L
5368# Transform an extracted symbol line into symbol name and symbol address
5369lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13b2be9c 5370
ce2cded5
L
5371# Handle CRLF in mingw tool chain
5372opt_cr=
5373case $build_os in
5374mingw*)
5375 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5376 ;;
5377esac
252b5132 5378
ce2cded5
L
5379# Try without a prefix underscore, then with it.
5380for ac_symprfx in "" "_"; do
252b5132 5381
ce2cded5
L
5382 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5383 symxfrm="\\1 $ac_symprfx\\2 \\2"
d6d788bd 5384
ce2cded5
L
5385 # Write the raw and C identifiers.
5386 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5387 # Fake it for dumpbin and say T for any non-static function
5388 # and D for any global variable.
5389 # Also find C++ and __fastcall symbols from MSVC++,
5390 # which start with @ or ?.
5391 lt_cv_sys_global_symbol_pipe="$AWK '"\
5392" {last_section=section; section=\$ 3};"\
5393" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5394" \$ 0!~/External *\|/{next};"\
5395" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5396" {if(hide[section]) next};"\
5397" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5398" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5399" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5400" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5401" ' prfx=^$ac_symprfx"
5402 else
5403 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5404 fi
252b5132 5405
ce2cded5
L
5406 # Check to see that the pipe works correctly.
5407 pipe_works=no
252b5132 5408
ce2cded5
L
5409 rm -f conftest*
5410 cat > conftest.$ac_ext <<_LT_EOF
5411#ifdef __cplusplus
5412extern "C" {
5413#endif
5414char nm_test_var;
5415void nm_test_func(void);
5416void nm_test_func(void){}
5417#ifdef __cplusplus
5418}
5419#endif
5420int main(){nm_test_var='a';nm_test_func();return(0);}
5421_LT_EOF
d6d788bd 5422
ce2cded5
L
5423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5424 (eval $ac_compile) 2>&5
5425 ac_status=$?
5426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427 (exit $ac_status); }; then
5428 # Now try to grab the symbols.
5429 nlist=conftest.nm
5430 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5431 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5432 ac_status=$?
5433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434 (exit $ac_status); } && test -s "$nlist"; then
5435 # Try sorting and uniquifying the output.
5436 if sort "$nlist" | uniq > "$nlist"T; then
5437 mv -f "$nlist"T "$nlist"
5438 else
5439 rm -f "$nlist"T
5440 fi
d6d788bd 5441
ce2cded5
L
5442 # Make sure that we snagged all the symbols we need.
5443 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5444 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5445 cat <<_LT_EOF > conftest.$ac_ext
5446#ifdef __cplusplus
5447extern "C" {
5448#endif
d6d788bd 5449
ce2cded5
L
5450_LT_EOF
5451 # Now generate the symbol file.
5452 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
d6d788bd 5453
ce2cded5 5454 cat <<_LT_EOF >> conftest.$ac_ext
d6d788bd 5455
ce2cded5
L
5456/* The mapping between symbol names and symbols. */
5457const struct {
5458 const char *name;
5459 void *address;
5460}
5461lt__PROGRAM__LTX_preloaded_symbols[] =
5462{
5463 { "@PROGRAM@", (void *) 0 },
5464_LT_EOF
5465 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5466 cat <<\_LT_EOF >> conftest.$ac_ext
5467 {0, (void *) 0}
5468};
d6d788bd 5469
ce2cded5
L
5470/* This works around a problem in FreeBSD linker */
5471#ifdef FREEBSD_WORKAROUND
5472static const void *lt_preloaded_setup() {
5473 return lt__PROGRAM__LTX_preloaded_symbols;
5474}
5475#endif
252b5132 5476
ce2cded5
L
5477#ifdef __cplusplus
5478}
5479#endif
5480_LT_EOF
5481 # Now try linking the two files.
5482 mv conftest.$ac_objext conftstm.$ac_objext
5483 lt_save_LIBS="$LIBS"
5484 lt_save_CFLAGS="$CFLAGS"
5485 LIBS="conftstm.$ac_objext"
5486 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5488 (eval $ac_link) 2>&5
5489 ac_status=$?
5490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5492 pipe_works=yes
5493 fi
5494 LIBS="$lt_save_LIBS"
5495 CFLAGS="$lt_save_CFLAGS"
5496 else
5497 echo "cannot find nm_test_func in $nlist" >&5
5498 fi
5499 else
5500 echo "cannot find nm_test_var in $nlist" >&5
5501 fi
5502 else
5503 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5504 fi
5505 else
5506 echo "$progname: failed program was:" >&5
5507 cat conftest.$ac_ext >&5
5508 fi
5509 rm -f conftest* conftst*
d6d788bd 5510
ce2cded5
L
5511 # Do not use the global_symbol_pipe unless it works.
5512 if test "$pipe_works" = yes; then
5513 break
5514 else
5515 lt_cv_sys_global_symbol_pipe=
5516 fi
5517done
4001ad8c 5518
d7040cdb
SE
5519fi
5520
ce2cded5
L
5521if test -z "$lt_cv_sys_global_symbol_pipe"; then
5522 lt_cv_sys_global_symbol_to_cdecl=
d7040cdb 5523fi
ce2cded5
L
5524if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5525 echo "$as_me:$LINENO: result: failed" >&5
5526echo "${ECHO_T}failed" >&6
5527else
5528 echo "$as_me:$LINENO: result: ok" >&5
5529echo "${ECHO_T}ok" >&6
d7040cdb 5530fi
13b2be9c 5531
9b2b7d69 5532
13b2be9c 5533
9b2b7d69 5534
13b2be9c 5535
13b2be9c 5536
13b2be9c
DJ
5537
5538
d7040cdb
SE
5539
5540
5541
5542
5543
5544
5545
5546
5547
ce2cded5
L
5548# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5549if test "${enable_libtool_lock+set}" = set; then
5550 enableval="$enable_libtool_lock"
d7040cdb 5551
ce2cded5
L
5552fi;
5553test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
d7040cdb 5554
ce2cded5
L
5555# Some flags need to be propagated to the compiler or linker for good
5556# libtool support.
5557case $host in
5558ia64-*-hpux*)
5559 # Find out which ABI we are using.
5560 echo 'int i;' > conftest.$ac_ext
5561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5562 (eval $ac_compile) 2>&5
5563 ac_status=$?
5564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565 (exit $ac_status); }; then
5566 case `/usr/bin/file conftest.$ac_objext` in
5567 *ELF-32*)
5568 HPUX_IA64_MODE="32"
5569 ;;
5570 *ELF-64*)
5571 HPUX_IA64_MODE="64"
5572 ;;
5573 esac
13b2be9c 5574 fi
ce2cded5 5575 rm -rf conftest*
d7040cdb 5576 ;;
ce2cded5
L
5577*-*-irix6*)
5578 # Find out which ABI we are using.
6194aaab 5579 echo '#line 5579 "configure"' > conftest.$ac_ext
ce2cded5
L
5580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5581 (eval $ac_compile) 2>&5
5582 ac_status=$?
5583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5584 (exit $ac_status); }; then
5585 if test "$lt_cv_prog_gnu_ld" = yes; then
5586 case `/usr/bin/file conftest.$ac_objext` in
5587 *32-bit*)
5588 LD="${LD-ld} -melf32bsmip"
5589 ;;
5590 *N32*)
5591 LD="${LD-ld} -melf32bmipn32"
5592 ;;
5593 *64-bit*)
5594 LD="${LD-ld} -melf64bmip"
5595 ;;
5596 esac
5597 else
5598 case `/usr/bin/file conftest.$ac_objext` in
5599 *32-bit*)
5600 LD="${LD-ld} -32"
5601 ;;
5602 *N32*)
5603 LD="${LD-ld} -n32"
5604 ;;
5605 *64-bit*)
5606 LD="${LD-ld} -64"
5607 ;;
5608 esac
5609 fi
5610 fi
5611 rm -rf conftest*
d7040cdb 5612 ;;
d7040cdb 5613
ce2cded5
L
5614x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5615s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5616 # Find out which ABI we are using.
5617 echo 'int i;' > conftest.$ac_ext
5618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5619 (eval $ac_compile) 2>&5
5620 ac_status=$?
5621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622 (exit $ac_status); }; then
5623 case `/usr/bin/file conftest.o` in
5624 *32-bit*)
5625 case $host in
5626 x86_64-*kfreebsd*-gnu)
5627 LD="${LD-ld} -m elf_i386_fbsd"
5628 ;;
5629 x86_64-*linux*)
5630 LD="${LD-ld} -m elf_i386"
5631 ;;
5632 ppc64-*linux*|powerpc64-*linux*)
5633 LD="${LD-ld} -m elf32ppclinux"
5634 ;;
5635 s390x-*linux*)
5636 LD="${LD-ld} -m elf_s390"
5637 ;;
5638 sparc64-*linux*)
5639 LD="${LD-ld} -m elf32_sparc"
5640 ;;
d7040cdb 5641 esac
ce2cded5
L
5642 ;;
5643 *64-bit*)
5644 case $host in
5645 x86_64-*kfreebsd*-gnu)
5646 LD="${LD-ld} -m elf_x86_64_fbsd"
5647 ;;
5648 x86_64-*linux*)
5649 LD="${LD-ld} -m elf_x86_64"
5650 ;;
5651 ppc*-*linux*|powerpc*-*linux*)
5652 LD="${LD-ld} -m elf64ppc"
5653 ;;
5654 s390*-*linux*|s390*-*tpf*)
5655 LD="${LD-ld} -m elf64_s390"
5656 ;;
5657 sparc*-*linux*)
5658 LD="${LD-ld} -m elf64_sparc"
5659 ;;
5660 esac
5661 ;;
5662 esac
5663 fi
5664 rm -rf conftest*
d7040cdb 5665 ;;
d7040cdb 5666
ce2cded5
L
5667*-*-sco3.2v5*)
5668 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5669 SAVE_CFLAGS="$CFLAGS"
5670 CFLAGS="$CFLAGS -belf"
5671 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5672echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5673if test "${lt_cv_cc_needs_belf+set}" = set; then
5674 echo $ECHO_N "(cached) $ECHO_C" >&6
13b2be9c 5675else
ce2cded5
L
5676 ac_ext=c
5677ac_cpp='$CPP $CPPFLAGS'
5678ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5679ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5680ac_compiler_gnu=$ac_cv_c_compiler_gnu
13b2be9c 5681
ce2cded5
L
5682 cat >conftest.$ac_ext <<_ACEOF
5683/* confdefs.h. */
5684_ACEOF
5685cat confdefs.h >>conftest.$ac_ext
5686cat >>conftest.$ac_ext <<_ACEOF
5687/* end confdefs.h. */
13b2be9c 5688
ce2cded5
L
5689int
5690main ()
5691{
d7040cdb 5692
ce2cded5
L
5693 ;
5694 return 0;
5695}
5696_ACEOF
5697rm -f conftest.$ac_objext conftest$ac_exeext
5698if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5699 (eval $ac_link) 2>conftest.er1
5700 ac_status=$?
5701 grep -v '^ *+' conftest.er1 >conftest.err
5702 rm -f conftest.er1
5703 cat conftest.err >&5
5704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705 (exit $ac_status); } &&
5706 { ac_try='test -z "$ac_c_werror_flag"
5707 || test ! -s conftest.err'
5708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5709 (eval $ac_try) 2>&5
5710 ac_status=$?
5711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712 (exit $ac_status); }; } &&
5713 { ac_try='test -s conftest$ac_exeext'
5714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5715 (eval $ac_try) 2>&5
5716 ac_status=$?
5717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718 (exit $ac_status); }; }; then
5719 lt_cv_cc_needs_belf=yes
5720else
5721 echo "$as_me: failed program was:" >&5
5722sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 5723
ce2cded5
L
5724lt_cv_cc_needs_belf=no
5725fi
5726rm -f conftest.err conftest.$ac_objext \
5727 conftest$ac_exeext conftest.$ac_ext
5728 ac_ext=c
5729ac_cpp='$CPP $CPPFLAGS'
5730ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5731ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5732ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 5733
13b2be9c 5734fi
ce2cded5
L
5735echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5736echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5737 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5738 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5739 CFLAGS="$SAVE_CFLAGS"
d7040cdb 5740 fi
ce2cded5
L
5741 ;;
5742sparc*-*solaris*)
5743 # Find out which ABI we are using.
5744 echo 'int i;' > conftest.$ac_ext
5745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5746 (eval $ac_compile) 2>&5
5747 ac_status=$?
5748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749 (exit $ac_status); }; then
5750 case `/usr/bin/file conftest.o` in
5751 *64-bit*)
5752 case $lt_cv_prog_gnu_ld in
5753 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5754 *) LD="${LD-ld} -64" ;;
5755 esac
5756 ;;
5757 esac
252b5132 5758 fi
ce2cded5 5759 rm -rf conftest*
d7040cdb
SE
5760 ;;
5761esac
252b5132 5762
ce2cded5 5763need_locks="$enable_libtool_lock"
13b2be9c 5764
d7040cdb
SE
5765ac_ext=c
5766ac_cpp='$CPP $CPPFLAGS'
5767ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5768ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5769ac_compiler_gnu=$ac_cv_c_compiler_gnu
ce2cded5
L
5770echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5771echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5772# On Suns, sometimes $CPP names a directory.
5773if test -n "$CPP" && test -d "$CPP"; then
5774 CPP=
5775fi
5776if test -z "$CPP"; then
5777 if test "${ac_cv_prog_CPP+set}" = set; then
5778 echo $ECHO_N "(cached) $ECHO_C" >&6
5779else
5780 # Double quotes because CPP needs to be expanded
5781 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5782 do
5783 ac_preproc_ok=false
5784for ac_c_preproc_warn_flag in '' yes
5785do
5786 # Use a header file that comes with gcc, so configuring glibc
5787 # with a fresh cross-compiler works.
5788 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5789 # <limits.h> exists even on freestanding compilers.
5790 # On the NeXT, cc -E runs the code through the compiler's parser,
5791 # not just through cpp. "Syntax error" is here to catch this case.
5792 cat >conftest.$ac_ext <<_ACEOF
5793/* confdefs.h. */
5794_ACEOF
5795cat confdefs.h >>conftest.$ac_ext
5796cat >>conftest.$ac_ext <<_ACEOF
5797/* end confdefs.h. */
5798#ifdef __STDC__
5799# include <limits.h>
5800#else
5801# include <assert.h>
5802#endif
5803 Syntax error
5804_ACEOF
5805if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5806 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5807 ac_status=$?
5808 grep -v '^ *+' conftest.er1 >conftest.err
5809 rm -f conftest.er1
5810 cat conftest.err >&5
5811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812 (exit $ac_status); } >/dev/null; then
5813 if test -s conftest.err; then
5814 ac_cpp_err=$ac_c_preproc_warn_flag
5815 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5816 else
5817 ac_cpp_err=
5818 fi
5819else
5820 ac_cpp_err=yes
5821fi
5822if test -z "$ac_cpp_err"; then
5823 :
5824else
5825 echo "$as_me: failed program was:" >&5
5826sed 's/^/| /' conftest.$ac_ext >&5
6840198f 5827
ce2cded5
L
5828 # Broken: fails on valid input.
5829continue
5830fi
5831rm -f conftest.err conftest.$ac_ext
13b2be9c 5832
ce2cded5
L
5833 # OK, works on sane cases. Now check whether non-existent headers
5834 # can be detected and how.
5835 cat >conftest.$ac_ext <<_ACEOF
5836/* confdefs.h. */
5837_ACEOF
5838cat confdefs.h >>conftest.$ac_ext
5839cat >>conftest.$ac_ext <<_ACEOF
5840/* end confdefs.h. */
5841#include <ac_nonexistent.h>
5842_ACEOF
5843if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5844 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5845 ac_status=$?
5846 grep -v '^ *+' conftest.er1 >conftest.err
5847 rm -f conftest.er1
5848 cat conftest.err >&5
5849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850 (exit $ac_status); } >/dev/null; then
5851 if test -s conftest.err; then
5852 ac_cpp_err=$ac_c_preproc_warn_flag
5853 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5854 else
5855 ac_cpp_err=
5856 fi
5857else
5858 ac_cpp_err=yes
5859fi
5860if test -z "$ac_cpp_err"; then
5861 # Broken: success on invalid input.
5862continue
5863else
5864 echo "$as_me: failed program was:" >&5
5865sed 's/^/| /' conftest.$ac_ext >&5
13b2be9c 5866
ce2cded5
L
5867 # Passes both tests.
5868ac_preproc_ok=:
5869break
5870fi
5871rm -f conftest.err conftest.$ac_ext
13b2be9c 5872
ce2cded5
L
5873done
5874# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5875rm -f conftest.err conftest.$ac_ext
5876if $ac_preproc_ok; then
5877 break
5878fi
13b2be9c 5879
ce2cded5
L
5880 done
5881 ac_cv_prog_CPP=$CPP
d7040cdb 5882
ce2cded5
L
5883fi
5884 CPP=$ac_cv_prog_CPP
5885else
5886 ac_cv_prog_CPP=$CPP
5887fi
5888echo "$as_me:$LINENO: result: $CPP" >&5
5889echo "${ECHO_T}$CPP" >&6
5890ac_preproc_ok=false
5891for ac_c_preproc_warn_flag in '' yes
5892do
5893 # Use a header file that comes with gcc, so configuring glibc
5894 # with a fresh cross-compiler works.
5895 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5896 # <limits.h> exists even on freestanding compilers.
5897 # On the NeXT, cc -E runs the code through the compiler's parser,
5898 # not just through cpp. "Syntax error" is here to catch this case.
5899 cat >conftest.$ac_ext <<_ACEOF
5900/* confdefs.h. */
5901_ACEOF
5902cat confdefs.h >>conftest.$ac_ext
5903cat >>conftest.$ac_ext <<_ACEOF
5904/* end confdefs.h. */
5905#ifdef __STDC__
5906# include <limits.h>
5907#else
5908# include <assert.h>
5909#endif
5910 Syntax error
5911_ACEOF
5912if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5913 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5914 ac_status=$?
5915 grep -v '^ *+' conftest.er1 >conftest.err
5916 rm -f conftest.er1
5917 cat conftest.err >&5
5918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919 (exit $ac_status); } >/dev/null; then
5920 if test -s conftest.err; then
5921 ac_cpp_err=$ac_c_preproc_warn_flag
5922 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5923 else
5924 ac_cpp_err=
5925 fi
5926else
5927 ac_cpp_err=yes
5928fi
5929if test -z "$ac_cpp_err"; then
5930 :
5931else
5932 echo "$as_me: failed program was:" >&5
5933sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 5934
ce2cded5
L
5935 # Broken: fails on valid input.
5936continue
5937fi
5938rm -f conftest.err conftest.$ac_ext
d7040cdb 5939
ce2cded5
L
5940 # OK, works on sane cases. Now check whether non-existent headers
5941 # can be detected and how.
5942 cat >conftest.$ac_ext <<_ACEOF
5943/* confdefs.h. */
5944_ACEOF
5945cat confdefs.h >>conftest.$ac_ext
5946cat >>conftest.$ac_ext <<_ACEOF
5947/* end confdefs.h. */
5948#include <ac_nonexistent.h>
5949_ACEOF
5950if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5951 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5952 ac_status=$?
5953 grep -v '^ *+' conftest.er1 >conftest.err
5954 rm -f conftest.er1
5955 cat conftest.err >&5
5956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957 (exit $ac_status); } >/dev/null; then
5958 if test -s conftest.err; then
5959 ac_cpp_err=$ac_c_preproc_warn_flag
5960 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5961 else
5962 ac_cpp_err=
5963 fi
5964else
5965 ac_cpp_err=yes
5966fi
5967if test -z "$ac_cpp_err"; then
5968 # Broken: success on invalid input.
5969continue
5970else
5971 echo "$as_me: failed program was:" >&5
5972sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 5973
ce2cded5
L
5974 # Passes both tests.
5975ac_preproc_ok=:
5976break
5977fi
5978rm -f conftest.err conftest.$ac_ext
d7040cdb 5979
ce2cded5
L
5980done
5981# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5982rm -f conftest.err conftest.$ac_ext
5983if $ac_preproc_ok; then
5984 :
5985else
5986 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5987See \`config.log' for more details." >&5
5988echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5989See \`config.log' for more details." >&2;}
5990 { (exit 1); exit 1; }; }
5991fi
d7040cdb 5992
ce2cded5
L
5993ac_ext=c
5994ac_cpp='$CPP $CPPFLAGS'
5995ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5996ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5997ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 5998
d7040cdb 5999
ce2cded5
L
6000echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6001echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6002if test "${ac_cv_header_stdc+set}" = set; then
6003 echo $ECHO_N "(cached) $ECHO_C" >&6
6004else
6005 cat >conftest.$ac_ext <<_ACEOF
6006/* confdefs.h. */
6007_ACEOF
6008cat confdefs.h >>conftest.$ac_ext
6009cat >>conftest.$ac_ext <<_ACEOF
6010/* end confdefs.h. */
6011#include <stdlib.h>
6012#include <stdarg.h>
6013#include <string.h>
6014#include <float.h>
d7040cdb 6015
ce2cded5
L
6016int
6017main ()
6018{
d7040cdb 6019
ce2cded5
L
6020 ;
6021 return 0;
6022}
6023_ACEOF
6024rm -f conftest.$ac_objext
6025if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6026 (eval $ac_compile) 2>conftest.er1
6027 ac_status=$?
6028 grep -v '^ *+' conftest.er1 >conftest.err
6029 rm -f conftest.er1
6030 cat conftest.err >&5
6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); } &&
6033 { ac_try='test -z "$ac_c_werror_flag"
6034 || test ! -s conftest.err'
6035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6036 (eval $ac_try) 2>&5
6037 ac_status=$?
6038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039 (exit $ac_status); }; } &&
6040 { ac_try='test -s conftest.$ac_objext'
6041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6042 (eval $ac_try) 2>&5
6043 ac_status=$?
6044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6045 (exit $ac_status); }; }; then
6046 ac_cv_header_stdc=yes
13b2be9c 6047else
ce2cded5
L
6048 echo "$as_me: failed program was:" >&5
6049sed 's/^/| /' conftest.$ac_ext >&5
13b2be9c 6050
ce2cded5 6051ac_cv_header_stdc=no
d7040cdb 6052fi
ce2cded5 6053rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c 6054
ce2cded5
L
6055if test $ac_cv_header_stdc = yes; then
6056 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6057 cat >conftest.$ac_ext <<_ACEOF
6058/* confdefs.h. */
6059_ACEOF
6060cat confdefs.h >>conftest.$ac_ext
6061cat >>conftest.$ac_ext <<_ACEOF
6062/* end confdefs.h. */
6063#include <string.h>
6064
6065_ACEOF
6066if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6067 $EGREP "memchr" >/dev/null 2>&1; then
6068 :
13b2be9c 6069else
ce2cded5 6070 ac_cv_header_stdc=no
13b2be9c 6071fi
ce2cded5 6072rm -f conftest*
13b2be9c
DJ
6073
6074fi
13b2be9c 6075
ce2cded5
L
6076if test $ac_cv_header_stdc = yes; then
6077 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6078 cat >conftest.$ac_ext <<_ACEOF
6079/* confdefs.h. */
6080_ACEOF
6081cat confdefs.h >>conftest.$ac_ext
6082cat >>conftest.$ac_ext <<_ACEOF
6083/* end confdefs.h. */
6084#include <stdlib.h>
13b2be9c 6085
ce2cded5
L
6086_ACEOF
6087if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6088 $EGREP "free" >/dev/null 2>&1; then
6089 :
6090else
6091 ac_cv_header_stdc=no
6092fi
6093rm -f conftest*
c8615825 6094
ce2cded5 6095fi
d7040cdb 6096
ce2cded5
L
6097if test $ac_cv_header_stdc = yes; then
6098 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6099 if test "$cross_compiling" = yes; then
6100 :
6101else
6102 cat >conftest.$ac_ext <<_ACEOF
6103/* confdefs.h. */
6104_ACEOF
6105cat confdefs.h >>conftest.$ac_ext
6106cat >>conftest.$ac_ext <<_ACEOF
6107/* end confdefs.h. */
6108#include <ctype.h>
6109#if ((' ' & 0x0FF) == 0x020)
6110# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6111# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6112#else
6113# define ISLOWER(c) \
6114 (('a' <= (c) && (c) <= 'i') \
6115 || ('j' <= (c) && (c) <= 'r') \
6116 || ('s' <= (c) && (c) <= 'z'))
6117# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6118#endif
d7040cdb 6119
ce2cded5
L
6120#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6121int
6122main ()
6123{
6124 int i;
6125 for (i = 0; i < 256; i++)
6126 if (XOR (islower (i), ISLOWER (i))
6127 || toupper (i) != TOUPPER (i))
6128 exit(2);
6129 exit (0);
6130}
6131_ACEOF
6132rm -f conftest$ac_exeext
6133if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6134 (eval $ac_link) 2>&5
6135 ac_status=$?
6136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6139 (eval $ac_try) 2>&5
6140 ac_status=$?
6141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142 (exit $ac_status); }; }; then
6143 :
6144else
6145 echo "$as_me: program exited with status $ac_status" >&5
6146echo "$as_me: failed program was:" >&5
6147sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 6148
ce2cded5
L
6149( exit $ac_status )
6150ac_cv_header_stdc=no
6151fi
6152rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6153fi
6154fi
6155fi
6156echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6157echo "${ECHO_T}$ac_cv_header_stdc" >&6
6158if test $ac_cv_header_stdc = yes; then
d7040cdb 6159
ce2cded5
L
6160cat >>confdefs.h <<\_ACEOF
6161#define STDC_HEADERS 1
6162_ACEOF
d7040cdb 6163
ce2cded5 6164fi
d7040cdb 6165
ce2cded5 6166# On IRIX 5.3, sys/types and inttypes.h are conflicting.
d7040cdb 6167
d7040cdb 6168
d7040cdb 6169
d7040cdb 6170
d7040cdb 6171
d7040cdb 6172
d7040cdb 6173
d7040cdb 6174
d7040cdb 6175
ce2cded5
L
6176for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6177 inttypes.h stdint.h unistd.h
6178do
6179as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6180echo "$as_me:$LINENO: checking for $ac_header" >&5
6181echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6182if eval "test \"\${$as_ac_Header+set}\" = set"; then
6183 echo $ECHO_N "(cached) $ECHO_C" >&6
6184else
6185 cat >conftest.$ac_ext <<_ACEOF
6186/* confdefs.h. */
6187_ACEOF
6188cat confdefs.h >>conftest.$ac_ext
6189cat >>conftest.$ac_ext <<_ACEOF
6190/* end confdefs.h. */
6191$ac_includes_default
d7040cdb 6192
ce2cded5
L
6193#include <$ac_header>
6194_ACEOF
6195rm -f conftest.$ac_objext
6196if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6197 (eval $ac_compile) 2>conftest.er1
6198 ac_status=$?
6199 grep -v '^ *+' conftest.er1 >conftest.err
6200 rm -f conftest.er1
6201 cat conftest.err >&5
6202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203 (exit $ac_status); } &&
6204 { ac_try='test -z "$ac_c_werror_flag"
6205 || test ! -s conftest.err'
6206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6207 (eval $ac_try) 2>&5
6208 ac_status=$?
6209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210 (exit $ac_status); }; } &&
6211 { ac_try='test -s conftest.$ac_objext'
6212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6213 (eval $ac_try) 2>&5
6214 ac_status=$?
6215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216 (exit $ac_status); }; }; then
6217 eval "$as_ac_Header=yes"
6218else
6219 echo "$as_me: failed program was:" >&5
6220sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 6221
ce2cded5
L
6222eval "$as_ac_Header=no"
6223fi
6224rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6225fi
6226echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6227echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6228if test `eval echo '${'$as_ac_Header'}'` = yes; then
6229 cat >>confdefs.h <<_ACEOF
6230#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6231_ACEOF
d7040cdb 6232
ce2cded5 6233fi
d7040cdb 6234
ce2cded5 6235done
d7040cdb 6236
d7040cdb 6237
d7040cdb 6238
ce2cded5
L
6239for ac_header in dlfcn.h
6240do
6241as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6242echo "$as_me:$LINENO: checking for $ac_header" >&5
6243echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6244if eval "test \"\${$as_ac_Header+set}\" = set"; then
6245 echo $ECHO_N "(cached) $ECHO_C" >&6
6246else
6247 cat >conftest.$ac_ext <<_ACEOF
6248/* confdefs.h. */
6249_ACEOF
6250cat confdefs.h >>conftest.$ac_ext
6251cat >>conftest.$ac_ext <<_ACEOF
6252/* end confdefs.h. */
6253$ac_includes_default
d7040cdb 6254
ce2cded5
L
6255#include <$ac_header>
6256_ACEOF
6257rm -f conftest.$ac_objext
6258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6259 (eval $ac_compile) 2>conftest.er1
6260 ac_status=$?
6261 grep -v '^ *+' conftest.er1 >conftest.err
6262 rm -f conftest.er1
6263 cat conftest.err >&5
6264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265 (exit $ac_status); } &&
6266 { ac_try='test -z "$ac_c_werror_flag"
6267 || test ! -s conftest.err'
6268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6269 (eval $ac_try) 2>&5
6270 ac_status=$?
6271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272 (exit $ac_status); }; } &&
6273 { ac_try='test -s conftest.$ac_objext'
6274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6275 (eval $ac_try) 2>&5
6276 ac_status=$?
6277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6278 (exit $ac_status); }; }; then
6279 eval "$as_ac_Header=yes"
6280else
6281 echo "$as_me: failed program was:" >&5
6282sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 6283
ce2cded5
L
6284eval "$as_ac_Header=no"
6285fi
6286rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6287fi
6288echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6289echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6290if test `eval echo '${'$as_ac_Header'}'` = yes; then
6291 cat >>confdefs.h <<_ACEOF
6292#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6293_ACEOF
d7040cdb 6294
ce2cded5 6295fi
d7040cdb 6296
ce2cded5 6297done
d7040cdb 6298
d7040cdb 6299
d7040cdb 6300
ce2cded5
L
6301# This can be used to rebuild libtool when needed
6302LIBTOOL_DEPS="$ltmain"
d7040cdb 6303
ce2cded5
L
6304# Always use our own libtool.
6305LIBTOOL='$(SHELL) $(top_builddir)/libtool'
d7040cdb 6306
d7040cdb 6307
d7040cdb 6308
d7040cdb
SE
6309
6310
6311
6312
6313
6314
d7040cdb 6315
d7040cdb 6316
ab509236 6317
ab509236 6318
d7040cdb
SE
6319
6320
6321
6322
6323
13b2be9c 6324
13b2be9c 6325
13b2be9c 6326
13b2be9c 6327
d7040cdb
SE
6328
6329
6330
ce2cded5 6331test -z "$LN_S" && LN_S="ln -s"
d7040cdb
SE
6332
6333
d7040cdb 6334
d7040cdb 6335
d7040cdb
SE
6336
6337
6338
6339
6340
6341
ce2cded5
L
6342
6343
6344
6345
6346if test -n "${ZSH_VERSION+set}" ; then
6347 setopt NO_GLOB_SUBST
6348fi
6349
6350echo "$as_me:$LINENO: checking for objdir" >&5
6351echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6352if test "${lt_cv_objdir+set}" = set; then
d7040cdb
SE
6353 echo $ECHO_N "(cached) $ECHO_C" >&6
6354else
ce2cded5
L
6355 rm -f .libs 2>/dev/null
6356mkdir .libs 2>/dev/null
6357if test -d .libs; then
6358 lt_cv_objdir=.libs
6359else
6360 # MS-DOS does not allow filenames that begin with a dot.
6361 lt_cv_objdir=_libs
d7040cdb 6362fi
ce2cded5
L
6363rmdir .libs 2>/dev/null
6364fi
6365echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6366echo "${ECHO_T}$lt_cv_objdir" >&6
6367objdir=$lt_cv_objdir
d7040cdb
SE
6368
6369
6370
6371
d7040cdb 6372
ce2cded5
L
6373cat >>confdefs.h <<_ACEOF
6374#define LT_OBJDIR "$lt_cv_objdir/"
6375_ACEOF
d7040cdb
SE
6376
6377
6378
6379
6380
d7040cdb 6381
d7040cdb 6382
d7040cdb 6383
d7040cdb 6384
d7040cdb 6385
d7040cdb 6386
d7040cdb 6387
d7040cdb 6388
d7040cdb 6389
d7040cdb 6390
d7040cdb 6391
d7040cdb 6392
ce2cded5
L
6393case $host_os in
6394aix3*)
6395 # AIX sometimes has problems with the GCC collect2 program. For some
6396 # reason, if we set the COLLECT_NAMES environment variable, the problems
6397 # vanish in a puff of smoke.
6398 if test "X${COLLECT_NAMES+set}" != Xset; then
6399 COLLECT_NAMES=
6400 export COLLECT_NAMES
6401 fi
6402 ;;
6403esac
d7040cdb 6404
ce2cded5
L
6405# Sed substitution that helps us do robust quoting. It backslashifies
6406# metacharacters that are still active within double-quoted strings.
6407sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
d7040cdb 6408
ce2cded5
L
6409# Same as above, but do not quote variable references.
6410double_quote_subst='s/\(["`\\]\)/\\\1/g'
d7040cdb 6411
ce2cded5
L
6412# Sed substitution to delay expansion of an escaped shell variable in a
6413# double_quote_subst'ed string.
6414delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
d7040cdb 6415
ce2cded5
L
6416# Sed substitution to delay expansion of an escaped single quote.
6417delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
d7040cdb 6418
ce2cded5
L
6419# Sed substitution to avoid accidental globbing in evaled expressions
6420no_glob_subst='s/\*/\\\*/g'
d7040cdb 6421
ce2cded5
L
6422# Global variables:
6423ofile=libtool
6424can_build_shared=yes
d7040cdb 6425
ce2cded5
L
6426# All known linkers require a `.a' archive for static linking (except MSVC,
6427# which needs '.lib').
6428libext=a
d7040cdb 6429
ce2cded5 6430with_gnu_ld="$lt_cv_prog_gnu_ld"
d7040cdb 6431
ce2cded5
L
6432old_CC="$CC"
6433old_CFLAGS="$CFLAGS"
d7040cdb 6434
ce2cded5
L
6435# Set sane defaults for various variables
6436test -z "$CC" && CC=cc
6437test -z "$LTCC" && LTCC=$CC
6438test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6439test -z "$LD" && LD=ld
6440test -z "$ac_objext" && ac_objext=o
6441
6442for cc_temp in $compiler""; do
6443 case $cc_temp in
6444 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6445 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6446 \-*) ;;
6447 *) break;;
6448 esac
6449done
6450cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6451
6452
6453# Only perform the check for file, if the check method requires it
6454test -z "$MAGIC_CMD" && MAGIC_CMD=file
6455case $deplibs_check_method in
6456file_magic*)
6457 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6458 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6459echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6460if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6461 echo $ECHO_N "(cached) $ECHO_C" >&6
6462else
6463 case $MAGIC_CMD in
6464[\\/*] | ?:[\\/]*)
6465 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6466 ;;
6467*)
6468 lt_save_MAGIC_CMD="$MAGIC_CMD"
6469 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6470 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6471 for ac_dir in $ac_dummy; do
6472 IFS="$lt_save_ifs"
6473 test -z "$ac_dir" && ac_dir=.
6474 if test -f $ac_dir/${ac_tool_prefix}file; then
6475 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6476 if test -n "$file_magic_test_file"; then
6477 case $deplibs_check_method in
6478 "file_magic "*)
6479 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6480 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6481 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6482 $EGREP "$file_magic_regex" > /dev/null; then
6483 :
d7040cdb 6484 else
ce2cded5 6485 cat <<_LT_EOF 1>&2
d7040cdb 6486
ce2cded5
L
6487*** Warning: the command libtool uses to detect shared libraries,
6488*** $file_magic_cmd, produces output that libtool cannot recognize.
6489*** The result is that libtool may fail to recognize shared libraries
6490*** as such. This will affect the creation of libtool libraries that
6491*** depend on shared libraries, but programs linked with such libtool
6492*** libraries will work regardless of this problem. Nevertheless, you
6493*** may want to report the problem to your system manager and/or to
6494*** bug-libtool@gnu.org
d7040cdb 6495
ce2cded5
L
6496_LT_EOF
6497 fi ;;
6498 esac
d7040cdb 6499 fi
ce2cded5 6500 break
d7040cdb 6501 fi
ce2cded5
L
6502 done
6503 IFS="$lt_save_ifs"
6504 MAGIC_CMD="$lt_save_MAGIC_CMD"
6505 ;;
6506esac
6507fi
d7040cdb 6508
ce2cded5
L
6509MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6510if test -n "$MAGIC_CMD"; then
6511 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6512echo "${ECHO_T}$MAGIC_CMD" >&6
6513else
6514 echo "$as_me:$LINENO: result: no" >&5
6515echo "${ECHO_T}no" >&6
6516fi
d7040cdb 6517
d7040cdb 6518
d7040cdb 6519
d7040cdb 6520
d7040cdb 6521
ce2cded5
L
6522if test -z "$lt_cv_path_MAGIC_CMD"; then
6523 if test -n "$ac_tool_prefix"; then
6524 echo "$as_me:$LINENO: checking for file" >&5
6525echo $ECHO_N "checking for file... $ECHO_C" >&6
6526if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6527 echo $ECHO_N "(cached) $ECHO_C" >&6
6528else
6529 case $MAGIC_CMD in
6530[\\/*] | ?:[\\/]*)
6531 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6532 ;;
6533*)
6534 lt_save_MAGIC_CMD="$MAGIC_CMD"
6535 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6536 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6537 for ac_dir in $ac_dummy; do
6538 IFS="$lt_save_ifs"
6539 test -z "$ac_dir" && ac_dir=.
6540 if test -f $ac_dir/file; then
6541 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6542 if test -n "$file_magic_test_file"; then
6543 case $deplibs_check_method in
6544 "file_magic "*)
6545 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6546 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6547 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6548 $EGREP "$file_magic_regex" > /dev/null; then
6549 :
d7040cdb 6550 else
ce2cded5
L
6551 cat <<_LT_EOF 1>&2
6552
6553*** Warning: the command libtool uses to detect shared libraries,
6554*** $file_magic_cmd, produces output that libtool cannot recognize.
6555*** The result is that libtool may fail to recognize shared libraries
6556*** as such. This will affect the creation of libtool libraries that
6557*** depend on shared libraries, but programs linked with such libtool
6558*** libraries will work regardless of this problem. Nevertheless, you
6559*** may want to report the problem to your system manager and/or to
6560*** bug-libtool@gnu.org
6561
6562_LT_EOF
6563 fi ;;
d7040cdb 6564 esac
d7040cdb 6565 fi
ce2cded5
L
6566 break
6567 fi
6568 done
6569 IFS="$lt_save_ifs"
6570 MAGIC_CMD="$lt_save_MAGIC_CMD"
6571 ;;
6572esac
6573fi
d7040cdb 6574
ce2cded5
L
6575MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6576if test -n "$MAGIC_CMD"; then
6577 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6578echo "${ECHO_T}$MAGIC_CMD" >&6
6579else
6580 echo "$as_me:$LINENO: result: no" >&5
6581echo "${ECHO_T}no" >&6
6582fi
d7040cdb 6583
d7040cdb 6584
ce2cded5
L
6585 else
6586 MAGIC_CMD=:
6587 fi
d7040cdb 6588fi
d7040cdb 6589
ce2cded5
L
6590 fi
6591 ;;
6592esac
d7040cdb 6593
ce2cded5 6594# Use C for the default configuration in the libtool script
d7040cdb 6595
ce2cded5
L
6596lt_save_CC="$CC"
6597ac_ext=c
6598ac_cpp='$CPP $CPPFLAGS'
6599ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6600ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6601ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 6602
d7040cdb 6603
ce2cded5
L
6604# Source file extension for C test sources.
6605ac_ext=c
d7040cdb 6606
ce2cded5
L
6607# Object file extension for compiled C test sources.
6608objext=o
6609objext=$objext
d7040cdb 6610
ce2cded5
L
6611# Code to be used in simple compile tests
6612lt_simple_compile_test_code="int some_variable = 0;"
6613
6614# Code to be used in simple link tests
6615lt_simple_link_test_code='int main(){return(0);}'
6616
6617
6618
6619
6620
6621
6622
6623# If no C compiler was specified, use CC.
6624LTCC=${LTCC-"$CC"}
6625
6626# If no C compiler flags were specified, use CFLAGS.
6627LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6628
6629# Allow CC to be a program name with arguments.
6630compiler=$CC
6631
6632# Save the default compiler, since it gets overwritten when the other
6633# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6634compiler_DEFAULT=$CC
6635
6636# save warnings/boilerplate of simple test code
6637ac_outfile=conftest.$ac_objext
6638echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6639eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6640_lt_compiler_boilerplate=`cat conftest.err`
6641$RM conftest*
6642
6643ac_outfile=conftest.$ac_objext
6644echo "$lt_simple_link_test_code" >conftest.$ac_ext
6645eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6646_lt_linker_boilerplate=`cat conftest.err`
6647$RM conftest*
6648
6649
6650## CAVEAT EMPTOR:
6651## There is no encapsulation within the following macros, do not change
6652## the running order or otherwise move them around unless you know exactly
6653## what you are doing...
6654if test -n "$compiler"; then
6655
6656lt_prog_compiler_no_builtin_flag=
6657
6658if test "$GCC" = yes; then
6659 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6660
6661 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6662echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6663if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6664 echo $ECHO_N "(cached) $ECHO_C" >&6
6665else
6666 lt_cv_prog_compiler_rtti_exceptions=no
6667 ac_outfile=conftest.$ac_objext
6668 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6669 lt_compiler_flag="-fno-rtti -fno-exceptions"
6670 # Insert the option either (1) after the last *FLAGS variable, or
6671 # (2) before a word containing "conftest.", or (3) at the end.
6672 # Note that $ac_compile itself does not contain backslashes and begins
6673 # with a dollar sign (not a hyphen), so the echo should work correctly.
6674 # The option is referenced via a variable to avoid confusing sed.
6675 lt_compile=`echo "$ac_compile" | $SED \
6676 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6677 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6678 -e 's:$: $lt_compiler_flag:'`
6194aaab 6679 (eval echo "\"\$as_me:6679: $lt_compile\"" >&5)
ce2cded5
L
6680 (eval "$lt_compile" 2>conftest.err)
6681 ac_status=$?
6682 cat conftest.err >&5
6194aaab 6683 echo "$as_me:6683: \$? = $ac_status" >&5
ce2cded5
L
6684 if (exit $ac_status) && test -s "$ac_outfile"; then
6685 # The compiler can only warn and ignore the option if not recognized
6686 # So say no if there are warnings other than the usual output.
6687 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6688 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6689 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6690 lt_cv_prog_compiler_rtti_exceptions=yes
6691 fi
6692 fi
6693 $RM conftest*
6694
6695fi
6696echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6697echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6698
6699if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6700 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6701else
6702 :
6703fi
6704
6705fi
6706
6707
6708
6709
6710
6711
6712 lt_prog_compiler_wl=
6713lt_prog_compiler_pic=
6714lt_prog_compiler_static=
6715
6716echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6717echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6718
6719 if test "$GCC" = yes; then
6720 lt_prog_compiler_wl='-Wl,'
6721 lt_prog_compiler_static='-static'
6722
6723 case $host_os in
6724 aix*)
6725 # All AIX code is PIC.
6726 if test "$host_cpu" = ia64; then
6727 # AIX 5 now supports IA64 processor
6728 lt_prog_compiler_static='-Bstatic'
6729 fi
6730 ;;
d7040cdb
SE
6731
6732 amigaos*)
6733 if test "$host_cpu" = m68k; then
ce2cded5
L
6734 # FIXME: we need at least 68020 code to build shared libraries, but
6735 # adding the `-m68020' flag to GCC prevents building anything better,
6736 # like `-m68040'.
6737 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
d7040cdb 6738 fi
d7040cdb
SE
6739 ;;
6740
ce2cded5
L
6741 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6742 # PIC is the default for these OSes.
d7040cdb
SE
6743 ;;
6744
ce2cded5
L
6745 mingw* | cygwin* | pw32* | os2*)
6746 # This hack is so that the source file can tell whether it is being
6747 # built for inclusion in a dll (and should export symbols for example).
6748 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6749 # (--disable-auto-import) libraries
6750 lt_prog_compiler_pic='-DDLL_EXPORT'
d7040cdb
SE
6751 ;;
6752
6753 darwin* | rhapsody*)
ce2cded5
L
6754 # PIC is the default on this platform
6755 # Common symbols not allowed in MH_DYLIB files
6756 lt_prog_compiler_pic='-fno-common'
6757 ;;
6758
6759 hpux*)
6760 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6761 # not for PA HP-UX.
6762 case $host_cpu in
6763 hppa*64*|ia64*)
6764 # +Z the default
d7040cdb 6765 ;;
ce2cded5
L
6766 *)
6767 lt_prog_compiler_pic='-fPIC'
d7040cdb
SE
6768 ;;
6769 esac
ce2cded5 6770 ;;
d7040cdb 6771
ce2cded5
L
6772 interix[3-9]*)
6773 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6774 # Instead, we relocate shared libraries at runtime.
d7040cdb
SE
6775 ;;
6776
ce2cded5
L
6777 msdosdjgpp*)
6778 # Just because we use GCC doesn't mean we suddenly get shared libraries
6779 # on systems that don't support them.
6780 lt_prog_compiler_can_build_shared=no
6781 enable_shared=no
d7040cdb
SE
6782 ;;
6783
ce2cded5
L
6784 *nto* | *qnx*)
6785 # QNX uses GNU C++, but need to define -shared option too, otherwise
6786 # it will coredump.
6787 lt_prog_compiler_pic='-fPIC -shared'
d7040cdb
SE
6788 ;;
6789
ce2cded5
L
6790 sysv4*MP*)
6791 if test -d /usr/nec; then
6792 lt_prog_compiler_pic=-Kconform_pic
6793 fi
d7040cdb
SE
6794 ;;
6795
ce2cded5
L
6796 *)
6797 lt_prog_compiler_pic='-fPIC'
d7040cdb 6798 ;;
ce2cded5
L
6799 esac
6800 else
6801 # PORTME Check for flag to pass linker flags through the system compiler.
6802 case $host_os in
6803 aix*)
6804 lt_prog_compiler_wl='-Wl,'
6805 if test "$host_cpu" = ia64; then
6806 # AIX 5 now supports IA64 processor
6807 lt_prog_compiler_static='-Bstatic'
d7040cdb 6808 else
ce2cded5 6809 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
d7040cdb 6810 fi
ce2cded5
L
6811 ;;
6812 darwin*)
6813 # PIC is the default on this platform
6814 # Common symbols not allowed in MH_DYLIB files
6815 case $cc_basename in
6816 xlc*)
6817 lt_prog_compiler_pic='-qnocommon'
6818 lt_prog_compiler_wl='-Wl,'
6819 ;;
6820 esac
6821 ;;
d7040cdb 6822
ce2cded5
L
6823 mingw* | cygwin* | pw32* | os2*)
6824 # This hack is so that the source file can tell whether it is being
6825 # built for inclusion in a dll (and should export symbols for example).
6826 lt_prog_compiler_pic='-DDLL_EXPORT'
d7040cdb
SE
6827 ;;
6828
ce2cded5
L
6829 hpux9* | hpux10* | hpux11*)
6830 lt_prog_compiler_wl='-Wl,'
6831 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6832 # not for PA HP-UX.
6833 case $host_cpu in
6834 hppa*64*|ia64*)
6835 # +Z the default
6836 ;;
6837 *)
6838 lt_prog_compiler_pic='+Z'
6839 ;;
6840 esac
6841 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6842 lt_prog_compiler_static='${wl}-a ${wl}archive'
d7040cdb
SE
6843 ;;
6844
ce2cded5
L
6845 irix5* | irix6* | nonstopux*)
6846 lt_prog_compiler_wl='-Wl,'
6847 # PIC (with -KPIC) is the default.
6848 lt_prog_compiler_static='-non_shared'
6849 ;;
d7040cdb 6850
ce2cded5
L
6851 linux* | k*bsd*-gnu)
6852 case $cc_basename in
6853 icc* | ecc*)
6854 lt_prog_compiler_wl='-Wl,'
6855 lt_prog_compiler_pic='-KPIC'
6856 lt_prog_compiler_static='-static'
6857 ;;
6858 pgcc* | pgf77* | pgf90* | pgf95*)
6859 # Portland Group compilers (*not* the Pentium gcc compiler,
6860 # which looks to be a dead project)
6861 lt_prog_compiler_wl='-Wl,'
6862 lt_prog_compiler_pic='-fpic'
6863 lt_prog_compiler_static='-Bstatic'
6864 ;;
6865 ccc*)
6866 lt_prog_compiler_wl='-Wl,'
6867 # All Alpha code is PIC.
6868 lt_prog_compiler_static='-non_shared'
6869 ;;
6870 *)
6871 case `$CC -V 2>&1 | sed 5q` in
6872 *Sun\ C*)
6873 # Sun C 5.9
6874 lt_prog_compiler_pic='-KPIC'
6875 lt_prog_compiler_static='-Bstatic'
6876 lt_prog_compiler_wl='-Wl,'
d7040cdb 6877 ;;
ce2cded5
L
6878 *Sun\ F*)
6879 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6880 lt_prog_compiler_pic='-KPIC'
6881 lt_prog_compiler_static='-Bstatic'
6882 lt_prog_compiler_wl=''
d7040cdb
SE
6883 ;;
6884 esac
ce2cded5
L
6885 ;;
6886 esac
d7040cdb
SE
6887 ;;
6888
ce2cded5
L
6889 newsos6)
6890 lt_prog_compiler_pic='-KPIC'
6891 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
6892 ;;
6893
ce2cded5
L
6894 *nto* | *qnx*)
6895 # QNX uses GNU C++, but need to define -shared option too, otherwise
6896 # it will coredump.
6897 lt_prog_compiler_pic='-fPIC -shared'
d7040cdb
SE
6898 ;;
6899
ce2cded5
L
6900 osf3* | osf4* | osf5*)
6901 lt_prog_compiler_wl='-Wl,'
6902 # All OSF/1 code is PIC.
6903 lt_prog_compiler_static='-non_shared'
d7040cdb
SE
6904 ;;
6905
ce2cded5
L
6906 rdos*)
6907 lt_prog_compiler_static='-non_shared'
d7040cdb
SE
6908 ;;
6909
6910 solaris*)
ce2cded5
L
6911 lt_prog_compiler_pic='-KPIC'
6912 lt_prog_compiler_static='-Bstatic'
6913 case $cc_basename in
6914 f77* | f90* | f95*)
6915 lt_prog_compiler_wl='-Qoption ld ';;
d7040cdb 6916 *)
ce2cded5 6917 lt_prog_compiler_wl='-Wl,';;
d7040cdb 6918 esac
d7040cdb
SE
6919 ;;
6920
6921 sunos4*)
ce2cded5
L
6922 lt_prog_compiler_wl='-Qoption ld '
6923 lt_prog_compiler_pic='-PIC'
6924 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
6925 ;;
6926
ce2cded5
L
6927 sysv4 | sysv4.2uw2* | sysv4.3*)
6928 lt_prog_compiler_wl='-Wl,'
6929 lt_prog_compiler_pic='-KPIC'
6930 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
6931 ;;
6932
6933 sysv4*MP*)
ce2cded5
L
6934 if test -d /usr/nec ;then
6935 lt_prog_compiler_pic='-Kconform_pic'
6936 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
6937 fi
6938 ;;
6939
ce2cded5
L
6940 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6941 lt_prog_compiler_wl='-Wl,'
6942 lt_prog_compiler_pic='-KPIC'
6943 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
6944 ;;
6945
ce2cded5
L
6946 unicos*)
6947 lt_prog_compiler_wl='-Wl,'
6948 lt_prog_compiler_can_build_shared=no
d7040cdb
SE
6949 ;;
6950
6951 uts4*)
ce2cded5
L
6952 lt_prog_compiler_pic='-pic'
6953 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
6954 ;;
6955
6956 *)
ce2cded5 6957 lt_prog_compiler_can_build_shared=no
d7040cdb
SE
6958 ;;
6959 esac
d7040cdb
SE
6960 fi
6961
ce2cded5
L
6962case $host_os in
6963 # For platforms which do not support PIC, -DPIC is meaningless:
6964 *djgpp*)
6965 lt_prog_compiler_pic=
6966 ;;
6967 *)
6968 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6969 ;;
6970esac
6971echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6972echo "${ECHO_T}$lt_prog_compiler_pic" >&6
d7040cdb
SE
6973
6974
6975
6976
6977
6978
6979#
ce2cded5 6980# Check to make sure the PIC flag actually works.
d7040cdb 6981#
ce2cded5
L
6982if test -n "$lt_prog_compiler_pic"; then
6983 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6984echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6985if test "${lt_prog_compiler_pic_works+set}" = set; then
6986 echo $ECHO_N "(cached) $ECHO_C" >&6
6987else
6988 lt_prog_compiler_pic_works=no
6989 ac_outfile=conftest.$ac_objext
6990 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6991 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6992 # Insert the option either (1) after the last *FLAGS variable, or
6993 # (2) before a word containing "conftest.", or (3) at the end.
6994 # Note that $ac_compile itself does not contain backslashes and begins
6995 # with a dollar sign (not a hyphen), so the echo should work correctly.
6996 # The option is referenced via a variable to avoid confusing sed.
6997 lt_compile=`echo "$ac_compile" | $SED \
6998 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6999 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7000 -e 's:$: $lt_compiler_flag:'`
6194aaab 7001 (eval echo "\"\$as_me:7001: $lt_compile\"" >&5)
ce2cded5
L
7002 (eval "$lt_compile" 2>conftest.err)
7003 ac_status=$?
7004 cat conftest.err >&5
6194aaab 7005 echo "$as_me:7005: \$? = $ac_status" >&5
ce2cded5
L
7006 if (exit $ac_status) && test -s "$ac_outfile"; then
7007 # The compiler can only warn and ignore the option if not recognized
7008 # So say no if there are warnings other than the usual output.
7009 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7010 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7011 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7012 lt_prog_compiler_pic_works=yes
7013 fi
7014 fi
7015 $RM conftest*
d7040cdb 7016
ce2cded5
L
7017fi
7018echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7019echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
d7040cdb 7020
ce2cded5
L
7021if test x"$lt_prog_compiler_pic_works" = xyes; then
7022 case $lt_prog_compiler_pic in
7023 "" | " "*) ;;
7024 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7025 esac
7026else
7027 lt_prog_compiler_pic=
7028 lt_prog_compiler_can_build_shared=no
7029fi
d7040cdb 7030
ce2cded5 7031fi
d7040cdb
SE
7032
7033
7034
7035
7036
7037
ce2cded5
L
7038#
7039# Check to make sure the static flag actually works.
7040#
7041wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7042echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7043echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7044if test "${lt_prog_compiler_static_works+set}" = set; then
7045 echo $ECHO_N "(cached) $ECHO_C" >&6
7046else
7047 lt_prog_compiler_static_works=no
7048 save_LDFLAGS="$LDFLAGS"
7049 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7050 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7051 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7052 # The linker can only warn and ignore the option if not recognized
7053 # So say no if there are warnings
7054 if test -s conftest.err; then
7055 # Append any errors to the config.log.
7056 cat conftest.err 1>&5
7057 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7058 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7059 if diff conftest.exp conftest.er2 >/dev/null; then
7060 lt_prog_compiler_static_works=yes
7061 fi
7062 else
7063 lt_prog_compiler_static_works=yes
7064 fi
7065 fi
7066 $RM conftest*
7067 LDFLAGS="$save_LDFLAGS"
d7040cdb 7068
ce2cded5
L
7069fi
7070echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7071echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
d7040cdb 7072
ce2cded5
L
7073if test x"$lt_prog_compiler_static_works" = xyes; then
7074 :
7075else
7076 lt_prog_compiler_static=
7077fi
d7040cdb
SE
7078
7079
7080
7081
7082
7083
7084
ce2cded5
L
7085 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7086echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7087if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7088 echo $ECHO_N "(cached) $ECHO_C" >&6
7089else
7090 lt_cv_prog_compiler_c_o=no
7091 $RM -r conftest 2>/dev/null
7092 mkdir conftest
7093 cd conftest
7094 mkdir out
7095 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 7096
ce2cded5
L
7097 lt_compiler_flag="-o out/conftest2.$ac_objext"
7098 # Insert the option either (1) after the last *FLAGS variable, or
7099 # (2) before a word containing "conftest.", or (3) at the end.
7100 # Note that $ac_compile itself does not contain backslashes and begins
7101 # with a dollar sign (not a hyphen), so the echo should work correctly.
7102 lt_compile=`echo "$ac_compile" | $SED \
7103 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7104 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7105 -e 's:$: $lt_compiler_flag:'`
6194aaab 7106 (eval echo "\"\$as_me:7106: $lt_compile\"" >&5)
ce2cded5
L
7107 (eval "$lt_compile" 2>out/conftest.err)
7108 ac_status=$?
7109 cat out/conftest.err >&5
6194aaab 7110 echo "$as_me:7110: \$? = $ac_status" >&5
ce2cded5
L
7111 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7112 then
7113 # The compiler can only warn and ignore the option if not recognized
7114 # So say no if there are warnings
7115 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7116 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7117 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7118 lt_cv_prog_compiler_c_o=yes
7119 fi
7120 fi
7121 chmod u+w . 2>&5
7122 $RM conftest*
7123 # SGI C++ compiler will create directory out/ii_files/ for
7124 # template instantiation
7125 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7126 $RM out/* && rmdir out
7127 cd ..
7128 $RM -r conftest
7129 $RM conftest*
d7040cdb 7130
ce2cded5
L
7131fi
7132echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7133echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
d7040cdb
SE
7134
7135
7136
7137
7138
7139
ce2cded5
L
7140 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7141echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7142if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7143 echo $ECHO_N "(cached) $ECHO_C" >&6
7144else
7145 lt_cv_prog_compiler_c_o=no
7146 $RM -r conftest 2>/dev/null
7147 mkdir conftest
7148 cd conftest
7149 mkdir out
7150 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 7151
ce2cded5
L
7152 lt_compiler_flag="-o out/conftest2.$ac_objext"
7153 # Insert the option either (1) after the last *FLAGS variable, or
7154 # (2) before a word containing "conftest.", or (3) at the end.
7155 # Note that $ac_compile itself does not contain backslashes and begins
7156 # with a dollar sign (not a hyphen), so the echo should work correctly.
7157 lt_compile=`echo "$ac_compile" | $SED \
7158 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7159 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7160 -e 's:$: $lt_compiler_flag:'`
6194aaab 7161 (eval echo "\"\$as_me:7161: $lt_compile\"" >&5)
ce2cded5
L
7162 (eval "$lt_compile" 2>out/conftest.err)
7163 ac_status=$?
7164 cat out/conftest.err >&5
6194aaab 7165 echo "$as_me:7165: \$? = $ac_status" >&5
ce2cded5
L
7166 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7167 then
7168 # The compiler can only warn and ignore the option if not recognized
7169 # So say no if there are warnings
7170 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7171 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7172 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7173 lt_cv_prog_compiler_c_o=yes
7174 fi
7175 fi
7176 chmod u+w . 2>&5
7177 $RM conftest*
7178 # SGI C++ compiler will create directory out/ii_files/ for
7179 # template instantiation
7180 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7181 $RM out/* && rmdir out
7182 cd ..
7183 $RM -r conftest
7184 $RM conftest*
d7040cdb 7185
ce2cded5
L
7186fi
7187echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7188echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
d7040cdb
SE
7189
7190
7191
7192
ce2cded5
L
7193hard_links="nottested"
7194if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7195 # do not overwrite the value of need_locks provided by the user
7196 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7197echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7198 hard_links=yes
7199 $RM conftest*
7200 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7201 touch conftest.a
7202 ln conftest.a conftest.b 2>&5 || hard_links=no
7203 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7204 echo "$as_me:$LINENO: result: $hard_links" >&5
7205echo "${ECHO_T}$hard_links" >&6
7206 if test "$hard_links" = no; then
7207 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7208echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7209 need_locks=warn
7210 fi
7211else
7212 need_locks=no
7213fi
d7040cdb
SE
7214
7215
7216
7217
7218
7219
ce2cded5
L
7220 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7221echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
d7040cdb 7222
ce2cded5
L
7223 runpath_var=
7224 allow_undefined_flag=
7225 always_export_symbols=no
7226 archive_cmds=
7227 archive_expsym_cmds=
7228 compiler_needs_object=no
7229 enable_shared_with_static_runtimes=no
7230 export_dynamic_flag_spec=
7231 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7232 hardcode_automatic=no
7233 hardcode_direct=no
7234 hardcode_direct_absolute=no
7235 hardcode_libdir_flag_spec=
7236 hardcode_libdir_flag_spec_ld=
7237 hardcode_libdir_separator=
7238 hardcode_minus_L=no
7239 hardcode_shlibpath_var=unsupported
7240 inherit_rpath=no
7241 link_all_deplibs=unknown
7242 module_cmds=
7243 module_expsym_cmds=
7244 old_archive_from_new_cmds=
7245 old_archive_from_expsyms_cmds=
7246 thread_safe_flag_spec=
7247 whole_archive_flag_spec=
7248 # include_expsyms should be a list of space-separated symbols to be *always*
7249 # included in the symbol list
7250 include_expsyms=
7251 # exclude_expsyms can be an extended regexp of symbols to exclude
7252 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7253 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7254 # as well as any symbol that contains `d'.
7255 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7256 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7257 # platforms (ab)use it in PIC code, but their linkers get confused if
7258 # the symbol is explicitly referenced. Since portable code cannot
7259 # rely on this symbol name, it's probably fine to never include it in
7260 # preloaded symbol tables.
7261 extract_expsyms_cmds=
d7040cdb 7262
ce2cded5
L
7263 case $host_os in
7264 cygwin* | mingw* | pw32*)
7265 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7266 # When not using gcc, we currently assume that we are using
7267 # Microsoft Visual C++.
7268 if test "$GCC" != yes; then
7269 with_gnu_ld=no
7270 fi
7271 ;;
7272 interix*)
7273 # we just hope/assume this is gcc and not c89 (= MSVC++)
7274 with_gnu_ld=yes
7275 ;;
7276 openbsd*)
7277 with_gnu_ld=no
7278 ;;
7279 esac
d7040cdb 7280
ce2cded5
L
7281 ld_shlibs=yes
7282 if test "$with_gnu_ld" = yes; then
7283 # If archive_cmds runs LD, not CC, wlarc should be empty
7284 wlarc='${wl}'
d7040cdb 7285
ce2cded5
L
7286 # Set some defaults for GNU ld with shared library support. These
7287 # are reset later if shared libraries are not supported. Putting them
7288 # here allows them to be overridden if necessary.
7289 runpath_var=LD_RUN_PATH
7290 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7291 export_dynamic_flag_spec='${wl}--export-dynamic'
7292 # ancient GNU ld didn't support --whole-archive et. al.
7293 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7294 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7295 else
7296 whole_archive_flag_spec=
7297 fi
7298 supports_anon_versioning=no
7299 case `$LD -v 2>&1` in
7300 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7301 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7302 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7303 *\ 2.11.*) ;; # other 2.11 versions
7304 *) supports_anon_versioning=yes ;;
7305 esac
d7040cdb 7306
ce2cded5
L
7307 # See if GNU ld supports shared libraries.
7308 case $host_os in
50e7d84b 7309 aix[3-9]*)
ce2cded5
L
7310 # On AIX/PPC, the GNU linker is very broken
7311 if test "$host_cpu" != ia64; then
7312 ld_shlibs=no
7313 cat <<_LT_EOF 1>&2
d7040cdb 7314
ce2cded5
L
7315*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7316*** to be unable to reliably create shared libraries on AIX.
7317*** Therefore, libtool is disabling shared libraries support. If you
7318*** really care for shared libraries, you may want to modify your PATH
7319*** so that a non-GNU linker is found, and then restart.
d7040cdb 7320
ce2cded5
L
7321_LT_EOF
7322 fi
7323 ;;
d7040cdb 7324
ce2cded5
L
7325 amigaos*)
7326 if test "$host_cpu" = m68k; then
7327 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)'
7328 hardcode_libdir_flag_spec='-L$libdir'
7329 hardcode_minus_L=yes
7330 fi
d7040cdb 7331
ce2cded5
L
7332 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7333 # that the semantics of dynamic libraries on AmigaOS, at least up
7334 # to version 4, is to share data among multiple programs linked
7335 # with the same dynamic library. Since this doesn't match the
7336 # behavior of shared libraries on other platforms, we can't use
7337 # them.
7338 ld_shlibs=no
7339 ;;
d7040cdb 7340
ce2cded5
L
7341 beos*)
7342 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7343 allow_undefined_flag=unsupported
7344 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7345 # support --undefined. This deserves some investigation. FIXME
7346 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7347 else
7348 ld_shlibs=no
7349 fi
7350 ;;
d7040cdb 7351
ce2cded5
L
7352 cygwin* | mingw* | pw32*)
7353 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7354 # as there is no search path for DLLs.
7355 hardcode_libdir_flag_spec='-L$libdir'
7356 allow_undefined_flag=unsupported
7357 always_export_symbols=no
7358 enable_shared_with_static_runtimes=yes
7359 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
d7040cdb 7360
ce2cded5
L
7361 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7362 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7363 # If the export-symbols file already is a .def file (1st line
7364 # is EXPORTS), use it as is; otherwise, prepend...
7365 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7366 cp $export_symbols $output_objdir/$soname.def;
7367 else
7368 echo EXPORTS > $output_objdir/$soname.def;
7369 cat $export_symbols >> $output_objdir/$soname.def;
7370 fi~
7371 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7372 else
7373 ld_shlibs=no
7374 fi
7375 ;;
d7040cdb 7376
ce2cded5
L
7377 interix[3-9]*)
7378 hardcode_direct=no
7379 hardcode_shlibpath_var=no
7380 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7381 export_dynamic_flag_spec='${wl}-E'
7382 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7383 # Instead, shared libraries are loaded at an image base (0x10000000 by
7384 # default) and relocated if they conflict, which is a slow very memory
7385 # consuming and fragmenting process. To avoid this, we pick a random,
7386 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7387 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7388 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7389 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7390 ;;
d7040cdb 7391
ce2cded5
L
7392 gnu* | linux* | tpf* | k*bsd*-gnu)
7393 tmp_diet=no
7394 if test "$host_os" = linux-dietlibc; then
7395 case $cc_basename in
7396 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7397 esac
7398 fi
7399 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7400 && test "$tmp_diet" = no
7401 then
7402 tmp_addflag=
7403 case $cc_basename,$host_cpu in
7404 pgcc*) # Portland Group C compiler
7405 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7406 tmp_addflag=' $pic_flag'
7407 ;;
7408 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7409 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7410 tmp_addflag=' $pic_flag -Mnomain' ;;
7411 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7412 tmp_addflag=' -i_dynamic' ;;
7413 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7414 tmp_addflag=' -i_dynamic -nofor_main' ;;
7415 ifc* | ifort*) # Intel Fortran compiler
7416 tmp_addflag=' -nofor_main' ;;
7417 esac
7418 case `$CC -V 2>&1 | sed 5q` in
7419 *Sun\ C*) # Sun C 5.9
7420 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7421 compiler_needs_object=yes
7422 tmp_sharedflag='-G' ;;
7423 *Sun\ F*) # Sun Fortran 8.3
7424 tmp_sharedflag='-G' ;;
7425 *)
7426 tmp_sharedflag='-shared' ;;
7427 esac
7428 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d7040cdb 7429
ce2cded5
L
7430 if test "x$supports_anon_versioning" = xyes; then
7431 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7432 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7433 echo "local: *; };" >> $output_objdir/$libname.ver~
7434 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7435 fi
7436 else
7437 ld_shlibs=no
7438 fi
7439 ;;
d7040cdb 7440
ce2cded5
L
7441 netbsd*)
7442 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7443 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7444 wlarc=
7445 else
7446 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7447 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7448 fi
7449 ;;
d7040cdb 7450
ce2cded5
L
7451 solaris*)
7452 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7453 ld_shlibs=no
7454 cat <<_LT_EOF 1>&2
d7040cdb 7455
ce2cded5
L
7456*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7457*** create shared libraries on Solaris systems. Therefore, libtool
7458*** is disabling shared libraries support. We urge you to upgrade GNU
7459*** binutils to release 2.9.1 or newer. Another option is to modify
7460*** your PATH or compiler configuration so that the native linker is
7461*** used, and then restart.
d7040cdb 7462
ce2cded5
L
7463_LT_EOF
7464 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7465 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7466 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7467 else
7468 ld_shlibs=no
7469 fi
7470 ;;
d7040cdb 7471
ce2cded5
L
7472 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7473 case `$LD -v 2>&1` in
7474 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7475 ld_shlibs=no
7476 cat <<_LT_EOF 1>&2
d7040cdb 7477
ce2cded5
L
7478*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7479*** reliably create shared libraries on SCO systems. Therefore, libtool
7480*** is disabling shared libraries support. We urge you to upgrade GNU
7481*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7482*** your PATH or compiler configuration so that the native linker is
7483*** used, and then restart.
d7040cdb 7484
ce2cded5
L
7485_LT_EOF
7486 ;;
7487 *)
7488 # For security reasons, it is highly recommended that you always
7489 # use absolute paths for naming shared libraries, and exclude the
7490 # DT_RUNPATH tag from executables and libraries. But doing so
7491 # requires that you compile everything twice, which is a pain.
7492 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7493 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7494 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7495 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7496 else
7497 ld_shlibs=no
7498 fi
7499 ;;
7500 esac
7501 ;;
d7040cdb 7502
ce2cded5
L
7503 sunos4*)
7504 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7505 wlarc=
7506 hardcode_direct=yes
7507 hardcode_shlibpath_var=no
7508 ;;
d7040cdb 7509
ce2cded5
L
7510 *)
7511 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7512 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7513 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7514 else
7515 ld_shlibs=no
7516 fi
7517 ;;
7518 esac
d7040cdb 7519
ce2cded5
L
7520 if test "$ld_shlibs" = no; then
7521 runpath_var=
7522 hardcode_libdir_flag_spec=
7523 export_dynamic_flag_spec=
7524 whole_archive_flag_spec=
7525 fi
7526 else
7527 # PORTME fill in a description of your system's linker (not GNU ld)
7528 case $host_os in
7529 aix3*)
7530 allow_undefined_flag=unsupported
7531 always_export_symbols=yes
7532 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'
7533 # Note: this linker hardcodes the directories in LIBPATH if there
7534 # are no directories specified by -L.
7535 hardcode_minus_L=yes
7536 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7537 # Neither direct hardcoding nor static linking is supported with a
7538 # broken collect2.
7539 hardcode_direct=unsupported
7540 fi
7541 ;;
d7040cdb 7542
50e7d84b 7543 aix[4-9]*)
ce2cded5
L
7544 if test "$host_cpu" = ia64; then
7545 # On IA64, the linker does run time linking by default, so we don't
7546 # have to do anything special.
7547 aix_use_runtimelinking=no
7548 exp_sym_flag='-Bexport'
7549 no_entry_flag=""
7550 else
7551 # If we're using GNU nm, then we don't want the "-C" option.
7552 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7553 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7554 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'
7555 else
7556 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'
7557 fi
7558 aix_use_runtimelinking=no
d7040cdb 7559
ce2cded5
L
7560 # Test if we are trying to use run time linking or normal
7561 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7562 # need to do runtime linking.
50e7d84b 7563 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
ce2cded5
L
7564 for ld_flag in $LDFLAGS; do
7565 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7566 aix_use_runtimelinking=yes
7567 break
7568 fi
7569 done
7570 ;;
7571 esac
d7040cdb 7572
ce2cded5
L
7573 exp_sym_flag='-bexport'
7574 no_entry_flag='-bnoentry'
7575 fi
d7040cdb 7576
ce2cded5
L
7577 # When large executables or shared objects are built, AIX ld can
7578 # have problems creating the table of contents. If linking a library
7579 # or program results in "error TOC overflow" add -mminimal-toc to
7580 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7581 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
d7040cdb 7582
ce2cded5
L
7583 archive_cmds=''
7584 hardcode_direct=yes
7585 hardcode_direct_absolute=yes
7586 hardcode_libdir_separator=':'
7587 link_all_deplibs=yes
7588 file_list_spec='${wl}-f,'
d7040cdb 7589
ce2cded5
L
7590 if test "$GCC" = yes; then
7591 case $host_os in aix4.[012]|aix4.[012].*)
7592 # We only want to do this on AIX 4.2 and lower, the check
7593 # below for broken collect2 doesn't work under 4.3+
7594 collect2name=`${CC} -print-prog-name=collect2`
7595 if test -f "$collect2name" &&
7596 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7597 then
7598 # We have reworked collect2
7599 :
7600 else
7601 # We have old collect2
7602 hardcode_direct=unsupported
7603 # It fails to find uninstalled libraries when the uninstalled
7604 # path is not listed in the libpath. Setting hardcode_minus_L
7605 # to unsupported forces relinking
7606 hardcode_minus_L=yes
7607 hardcode_libdir_flag_spec='-L$libdir'
7608 hardcode_libdir_separator=
7609 fi
7610 ;;
7611 esac
7612 shared_flag='-shared'
7613 if test "$aix_use_runtimelinking" = yes; then
7614 shared_flag="$shared_flag "'${wl}-G'
7615 fi
7616 else
7617 # not using gcc
7618 if test "$host_cpu" = ia64; then
7619 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7620 # chokes on -Wl,-G. The following line is correct:
7621 shared_flag='-G'
7622 else
7623 if test "$aix_use_runtimelinking" = yes; then
7624 shared_flag='${wl}-G'
7625 else
7626 shared_flag='${wl}-bM:SRE'
7627 fi
7628 fi
7629 fi
d7040cdb 7630
ce2cded5
L
7631 # It seems that -bexpall does not export symbols beginning with
7632 # underscore (_), so it is better to generate a list of symbols to export.
7633 always_export_symbols=yes
7634 if test "$aix_use_runtimelinking" = yes; then
7635 # Warning - without using the other runtime loading flags (-brtl),
7636 # -berok will link without error, but may produce a broken library.
7637 allow_undefined_flag='-berok'
7638 # Determine the default libpath from the value encoded in an
7639 # empty executable.
7640 cat >conftest.$ac_ext <<_ACEOF
7641/* confdefs.h. */
7642_ACEOF
7643cat confdefs.h >>conftest.$ac_ext
7644cat >>conftest.$ac_ext <<_ACEOF
7645/* end confdefs.h. */
d7040cdb 7646
ce2cded5
L
7647int
7648main ()
7649{
d7040cdb 7650
ce2cded5
L
7651 ;
7652 return 0;
7653}
7654_ACEOF
7655rm -f conftest.$ac_objext conftest$ac_exeext
7656if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7657 (eval $ac_link) 2>conftest.er1
7658 ac_status=$?
7659 grep -v '^ *+' conftest.er1 >conftest.err
7660 rm -f conftest.er1
7661 cat conftest.err >&5
7662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7663 (exit $ac_status); } &&
7664 { ac_try='test -z "$ac_c_werror_flag"
7665 || test ! -s conftest.err'
7666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7667 (eval $ac_try) 2>&5
7668 ac_status=$?
7669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670 (exit $ac_status); }; } &&
7671 { ac_try='test -s conftest$ac_exeext'
7672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7673 (eval $ac_try) 2>&5
7674 ac_status=$?
7675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7676 (exit $ac_status); }; }; then
d7040cdb 7677
ce2cded5
L
7678lt_aix_libpath_sed='
7679 /Import File Strings/,/^$/ {
7680 /^0/ {
7681 s/^0 *\(.*\)$/\1/
7682 p
7683 }
7684 }'
7685aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7686# Check for a 64-bit object if we didn't find anything.
7687if test -z "$aix_libpath"; then
7688 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7689fi
7690else
7691 echo "$as_me: failed program was:" >&5
7692sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 7693
ce2cded5
L
7694fi
7695rm -f conftest.err conftest.$ac_objext \
7696 conftest$ac_exeext conftest.$ac_ext
7697if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 7698
ce2cded5
L
7699 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7700 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7701 else
7702 if test "$host_cpu" = ia64; then
7703 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7704 allow_undefined_flag="-z nodefs"
7705 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7706 else
7707 # Determine the default libpath from the value encoded in an
7708 # empty executable.
7709 cat >conftest.$ac_ext <<_ACEOF
7710/* confdefs.h. */
7711_ACEOF
7712cat confdefs.h >>conftest.$ac_ext
7713cat >>conftest.$ac_ext <<_ACEOF
7714/* end confdefs.h. */
d7040cdb 7715
ce2cded5
L
7716int
7717main ()
7718{
d7040cdb 7719
ce2cded5
L
7720 ;
7721 return 0;
7722}
7723_ACEOF
7724rm -f conftest.$ac_objext conftest$ac_exeext
7725if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7726 (eval $ac_link) 2>conftest.er1
7727 ac_status=$?
7728 grep -v '^ *+' conftest.er1 >conftest.err
7729 rm -f conftest.er1
7730 cat conftest.err >&5
7731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7732 (exit $ac_status); } &&
7733 { ac_try='test -z "$ac_c_werror_flag"
7734 || test ! -s conftest.err'
7735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7736 (eval $ac_try) 2>&5
7737 ac_status=$?
7738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739 (exit $ac_status); }; } &&
7740 { ac_try='test -s conftest$ac_exeext'
7741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7742 (eval $ac_try) 2>&5
7743 ac_status=$?
7744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7745 (exit $ac_status); }; }; then
d7040cdb 7746
ce2cded5
L
7747lt_aix_libpath_sed='
7748 /Import File Strings/,/^$/ {
7749 /^0/ {
7750 s/^0 *\(.*\)$/\1/
7751 p
7752 }
7753 }'
7754aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7755# Check for a 64-bit object if we didn't find anything.
7756if test -z "$aix_libpath"; then
7757 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7758fi
7759else
7760 echo "$as_me: failed program was:" >&5
7761sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 7762
ce2cded5
L
7763fi
7764rm -f conftest.err conftest.$ac_objext \
7765 conftest$ac_exeext conftest.$ac_ext
7766if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 7767
ce2cded5
L
7768 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7769 # Warning - without using the other run time loading flags,
7770 # -berok will link without error, but may produce a broken library.
7771 no_undefined_flag=' ${wl}-bernotok'
7772 allow_undefined_flag=' ${wl}-berok'
7773 # Exported symbols can be pulled into shared objects from archives
7774 whole_archive_flag_spec='$convenience'
7775 archive_cmds_need_lc=yes
7776 # This is similar to how AIX traditionally builds its shared libraries.
7777 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7778 fi
7779 fi
7780 ;;
d7040cdb 7781
ce2cded5
L
7782 amigaos*)
7783 if test "$host_cpu" = m68k; then
7784 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)'
7785 hardcode_libdir_flag_spec='-L$libdir'
7786 hardcode_minus_L=yes
7787 fi
7788 # see comment about different semantics on the GNU ld section
7789 ld_shlibs=no
7790 ;;
d7040cdb 7791
ce2cded5
L
7792 bsdi[45]*)
7793 export_dynamic_flag_spec=-rdynamic
7794 ;;
d7040cdb 7795
ce2cded5
L
7796 cygwin* | mingw* | pw32*)
7797 # When not using gcc, we currently assume that we are using
7798 # Microsoft Visual C++.
7799 # hardcode_libdir_flag_spec is actually meaningless, as there is
7800 # no search path for DLLs.
7801 hardcode_libdir_flag_spec=' '
7802 allow_undefined_flag=unsupported
7803 # Tell ltmain to make .lib files, not .a files.
7804 libext=lib
7805 # Tell ltmain to make .dll files, not .so files.
7806 shrext_cmds=".dll"
7807 # FIXME: Setting linknames here is a bad hack.
7808 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7809 # The linker will automatically build a .lib file if we build a DLL.
7810 old_archive_from_new_cmds='true'
7811 # FIXME: Should let the user specify the lib program.
7812 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7813 fix_srcfile_path='`cygpath -w "$srcfile"`'
7814 enable_shared_with_static_runtimes=yes
7815 ;;
d7040cdb 7816
ce2cded5
L
7817 darwin* | rhapsody*)
7818 case $host_os in
7819 rhapsody* | darwin1.[012])
7820 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7821 ;;
7822 *) # Darwin 1.3 on
7823 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7824 10.[012])
7825 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7826 ;;
7827 10.*)
7828 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7829 ;;
7830 esac
7831 ;;
7832 esac
7833 archive_cmds_need_lc=no
7834 hardcode_direct=no
7835 hardcode_automatic=yes
7836 hardcode_shlibpath_var=unsupported
7837 whole_archive_flag_spec=''
7838 link_all_deplibs=yes
7839 if test "$GCC" = yes ; then
7840 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7841 echo $ECHO_N "(cached) $ECHO_C" >&6
7842else
7843 lt_cv_apple_cc_single_mod=no
7844 if test -z "${LT_MULTI_MODULE}"; then
7845 # By default we will add the -single_module flag. You can override
7846 # by either setting the environment variable LT_MULTI_MODULE
7847 # non-empty at configure time, or by adding -multi-module to the
7848 # link flags.
7849 echo "int foo(void){return 1;}" > conftest.c
7850 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7851 -dynamiclib ${wl}-single_module conftest.c
7852 if test -f libconftest.dylib; then
7853 lt_cv_apple_cc_single_mod=yes
7854 rm libconftest.dylib
7855 fi
7856 rm conftest.$ac_ext
7857 fi
7858fi
d7040cdb 7859
ce2cded5
L
7860 output_verbose_link_cmd=echo
7861 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
7862 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7863 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7864 else
7865 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7866 archive_expsym_cmds='sed "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}'
7867 fi
7868 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7869 module_expsym_cmds='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7870 else
7871 case $cc_basename in
7872 xlc*)
7873 output_verbose_link_cmd=echo
7874 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
7875 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7876 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7877 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7878 module_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7879 ;;
7880 *)
7881 ld_shlibs=no
7882 ;;
7883 esac
7884 fi
7885 ;;
d7040cdb 7886
ce2cded5
L
7887 dgux*)
7888 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7889 hardcode_libdir_flag_spec='-L$libdir'
7890 hardcode_shlibpath_var=no
7891 ;;
d7040cdb 7892
ce2cded5
L
7893 freebsd1*)
7894 ld_shlibs=no
7895 ;;
d7040cdb 7896
ce2cded5
L
7897 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7898 # support. Future versions do this automatically, but an explicit c++rt0.o
7899 # does not break anything, and helps significantly (at the cost of a little
7900 # extra space).
7901 freebsd2.2*)
7902 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7903 hardcode_libdir_flag_spec='-R$libdir'
7904 hardcode_direct=yes
7905 hardcode_shlibpath_var=no
7906 ;;
d7040cdb 7907
ce2cded5
L
7908 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7909 freebsd2*)
7910 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7911 hardcode_direct=yes
7912 hardcode_minus_L=yes
7913 hardcode_shlibpath_var=no
7914 ;;
d7040cdb 7915
ce2cded5
L
7916 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7917 freebsd* | dragonfly*)
7918 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7919 hardcode_libdir_flag_spec='-R$libdir'
7920 hardcode_direct=yes
7921 hardcode_shlibpath_var=no
7922 ;;
d7040cdb 7923
ce2cded5
L
7924 hpux9*)
7925 if test "$GCC" = yes; then
7926 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'
7927 else
7928 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'
7929 fi
7930 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7931 hardcode_libdir_separator=:
7932 hardcode_direct=yes
d7040cdb 7933
ce2cded5
L
7934 # hardcode_minus_L: Not really in the search PATH,
7935 # but as the default location of the library.
7936 hardcode_minus_L=yes
7937 export_dynamic_flag_spec='${wl}-E'
7938 ;;
d7040cdb 7939
ce2cded5
L
7940 hpux10*)
7941 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7942 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7943 else
7944 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7945 fi
7946 if test "$with_gnu_ld" = no; then
7947 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7948 hardcode_libdir_flag_spec_ld='+b $libdir'
7949 hardcode_libdir_separator=:
7950 hardcode_direct=yes
7951 hardcode_direct_absolute=yes
7952 export_dynamic_flag_spec='${wl}-E'
7953 # hardcode_minus_L: Not really in the search PATH,
7954 # but as the default location of the library.
7955 hardcode_minus_L=yes
7956 fi
7957 ;;
d7040cdb 7958
ce2cded5
L
7959 hpux11*)
7960 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7961 case $host_cpu in
7962 hppa*64*)
7963 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7964 ;;
7965 ia64*)
7966 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7967 ;;
7968 *)
7969 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7970 ;;
7971 esac
7972 else
7973 case $host_cpu in
7974 hppa*64*)
7975 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7976 ;;
7977 ia64*)
7978 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7979 ;;
7980 *)
7981 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7982 ;;
7983 esac
7984 fi
7985 if test "$with_gnu_ld" = no; then
7986 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7987 hardcode_libdir_separator=:
d7040cdb 7988
ce2cded5
L
7989 case $host_cpu in
7990 hppa*64*|ia64*)
7991 hardcode_direct=no
7992 hardcode_shlibpath_var=no
7993 ;;
7994 *)
7995 hardcode_direct=yes
7996 hardcode_direct_absolute=yes
7997 export_dynamic_flag_spec='${wl}-E'
d7040cdb 7998
ce2cded5
L
7999 # hardcode_minus_L: Not really in the search PATH,
8000 # but as the default location of the library.
8001 hardcode_minus_L=yes
8002 ;;
8003 esac
8004 fi
8005 ;;
8006
8007 irix5* | irix6* | nonstopux*)
8008 if test "$GCC" = yes; then
8009 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8010 # Try to use the -exported_symbol ld option, if it does not
8011 # work, assume that -exports_file does not work either and
8012 # implicitly export all symbols.
8013 save_LDFLAGS="$LDFLAGS"
8014 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8015 cat >conftest.$ac_ext <<_ACEOF
8016int foo(void) {}
8017_ACEOF
8018rm -f conftest.$ac_objext conftest$ac_exeext
8019if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8020 (eval $ac_link) 2>conftest.er1
8021 ac_status=$?
8022 grep -v '^ *+' conftest.er1 >conftest.err
8023 rm -f conftest.er1
8024 cat conftest.err >&5
8025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8026 (exit $ac_status); } &&
8027 { ac_try='test -z "$ac_c_werror_flag"
8028 || test ! -s conftest.err'
8029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8030 (eval $ac_try) 2>&5
8031 ac_status=$?
8032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033 (exit $ac_status); }; } &&
8034 { ac_try='test -s conftest$ac_exeext'
8035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8036 (eval $ac_try) 2>&5
8037 ac_status=$?
8038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8039 (exit $ac_status); }; }; then
8040 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
d7040cdb 8041
d7040cdb 8042else
ce2cded5
L
8043 echo "$as_me: failed program was:" >&5
8044sed 's/^/| /' conftest.$ac_ext >&5
8045
d7040cdb 8046fi
ce2cded5
L
8047rm -f conftest.err conftest.$ac_objext \
8048 conftest$ac_exeext conftest.$ac_ext
8049 LDFLAGS="$save_LDFLAGS"
8050 else
8051 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8052 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8053 fi
8054 archive_cmds_need_lc='no'
8055 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8056 hardcode_libdir_separator=:
8057 inherit_rpath=yes
8058 link_all_deplibs=yes
8059 ;;
d7040cdb 8060
ce2cded5
L
8061 netbsd*)
8062 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8063 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8064 else
8065 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8066 fi
8067 hardcode_libdir_flag_spec='-R$libdir'
8068 hardcode_direct=yes
8069 hardcode_shlibpath_var=no
8070 ;;
d7040cdb 8071
ce2cded5
L
8072 newsos6)
8073 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8074 hardcode_direct=yes
8075 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8076 hardcode_libdir_separator=:
8077 hardcode_shlibpath_var=no
8078 ;;
d7040cdb 8079
ce2cded5
L
8080 *nto* | *qnx*)
8081 ;;
d7040cdb 8082
ce2cded5
L
8083 openbsd*)
8084 hardcode_direct=yes
8085 hardcode_shlibpath_var=no
8086 hardcode_direct_absolute=yes
8087 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8088 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8089 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8090 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8091 export_dynamic_flag_spec='${wl}-E'
d7040cdb 8092 else
ce2cded5
L
8093 case $host_os in
8094 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8095 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8096 hardcode_libdir_flag_spec='-R$libdir'
8097 ;;
8098 *)
8099 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8100 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8101 ;;
8102 esac
d7040cdb
SE
8103 fi
8104 ;;
d7040cdb 8105
ce2cded5
L
8106 os2*)
8107 hardcode_libdir_flag_spec='-L$libdir'
8108 hardcode_minus_L=yes
8109 allow_undefined_flag=unsupported
8110 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'
8111 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8112 ;;
d7040cdb 8113
ce2cded5
L
8114 osf3*)
8115 if test "$GCC" = yes; then
8116 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8117 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8118 else
8119 allow_undefined_flag=' -expect_unresolved \*'
8120 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8121 fi
8122 archive_cmds_need_lc='no'
8123 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8124 hardcode_libdir_separator=:
8125 ;;
d7040cdb 8126
ce2cded5
L
8127 osf4* | osf5*) # as osf3* with the addition of -msym flag
8128 if test "$GCC" = yes; then
8129 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8130 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8131 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8132 else
8133 allow_undefined_flag=' -expect_unresolved \*'
8134 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8135 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
8136 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
d7040cdb 8137
ce2cded5
L
8138 # Both c and cxx compiler support -rpath directly
8139 hardcode_libdir_flag_spec='-rpath $libdir'
8140 fi
8141 archive_cmds_need_lc='no'
8142 hardcode_libdir_separator=:
8143 ;;
d7040cdb 8144
ce2cded5
L
8145 solaris*)
8146 no_undefined_flag=' -z defs'
8147 if test "$GCC" = yes; then
8148 wlarc='${wl}'
8149 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8150 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8151 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8152 else
8153 case `$CC -V 2>&1` in
8154 *"Compilers 5.0"*)
8155 wlarc=''
8156 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8157 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8158 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8159 ;;
8160 *)
8161 wlarc='${wl}'
8162 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8163 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8164 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8165 ;;
8166 esac
8167 fi
8168 hardcode_libdir_flag_spec='-R$libdir'
8169 hardcode_shlibpath_var=no
8170 case $host_os in
8171 solaris2.[0-5] | solaris2.[0-5].*) ;;
8172 *)
8173 # The compiler driver will combine and reorder linker options,
8174 # but understands `-z linker_flag'. GCC discards it without `$wl',
8175 # but is careful enough not to reorder.
8176 # Supported since Solaris 2.6 (maybe 2.5.1?)
8177 if test "$GCC" = yes; then
8178 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8179 else
8180 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8181 fi
8182 ;;
8183 esac
8184 link_all_deplibs=yes
d7040cdb 8185 ;;
ce2cded5
L
8186
8187 sunos4*)
8188 if test "x$host_vendor" = xsequent; then
8189 # Use $CC to link under sequent, because it throws in some extra .o
8190 # files that make .init and .fini sections work.
8191 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
d7040cdb 8192 else
ce2cded5 8193 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
d7040cdb 8194 fi
ce2cded5
L
8195 hardcode_libdir_flag_spec='-L$libdir'
8196 hardcode_direct=yes
8197 hardcode_minus_L=yes
8198 hardcode_shlibpath_var=no
d7040cdb 8199 ;;
ce2cded5
L
8200
8201 sysv4)
8202 case $host_vendor in
8203 sni)
8204 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8205 hardcode_direct=yes # is this really true???
8206 ;;
8207 siemens)
8208 ## LD is ld it makes a PLAMLIB
8209 ## CC just makes a GrossModule.
8210 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8211 reload_cmds='$CC -r -o $output$reload_objs'
8212 hardcode_direct=no
8213 ;;
8214 motorola)
8215 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8216 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8217 ;;
8218 esac
8219 runpath_var='LD_RUN_PATH'
8220 hardcode_shlibpath_var=no
d7040cdb 8221 ;;
d7040cdb 8222
ce2cded5
L
8223 sysv4.3*)
8224 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8225 hardcode_shlibpath_var=no
8226 export_dynamic_flag_spec='-Bexport'
8227 ;;
d7040cdb 8228
ce2cded5
L
8229 sysv4*MP*)
8230 if test -d /usr/nec; then
8231 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8232 hardcode_shlibpath_var=no
8233 runpath_var=LD_RUN_PATH
8234 hardcode_runpath_var=yes
8235 ld_shlibs=yes
8236 fi
8237 ;;
d7040cdb 8238
ce2cded5
L
8239 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8240 no_undefined_flag='${wl}-z,text'
8241 archive_cmds_need_lc=no
8242 hardcode_shlibpath_var=no
8243 runpath_var='LD_RUN_PATH'
d7040cdb 8244
ce2cded5
L
8245 if test "$GCC" = yes; then
8246 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8247 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8248 else
8249 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8250 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8251 fi
8252 ;;
d7040cdb 8253
ce2cded5
L
8254 sysv5* | sco3.2v5* | sco5v6*)
8255 # Note: We can NOT use -z defs as we might desire, because we do not
8256 # link with -lc, and that would cause any symbols used from libc to
8257 # always be unresolved, which means just about no library would
8258 # ever link correctly. If we're not using GNU ld we use -z text
8259 # though, which does catch some bad symbols but isn't as heavy-handed
8260 # as -z defs.
8261 no_undefined_flag='${wl}-z,text'
8262 allow_undefined_flag='${wl}-z,nodefs'
8263 archive_cmds_need_lc=no
8264 hardcode_shlibpath_var=no
8265 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8266 hardcode_libdir_separator=':'
8267 link_all_deplibs=yes
8268 export_dynamic_flag_spec='${wl}-Bexport'
8269 runpath_var='LD_RUN_PATH'
d7040cdb 8270
ce2cded5
L
8271 if test "$GCC" = yes; then
8272 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8273 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8274 else
8275 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8276 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8277 fi
d7040cdb 8278 ;;
d7040cdb 8279
ce2cded5
L
8280 uts4*)
8281 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8282 hardcode_libdir_flag_spec='-L$libdir'
8283 hardcode_shlibpath_var=no
8284 ;;
d7040cdb 8285
ce2cded5
L
8286 *)
8287 ld_shlibs=no
8288 ;;
8289 esac
8290
8291 if test x$host_vendor = xsni; then
8292 case $host in
8293 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8294 export_dynamic_flag_spec='${wl}-Blargedynsym'
8295 ;;
8296 esac
d7040cdb 8297 fi
ce2cded5 8298 fi
d7040cdb 8299
ce2cded5
L
8300echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8301echo "${ECHO_T}$ld_shlibs" >&6
8302test "$ld_shlibs" = no && can_build_shared=no
d7040cdb 8303
ce2cded5 8304with_gnu_ld=$with_gnu_ld
d7040cdb 8305
d7040cdb 8306
d7040cdb 8307
d7040cdb 8308
d7040cdb 8309
d7040cdb 8310
d7040cdb 8311
d7040cdb 8312
d7040cdb 8313
d7040cdb 8314
d7040cdb 8315
d7040cdb 8316
d7040cdb 8317
d7040cdb 8318
d7040cdb 8319
ce2cded5
L
8320#
8321# Do we need to explicitly link libc?
8322#
8323case "x$archive_cmds_need_lc" in
8324x|xyes)
8325 # Assume -lc should be added
8326 archive_cmds_need_lc=yes
d7040cdb 8327
ce2cded5
L
8328 if test "$enable_shared" = yes && test "$GCC" = yes; then
8329 case $archive_cmds in
8330 *'~'*)
8331 # FIXME: we may have to deal with multi-command sequences.
8332 ;;
8333 '$CC '*)
8334 # Test whether the compiler implicitly links with -lc since on some
8335 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8336 # to ld, don't add -lc before -lgcc.
8337 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8338echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8339 $RM conftest*
8340 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 8341
ce2cded5
L
8342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8343 (eval $ac_compile) 2>&5
8344 ac_status=$?
8345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8346 (exit $ac_status); } 2>conftest.err; then
8347 soname=conftest
8348 lib=conftest
8349 libobjs=conftest.$ac_objext
8350 deplibs=
8351 wl=$lt_prog_compiler_wl
8352 pic_flag=$lt_prog_compiler_pic
8353 compiler_flags=-v
8354 linker_flags=-v
8355 verstring=
8356 output_objdir=.
8357 libname=conftest
8358 lt_save_allow_undefined_flag=$allow_undefined_flag
8359 allow_undefined_flag=
8360 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8361 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8362 ac_status=$?
8363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364 (exit $ac_status); }
8365 then
8366 archive_cmds_need_lc=no
8367 else
8368 archive_cmds_need_lc=yes
8369 fi
8370 allow_undefined_flag=$lt_save_allow_undefined_flag
8371 else
8372 cat conftest.err 1>&5
8373 fi
8374 $RM conftest*
8375 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8376echo "${ECHO_T}$archive_cmds_need_lc" >&6
8377 ;;
8378 esac
d7040cdb 8379 fi
d7040cdb 8380 ;;
ce2cded5 8381esac
d7040cdb 8382
d7040cdb 8383
d7040cdb 8384
d7040cdb 8385
d7040cdb 8386
d7040cdb 8387
d7040cdb 8388
d7040cdb
SE
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
d7040cdb 8476
d7040cdb 8477
d7040cdb
SE
8478
8479
8480
8481
8482
8483
d7040cdb 8484
d7040cdb 8485
d7040cdb 8486
d7040cdb 8487
d7040cdb 8488
d7040cdb 8489
d7040cdb 8490
d7040cdb 8491
d7040cdb 8492
d7040cdb 8493
d7040cdb 8494
d7040cdb 8495
d7040cdb 8496
d7040cdb 8497
d7040cdb 8498
d7040cdb 8499
d7040cdb 8500
d7040cdb 8501
d7040cdb 8502
d7040cdb 8503
d7040cdb 8504
d7040cdb 8505
d7040cdb 8506
ce2cded5
L
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8540echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8541withGCC=$GCC
8542if test "$withGCC" = yes; then
8543 case $host_os in
8544 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8545 *) lt_awk_arg="/^libraries:/" ;;
8546 esac
8547 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8548 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8549 # if the path contains ";" then we assume it to be the separator
8550 # otherwise default to the standard path separator (i.e. ":") - it is
8551 # assumed that no part of a normal pathname contains ";" but that should
8552 # okay in the real world where ";" in dirpaths is itself problematic.
8553 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8554 else
8555 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8556 fi
8557 # Ok, now we have the path, separated by spaces, we can step through it
8558 # and add multilib dir if necessary.
8559 lt_tmp_lt_search_path_spec=
8560 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8561 for lt_sys_path in $lt_search_path_spec; do
8562 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8563 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8564 else
8565 test -d "$lt_sys_path" && \
8566 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8567 fi
8568 done
8569 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8570BEGIN {RS=" "; FS="/|\n";} {
8571 lt_foo="";
8572 lt_count=0;
8573 for (lt_i = NF; lt_i > 0; lt_i--) {
8574 if ($lt_i != "" && $lt_i != ".") {
8575 if ($lt_i == "..") {
8576 lt_count++;
8577 } else {
8578 if (lt_count == 0) {
8579 lt_foo="/" $lt_i lt_foo;
8580 } else {
8581 lt_count--;
8582 }
8583 }
8584 }
8585 }
8586 if (lt_foo != "") { lt_freq[lt_foo]++; }
8587 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8588}'`
8589 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
d7040cdb 8590else
ce2cded5
L
8591 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8592fi
8593library_names_spec=
8594libname_spec='lib$name'
8595soname_spec=
8596shrext_cmds=".so"
8597postinstall_cmds=
8598postuninstall_cmds=
8599finish_cmds=
8600finish_eval=
8601shlibpath_var=
8602shlibpath_overrides_runpath=unknown
8603version_type=none
8604dynamic_linker="$host_os ld.so"
8605sys_lib_dlsearch_path_spec="/lib /usr/lib"
8606need_lib_prefix=unknown
8607hardcode_into_libs=no
8608
8609# when you set need_version to no, make sure it does not cause -set_version
8610# flags to be left without arguments
8611need_version=unknown
8612
8613case $host_os in
8614aix3*)
8615 version_type=linux
8616 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8617 shlibpath_var=LIBPATH
8618
8619 # AIX 3 has no versioning support, so we append a major version to the name.
8620 soname_spec='${libname}${release}${shared_ext}$major'
8621 ;;
8622
50e7d84b 8623aix[4-9]*)
ce2cded5
L
8624 version_type=linux
8625 need_lib_prefix=no
8626 need_version=no
8627 hardcode_into_libs=yes
8628 if test "$host_cpu" = ia64; then
8629 # AIX 5 supports IA64
8630 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8631 shlibpath_var=LD_LIBRARY_PATH
8632 else
8633 # With GCC up to 2.95.x, collect2 would create an import file
8634 # for dependence libraries. The import file would start with
8635 # the line `#! .'. This would cause the generated library to
8636 # depend on `.', always an invalid library. This was fixed in
8637 # development snapshots of GCC prior to 3.0.
8638 case $host_os in
8639 aix4 | aix4.[01] | aix4.[01].*)
8640 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8641 echo ' yes '
8642 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8643 :
8644 else
8645 can_build_shared=no
8646 fi
8647 ;;
8648 esac
8649 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8650 # soname into executable. Probably we can add versioning support to
8651 # collect2, so additional links can be useful in future.
8652 if test "$aix_use_runtimelinking" = yes; then
8653 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8654 # instead of lib<name>.a to let people know that these are not
8655 # typical AIX shared libraries.
8656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8657 else
8658 # We preserve .a as extension for shared libraries through AIX4.2
8659 # and later when we are not doing run time linking.
8660 library_names_spec='${libname}${release}.a $libname.a'
8661 soname_spec='${libname}${release}${shared_ext}$major'
8662 fi
8663 shlibpath_var=LIBPATH
8664 fi
8665 ;;
8666
8667amigaos*)
8668 if test "$host_cpu" = m68k; then
8669 library_names_spec='$libname.ixlibrary $libname.a'
8670 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8671 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'
8672 else
8673 dynamic_linker=no
8674 fi
8675 ;;
8676
8677beos*)
8678 library_names_spec='${libname}${shared_ext}'
8679 dynamic_linker="$host_os ld.so"
8680 shlibpath_var=LIBRARY_PATH
8681 ;;
8682
8683bsdi[45]*)
8684 version_type=linux
8685 need_version=no
8686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8687 soname_spec='${libname}${release}${shared_ext}$major'
8688 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8689 shlibpath_var=LD_LIBRARY_PATH
8690 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8691 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8692 # the default ld.so.conf also contains /usr/contrib/lib and
8693 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8694 # libtool to hard-code these into programs
8695 ;;
8696
8697cygwin* | mingw* | pw32*)
8698 version_type=windows
8699 shrext_cmds=".dll"
8700 need_version=no
8701 need_lib_prefix=no
8702
8703 case $withGCC,$host_os in
8704 yes,cygwin* | yes,mingw* | yes,pw32*)
8705 library_names_spec='$libname.dll.a'
8706 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8707 postinstall_cmds='base_file=`basename \${file}`~
8708 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8709 dldir=$destdir/`dirname \$dlpath`~
8710 test -d \$dldir || mkdir -p \$dldir~
8711 $install_prog $dir/$dlname \$dldir/$dlname~
8712 chmod a+x \$dldir/$dlname~
8713 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8714 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8715 fi'
8716 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8717 dlpath=$dir/\$dldll~
8718 $RM \$dlpath'
8719 shlibpath_overrides_runpath=yes
8720
8721 case $host_os in
8722 cygwin*)
8723 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8724 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8725 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8726 ;;
8727 mingw*)
8728 # MinGW DLLs use traditional 'lib' prefix
8729 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8730 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8731 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8732 # It is most probably a Windows format PATH printed by
8733 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8734 # path with ; separators, and with drive letters. We can handle the
8735 # drive letters (cygwin fileutils understands them), so leave them,
8736 # especially as we might pass files found there to a mingw objdump,
8737 # which wouldn't understand a cygwinified path. Ahh.
8738 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8739 else
8740 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8741 fi
8742 ;;
8743 pw32*)
8744 # pw32 DLLs use 'pw' prefix rather than 'lib'
8745 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8746 ;;
8747 esac
8748 ;;
8749
8750 *)
8751 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8752 ;;
8753 esac
8754 dynamic_linker='Win32 ld.exe'
8755 # FIXME: first we should search . and the directory the executable is in
8756 shlibpath_var=PATH
8757 ;;
8758
8759darwin* | rhapsody*)
8760 dynamic_linker="$host_os dyld"
8761 version_type=darwin
8762 need_lib_prefix=no
8763 need_version=no
8764 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8765 soname_spec='${libname}${release}${major}$shared_ext'
8766 shlibpath_overrides_runpath=yes
8767 shlibpath_var=DYLD_LIBRARY_PATH
8768 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8769
8770 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8771 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8772 ;;
8773
8774dgux*)
8775 version_type=linux
8776 need_lib_prefix=no
8777 need_version=no
8778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8779 soname_spec='${libname}${release}${shared_ext}$major'
8780 shlibpath_var=LD_LIBRARY_PATH
8781 ;;
8782
8783freebsd1*)
8784 dynamic_linker=no
8785 ;;
8786
8787freebsd* | dragonfly*)
8788 # DragonFly does not have aout. When/if they implement a new
8789 # versioning mechanism, adjust this.
8790 if test -x /usr/bin/objformat; then
8791 objformat=`/usr/bin/objformat`
8792 else
8793 case $host_os in
8794 freebsd[123]*) objformat=aout ;;
8795 *) objformat=elf ;;
8796 esac
8797 fi
8798 version_type=freebsd-$objformat
8799 case $version_type in
8800 freebsd-elf*)
8801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8802 need_version=no
8803 need_lib_prefix=no
8804 ;;
8805 freebsd-*)
8806 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8807 need_version=yes
8808 ;;
8809 esac
8810 shlibpath_var=LD_LIBRARY_PATH
8811 case $host_os in
8812 freebsd2*)
8813 shlibpath_overrides_runpath=yes
8814 ;;
8815 freebsd3.[01]* | freebsdelf3.[01]*)
8816 shlibpath_overrides_runpath=yes
8817 hardcode_into_libs=yes
8818 ;;
8819 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8820 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8821 shlibpath_overrides_runpath=no
8822 hardcode_into_libs=yes
8823 ;;
8824 *) # from 4.6 on, and DragonFly
8825 shlibpath_overrides_runpath=yes
8826 hardcode_into_libs=yes
8827 ;;
8828 esac
8829 ;;
8830
8831gnu*)
8832 version_type=linux
8833 need_lib_prefix=no
8834 need_version=no
8835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8836 soname_spec='${libname}${release}${shared_ext}$major'
8837 shlibpath_var=LD_LIBRARY_PATH
8838 hardcode_into_libs=yes
8839 ;;
8840
8841hpux9* | hpux10* | hpux11*)
8842 # Give a soname corresponding to the major version so that dld.sl refuses to
8843 # link against other versions.
8844 version_type=sunos
8845 need_lib_prefix=no
8846 need_version=no
8847 case $host_cpu in
8848 ia64*)
8849 shrext_cmds='.so'
8850 hardcode_into_libs=yes
8851 dynamic_linker="$host_os dld.so"
8852 shlibpath_var=LD_LIBRARY_PATH
8853 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8855 soname_spec='${libname}${release}${shared_ext}$major'
8856 if test "X$HPUX_IA64_MODE" = X32; then
8857 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8858 else
8859 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8860 fi
8861 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8862 ;;
8863 hppa*64*)
8864 shrext_cmds='.sl'
8865 hardcode_into_libs=yes
8866 dynamic_linker="$host_os dld.sl"
8867 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8868 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8870 soname_spec='${libname}${release}${shared_ext}$major'
8871 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8872 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8873 ;;
8874 *)
8875 shrext_cmds='.sl'
8876 dynamic_linker="$host_os dld.sl"
8877 shlibpath_var=SHLIB_PATH
8878 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8880 soname_spec='${libname}${release}${shared_ext}$major'
8881 ;;
8882 esac
8883 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8884 postinstall_cmds='chmod 555 $lib'
8885 ;;
8886
8887interix[3-9]*)
8888 version_type=linux
8889 need_lib_prefix=no
8890 need_version=no
8891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8892 soname_spec='${libname}${release}${shared_ext}$major'
8893 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8894 shlibpath_var=LD_LIBRARY_PATH
8895 shlibpath_overrides_runpath=no
8896 hardcode_into_libs=yes
8897 ;;
8898
8899irix5* | irix6* | nonstopux*)
8900 case $host_os in
8901 nonstopux*) version_type=nonstopux ;;
8902 *)
8903 if test "$lt_cv_prog_gnu_ld" = yes; then
8904 version_type=linux
8905 else
8906 version_type=irix
8907 fi ;;
8908 esac
8909 need_lib_prefix=no
8910 need_version=no
8911 soname_spec='${libname}${release}${shared_ext}$major'
8912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8913 case $host_os in
8914 irix5* | nonstopux*)
8915 libsuff= shlibsuff=
8916 ;;
8917 *)
8918 case $LD in # libtool.m4 will add one of these switches to LD
8919 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8920 libsuff= shlibsuff= libmagic=32-bit;;
8921 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8922 libsuff=32 shlibsuff=N32 libmagic=N32;;
8923 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8924 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8925 *) libsuff= shlibsuff= libmagic=never-match;;
8926 esac
8927 ;;
8928 esac
8929 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8930 shlibpath_overrides_runpath=no
8931 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8932 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8933 hardcode_into_libs=yes
8934 ;;
d7040cdb 8935
ce2cded5
L
8936# No shared lib support for Linux oldld, aout, or coff.
8937linux*oldld* | linux*aout* | linux*coff*)
8938 dynamic_linker=no
8939 ;;
8940
8941# This must be Linux ELF.
8942linux* | k*bsd*-gnu)
8943 version_type=linux
8944 need_lib_prefix=no
8945 need_version=no
8946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8947 soname_spec='${libname}${release}${shared_ext}$major'
8948 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8949 shlibpath_var=LD_LIBRARY_PATH
8950 shlibpath_overrides_runpath=no
8951 # Some binutils ld are patched to set DT_RUNPATH
8952 save_LDFLAGS=$LDFLAGS
8953 save_libdir=$libdir
8954 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8955 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8956 cat >conftest.$ac_ext <<_ACEOF
d7040cdb
SE
8957/* confdefs.h. */
8958_ACEOF
8959cat confdefs.h >>conftest.$ac_ext
8960cat >>conftest.$ac_ext <<_ACEOF
8961/* end confdefs.h. */
8962
d7040cdb
SE
8963int
8964main ()
8965{
ce2cded5 8966
d7040cdb
SE
8967 ;
8968 return 0;
8969}
8970_ACEOF
8971rm -f conftest.$ac_objext conftest$ac_exeext
8972if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8973 (eval $ac_link) 2>conftest.er1
8974 ac_status=$?
8975 grep -v '^ *+' conftest.er1 >conftest.err
8976 rm -f conftest.er1
8977 cat conftest.err >&5
8978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979 (exit $ac_status); } &&
8980 { ac_try='test -z "$ac_c_werror_flag"
8981 || test ! -s conftest.err'
8982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8983 (eval $ac_try) 2>&5
8984 ac_status=$?
8985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8986 (exit $ac_status); }; } &&
8987 { ac_try='test -s conftest$ac_exeext'
8988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8989 (eval $ac_try) 2>&5
8990 ac_status=$?
8991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992 (exit $ac_status); }; }; then
ce2cded5
L
8993 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
8994 shlibpath_overrides_runpath=yes
8995fi
8996
d7040cdb
SE
8997else
8998 echo "$as_me: failed program was:" >&5
8999sed 's/^/| /' conftest.$ac_ext >&5
9000
ce2cded5
L
9001fi
9002rm -f conftest.err conftest.$ac_objext \
9003 conftest$ac_exeext conftest.$ac_ext
9004 LDFLAGS=$save_LDFLAGS
9005 libdir=$save_libdir
9006
9007 # This implies no fast_install, which is unacceptable.
9008 # Some rework will be needed to allow for fast_install
9009 # before this can be enabled.
9010 hardcode_into_libs=yes
9011
9012 # Append ld.so.conf contents to the search path
9013 if test -f /etc/ld.so.conf; then
9014 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9015 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9016 fi
9017
9018 # We used to test for /lib/ld.so.1 and disable shared libraries on
9019 # powerpc, because MkLinux only supported shared libraries with the
9020 # GNU dynamic linker. Since this was broken with cross compilers,
9021 # most powerpc-linux boxes support dynamic linking these days and
9022 # people can always --disable-shared, the test was removed, and we
9023 # assume the GNU/Linux dynamic linker is in use.
9024 dynamic_linker='GNU/Linux ld.so'
9025 ;;
9026
9027netbsd*)
9028 version_type=sunos
9029 need_lib_prefix=no
9030 need_version=no
9031 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9033 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9034 dynamic_linker='NetBSD (a.out) ld.so'
9035 else
9036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9037 soname_spec='${libname}${release}${shared_ext}$major'
9038 dynamic_linker='NetBSD ld.elf_so'
9039 fi
9040 shlibpath_var=LD_LIBRARY_PATH
9041 shlibpath_overrides_runpath=yes
9042 hardcode_into_libs=yes
9043 ;;
9044
9045newsos6)
9046 version_type=linux
9047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9048 shlibpath_var=LD_LIBRARY_PATH
9049 shlibpath_overrides_runpath=yes
9050 ;;
9051
9052*nto* | *qnx*)
9053 version_type=qnx
9054 need_lib_prefix=no
9055 need_version=no
9056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9057 soname_spec='${libname}${release}${shared_ext}$major'
9058 shlibpath_var=LD_LIBRARY_PATH
9059 shlibpath_overrides_runpath=no
9060 hardcode_into_libs=yes
9061 dynamic_linker='ldqnx.so'
9062 ;;
9063
9064openbsd*)
9065 version_type=sunos
9066 sys_lib_dlsearch_path_spec="/usr/lib"
9067 need_lib_prefix=no
9068 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9069 case $host_os in
9070 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9071 *) need_version=no ;;
9072 esac
9073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9074 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9075 shlibpath_var=LD_LIBRARY_PATH
9076 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9077 case $host_os in
9078 openbsd2.[89] | openbsd2.[89].*)
9079 shlibpath_overrides_runpath=no
9080 ;;
9081 *)
9082 shlibpath_overrides_runpath=yes
9083 ;;
9084 esac
9085 else
9086 shlibpath_overrides_runpath=yes
9087 fi
9088 ;;
9089
9090os2*)
9091 libname_spec='$name'
9092 shrext_cmds=".dll"
9093 need_lib_prefix=no
9094 library_names_spec='$libname${shared_ext} $libname.a'
9095 dynamic_linker='OS/2 ld.exe'
9096 shlibpath_var=LIBPATH
9097 ;;
9098
9099osf3* | osf4* | osf5*)
9100 version_type=osf
9101 need_lib_prefix=no
9102 need_version=no
9103 soname_spec='${libname}${release}${shared_ext}$major'
9104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9105 shlibpath_var=LD_LIBRARY_PATH
9106 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9107 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9108 ;;
9109
9110rdos*)
9111 dynamic_linker=no
9112 ;;
9113
9114solaris*)
9115 version_type=linux
9116 need_lib_prefix=no
9117 need_version=no
9118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9119 soname_spec='${libname}${release}${shared_ext}$major'
9120 shlibpath_var=LD_LIBRARY_PATH
9121 shlibpath_overrides_runpath=yes
9122 hardcode_into_libs=yes
9123 # ldd complains unless libraries are executable
9124 postinstall_cmds='chmod +x $lib'
9125 ;;
9126
9127sunos4*)
9128 version_type=sunos
9129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9130 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9131 shlibpath_var=LD_LIBRARY_PATH
9132 shlibpath_overrides_runpath=yes
9133 if test "$with_gnu_ld" = yes; then
9134 need_lib_prefix=no
9135 fi
9136 need_version=yes
9137 ;;
9138
9139sysv4 | sysv4.3*)
9140 version_type=linux
9141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9142 soname_spec='${libname}${release}${shared_ext}$major'
9143 shlibpath_var=LD_LIBRARY_PATH
9144 case $host_vendor in
9145 sni)
9146 shlibpath_overrides_runpath=no
9147 need_lib_prefix=no
9148 runpath_var=LD_RUN_PATH
9149 ;;
9150 siemens)
9151 need_lib_prefix=no
9152 ;;
9153 motorola)
9154 need_lib_prefix=no
9155 need_version=no
9156 shlibpath_overrides_runpath=no
9157 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9158 ;;
9159 esac
9160 ;;
9161
9162sysv4*MP*)
9163 if test -d /usr/nec ;then
9164 version_type=linux
9165 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9166 soname_spec='$libname${shared_ext}.$major'
9167 shlibpath_var=LD_LIBRARY_PATH
9168 fi
9169 ;;
9170
9171sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9172 version_type=freebsd-elf
9173 need_lib_prefix=no
9174 need_version=no
9175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9176 soname_spec='${libname}${release}${shared_ext}$major'
9177 shlibpath_var=LD_LIBRARY_PATH
9178 shlibpath_overrides_runpath=yes
9179 hardcode_into_libs=yes
9180 if test "$with_gnu_ld" = yes; then
9181 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9182 else
9183 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9184 case $host_os in
9185 sco3.2v5*)
9186 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9187 ;;
9188 esac
9189 fi
9190 sys_lib_dlsearch_path_spec='/usr/lib'
9191 ;;
9192
9193tpf*)
9194 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9195 version_type=linux
9196 need_lib_prefix=no
9197 need_version=no
9198 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9199 shlibpath_var=LD_LIBRARY_PATH
9200 shlibpath_overrides_runpath=no
9201 hardcode_into_libs=yes
9202 ;;
d7040cdb 9203
ce2cded5
L
9204uts4*)
9205 version_type=linux
9206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9207 soname_spec='${libname}${release}${shared_ext}$major'
9208 shlibpath_var=LD_LIBRARY_PATH
9209 ;;
d7040cdb 9210
ce2cded5
L
9211*)
9212 dynamic_linker=no
9213 ;;
9214esac
9215echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9216echo "${ECHO_T}$dynamic_linker" >&6
9217test "$dynamic_linker" = no && can_build_shared=no
9218
9219variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9220if test "$GCC" = yes; then
9221 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
d7040cdb 9222fi
d7040cdb 9223
d7040cdb 9224
d7040cdb
SE
9225
9226
d7040cdb
SE
9227
9228
d7040cdb
SE
9229
9230
d7040cdb
SE
9231
9232
d7040cdb
SE
9233
9234
d7040cdb 9235
d7040cdb 9236
d7040cdb 9237
d7040cdb 9238
d7040cdb 9239
d7040cdb 9240
d7040cdb 9241
d7040cdb 9242
d7040cdb 9243
d7040cdb 9244
d7040cdb 9245
d7040cdb 9246
d7040cdb 9247
d7040cdb 9248
d7040cdb
SE
9249
9250
d7040cdb 9251
d7040cdb 9252
d7040cdb 9253
d7040cdb 9254
d7040cdb 9255
d7040cdb 9256
d7040cdb 9257
d7040cdb 9258
d7040cdb 9259
d7040cdb
SE
9260
9261
d7040cdb 9262
d7040cdb 9263
d7040cdb 9264
d7040cdb
SE
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
d7040cdb
SE
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
d7040cdb 9294
d7040cdb 9295
d7040cdb 9296
d7040cdb 9297
d7040cdb
SE
9298
9299
9300
9301
ce2cded5
L
9302
9303
9304
9305
9306
9307
9308
9309
9310 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9311echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9312hardcode_action=
9313if test -n "$hardcode_libdir_flag_spec" ||
9314 test -n "$runpath_var" ||
9315 test "X$hardcode_automatic" = "Xyes" ; then
9316
9317 # We can hardcode non-existent directories.
9318 if test "$hardcode_direct" != no &&
9319 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9320 # have to relink, otherwise we might link with an installed library
9321 # when we should be linking with a yet-to-be-installed one
9322 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9323 test "$hardcode_minus_L" != no; then
9324 # Linking always hardcodes the temporary library directory.
9325 hardcode_action=relink
9326 else
9327 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9328 hardcode_action=immediate
9329 fi
9330else
9331 # We cannot hardcode anything, or else we can only hardcode existing
9332 # directories.
9333 hardcode_action=unsupported
9334fi
9335echo "$as_me:$LINENO: result: $hardcode_action" >&5
9336echo "${ECHO_T}$hardcode_action" >&6
9337
9338if test "$hardcode_action" = relink ||
9339 test "$inherit_rpath" = yes; then
9340 # Fast installation is not supported
9341 enable_fast_install=no
9342elif test "$shlibpath_overrides_runpath" = yes ||
9343 test "$enable_shared" = no; then
9344 # Fast installation is not necessary
9345 enable_fast_install=needless
d7040cdb 9346fi
d7040cdb 9347
d7040cdb
SE
9348
9349
9350
9351
9352
ce2cded5
L
9353 if test "x$enable_dlopen" != xyes; then
9354 enable_dlopen=unknown
9355 enable_dlopen_self=unknown
9356 enable_dlopen_self_static=unknown
9357else
9358 lt_cv_dlopen=no
9359 lt_cv_dlopen_libs=
9360
9361 case $host_os in
9362 beos*)
9363 lt_cv_dlopen="load_add_on"
9364 lt_cv_dlopen_libs=
9365 lt_cv_dlopen_self=yes
9366 ;;
d7040cdb 9367
ce2cded5
L
9368 mingw* | pw32*)
9369 lt_cv_dlopen="LoadLibrary"
9370 lt_cv_dlopen_libs=
9371 ;;
d7040cdb 9372
ce2cded5
L
9373 cygwin*)
9374 lt_cv_dlopen="dlopen"
9375 lt_cv_dlopen_libs=
9376 ;;
d7040cdb 9377
ce2cded5
L
9378 darwin*)
9379 # if libdl is installed we need to link against it
9380 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9381echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9382if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9383 echo $ECHO_N "(cached) $ECHO_C" >&6
9384else
9385 ac_check_lib_save_LIBS=$LIBS
9386LIBS="-ldl $LIBS"
9387cat >conftest.$ac_ext <<_ACEOF
9388/* confdefs.h. */
9389_ACEOF
9390cat confdefs.h >>conftest.$ac_ext
9391cat >>conftest.$ac_ext <<_ACEOF
9392/* end confdefs.h. */
d7040cdb 9393
ce2cded5
L
9394/* Override any gcc2 internal prototype to avoid an error. */
9395#ifdef __cplusplus
9396extern "C"
9397#endif
9398/* We use char because int might match the return type of a gcc2
9399 builtin and then its argument prototype would still apply. */
9400char dlopen ();
9401int
9402main ()
9403{
9404dlopen ();
9405 ;
9406 return 0;
9407}
9408_ACEOF
9409rm -f conftest.$ac_objext conftest$ac_exeext
9410if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9411 (eval $ac_link) 2>conftest.er1
9412 ac_status=$?
9413 grep -v '^ *+' conftest.er1 >conftest.err
9414 rm -f conftest.er1
9415 cat conftest.err >&5
9416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9417 (exit $ac_status); } &&
9418 { ac_try='test -z "$ac_c_werror_flag"
9419 || test ! -s conftest.err'
9420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9421 (eval $ac_try) 2>&5
9422 ac_status=$?
9423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9424 (exit $ac_status); }; } &&
9425 { ac_try='test -s conftest$ac_exeext'
9426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9427 (eval $ac_try) 2>&5
9428 ac_status=$?
9429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9430 (exit $ac_status); }; }; then
9431 ac_cv_lib_dl_dlopen=yes
9432else
9433 echo "$as_me: failed program was:" >&5
9434sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 9435
ce2cded5
L
9436ac_cv_lib_dl_dlopen=no
9437fi
9438rm -f conftest.err conftest.$ac_objext \
9439 conftest$ac_exeext conftest.$ac_ext
9440LIBS=$ac_check_lib_save_LIBS
9441fi
9442echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9443echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9444if test $ac_cv_lib_dl_dlopen = yes; then
9445 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9446else
d7040cdb 9447
ce2cded5
L
9448 lt_cv_dlopen="dyld"
9449 lt_cv_dlopen_libs=
9450 lt_cv_dlopen_self=yes
d7040cdb 9451
ce2cded5 9452fi
d7040cdb 9453
ce2cded5 9454 ;;
d7040cdb 9455
ce2cded5
L
9456 *)
9457 echo "$as_me:$LINENO: checking for shl_load" >&5
9458echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9459if test "${ac_cv_func_shl_load+set}" = set; then
9460 echo $ECHO_N "(cached) $ECHO_C" >&6
9461else
9462 cat >conftest.$ac_ext <<_ACEOF
9463/* confdefs.h. */
9464_ACEOF
9465cat confdefs.h >>conftest.$ac_ext
9466cat >>conftest.$ac_ext <<_ACEOF
9467/* end confdefs.h. */
9468/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9469 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9470#define shl_load innocuous_shl_load
d7040cdb 9471
ce2cded5
L
9472/* System header to define __stub macros and hopefully few prototypes,
9473 which can conflict with char shl_load (); below.
9474 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9475 <limits.h> exists even on freestanding compilers. */
d7040cdb 9476
ce2cded5
L
9477#ifdef __STDC__
9478# include <limits.h>
9479#else
9480# include <assert.h>
9481#endif
d7040cdb 9482
ce2cded5 9483#undef shl_load
d7040cdb 9484
ce2cded5
L
9485/* Override any gcc2 internal prototype to avoid an error. */
9486#ifdef __cplusplus
9487extern "C"
9488{
9489#endif
9490/* We use char because int might match the return type of a gcc2
9491 builtin and then its argument prototype would still apply. */
9492char shl_load ();
9493/* The GNU C library defines this for functions which it implements
9494 to always fail with ENOSYS. Some functions are actually named
9495 something starting with __ and the normal name is an alias. */
9496#if defined (__stub_shl_load) || defined (__stub___shl_load)
9497choke me
9498#else
9499char (*f) () = shl_load;
9500#endif
9501#ifdef __cplusplus
9502}
9503#endif
d7040cdb 9504
ce2cded5
L
9505int
9506main ()
9507{
9508return f != shl_load;
9509 ;
9510 return 0;
9511}
9512_ACEOF
9513rm -f conftest.$ac_objext conftest$ac_exeext
9514if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9515 (eval $ac_link) 2>conftest.er1
9516 ac_status=$?
9517 grep -v '^ *+' conftest.er1 >conftest.err
9518 rm -f conftest.er1
9519 cat conftest.err >&5
9520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521 (exit $ac_status); } &&
9522 { ac_try='test -z "$ac_c_werror_flag"
9523 || test ! -s conftest.err'
9524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9525 (eval $ac_try) 2>&5
9526 ac_status=$?
9527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9528 (exit $ac_status); }; } &&
9529 { ac_try='test -s conftest$ac_exeext'
9530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9531 (eval $ac_try) 2>&5
9532 ac_status=$?
9533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9534 (exit $ac_status); }; }; then
9535 ac_cv_func_shl_load=yes
9536else
9537 echo "$as_me: failed program was:" >&5
9538sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 9539
ce2cded5 9540ac_cv_func_shl_load=no
d7040cdb 9541fi
ce2cded5
L
9542rm -f conftest.err conftest.$ac_objext \
9543 conftest$ac_exeext conftest.$ac_ext
9544fi
9545echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9546echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9547if test $ac_cv_func_shl_load = yes; then
9548 lt_cv_dlopen="shl_load"
9549else
9550 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9551echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9552if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9553 echo $ECHO_N "(cached) $ECHO_C" >&6
9554else
9555 ac_check_lib_save_LIBS=$LIBS
9556LIBS="-ldld $LIBS"
9557cat >conftest.$ac_ext <<_ACEOF
9558/* confdefs.h. */
9559_ACEOF
9560cat confdefs.h >>conftest.$ac_ext
9561cat >>conftest.$ac_ext <<_ACEOF
9562/* end confdefs.h. */
d7040cdb 9563
ce2cded5
L
9564/* Override any gcc2 internal prototype to avoid an error. */
9565#ifdef __cplusplus
9566extern "C"
9567#endif
9568/* We use char because int might match the return type of a gcc2
9569 builtin and then its argument prototype would still apply. */
9570char shl_load ();
9571int
9572main ()
9573{
9574shl_load ();
9575 ;
9576 return 0;
9577}
d7040cdb 9578_ACEOF
ce2cded5
L
9579rm -f conftest.$ac_objext conftest$ac_exeext
9580if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9581 (eval $ac_link) 2>conftest.er1
9582 ac_status=$?
9583 grep -v '^ *+' conftest.er1 >conftest.err
9584 rm -f conftest.er1
9585 cat conftest.err >&5
9586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9587 (exit $ac_status); } &&
9588 { ac_try='test -z "$ac_c_werror_flag"
9589 || test ! -s conftest.err'
9590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9591 (eval $ac_try) 2>&5
9592 ac_status=$?
9593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594 (exit $ac_status); }; } &&
9595 { ac_try='test -s conftest$ac_exeext'
9596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9597 (eval $ac_try) 2>&5
9598 ac_status=$?
9599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9600 (exit $ac_status); }; }; then
9601 ac_cv_lib_dld_shl_load=yes
9602else
9603 echo "$as_me: failed program was:" >&5
9604sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 9605
ce2cded5 9606ac_cv_lib_dld_shl_load=no
d7040cdb 9607fi
ce2cded5
L
9608rm -f conftest.err conftest.$ac_objext \
9609 conftest$ac_exeext conftest.$ac_ext
9610LIBS=$ac_check_lib_save_LIBS
9611fi
9612echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9613echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9614if test $ac_cv_lib_dld_shl_load = yes; then
9615 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9616else
9617 echo "$as_me:$LINENO: checking for dlopen" >&5
9618echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9619if test "${ac_cv_func_dlopen+set}" = set; then
9620 echo $ECHO_N "(cached) $ECHO_C" >&6
9621else
9622 cat >conftest.$ac_ext <<_ACEOF
9623/* confdefs.h. */
9624_ACEOF
9625cat confdefs.h >>conftest.$ac_ext
9626cat >>conftest.$ac_ext <<_ACEOF
9627/* end confdefs.h. */
9628/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9629 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9630#define dlopen innocuous_dlopen
d7040cdb 9631
ce2cded5
L
9632/* System header to define __stub macros and hopefully few prototypes,
9633 which can conflict with char dlopen (); below.
9634 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9635 <limits.h> exists even on freestanding compilers. */
d7040cdb 9636
ce2cded5
L
9637#ifdef __STDC__
9638# include <limits.h>
9639#else
9640# include <assert.h>
9641#endif
d7040cdb 9642
ce2cded5 9643#undef dlopen
d7040cdb 9644
ce2cded5
L
9645/* Override any gcc2 internal prototype to avoid an error. */
9646#ifdef __cplusplus
9647extern "C"
9648{
9649#endif
9650/* We use char because int might match the return type of a gcc2
9651 builtin and then its argument prototype would still apply. */
9652char dlopen ();
9653/* The GNU C library defines this for functions which it implements
9654 to always fail with ENOSYS. Some functions are actually named
9655 something starting with __ and the normal name is an alias. */
9656#if defined (__stub_dlopen) || defined (__stub___dlopen)
9657choke me
9658#else
9659char (*f) () = dlopen;
9660#endif
9661#ifdef __cplusplus
9662}
9663#endif
d7040cdb 9664
ce2cded5
L
9665int
9666main ()
9667{
9668return f != dlopen;
9669 ;
9670 return 0;
9671}
9672_ACEOF
9673rm -f conftest.$ac_objext conftest$ac_exeext
9674if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9675 (eval $ac_link) 2>conftest.er1
9676 ac_status=$?
9677 grep -v '^ *+' conftest.er1 >conftest.err
9678 rm -f conftest.er1
9679 cat conftest.err >&5
9680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681 (exit $ac_status); } &&
9682 { ac_try='test -z "$ac_c_werror_flag"
9683 || test ! -s conftest.err'
9684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9685 (eval $ac_try) 2>&5
9686 ac_status=$?
9687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688 (exit $ac_status); }; } &&
9689 { ac_try='test -s conftest$ac_exeext'
9690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9691 (eval $ac_try) 2>&5
9692 ac_status=$?
9693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694 (exit $ac_status); }; }; then
9695 ac_cv_func_dlopen=yes
9696else
9697 echo "$as_me: failed program was:" >&5
9698sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 9699
ce2cded5 9700ac_cv_func_dlopen=no
d7040cdb 9701fi
ce2cded5
L
9702rm -f conftest.err conftest.$ac_objext \
9703 conftest$ac_exeext conftest.$ac_ext
d7040cdb 9704fi
ce2cded5
L
9705echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9706echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9707if test $ac_cv_func_dlopen = yes; then
9708 lt_cv_dlopen="dlopen"
9709else
9710 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9711echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9712if test "${ac_cv_lib_dl_dlopen+set}" = set; then
d7040cdb
SE
9713 echo $ECHO_N "(cached) $ECHO_C" >&6
9714else
ce2cded5
L
9715 ac_check_lib_save_LIBS=$LIBS
9716LIBS="-ldl $LIBS"
d7040cdb
SE
9717cat >conftest.$ac_ext <<_ACEOF
9718/* confdefs.h. */
9719_ACEOF
9720cat confdefs.h >>conftest.$ac_ext
9721cat >>conftest.$ac_ext <<_ACEOF
9722/* end confdefs.h. */
d7040cdb 9723
ce2cded5
L
9724/* Override any gcc2 internal prototype to avoid an error. */
9725#ifdef __cplusplus
9726extern "C"
9727#endif
9728/* We use char because int might match the return type of a gcc2
9729 builtin and then its argument prototype would still apply. */
9730char dlopen ();
d7040cdb
SE
9731int
9732main ()
9733{
ce2cded5 9734dlopen ();
d7040cdb
SE
9735 ;
9736 return 0;
9737}
9738_ACEOF
ce2cded5
L
9739rm -f conftest.$ac_objext conftest$ac_exeext
9740if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9741 (eval $ac_link) 2>conftest.er1
d7040cdb
SE
9742 ac_status=$?
9743 grep -v '^ *+' conftest.er1 >conftest.err
9744 rm -f conftest.er1
9745 cat conftest.err >&5
9746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747 (exit $ac_status); } &&
9748 { ac_try='test -z "$ac_c_werror_flag"
9749 || test ! -s conftest.err'
9750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9751 (eval $ac_try) 2>&5
9752 ac_status=$?
9753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754 (exit $ac_status); }; } &&
ce2cded5 9755 { ac_try='test -s conftest$ac_exeext'
d7040cdb
SE
9756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9757 (eval $ac_try) 2>&5
9758 ac_status=$?
9759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760 (exit $ac_status); }; }; then
ce2cded5
L
9761 ac_cv_lib_dl_dlopen=yes
9762else
9763 echo "$as_me: failed program was:" >&5
9764sed 's/^/| /' conftest.$ac_ext >&5
9765
9766ac_cv_lib_dl_dlopen=no
9767fi
9768rm -f conftest.err conftest.$ac_objext \
9769 conftest$ac_exeext conftest.$ac_ext
9770LIBS=$ac_check_lib_save_LIBS
9771fi
9772echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9773echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9774if test $ac_cv_lib_dl_dlopen = yes; then
9775 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9776else
9777 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9778echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9779if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9780 echo $ECHO_N "(cached) $ECHO_C" >&6
9781else
9782 ac_check_lib_save_LIBS=$LIBS
9783LIBS="-lsvld $LIBS"
d7040cdb
SE
9784cat >conftest.$ac_ext <<_ACEOF
9785/* confdefs.h. */
9786_ACEOF
9787cat confdefs.h >>conftest.$ac_ext
9788cat >>conftest.$ac_ext <<_ACEOF
9789/* end confdefs.h. */
d7040cdb 9790
ce2cded5
L
9791/* Override any gcc2 internal prototype to avoid an error. */
9792#ifdef __cplusplus
9793extern "C"
9794#endif
9795/* We use char because int might match the return type of a gcc2
9796 builtin and then its argument prototype would still apply. */
9797char dlopen ();
d7040cdb
SE
9798int
9799main ()
9800{
ce2cded5 9801dlopen ();
d7040cdb
SE
9802 ;
9803 return 0;
9804}
9805_ACEOF
ce2cded5
L
9806rm -f conftest.$ac_objext conftest$ac_exeext
9807if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9808 (eval $ac_link) 2>conftest.er1
d7040cdb
SE
9809 ac_status=$?
9810 grep -v '^ *+' conftest.er1 >conftest.err
9811 rm -f conftest.er1
9812 cat conftest.err >&5
9813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9814 (exit $ac_status); } &&
9815 { ac_try='test -z "$ac_c_werror_flag"
9816 || test ! -s conftest.err'
9817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9818 (eval $ac_try) 2>&5
9819 ac_status=$?
9820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9821 (exit $ac_status); }; } &&
ce2cded5 9822 { ac_try='test -s conftest$ac_exeext'
d7040cdb
SE
9823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9824 (eval $ac_try) 2>&5
9825 ac_status=$?
9826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9827 (exit $ac_status); }; }; then
ce2cded5 9828 ac_cv_lib_svld_dlopen=yes
d7040cdb
SE
9829else
9830 echo "$as_me: failed program was:" >&5
9831sed 's/^/| /' conftest.$ac_ext >&5
9832
ce2cded5 9833ac_cv_lib_svld_dlopen=no
d7040cdb 9834fi
ce2cded5
L
9835rm -f conftest.err conftest.$ac_objext \
9836 conftest$ac_exeext conftest.$ac_ext
9837LIBS=$ac_check_lib_save_LIBS
9838fi
9839echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9840echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9841if test $ac_cv_lib_svld_dlopen = yes; then
9842 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9843else
9844 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9845echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9846if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9847 echo $ECHO_N "(cached) $ECHO_C" >&6
d7040cdb 9848else
ce2cded5
L
9849 ac_check_lib_save_LIBS=$LIBS
9850LIBS="-ldld $LIBS"
9851cat >conftest.$ac_ext <<_ACEOF
d7040cdb
SE
9852/* confdefs.h. */
9853_ACEOF
9854cat confdefs.h >>conftest.$ac_ext
9855cat >>conftest.$ac_ext <<_ACEOF
9856/* end confdefs.h. */
ce2cded5
L
9857
9858/* Override any gcc2 internal prototype to avoid an error. */
9859#ifdef __cplusplus
9860extern "C"
9861#endif
9862/* We use char because int might match the return type of a gcc2
9863 builtin and then its argument prototype would still apply. */
9864char dld_link ();
d7040cdb
SE
9865int
9866main ()
9867{
ce2cded5 9868dld_link ();
d7040cdb
SE
9869 ;
9870 return 0;
9871}
9872_ACEOF
ce2cded5
L
9873rm -f conftest.$ac_objext conftest$ac_exeext
9874if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9875 (eval $ac_link) 2>conftest.er1
d7040cdb
SE
9876 ac_status=$?
9877 grep -v '^ *+' conftest.er1 >conftest.err
9878 rm -f conftest.er1
9879 cat conftest.err >&5
9880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9881 (exit $ac_status); } &&
9882 { ac_try='test -z "$ac_c_werror_flag"
9883 || test ! -s conftest.err'
9884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9885 (eval $ac_try) 2>&5
9886 ac_status=$?
9887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888 (exit $ac_status); }; } &&
ce2cded5 9889 { ac_try='test -s conftest$ac_exeext'
d7040cdb
SE
9890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9891 (eval $ac_try) 2>&5
9892 ac_status=$?
9893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9894 (exit $ac_status); }; }; then
ce2cded5
L
9895 ac_cv_lib_dld_dld_link=yes
9896else
9897 echo "$as_me: failed program was:" >&5
9898sed 's/^/| /' conftest.$ac_ext >&5
9899
9900ac_cv_lib_dld_dld_link=no
d7040cdb 9901fi
ce2cded5
L
9902rm -f conftest.err conftest.$ac_objext \
9903 conftest$ac_exeext conftest.$ac_ext
9904LIBS=$ac_check_lib_save_LIBS
9905fi
9906echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9907echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9908if test $ac_cv_lib_dld_dld_link = yes; then
9909 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9910fi
9911
9912
9913fi
9914
9915
9916fi
9917
9918
9919fi
9920
9921
9922fi
9923
9924
9925fi
9926
9927 ;;
9928 esac
9929
9930 if test "x$lt_cv_dlopen" != xno; then
9931 enable_dlopen=yes
d7040cdb 9932 else
ce2cded5 9933 enable_dlopen=no
d7040cdb 9934 fi
ce2cded5
L
9935
9936 case $lt_cv_dlopen in
9937 dlopen)
9938 save_CPPFLAGS="$CPPFLAGS"
9939 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9940
9941 save_LDFLAGS="$LDFLAGS"
9942 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9943
9944 save_LIBS="$LIBS"
9945 LIBS="$lt_cv_dlopen_libs $LIBS"
9946
9947 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9948echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9949if test "${lt_cv_dlopen_self+set}" = set; then
9950 echo $ECHO_N "(cached) $ECHO_C" >&6
d7040cdb 9951else
ce2cded5
L
9952 if test "$cross_compiling" = yes; then :
9953 lt_cv_dlopen_self=cross
9954else
9955 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9956 lt_status=$lt_dlunknown
9957 cat > conftest.$ac_ext <<_LT_EOF
6194aaab 9958#line 9958 "configure"
ce2cded5
L
9959#include "confdefs.h"
9960
9961#if HAVE_DLFCN_H
9962#include <dlfcn.h>
9963#endif
9964
9965#include <stdio.h>
9966
9967#ifdef RTLD_GLOBAL
9968# define LT_DLGLOBAL RTLD_GLOBAL
9969#else
9970# ifdef DL_GLOBAL
9971# define LT_DLGLOBAL DL_GLOBAL
9972# else
9973# define LT_DLGLOBAL 0
9974# endif
9975#endif
9976
9977/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9978 find out it does not work in some platform. */
9979#ifndef LT_DLLAZY_OR_NOW
9980# ifdef RTLD_LAZY
9981# define LT_DLLAZY_OR_NOW RTLD_LAZY
9982# else
9983# ifdef DL_LAZY
9984# define LT_DLLAZY_OR_NOW DL_LAZY
9985# else
9986# ifdef RTLD_NOW
9987# define LT_DLLAZY_OR_NOW RTLD_NOW
9988# else
9989# ifdef DL_NOW
9990# define LT_DLLAZY_OR_NOW DL_NOW
9991# else
9992# define LT_DLLAZY_OR_NOW 0
9993# endif
9994# endif
9995# endif
9996# endif
9997#endif
9998
9999#ifdef __cplusplus
10000extern "C" void exit (int);
10001#endif
10002
10003void fnord() { int i=42;}
10004int main ()
10005{
10006 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10007 int status = $lt_dlunknown;
10008
10009 if (self)
10010 {
10011 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10012 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10013 /* dlclose (self); */
10014 }
10015 else
10016 puts (dlerror ());
10017
10018 exit (status);
10019}
10020_LT_EOF
10021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10022 (eval $ac_link) 2>&5
10023 ac_status=$?
10024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10026 (./conftest; exit; ) >&5 2>/dev/null
10027 lt_status=$?
10028 case x$lt_status in
10029 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10030 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10031 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10032 esac
10033 else :
10034 # compilation failed
10035 lt_cv_dlopen_self=no
10036 fi
10037fi
10038rm -fr conftest*
10039
d7040cdb
SE
10040
10041fi
ce2cded5
L
10042echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10043echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10044
10045 if test "x$lt_cv_dlopen_self" = xyes; then
10046 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10047 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10048echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10049if test "${lt_cv_dlopen_self_static+set}" = set; then
10050 echo $ECHO_N "(cached) $ECHO_C" >&6
d7040cdb 10051else
ce2cded5
L
10052 if test "$cross_compiling" = yes; then :
10053 lt_cv_dlopen_self_static=cross
10054else
10055 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10056 lt_status=$lt_dlunknown
10057 cat > conftest.$ac_ext <<_LT_EOF
6194aaab 10058#line 10058 "configure"
ce2cded5
L
10059#include "confdefs.h"
10060
10061#if HAVE_DLFCN_H
10062#include <dlfcn.h>
10063#endif
10064
10065#include <stdio.h>
10066
10067#ifdef RTLD_GLOBAL
10068# define LT_DLGLOBAL RTLD_GLOBAL
10069#else
10070# ifdef DL_GLOBAL
10071# define LT_DLGLOBAL DL_GLOBAL
10072# else
10073# define LT_DLGLOBAL 0
10074# endif
10075#endif
10076
10077/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10078 find out it does not work in some platform. */
10079#ifndef LT_DLLAZY_OR_NOW
10080# ifdef RTLD_LAZY
10081# define LT_DLLAZY_OR_NOW RTLD_LAZY
10082# else
10083# ifdef DL_LAZY
10084# define LT_DLLAZY_OR_NOW DL_LAZY
10085# else
10086# ifdef RTLD_NOW
10087# define LT_DLLAZY_OR_NOW RTLD_NOW
10088# else
10089# ifdef DL_NOW
10090# define LT_DLLAZY_OR_NOW DL_NOW
10091# else
10092# define LT_DLLAZY_OR_NOW 0
10093# endif
10094# endif
10095# endif
10096# endif
10097#endif
10098
10099#ifdef __cplusplus
10100extern "C" void exit (int);
10101#endif
10102
10103void fnord() { int i=42;}
10104int main ()
d7040cdb 10105{
ce2cded5
L
10106 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10107 int status = $lt_dlunknown;
10108
10109 if (self)
10110 {
10111 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10112 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10113 /* dlclose (self); */
10114 }
10115 else
10116 puts (dlerror ());
10117
10118 exit (status);
d7040cdb 10119}
ce2cded5
L
10120_LT_EOF
10121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d7040cdb
SE
10122 (eval $ac_link) 2>&5
10123 ac_status=$?
10124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
10125 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10126 (./conftest; exit; ) >&5 2>/dev/null
10127 lt_status=$?
10128 case x$lt_status in
10129 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10130 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10131 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10132 esac
10133 else :
10134 # compilation failed
10135 lt_cv_dlopen_self_static=no
10136 fi
d7040cdb 10137fi
ce2cded5
L
10138rm -fr conftest*
10139
10140
d7040cdb 10141fi
ce2cded5
L
10142echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10143echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10144 fi
10145
10146 CPPFLAGS="$save_CPPFLAGS"
10147 LDFLAGS="$save_LDFLAGS"
10148 LIBS="$save_LIBS"
10149 ;;
10150 esac
10151
10152 case $lt_cv_dlopen_self in
10153 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10154 *) enable_dlopen_self=unknown ;;
10155 esac
10156
10157 case $lt_cv_dlopen_self_static in
10158 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10159 *) enable_dlopen_self_static=unknown ;;
10160 esac
d7040cdb 10161fi
d7040cdb 10162
d7040cdb
SE
10163
10164
d7040cdb 10165
d7040cdb 10166
ce2cded5
L
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179striplib=
10180old_striplib=
10181echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10182echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10183if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10184 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10185 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10186 echo "$as_me:$LINENO: result: yes" >&5
10187echo "${ECHO_T}yes" >&6
10188else
10189# FIXME - insert some real tests, host_os isn't really good enough
10190 case $host_os in
10191 darwin*)
10192 if test -n "$STRIP" ; then
10193 striplib="$STRIP -x"
10194 old_striplib="$STRIP -S"
10195 echo "$as_me:$LINENO: result: yes" >&5
10196echo "${ECHO_T}yes" >&6
10197 else
10198 echo "$as_me:$LINENO: result: no" >&5
10199echo "${ECHO_T}no" >&6
d7040cdb 10200 fi
ce2cded5
L
10201 ;;
10202 *)
10203 echo "$as_me:$LINENO: result: no" >&5
10204echo "${ECHO_T}no" >&6
10205 ;;
d7040cdb 10206 esac
d7040cdb
SE
10207fi
10208
d7040cdb 10209
d7040cdb 10210
d7040cdb 10211
d7040cdb 10212
d7040cdb 10213
d7040cdb 10214
d7040cdb 10215
d7040cdb 10216
d7040cdb 10217
d7040cdb 10218
d7040cdb 10219
ce2cded5
L
10220 # Report which library types will actually be built
10221 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10222echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10223 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10224echo "${ECHO_T}$can_build_shared" >&6
d7040cdb 10225
ce2cded5
L
10226 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10227echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10228 test "$can_build_shared" = "no" && enable_shared=no
d7040cdb 10229
ce2cded5
L
10230 # On AIX, shared libraries and static libraries use the same namespace, and
10231 # are all built from PIC.
10232 case $host_os in
10233 aix3*)
10234 test "$enable_shared" = yes && enable_static=no
10235 if test -n "$RANLIB"; then
10236 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10237 postinstall_cmds='$RANLIB $lib'
10238 fi
10239 ;;
d7040cdb 10240
50e7d84b 10241 aix[4-9]*)
ce2cded5
L
10242 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10243 test "$enable_shared" = yes && enable_static=no
10244 fi
10245 ;;
10246 esac
10247 echo "$as_me:$LINENO: result: $enable_shared" >&5
10248echo "${ECHO_T}$enable_shared" >&6
10249
10250 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10251echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10252 # Make sure either enable_shared or enable_static is yes.
10253 test "$enable_shared" = yes || enable_static=yes
10254 echo "$as_me:$LINENO: result: $enable_static" >&5
10255echo "${ECHO_T}$enable_static" >&6
d7040cdb 10256
d7040cdb 10257
d7040cdb 10258
d7040cdb 10259
ce2cded5
L
10260fi
10261ac_ext=c
10262ac_cpp='$CPP $CPPFLAGS'
10263ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10264ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10265ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 10266
ce2cded5 10267CC="$lt_save_CC"
d7040cdb 10268
d7040cdb 10269
d7040cdb 10270
d7040cdb 10271
d7040cdb 10272
d7040cdb 10273
d7040cdb 10274
d7040cdb 10275
d7040cdb 10276
d7040cdb
SE
10277
10278
d7040cdb
SE
10279
10280
ce2cded5 10281 ac_config_commands="$ac_config_commands libtool"
d7040cdb
SE
10282
10283
d7040cdb 10284
d7040cdb 10285
ce2cded5 10286# Only expand once:
d7040cdb 10287
d7040cdb 10288
d7040cdb 10289
ce2cded5
L
10290# Check whether --enable-targets or --disable-targets was given.
10291if test "${enable_targets+set}" = set; then
10292 enableval="$enable_targets"
10293 case "${enableval}" in
10294 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
10295echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
10296 { (exit 1); exit 1; }; }
10297 ;;
10298 no) enable_targets= ;;
10299 *) enable_targets=$enableval ;;
10300esac
10301fi;
10302# Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
10303if test "${enable_commonbfdlib+set}" = set; then
10304 enableval="$enable_commonbfdlib"
10305 case "${enableval}" in
10306 yes) commonbfdlib=true ;;
10307 no) commonbfdlib=false ;;
10308 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
10309echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
10310 { (exit 1); exit 1; }; } ;;
10311esac
10312fi;
10313ac_checking=yes
10314if grep '^RELEASE=y' ${srcdir}/../bfd/Makefile.am >/dev/null 2>/dev/null ; then
10315 ac_checking=
10316fi
10317# Check whether --enable-checking or --disable-checking was given.
10318if test "${enable_checking+set}" = set; then
10319 enableval="$enable_checking"
10320 case "${enableval}" in
10321 no|none) ac_checking= ;;
10322 *) ac_checking=yes ;;
10323esac
10324fi; if test x$ac_checking != x ; then
d7040cdb 10325
ce2cded5
L
10326cat >>confdefs.h <<\_ACEOF
10327#define ENABLE_CHECKING 1
10328_ACEOF
d7040cdb 10329
ce2cded5 10330fi
d7040cdb 10331
ce2cded5 10332using_cgen=no
d7040cdb 10333
d7040cdb 10334
ce2cded5 10335GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
d7040cdb 10336
ce2cded5
L
10337# Check whether --enable-werror or --disable-werror was given.
10338if test "${enable_werror+set}" = set; then
10339 enableval="$enable_werror"
10340 case "${enableval}" in
10341 yes | y) ERROR_ON_WARNING="yes" ;;
10342 no | n) ERROR_ON_WARNING="no" ;;
10343 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
10344echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
10345 { (exit 1); exit 1; }; } ;;
10346 esac
10347fi;
d7040cdb 10348
bb8541b9
L
10349# Enable -Wno-format by default when using gcc on mingw
10350case "${host}" in
10351 *-*-mingw32*)
10352 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10353 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
10354 fi
10355 ;;
10356 *) ;;
10357esac
10358
ce2cded5
L
10359# Enable -Werror by default when using gcc
10360if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10361 ERROR_ON_WARNING=yes
10362fi
10363
10364NO_WERROR=
10365if test "${ERROR_ON_WARNING}" = yes ; then
10366 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
10367 NO_WERROR="-Wno-error"
10368fi
10369
10370if test "${GCC}" = yes ; then
10371 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
10372fi
10373
10374# Check whether --enable-build-warnings or --disable-build-warnings was given.
10375if test "${enable_build_warnings+set}" = set; then
10376 enableval="$enable_build_warnings"
10377 case "${enableval}" in
10378 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
10379 no) if test "${GCC}" = yes ; then
10380 WARN_CFLAGS="-w"
10381 fi;;
10382 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10383 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
10384 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10385 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
10386 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
10387esac
10388fi;
d7040cdb 10389
ce2cded5
L
10390if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
10391 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
10392fi
d7040cdb 10393
d7040cdb 10394
d7040cdb 10395
d7040cdb 10396
d7040cdb 10397
ce2cded5
L
10398# Generate a header file
10399 ac_config_headers="$ac_config_headers config.h:config.in"
d7040cdb 10400
d7040cdb 10401
ce2cded5
L
10402# If we are on a DOS filesystem, we must use gdb.ini rather than
10403# .gdbinit.
10404case "${host}" in
10405 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-windows*)
10406 GDBINIT="gdb.ini"
10407 ac_config_files="$ac_config_files gdb.ini:gdbinit.in"
d7040cdb 10408
ce2cded5
L
10409 ;;
10410 *)
10411 GDBINIT=".gdbinit"
10412 ac_config_files="$ac_config_files .gdbinit:gdbinit.in"
d7040cdb 10413
ce2cded5
L
10414 ;;
10415esac
d7040cdb 10416
d7040cdb 10417
ce2cded5
L
10418#We need this for the host. BOUT header is in host order.
10419echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
10420echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
10421if test "${ac_cv_c_bigendian+set}" = set; then
10422 echo $ECHO_N "(cached) $ECHO_C" >&6
10423else
10424 # See if sys/param.h defines the BYTE_ORDER macro.
10425cat >conftest.$ac_ext <<_ACEOF
10426/* confdefs.h. */
10427_ACEOF
10428cat confdefs.h >>conftest.$ac_ext
10429cat >>conftest.$ac_ext <<_ACEOF
10430/* end confdefs.h. */
10431#include <sys/types.h>
10432#include <sys/param.h>
d7040cdb 10433
ce2cded5
L
10434int
10435main ()
10436{
10437#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10438 bogus endian macros
10439#endif
d7040cdb 10440
ce2cded5
L
10441 ;
10442 return 0;
10443}
10444_ACEOF
10445rm -f conftest.$ac_objext
10446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10447 (eval $ac_compile) 2>conftest.er1
10448 ac_status=$?
10449 grep -v '^ *+' conftest.er1 >conftest.err
10450 rm -f conftest.er1
10451 cat conftest.err >&5
10452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10453 (exit $ac_status); } &&
10454 { ac_try='test -z "$ac_c_werror_flag"
10455 || test ! -s conftest.err'
10456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10457 (eval $ac_try) 2>&5
10458 ac_status=$?
10459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10460 (exit $ac_status); }; } &&
10461 { ac_try='test -s conftest.$ac_objext'
10462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10463 (eval $ac_try) 2>&5
10464 ac_status=$?
10465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10466 (exit $ac_status); }; }; then
10467 # It does; now see whether it defined to BIG_ENDIAN or not.
10468cat >conftest.$ac_ext <<_ACEOF
10469/* confdefs.h. */
10470_ACEOF
10471cat confdefs.h >>conftest.$ac_ext
10472cat >>conftest.$ac_ext <<_ACEOF
10473/* end confdefs.h. */
10474#include <sys/types.h>
10475#include <sys/param.h>
d7040cdb 10476
ce2cded5
L
10477int
10478main ()
10479{
10480#if BYTE_ORDER != BIG_ENDIAN
10481 not big endian
10482#endif
d7040cdb 10483
ce2cded5
L
10484 ;
10485 return 0;
10486}
10487_ACEOF
10488rm -f conftest.$ac_objext
10489if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10490 (eval $ac_compile) 2>conftest.er1
10491 ac_status=$?
10492 grep -v '^ *+' conftest.er1 >conftest.err
10493 rm -f conftest.er1
10494 cat conftest.err >&5
10495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10496 (exit $ac_status); } &&
10497 { ac_try='test -z "$ac_c_werror_flag"
10498 || test ! -s conftest.err'
10499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10500 (eval $ac_try) 2>&5
10501 ac_status=$?
10502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10503 (exit $ac_status); }; } &&
10504 { ac_try='test -s conftest.$ac_objext'
10505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10506 (eval $ac_try) 2>&5
10507 ac_status=$?
10508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10509 (exit $ac_status); }; }; then
10510 ac_cv_c_bigendian=yes
10511else
10512 echo "$as_me: failed program was:" >&5
10513sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 10514
ce2cded5
L
10515ac_cv_c_bigendian=no
10516fi
10517rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10518else
10519 echo "$as_me: failed program was:" >&5
10520sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 10521
ce2cded5
L
10522# It does not; compile a test program.
10523if test "$cross_compiling" = yes; then
10524 # try to guess the endianness by grepping values into an object file
10525 ac_cv_c_bigendian=unknown
10526 cat >conftest.$ac_ext <<_ACEOF
10527/* confdefs.h. */
10528_ACEOF
10529cat confdefs.h >>conftest.$ac_ext
10530cat >>conftest.$ac_ext <<_ACEOF
10531/* end confdefs.h. */
10532short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10533short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10534void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
10535short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10536short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10537void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
10538int
10539main ()
10540{
10541 _ascii (); _ebcdic ();
10542 ;
10543 return 0;
10544}
10545_ACEOF
10546rm -f conftest.$ac_objext
10547if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10548 (eval $ac_compile) 2>conftest.er1
10549 ac_status=$?
10550 grep -v '^ *+' conftest.er1 >conftest.err
10551 rm -f conftest.er1
10552 cat conftest.err >&5
10553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10554 (exit $ac_status); } &&
10555 { ac_try='test -z "$ac_c_werror_flag"
10556 || test ! -s conftest.err'
10557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10558 (eval $ac_try) 2>&5
10559 ac_status=$?
10560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10561 (exit $ac_status); }; } &&
10562 { ac_try='test -s conftest.$ac_objext'
10563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10564 (eval $ac_try) 2>&5
10565 ac_status=$?
10566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567 (exit $ac_status); }; }; then
10568 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
10569 ac_cv_c_bigendian=yes
d7040cdb 10570fi
ce2cded5
L
10571if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10572 if test "$ac_cv_c_bigendian" = unknown; then
10573 ac_cv_c_bigendian=no
10574 else
10575 # finding both strings is unlikely to happen, but who knows?
10576 ac_cv_c_bigendian=unknown
10577 fi
10578fi
10579else
10580 echo "$as_me: failed program was:" >&5
10581sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 10582
ce2cded5
L
10583fi
10584rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10585else
10586 cat >conftest.$ac_ext <<_ACEOF
10587/* confdefs.h. */
10588_ACEOF
10589cat confdefs.h >>conftest.$ac_ext
10590cat >>conftest.$ac_ext <<_ACEOF
10591/* end confdefs.h. */
10592int
10593main ()
10594{
10595 /* Are we little or big endian? From Harbison&Steele. */
10596 union
10597 {
10598 long l;
10599 char c[sizeof (long)];
10600 } u;
10601 u.l = 1;
10602 exit (u.c[sizeof (long) - 1] == 1);
10603}
d7040cdb 10604_ACEOF
ce2cded5
L
10605rm -f conftest$ac_exeext
10606if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10607 (eval $ac_link) 2>&5
10608 ac_status=$?
10609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10612 (eval $ac_try) 2>&5
10613 ac_status=$?
10614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615 (exit $ac_status); }; }; then
10616 ac_cv_c_bigendian=no
10617else
10618 echo "$as_me: program exited with status $ac_status" >&5
10619echo "$as_me: failed program was:" >&5
10620sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 10621
ce2cded5
L
10622( exit $ac_status )
10623ac_cv_c_bigendian=yes
d7040cdb 10624fi
ce2cded5 10625rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d7040cdb 10626fi
d7040cdb 10627fi
ce2cded5
L
10628rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10629fi
10630echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
10631echo "${ECHO_T}$ac_cv_c_bigendian" >&6
10632case $ac_cv_c_bigendian in
10633 yes)
d7040cdb 10634
d7040cdb 10635cat >>confdefs.h <<\_ACEOF
ce2cded5 10636#define WORDS_BIGENDIAN 1
d7040cdb
SE
10637_ACEOF
10638 ;;
ce2cded5
L
10639 no)
10640 ;;
10641 *)
10642 { { echo "$as_me:$LINENO: error: unknown endianness
10643presetting ac_cv_c_bigendian=no (or yes) will help" >&5
10644echo "$as_me: error: unknown endianness
10645presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
10646 { (exit 1); exit 1; }; } ;;
d7040cdb
SE
10647esac
10648
d7040cdb 10649
ce2cded5 10650te_file=generic
d7040cdb 10651
ce2cded5
L
10652# Makefile target for installing gas in $(tooldir)/bin.
10653install_tooldir=install-exec-tooldir
d7040cdb 10654
ce2cded5
L
10655canon_targets=""
10656all_targets=no
10657if test -n "$enable_targets" ; then
10658 for t in `echo $enable_targets | sed 's/,/ /g'`; do
10659 if test $t = "all"; then
10660 all_targets=yes
10661 continue
10662 fi
10663 result=`$ac_config_sub $t 2>/dev/null`
10664 if test -n "$result" ; then
10665 canon_targets="$canon_targets $result"
10666# else
10667# # Permit "all", etc. We don't support it yet though.
10668# canon_targets="$canon_targets $t"
10669 fi
10670 done
10671 _gas_uniq_list="$canon_targets"
d7040cdb
SE
10672_gas_uniq_newlist=""
10673for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
10674 case $_gas_uniq_i in
10675 _gas_uniq_dummy) ;;
10676 *) case " $_gas_uniq_newlist " in
10677 *" $_gas_uniq_i "*) ;;
10678 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
10679 esac ;;
10680 esac
10681done
ce2cded5 10682canon_targets=$_gas_uniq_newlist
d7040cdb 10683
ce2cded5
L
10684fi
10685
10686emulations=""
10687
10688for this_target in $target $canon_targets ; do
10689
10690 targ=${this_target}
10691 . ${srcdir}/configure.tgt
10692
10693 case ${target_cpu} in
10694 crisv32)
10695
10696cat >>confdefs.h <<_ACEOF
10697#define DEFAULT_CRIS_ARCH $arch
d7040cdb 10698_ACEOF
ce2cded5
L
10699
10700 ;;
10701 esac
10702
10703 if test ${this_target} = $target ; then
10704 target_cpu_type=${cpu_type}
10705 elif test ${target_cpu_type} != ${cpu_type} ; then
10706 continue
10707 fi
10708
10709 generic_target=${cpu_type}-${target_vendor}-${target_os}
10710 case ${generic_target} in
10711 i386-*-sco3.2v5*)
10712 if test ${this_target} = $target; then
10713
d7040cdb 10714cat >>confdefs.h <<\_ACEOF
ce2cded5 10715#define SCO_ELF 1
d7040cdb 10716_ACEOF
ce2cded5
L
10717
10718 fi
10719 ;;
10720
10721 i386-*-msdosdjgpp* \
10722 | i386-*-go32* \
10723 | i386-go32-rtems*)
10724
d7040cdb 10725cat >>confdefs.h <<\_ACEOF
ce2cded5 10726#define STRICTCOFF 1
d7040cdb 10727_ACEOF
ce2cded5
L
10728
10729 ;;
10730
10731 i860-*-*)
10732 { echo "$as_me:$LINENO: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&5
10733echo "$as_me: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&2;}
10734 ;;
10735
10736 mips-sony-bsd*)
10737 ;;
10738 mips-*-bsd*)
10739 { { echo "$as_me:$LINENO: error: Unknown vendor for mips-bsd configuration." >&5
10740echo "$as_me: error: Unknown vendor for mips-bsd configuration." >&2;}
10741 { (exit 1); exit 1; }; }
10742 ;;
10743
10744 ppc-*-aix5.*)
10745
d7040cdb 10746cat >>confdefs.h <<\_ACEOF
ce2cded5 10747#define AIX_WEAK_SUPPORT 1
d7040cdb 10748_ACEOF
ce2cded5
L
10749
10750 ;;
10751 ppc-*-linux-*)
10752 case "$endian" in
10753 big) ;;
10754 *) { { echo "$as_me:$LINENO: error: GNU/Linux must be configured big endian" >&5
10755echo "$as_me: error: GNU/Linux must be configured big endian" >&2;}
10756 { (exit 1); exit 1; }; } ;;
10757 esac
10758 ;;
10759 ppc-*-solaris*)
10760 if test ${this_target} = $target; then
10761
d7040cdb 10762cat >>confdefs.h <<\_ACEOF
ce2cded5 10763#define TARGET_SOLARIS_COMMENT 1
d7040cdb 10764_ACEOF
ce2cded5
L
10765
10766 fi
10767 if test x${endian} = xbig; then
10768 { { echo "$as_me:$LINENO: error: Solaris must be configured little endian" >&5
10769echo "$as_me: error: Solaris must be configured little endian" >&2;}
10770 { (exit 1); exit 1; }; }
10771 fi
10772 ;;
10773
10774 sh*-*-symbianelf*)
10775
d7040cdb 10776cat >>confdefs.h <<\_ACEOF
ce2cded5 10777#define TARGET_SYMBIAN 1
d7040cdb 10778_ACEOF
ce2cded5
L
10779
10780 ;;
d7040cdb 10781 esac
d7040cdb 10782
ce2cded5
L
10783 if test ${this_target} = $target ; then
10784 endian_def=
10785 if test x${endian} = xbig; then
10786 endian_def=1
10787 elif test x${endian} = xlittle; then
10788 endian_def=0
10789 fi
10790 if test x${endian_def} != x; then
10791
10792cat >>confdefs.h <<_ACEOF
10793#define TARGET_BYTES_BIG_ENDIAN $endian_def
10794_ACEOF
10795
10796 fi
10797 fi
10798
10799# Other random stuff.
10800
10801 case ${cpu_type} in
10802 mips)
10803 # Set mips_cpu to the name of the default CPU.
10804 case ${target_cpu} in
10805 mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el)
10806 mips_cpu=from-abi
10807 ;;
10808 mipsisa32 | mipsisa32el)
10809 mips_cpu=mips32
10810 ;;
10811 mipsisa32r2 | mipsisa32r2el)
10812 mips_cpu=mips32r2
10813 ;;
10814 mipsisa64 | mipsisa64el)
10815 mips_cpu=mips64
10816 ;;
10817 mipsisa64r2 | mipsisa64r2el)
10818 mips_cpu=mips64r2
10819 ;;
10820 mipstx39 | mipstx39el)
10821 mips_cpu=r3900
10822 ;;
10823 mips64vr | mips64vrel)
10824 mips_cpu=vr4100
10825 ;;
10826 mipsisa32r2* | mipsisa64r2*)
10827 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'`
10828 ;;
10829 mips64* | mipsisa64* | mipsisa32*)
10830 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..//' -e 's/el$//'`
10831 ;;
10832 *)
10833 { { echo "$as_me:$LINENO: error: $target_cpu isn't a supported MIPS CPU name" >&5
10834echo "$as_me: error: $target_cpu isn't a supported MIPS CPU name" >&2;}
10835 { (exit 1); exit 1; }; }
10836 ;;
10837 esac
10838 # See whether it's appropriate to set E_MIPS_ABI_O32 for o32
10839 # binaries. It's a GNU extension that some OSes don't understand.
10840 # The value only matters on ELF targets.
10841 case ${target} in
10842 *-*-irix*)
10843 use_e_mips_abi_o32=0
10844 ;;
10845 *)
10846 use_e_mips_abi_o32=1
10847 ;;
10848 esac
10849 # Decide whether to generate 32-bit or 64-bit code by default.
10850 # Used to resolve -march=from-abi when an embedded ABI is selected.
10851 case ${target} in
10852 mips64*-*-* | mipsisa64*-*-*)
10853 mips_default_64bit=1
10854 ;;
10855 *)
10856 mips_default_64bit=0
10857 ;;
10858 esac
10859 # Decide which ABI to target by default.
10860 case ${target} in
10861 mips64*-linux* | mips-sgi-irix6*)
10862 mips_default_abi=N32_ABI
10863 ;;
10864 mips*-linux*)
10865 mips_default_abi=O32_ABI
10866 ;;
10867 mips64*-openbsd*)
10868 mips_default_abi=N64_ABI
10869 ;;
10870 *)
10871 mips_default_abi=NO_ABI
10872 ;;
10873 esac
10874
10875cat >>confdefs.h <<_ACEOF
10876#define MIPS_CPU_STRING_DEFAULT "$mips_cpu"
d7040cdb 10877_ACEOF
d7040cdb
SE
10878
10879
10880cat >>confdefs.h <<_ACEOF
ce2cded5 10881#define USE_E_MIPS_ABI_O32 $use_e_mips_abi_o32
d7040cdb
SE
10882_ACEOF
10883
10884
10885cat >>confdefs.h <<_ACEOF
ce2cded5 10886#define MIPS_DEFAULT_64BIT $mips_default_64bit
d7040cdb
SE
10887_ACEOF
10888
10889
ce2cded5
L
10890cat >>confdefs.h <<_ACEOF
10891#define MIPS_DEFAULT_ABI $mips_default_abi
10892_ACEOF
d7040cdb 10893
ce2cded5
L
10894 ;;
10895 esac
d7040cdb 10896
ce2cded5
L
10897 # Do we need the opcodes library?
10898 case ${cpu_type} in
10899 vax | tic30)
10900 ;;
d7040cdb 10901
ce2cded5
L
10902 *)
10903 need_opcodes=yes
d7040cdb 10904
ce2cded5
L
10905 case "${enable_shared}" in
10906 yes) shared_opcodes=true ;;
10907 *opcodes*) shared_opcodes=true ;;
10908 *) shared_opcodes=false ;;
10909 esac
10910 ;;
10911 esac
d7040cdb 10912
ce2cded5
L
10913 # Any other special object files needed ?
10914 case ${cpu_type} in
d7040cdb 10915
ce2cded5
L
10916 bfin)
10917 echo ${extra_objects} | grep -s "bfin-parse.o"
10918 if test $? -ne 0 ; then
10919 extra_objects="$extra_objects bfin-parse.o"
10920 fi
d7040cdb 10921
ce2cded5
L
10922 echo ${extra_objects} | grep -s "bfin-lex.o"
10923 if test $? -ne 0 ; then
10924 extra_objects="$extra_objects bfin-lex.o"
10925 fi
10926 ;;
d7040cdb 10927
ce2cded5
L
10928 fr30 | ip2k | iq2000 | m32r | openrisc)
10929 using_cgen=yes
10930 ;;
d7040cdb 10931
ce2cded5
L
10932 m32c)
10933 using_cgen=yes
10934 ;;
10935 frv)
10936 using_cgen=yes
10937 ;;
10938 m68k)
10939 case ${extra_objects} in
10940 *m68k-parse.o*) ;;
10941 *) extra_objects="$extra_objects m68k-parse.o" ;;
10942 esac
10943 ;;
d7040cdb 10944
ce2cded5
L
10945 mep)
10946 using_cgen=yes
10947 ;;
d7040cdb 10948
ce2cded5
L
10949 mips)
10950 echo ${extra_objects} | grep -s "itbl-parse.o"
10951 if test $? -ne 0 ; then
10952 extra_objects="$extra_objects itbl-parse.o"
10953 fi
d7040cdb 10954
ce2cded5
L
10955 echo ${extra_objects} | grep -s "itbl-lex.o"
10956 if test $? -ne 0 ; then
10957 extra_objects="$extra_objects itbl-lex.o"
10958 fi
d7040cdb 10959
ce2cded5
L
10960 echo ${extra_objects} | grep -s "itbl-ops.o"
10961 if test $? -ne 0 ; then
10962 extra_objects="$extra_objects itbl-ops.o"
10963 fi
10964 ;;
d7040cdb 10965
ce2cded5
L
10966 mt)
10967 using_cgen=yes
10968 ;;
d7040cdb 10969
ce2cded5
L
10970 i386 | s390 | sparc)
10971 if test $this_target = $target ; then
d7040cdb
SE
10972
10973cat >>confdefs.h <<_ACEOF
ce2cded5 10974#define DEFAULT_ARCH "${arch}"
d7040cdb
SE
10975_ACEOF
10976
ce2cded5
L
10977 fi
10978 ;;
d7040cdb 10979
ce2cded5
L
10980 xstormy16)
10981 using_cgen=yes
10982 ;;
d7040cdb 10983
ce2cded5
L
10984 xc16x)
10985 using_cgen=yes
10986 ;;
d7040cdb 10987
ce2cded5
L
10988 xtensa)
10989 echo ${extra_objects} | grep -s "xtensa-relax.o"
10990 if test $? -ne 0 ; then
10991 extra_objects="$extra_objects xtensa-relax.o"
10992 fi
10993 ;;
d7040cdb 10994
ce2cded5
L
10995 *)
10996 ;;
10997 esac
d7040cdb 10998
ce2cded5
L
10999 if test $using_cgen = yes ; then
11000 case "x${extra_objects}" in
11001 *cgen.o*) ;;
11002 *) extra_objects="$extra_objects cgen.o" ;;
11003 esac
11004 fi
d7040cdb 11005
ce2cded5 11006# See if we really can support this configuration with the emulation code.
d7040cdb 11007
ce2cded5
L
11008 if test $this_target = $target ; then
11009 obj_format=$fmt
11010 te_file=$em
11011 fi
d7040cdb 11012
ce2cded5 11013# From target name and format, produce a list of supported emulations.
d7040cdb 11014
ce2cded5
L
11015 case ${generic_target}-${fmt} in
11016 mips-*-irix5*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
11017 mips*-*-linux*-*) case "$endian" in
11018 big) emulation="mipsbelf mipslelf mipself" ;;
11019 *) emulation="mipslelf mipsbelf mipself" ;;
11020 esac ;;
11021 mips-*-lnews*-ecoff) ;;
11022 mips-*-*-ecoff) case "$endian" in
11023 big) emulation="mipsbecoff mipslecoff mipsecoff" ;;
11024 *) emulation="mipslecoff mipsbecoff mipsecoff" ;;
11025 esac ;;
11026 mips-*-*-elf) case "$endian" in
11027 big) emulation="mipsbelf mipslelf mipself" ;;
11028 *) emulation="mipslelf mipsbelf mipself" ;;
11029 esac ;;
11030 mips-*-sysv4*MP*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
11031 # i386-pc-pe-coff != i386-pc-coff.
11032 i386-*-pe-coff) ;;
11033 # Uncommenting the next line will turn on support for i386 AOUT
11034 # for the default linux configuration
11035 # i386-*-linux*-elf) emulation="i386elf i386aout" ;;
11036 #
11037 i386-*-aout) emulation="i386aout" ;;
11038 i386-*-coff) emulation="i386coff" ;;
11039 i386-*-elf) emulation="i386elf" ;;
d7040cdb 11040
ce2cded5
L
11041 # Always all formats. The first stated emulation becomes the default.
11042 cris-*-*aout*) emulation="crisaout criself" ;;
11043 cris-*-*) emulation="criself crisaout" ;;
11044 esac
13b2be9c 11045
ce2cded5 11046 emulations="$emulations $emulation"
13b2be9c 11047
13b2be9c 11048done
13b2be9c 11049
ce2cded5
L
11050# Turn on all targets if possible
11051if test ${all_targets} = "yes"; then
11052 case ${target_cpu_type} in
11053 i386)
11054 case ${obj_format} in
11055 aout)
11056 emulations="$emulations i386coff i386elf"
11057 ;;
11058 coff)
11059 emulations="$emulations i386aout i386elf"
11060 ;;
11061 elf)
11062 emulations="$emulations i386aout i386coff"
11063 ;;
11064 esac
11065 ;;
11066 x86_64)
11067 case ${obj_format} in
11068 aout)
11069 emulations="$emulations i386coff i386elf"
11070 ;;
11071 coff)
11072 emulations="$emulations i386aout i386elf"
11073 ;;
11074 elf)
11075 emulations="$emulations i386aout i386coff"
11076 ;;
11077 esac
11078 ;;
11079 esac
13b2be9c 11080fi
c8615825 11081
ce2cded5
L
11082# Assign floating point type. Most processors with FP support
11083# IEEE FP. On those that don't support FP at all, usually IEEE
11084# is emulated.
11085case ${target_cpu} in
11086 vax | pdp11 ) atof=vax ;;
11087 *) atof=ieee ;;
11088esac
c8615825 11089
ce2cded5
L
11090case "${obj_format}" in
11091 "") { { echo "$as_me:$LINENO: error: GAS does not know what format to use for target ${target}" >&5
11092echo "$as_me: error: GAS does not know what format to use for target ${target}" >&2;}
11093 { (exit 1); exit 1; }; } ;;
11094esac
13b2be9c 11095
ce2cded5
L
11096# Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
11097cgen_cpu_prefix=""
11098if test $using_cgen = yes ; then
11099 case ${target_cpu} in
11100 *) cgen_cpu_prefix=${target_cpu} ;;
11101 esac
c8615825 11102
c8615825 11103
ce2cded5
L
11104cat >>confdefs.h <<\_ACEOF
11105#define USING_CGEN 1
11106_ACEOF
d7040cdb 11107
d7040cdb 11108fi
13b2be9c 11109
ce2cded5
L
11110
11111if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then
11112 { { echo "$as_me:$LINENO: error: GAS does not support target CPU ${target_cpu_type}" >&5
11113echo "$as_me: error: GAS does not support target CPU ${target_cpu_type}" >&2;}
11114 { (exit 1); exit 1; }; }
13b2be9c 11115fi
ce2cded5
L
11116
11117if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
11118 { { echo "$as_me:$LINENO: error: GAS does not have support for object file format ${obj_format}" >&5
11119echo "$as_me: error: GAS does not have support for object file format ${obj_format}" >&2;}
11120 { (exit 1); exit 1; }; }
13b2be9c
DJ
11121fi
11122
ce2cded5
L
11123# Some COFF configurations want these random other flags set.
11124case ${obj_format} in
11125 coff)
11126 case ${target_cpu_type} in
11127 i386)
11128cat >>confdefs.h <<\_ACEOF
11129#define I386COFF 1
11130_ACEOF
11131 ;;
11132 m68k)
11133cat >>confdefs.h <<\_ACEOF
11134#define M68KCOFF 1
11135_ACEOF
11136 ;;
11137 m88k)
11138cat >>confdefs.h <<\_ACEOF
11139#define M88KCOFF 1
11140_ACEOF
11141 ;;
11142 x86_64)
11143cat >>confdefs.h <<\_ACEOF
11144#define I386COFF 1
11145_ACEOF
11146 ;;
11147 esac
11148 ;;
11149esac
11150
11151# Getting this done right is going to be a bitch. Each configuration specified
11152# with --enable-targets=... should be checked for environment, format, cpu
11153# setting.
11154#
11155# For each configuration, the necessary object file support code must be linked
11156# in. This might be only one, it might be up to four. The necessary emulation
11157# code needs to be provided, too.
11158#
11159# And then there's "--enable-targets=all"....
11160#
11161# For now, just always do it for MIPS ELF or ECOFF configurations. Sigh.
11162
11163formats="${obj_format}"
11164emfiles=""
11165EMULATIONS=""
11166_gas_uniq_list="$emulations"
11167_gas_uniq_newlist=""
11168for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
11169 case $_gas_uniq_i in
11170 _gas_uniq_dummy) ;;
11171 *) case " $_gas_uniq_newlist " in
11172 *" $_gas_uniq_i "*) ;;
11173 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
11174 esac ;;
11175 esac
11176done
11177emulations=$_gas_uniq_newlist
11178
11179for em in . $emulations ; do
11180 case $em in
11181 .) continue ;;
11182 mipsbelf | mipslelf | mipself)
11183 fmt=elf file=mipself ;;
11184 mipsbecoff | mipslecoff | mipsecoff)
11185 fmt=ecoff file=mipsecoff ;;
11186 *coff)
11187 fmt=coff file=$em ;;
11188 *aout)
11189 fmt=aout file=$em ;;
11190 *elf)
11191 fmt=elf file=$em ;;
11192 esac
11193 formats="$formats $fmt"
11194 emfiles="$emfiles e-$file.o"
11195 EMULATIONS="$EMULATIONS &$em,"
11196done
11197_gas_uniq_list="$formats"
11198_gas_uniq_newlist=""
11199for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
11200 case $_gas_uniq_i in
11201 _gas_uniq_dummy) ;;
11202 *) case " $_gas_uniq_newlist " in
11203 *" $_gas_uniq_i "*) ;;
11204 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
11205 esac ;;
11206 esac
13b2be9c 11207done
ce2cded5 11208formats=$_gas_uniq_newlist
13b2be9c 11209
ce2cded5
L
11210_gas_uniq_list="$emfiles"
11211_gas_uniq_newlist=""
11212for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
11213 case $_gas_uniq_i in
11214 _gas_uniq_dummy) ;;
11215 *) case " $_gas_uniq_newlist " in
11216 *" $_gas_uniq_i "*) ;;
11217 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
11218 esac ;;
11219 esac
11220done
11221emfiles=$_gas_uniq_newlist
d7040cdb 11222
ce2cded5
L
11223if test `set . $formats ; shift ; echo $#` -gt 1 ; then
11224 for fmt in $formats ; do
11225 case $fmt in
11226 aout)
11227cat >>confdefs.h <<\_ACEOF
11228#define OBJ_MAYBE_AOUT 1
13b2be9c 11229_ACEOF
ce2cded5
L
11230 ;;
11231 bout)
11232cat >>confdefs.h <<\_ACEOF
11233#define OBJ_MAYBE_BOUT 1
13b2be9c 11234_ACEOF
ce2cded5
L
11235 ;;
11236 coff)
11237cat >>confdefs.h <<\_ACEOF
11238#define OBJ_MAYBE_COFF 1
11239_ACEOF
11240 ;;
11241 ecoff)
11242cat >>confdefs.h <<\_ACEOF
11243#define OBJ_MAYBE_ECOFF 1
11244_ACEOF
11245 ;;
11246 elf)
11247cat >>confdefs.h <<\_ACEOF
11248#define OBJ_MAYBE_ELF 1
11249_ACEOF
11250 ;;
11251 generic)
11252cat >>confdefs.h <<\_ACEOF
11253#define OBJ_MAYBE_GENERIC 1
11254_ACEOF
11255 ;;
11256 som)
11257cat >>confdefs.h <<\_ACEOF
11258#define OBJ_MAYBE_SOM 1
11259_ACEOF
11260 ;;
11261 esac
11262 extra_objects="$extra_objects obj-$fmt.o"
11263 done
11264 obj_format=multi
13b2be9c 11265fi
ce2cded5
L
11266if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
11267 DEFAULT_EMULATION=`set . $emulations ; echo $2`
11268 # e-mips* has more than one emulation per file, e-i386* has just one at the
11269 # moment. If only one emulation is specified, then don't define
11270 # USE_EMULATIONS or include any of the e-files as they will only be bloat.
11271 case "${obj_format}${emfiles}" in
11272 multi* | *mips*)
11273 extra_objects="$extra_objects $emfiles"
d7040cdb 11274
ce2cded5
L
11275cat >>confdefs.h <<\_ACEOF
11276#define USE_EMULATIONS 1
13b2be9c 11277_ACEOF
ce2cded5
L
11278 ;;
11279 esac
11280fi
d7040cdb 11281
13b2be9c 11282
ce2cded5
L
11283cat >>confdefs.h <<_ACEOF
11284#define EMULATIONS $EMULATIONS
13b2be9c 11285_ACEOF
d7040cdb 11286
d7040cdb 11287
ce2cded5
L
11288cat >>confdefs.h <<_ACEOF
11289#define DEFAULT_EMULATION "$DEFAULT_EMULATION"
d7040cdb 11290_ACEOF
d7040cdb 11291
d7040cdb 11292
ce2cded5 11293reject_dev_configs=yes
252b5132 11294
ce2cded5
L
11295case ${reject_dev_configs}-${dev} in
11296 yes-yes) # Oops.
11297 { { echo "$as_me:$LINENO: error: GAS does not support the ${generic_target} configuration." >&5
11298echo "$as_me: error: GAS does not support the ${generic_target} configuration." >&2;}
11299 { (exit 1); exit 1; }; }
11300 ;;
d7040cdb
SE
11301esac
11302
13b2be9c 11303
ce2cded5
L
11304
11305
11306
11307
11308
11309# do we need the opcodes library?
11310case "${need_opcodes}" in
11311yes)
11312 OPCODES_LIB=../opcodes/libopcodes.la
11313 ;;
11314esac
11315
11316
11317
11318
11319cat >>confdefs.h <<_ACEOF
11320#define TARGET_ALIAS "${target_alias}"
d7040cdb 11321_ACEOF
20e95c23 11322
20e95c23 11323
ce2cded5
L
11324cat >>confdefs.h <<_ACEOF
11325#define TARGET_CANONICAL "${target}"
11326_ACEOF
20e95c23 11327
d6d788bd 11328
ce2cded5
L
11329cat >>confdefs.h <<_ACEOF
11330#define TARGET_CPU "${target_cpu}"
11331_ACEOF
20e95c23 11332
ce2cded5
L
11333
11334cat >>confdefs.h <<_ACEOF
11335#define TARGET_VENDOR "${target_vendor}"
0efedc4c
AM
11336_ACEOF
11337
11338
ce2cded5
L
11339cat >>confdefs.h <<_ACEOF
11340#define TARGET_OS "${target_os}"
11341_ACEOF
11342
0efedc4c 11343
d7040cdb
SE
11344for ac_prog in 'bison -y' byacc
11345do
11346 # Extract the first word of "$ac_prog", so it can be a program name with args.
11347set dummy $ac_prog; ac_word=$2
20e95c23
DJ
11348echo "$as_me:$LINENO: checking for $ac_word" >&5
11349echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d7040cdb 11350if test "${ac_cv_prog_YACC+set}" = set; then
20e95c23
DJ
11351 echo $ECHO_N "(cached) $ECHO_C" >&6
11352else
d7040cdb
SE
11353 if test -n "$YACC"; then
11354 ac_cv_prog_YACC="$YACC" # Let the user override the test.
d6d788bd 11355else
d7040cdb
SE
11356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11357for as_dir in $PATH
11358do
11359 IFS=$as_save_IFS
11360 test -z "$as_dir" && as_dir=.
11361 for ac_exec_ext in '' $ac_executable_extensions; do
11362 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11363 ac_cv_prog_YACC="$ac_prog"
11364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11365 break 2
20e95c23 11366 fi
d7040cdb
SE
11367done
11368done
20e95c23 11369
d7040cdb
SE
11370fi
11371fi
11372YACC=$ac_cv_prog_YACC
11373if test -n "$YACC"; then
11374 echo "$as_me:$LINENO: result: $YACC" >&5
11375echo "${ECHO_T}$YACC" >&6
11376else
11377 echo "$as_me:$LINENO: result: no" >&5
11378echo "${ECHO_T}no" >&6
11379fi
20e95c23 11380
d7040cdb
SE
11381 test -n "$YACC" && break
11382done
11383test -n "$YACC" || YACC="yacc"
20e95c23 11384
d7040cdb
SE
11385for ac_prog in flex lex
11386do
11387 # Extract the first word of "$ac_prog", so it can be a program name with args.
11388set dummy $ac_prog; ac_word=$2
11389echo "$as_me:$LINENO: checking for $ac_word" >&5
11390echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11391if test "${ac_cv_prog_LEX+set}" = set; then
11392 echo $ECHO_N "(cached) $ECHO_C" >&6
d6d788bd 11393else
d7040cdb
SE
11394 if test -n "$LEX"; then
11395 ac_cv_prog_LEX="$LEX" # Let the user override the test.
11396else
11397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11398for as_dir in $PATH
11399do
11400 IFS=$as_save_IFS
11401 test -z "$as_dir" && as_dir=.
11402 for ac_exec_ext in '' $ac_executable_extensions; do
11403 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11404 ac_cv_prog_LEX="$ac_prog"
11405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11406 break 2
11407 fi
11408done
11409done
20e95c23 11410
d7040cdb
SE
11411fi
11412fi
11413LEX=$ac_cv_prog_LEX
11414if test -n "$LEX"; then
11415 echo "$as_me:$LINENO: result: $LEX" >&5
11416echo "${ECHO_T}$LEX" >&6
20e95c23 11417else
d7040cdb
SE
11418 echo "$as_me:$LINENO: result: no" >&5
11419echo "${ECHO_T}no" >&6
13b2be9c
DJ
11420fi
11421
d7040cdb
SE
11422 test -n "$LEX" && break
11423done
11424test -n "$LEX" || LEX=":"
20e95c23 11425
d7040cdb
SE
11426if test -z "$LEXLIB"
11427then
11428 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
11429echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
11430if test "${ac_cv_lib_fl_yywrap+set}" = set; then
11431 echo $ECHO_N "(cached) $ECHO_C" >&6
d5fbea21 11432else
d7040cdb
SE
11433 ac_check_lib_save_LIBS=$LIBS
11434LIBS="-lfl $LIBS"
11435cat >conftest.$ac_ext <<_ACEOF
11436/* confdefs.h. */
11437_ACEOF
11438cat confdefs.h >>conftest.$ac_ext
11439cat >>conftest.$ac_ext <<_ACEOF
11440/* end confdefs.h. */
d5fbea21 11441
d7040cdb
SE
11442/* Override any gcc2 internal prototype to avoid an error. */
11443#ifdef __cplusplus
11444extern "C"
11445#endif
11446/* We use char because int might match the return type of a gcc2
11447 builtin and then its argument prototype would still apply. */
11448char yywrap ();
11449int
11450main ()
11451{
11452yywrap ();
11453 ;
11454 return 0;
11455}
11456_ACEOF
11457rm -f conftest.$ac_objext conftest$ac_exeext
11458if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11459 (eval $ac_link) 2>conftest.er1
11460 ac_status=$?
11461 grep -v '^ *+' conftest.er1 >conftest.err
11462 rm -f conftest.er1
11463 cat conftest.err >&5
11464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465 (exit $ac_status); } &&
11466 { ac_try='test -z "$ac_c_werror_flag"
11467 || test ! -s conftest.err'
11468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11469 (eval $ac_try) 2>&5
11470 ac_status=$?
11471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11472 (exit $ac_status); }; } &&
11473 { ac_try='test -s conftest$ac_exeext'
11474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11475 (eval $ac_try) 2>&5
11476 ac_status=$?
11477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11478 (exit $ac_status); }; }; then
11479 ac_cv_lib_fl_yywrap=yes
11480else
11481 echo "$as_me: failed program was:" >&5
11482sed 's/^/| /' conftest.$ac_ext >&5
d5fbea21 11483
d7040cdb 11484ac_cv_lib_fl_yywrap=no
d6d788bd 11485fi
d7040cdb
SE
11486rm -f conftest.err conftest.$ac_objext \
11487 conftest$ac_exeext conftest.$ac_ext
11488LIBS=$ac_check_lib_save_LIBS
11489fi
11490echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
11491echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
11492if test $ac_cv_lib_fl_yywrap = yes; then
11493 LEXLIB="-lfl"
11494else
11495 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
11496echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
11497if test "${ac_cv_lib_l_yywrap+set}" = set; then
13b2be9c
DJ
11498 echo $ECHO_N "(cached) $ECHO_C" >&6
11499else
d7040cdb
SE
11500 ac_check_lib_save_LIBS=$LIBS
11501LIBS="-ll $LIBS"
11502cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
11503/* confdefs.h. */
11504_ACEOF
11505cat confdefs.h >>conftest.$ac_ext
11506cat >>conftest.$ac_ext <<_ACEOF
11507/* end confdefs.h. */
d7040cdb
SE
11508
11509/* Override any gcc2 internal prototype to avoid an error. */
11510#ifdef __cplusplus
11511extern "C"
13b2be9c 11512#endif
d7040cdb
SE
11513/* We use char because int might match the return type of a gcc2
11514 builtin and then its argument prototype would still apply. */
11515char yywrap ();
11516int
11517main ()
11518{
11519yywrap ();
11520 ;
11521 return 0;
11522}
11523_ACEOF
11524rm -f conftest.$ac_objext conftest$ac_exeext
11525if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11526 (eval $ac_link) 2>conftest.er1
11527 ac_status=$?
11528 grep -v '^ *+' conftest.er1 >conftest.err
11529 rm -f conftest.er1
11530 cat conftest.err >&5
11531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11532 (exit $ac_status); } &&
11533 { ac_try='test -z "$ac_c_werror_flag"
11534 || test ! -s conftest.err'
11535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11536 (eval $ac_try) 2>&5
11537 ac_status=$?
11538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11539 (exit $ac_status); }; } &&
11540 { ac_try='test -s conftest$ac_exeext'
11541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11542 (eval $ac_try) 2>&5
11543 ac_status=$?
11544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11545 (exit $ac_status); }; }; then
11546 ac_cv_lib_l_yywrap=yes
11547else
11548 echo "$as_me: failed program was:" >&5
11549sed 's/^/| /' conftest.$ac_ext >&5
11550
11551ac_cv_lib_l_yywrap=no
11552fi
11553rm -f conftest.err conftest.$ac_objext \
11554 conftest$ac_exeext conftest.$ac_ext
11555LIBS=$ac_check_lib_save_LIBS
11556fi
11557echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
11558echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
11559if test $ac_cv_lib_l_yywrap = yes; then
11560 LEXLIB="-ll"
11561fi
11562
11563fi
11564
11565fi
11566
11567if test "x$LEX" != "x:"; then
11568 echo "$as_me:$LINENO: checking lex output file root" >&5
11569echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
11570if test "${ac_cv_prog_lex_root+set}" = set; then
11571 echo $ECHO_N "(cached) $ECHO_C" >&6
11572else
11573 # The minimal lex program is just a single line: %%. But some broken lexes
11574# (Solaris, I think it was) want two %% lines, so accommodate them.
11575cat >conftest.l <<_ACEOF
11576%%
11577%%
13b2be9c 11578_ACEOF
d7040cdb
SE
11579{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
11580 (eval $LEX conftest.l) 2>&5
13b2be9c 11581 ac_status=$?
13b2be9c 11582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
11583 (exit $ac_status); }
11584if test -f lex.yy.c; then
11585 ac_cv_prog_lex_root=lex.yy
11586elif test -f lexyy.c; then
11587 ac_cv_prog_lex_root=lexyy
13b2be9c 11588else
d7040cdb
SE
11589 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
11590echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
11591 { (exit 1); exit 1; }; }
d6d788bd 11592fi
13b2be9c 11593fi
d7040cdb
SE
11594echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
11595echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
11596rm -f conftest.l
11597LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
13b2be9c 11598
d7040cdb
SE
11599echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
11600echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
11601if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
11602 echo $ECHO_N "(cached) $ECHO_C" >&6
11603else
11604 # POSIX says lex can declare yytext either as a pointer or an array; the
11605# default is implementation-dependent. Figure out which it is, since
11606# not all implementations provide the %pointer and %array declarations.
11607ac_cv_prog_lex_yytext_pointer=no
11608echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
11609ac_save_LIBS=$LIBS
11610LIBS="$LIBS $LEXLIB"
11611cat >conftest.$ac_ext <<_ACEOF
11612`cat $LEX_OUTPUT_ROOT.c`
13b2be9c 11613_ACEOF
d7040cdb
SE
11614rm -f conftest.$ac_objext conftest$ac_exeext
11615if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11616 (eval $ac_link) 2>conftest.er1
13b2be9c
DJ
11617 ac_status=$?
11618 grep -v '^ *+' conftest.er1 >conftest.err
11619 rm -f conftest.er1
11620 cat conftest.err >&5
11621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
11622 (exit $ac_status); } &&
11623 { ac_try='test -z "$ac_c_werror_flag"
11624 || test ! -s conftest.err'
11625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11626 (eval $ac_try) 2>&5
11627 ac_status=$?
11628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629 (exit $ac_status); }; } &&
11630 { ac_try='test -s conftest$ac_exeext'
11631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11632 (eval $ac_try) 2>&5
11633 ac_status=$?
11634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11635 (exit $ac_status); }; }; then
11636 ac_cv_prog_lex_yytext_pointer=yes
13b2be9c
DJ
11637else
11638 echo "$as_me: failed program was:" >&5
11639sed 's/^/| /' conftest.$ac_ext >&5
6840198f 11640
13b2be9c 11641fi
d7040cdb
SE
11642rm -f conftest.err conftest.$ac_objext \
11643 conftest$ac_exeext conftest.$ac_ext
11644LIBS=$ac_save_LIBS
11645rm -f "${LEX_OUTPUT_ROOT}.c"
252b5132 11646
9b2b7d69 11647fi
d7040cdb
SE
11648echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
11649echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
11650if test $ac_cv_prog_lex_yytext_pointer = yes; then
13b2be9c 11651
d7040cdb
SE
11652cat >>confdefs.h <<\_ACEOF
11653#define YYTEXT_POINTER 1
11654_ACEOF
9b2b7d69 11655
d6d788bd 11656fi
d7040cdb 11657
c8615825 11658fi
d7040cdb
SE
11659if test "$LEX" = :; then
11660 LEX=${am_missing_run}flex
11661fi
11662
11663ALL_LINGUAS="fr tr es rw"
11664# If we haven't got the data from the intl directory,
11665# assume NLS is disabled.
11666USE_NLS=no
11667LIBINTL=
11668LIBINTL_DEP=
11669INCINTL=
11670XGETTEXT=
11671GMSGFMT=
11672POSUB=
11673
11674if test -f ../intl/config.intl; then
11675 . ../intl/config.intl
11676fi
11677echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11678echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
11679if test x"$USE_NLS" != xyes; then
11680 echo "$as_me:$LINENO: result: no" >&5
11681echo "${ECHO_T}no" >&6
11682else
11683 echo "$as_me:$LINENO: result: yes" >&5
11684echo "${ECHO_T}yes" >&6
11685
11686cat >>confdefs.h <<\_ACEOF
11687#define ENABLE_NLS 1
13b2be9c 11688_ACEOF
d7040cdb
SE
11689
11690
11691 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
11692echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
11693 # Look for .po and .gmo files in the source directory.
11694 CATALOGS=
11695 XLINGUAS=
11696 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11697 # If there aren't any .gmo files the shell will give us the
11698 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11699 # weeded out.
11700 case "$cat" in *\**)
11701 continue;;
11702 esac
11703 # The quadruple backslash is collapsed to a double backslash
11704 # by the backticks, then collapsed again by the double quotes,
11705 # leaving us with one backslash in the sed expression (right
11706 # before the dot that mustn't act as a wildcard).
11707 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11708 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11709 # The user is allowed to set LINGUAS to a list of languages to
11710 # install catalogs for. If it's empty that means "all of them."
11711 if test "x$LINGUAS" = x; then
11712 CATALOGS="$CATALOGS $cat"
11713 XLINGUAS="$XLINGUAS $lang"
11714 else
11715 case "$LINGUAS" in *$lang*)
11716 CATALOGS="$CATALOGS $cat"
11717 XLINGUAS="$XLINGUAS $lang"
11718 ;;
11719 esac
11720 fi
11721 done
11722 LINGUAS="$XLINGUAS"
11723 echo "$as_me:$LINENO: result: $LINGUAS" >&5
11724echo "${ECHO_T}$LINGUAS" >&6
11725
11726
11727 DATADIRNAME=share
11728
11729 INSTOBJEXT=.mo
11730
11731 GENCAT=gencat
11732
11733 CATOBJEXT=.gmo
11734
11735fi
11736
11737 MKINSTALLDIRS=
11738 if test -n "$ac_aux_dir"; then
11739 case "$ac_aux_dir" in
11740 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
11741 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
11742 esac
11743 fi
11744 if test -z "$MKINSTALLDIRS"; then
11745 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
11746 fi
11747
11748
11749
11750 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11751echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
11752 # Check whether --enable-nls or --disable-nls was given.
11753if test "${enable_nls+set}" = set; then
11754 enableval="$enable_nls"
11755 USE_NLS=$enableval
11756else
11757 USE_NLS=yes
11758fi;
11759 echo "$as_me:$LINENO: result: $USE_NLS" >&5
11760echo "${ECHO_T}$USE_NLS" >&6
11761
11762
11763
11764
11765
11766
11767# Prepare PATH_SEPARATOR.
11768# The user is always right.
11769if test "${PATH_SEPARATOR+set}" != set; then
11770 echo "#! /bin/sh" >conf$$.sh
11771 echo "exit 0" >>conf$$.sh
11772 chmod +x conf$$.sh
11773 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11774 PATH_SEPARATOR=';'
13b2be9c 11775 else
d7040cdb 11776 PATH_SEPARATOR=:
13b2be9c 11777 fi
d7040cdb 11778 rm -f conf$$.sh
252b5132 11779fi
13b2be9c 11780
d7040cdb
SE
11781# Find out how to test for executable files. Don't use a zero-byte file,
11782# as systems may use methods other than mode bits to determine executability.
11783cat >conf$$.file <<_ASEOF
11784#! /bin/sh
11785exit 0
11786_ASEOF
11787chmod +x conf$$.file
11788if test -x conf$$.file >/dev/null 2>&1; then
11789 ac_executable_p="test -x"
11790else
11791 ac_executable_p="test -f"
13b2be9c 11792fi
d7040cdb 11793rm -f conf$$.file
13b2be9c 11794
d7040cdb
SE
11795# Extract the first word of "msgfmt", so it can be a program name with args.
11796set dummy msgfmt; ac_word=$2
11797echo "$as_me:$LINENO: checking for $ac_word" >&5
11798echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11799if test "${ac_cv_path_MSGFMT+set}" = set; then
11800 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11801else
d7040cdb
SE
11802 case "$MSGFMT" in
11803 [\\/]* | ?:[\\/]*)
11804 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11805 ;;
11806 *)
11807 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11808 for ac_dir in $PATH; do
11809 IFS="$ac_save_IFS"
11810 test -z "$ac_dir" && ac_dir=.
11811 for ac_exec_ext in '' $ac_executable_extensions; do
11812 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11813 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
11814 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11815 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
11816 break 2
11817 fi
11818 fi
11819 done
11820 done
11821 IFS="$ac_save_IFS"
11822 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11823 ;;
11824esac
252b5132 11825fi
d7040cdb
SE
11826MSGFMT="$ac_cv_path_MSGFMT"
11827if test "$MSGFMT" != ":"; then
11828 echo "$as_me:$LINENO: result: $MSGFMT" >&5
11829echo "${ECHO_T}$MSGFMT" >&6
252b5132 11830else
d7040cdb
SE
11831 echo "$as_me:$LINENO: result: no" >&5
11832echo "${ECHO_T}no" >&6
252b5132 11833fi
252b5132 11834
d7040cdb
SE
11835 # Extract the first word of "gmsgfmt", so it can be a program name with args.
11836set dummy gmsgfmt; ac_word=$2
11837echo "$as_me:$LINENO: checking for $ac_word" >&5
11838echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11839if test "${ac_cv_path_GMSGFMT+set}" = set; then
11840 echo $ECHO_N "(cached) $ECHO_C" >&6
13b2be9c 11841else
d7040cdb
SE
11842 case $GMSGFMT in
11843 [\\/]* | ?:[\\/]*)
11844 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11845 ;;
11846 *)
11847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11848for as_dir in $PATH
11849do
11850 IFS=$as_save_IFS
11851 test -z "$as_dir" && as_dir=.
11852 for ac_exec_ext in '' $ac_executable_extensions; do
11853 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11854 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
11855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11856 break 2
11857 fi
11858done
11859done
252b5132 11860
d7040cdb
SE
11861 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11862 ;;
11863esac
11864fi
11865GMSGFMT=$ac_cv_path_GMSGFMT
252b5132 11866
d7040cdb
SE
11867if test -n "$GMSGFMT"; then
11868 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
11869echo "${ECHO_T}$GMSGFMT" >&6
ac48eca1 11870else
d7040cdb
SE
11871 echo "$as_me:$LINENO: result: no" >&5
11872echo "${ECHO_T}no" >&6
6840198f 11873fi
6840198f 11874
13b2be9c 11875
20e95c23 11876
d7040cdb
SE
11877# Prepare PATH_SEPARATOR.
11878# The user is always right.
11879if test "${PATH_SEPARATOR+set}" != set; then
11880 echo "#! /bin/sh" >conf$$.sh
11881 echo "exit 0" >>conf$$.sh
11882 chmod +x conf$$.sh
11883 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11884 PATH_SEPARATOR=';'
11885 else
11886 PATH_SEPARATOR=:
11887 fi
11888 rm -f conf$$.sh
11889fi
20e95c23 11890
d7040cdb
SE
11891# Find out how to test for executable files. Don't use a zero-byte file,
11892# as systems may use methods other than mode bits to determine executability.
11893cat >conf$$.file <<_ASEOF
11894#! /bin/sh
11895exit 0
11896_ASEOF
11897chmod +x conf$$.file
11898if test -x conf$$.file >/dev/null 2>&1; then
11899 ac_executable_p="test -x"
13b2be9c 11900else
d7040cdb 11901 ac_executable_p="test -f"
13b2be9c 11902fi
d7040cdb 11903rm -f conf$$.file
20e95c23 11904
d7040cdb
SE
11905# Extract the first word of "xgettext", so it can be a program name with args.
11906set dummy xgettext; ac_word=$2
11907echo "$as_me:$LINENO: checking for $ac_word" >&5
11908echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11909if test "${ac_cv_path_XGETTEXT+set}" = set; then
11910 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11911else
d7040cdb
SE
11912 case "$XGETTEXT" in
11913 [\\/]* | ?:[\\/]*)
11914 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11915 ;;
11916 *)
11917 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11918 for ac_dir in $PATH; do
11919 IFS="$ac_save_IFS"
11920 test -z "$ac_dir" && ac_dir=.
11921 for ac_exec_ext in '' $ac_executable_extensions; do
11922 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11923 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11924 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11925 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
11926 break 2
11927 fi
11928 fi
11929 done
11930 done
11931 IFS="$ac_save_IFS"
11932 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11933 ;;
11934esac
13b2be9c 11935fi
d7040cdb
SE
11936XGETTEXT="$ac_cv_path_XGETTEXT"
11937if test "$XGETTEXT" != ":"; then
11938 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
11939echo "${ECHO_T}$XGETTEXT" >&6
11940else
11941 echo "$as_me:$LINENO: result: no" >&5
11942echo "${ECHO_T}no" >&6
13b2be9c 11943fi
13b2be9c 11944
d7040cdb 11945 rm -f messages.po
20e95c23 11946
13b2be9c 11947
d7040cdb
SE
11948# Prepare PATH_SEPARATOR.
11949# The user is always right.
11950if test "${PATH_SEPARATOR+set}" != set; then
11951 echo "#! /bin/sh" >conf$$.sh
11952 echo "exit 0" >>conf$$.sh
11953 chmod +x conf$$.sh
11954 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11955 PATH_SEPARATOR=';'
11956 else
11957 PATH_SEPARATOR=:
11958 fi
11959 rm -f conf$$.sh
252b5132 11960fi
20e95c23 11961
d7040cdb
SE
11962# Find out how to test for executable files. Don't use a zero-byte file,
11963# as systems may use methods other than mode bits to determine executability.
11964cat >conf$$.file <<_ASEOF
11965#! /bin/sh
11966exit 0
11967_ASEOF
11968chmod +x conf$$.file
11969if test -x conf$$.file >/dev/null 2>&1; then
11970 ac_executable_p="test -x"
252b5132 11971else
d7040cdb
SE
11972 ac_executable_p="test -f"
11973fi
11974rm -f conf$$.file
20e95c23 11975
d7040cdb
SE
11976# Extract the first word of "msgmerge", so it can be a program name with args.
11977set dummy msgmerge; ac_word=$2
11978echo "$as_me:$LINENO: checking for $ac_word" >&5
11979echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11980if test "${ac_cv_path_MSGMERGE+set}" = set; then
11981 echo $ECHO_N "(cached) $ECHO_C" >&6
20e95c23 11982else
d7040cdb
SE
11983 case "$MSGMERGE" in
11984 [\\/]* | ?:[\\/]*)
11985 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11986 ;;
11987 *)
11988 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11989 for ac_dir in $PATH; do
11990 IFS="$ac_save_IFS"
11991 test -z "$ac_dir" && ac_dir=.
11992 for ac_exec_ext in '' $ac_executable_extensions; do
11993 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11994 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
11995 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11996 break 2
11997 fi
11998 fi
11999 done
12000 done
12001 IFS="$ac_save_IFS"
12002 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12003 ;;
12004esac
20e95c23 12005fi
d7040cdb
SE
12006MSGMERGE="$ac_cv_path_MSGMERGE"
12007if test "$MSGMERGE" != ":"; then
12008 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
12009echo "${ECHO_T}$MSGMERGE" >&6
12010else
12011 echo "$as_me:$LINENO: result: no" >&5
12012echo "${ECHO_T}no" >&6
20e95c23 12013fi
252b5132 12014
252b5132 12015
d7040cdb
SE
12016 if test "$GMSGFMT" != ":"; then
12017 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12018 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12019 : ;
12020 else
12021 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
12022 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12023echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
12024 GMSGFMT=":"
12025 fi
12026 fi
13b2be9c 12027
d7040cdb
SE
12028 if test "$XGETTEXT" != ":"; then
12029 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12030 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12031 : ;
12032 else
12033 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
12034echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
12035 XGETTEXT=":"
12036 fi
12037 rm -f messages.po
12038 fi
252b5132 12039
d7040cdb 12040 ac_config_commands="$ac_config_commands default-1"
252b5132 12041
13b2be9c 12042
252b5132 12043
d7040cdb
SE
12044echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12045echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
12046 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
12047if test "${enable_maintainer_mode+set}" = set; then
12048 enableval="$enable_maintainer_mode"
12049 USE_MAINTAINER_MODE=$enableval
c8615825 12050else
d7040cdb
SE
12051 USE_MAINTAINER_MODE=no
12052fi;
12053 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
12054echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
13b2be9c 12055
d7040cdb
SE
12056
12057if test $USE_MAINTAINER_MODE = yes; then
12058 MAINTAINER_MODE_TRUE=
12059 MAINTAINER_MODE_FALSE='#'
12060else
12061 MAINTAINER_MODE_TRUE='#'
12062 MAINTAINER_MODE_FALSE=
20e95c23 12063fi
9b2b7d69 12064
d7040cdb
SE
12065 MAINT=$MAINTAINER_MODE_TRUE
12066
12067
12068
12069
12070if false; then
12071 GENINSRC_NEVER_TRUE=
12072 GENINSRC_NEVER_FALSE='#'
12073else
12074 GENINSRC_NEVER_TRUE='#'
12075 GENINSRC_NEVER_FALSE=
20e95c23 12076fi
9b2b7d69
MM
12077
12078
12079
12080
12081
13b2be9c
DJ
12082
12083
12084
12085
12086
12087
12088
40fb9820
L
12089
12090for ac_header in string.h stdlib.h memory.h strings.h unistd.h stdarg.h varargs.h errno.h sys/types.h limits.h
d6d788bd 12091do
13b2be9c
DJ
12092as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12093if eval "test \"\${$as_ac_Header+set}\" = set"; then
12094 echo "$as_me:$LINENO: checking for $ac_header" >&5
12095echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12096if eval "test \"\${$as_ac_Header+set}\" = set"; then
12097 echo $ECHO_N "(cached) $ECHO_C" >&6
12098fi
12099echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12100echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12101else
12102 # Is the header compilable?
12103echo "$as_me:$LINENO: checking $ac_header usability" >&5
12104echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12105cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
12106/* confdefs.h. */
12107_ACEOF
12108cat confdefs.h >>conftest.$ac_ext
12109cat >>conftest.$ac_ext <<_ACEOF
12110/* end confdefs.h. */
12111$ac_includes_default
12112#include <$ac_header>
12113_ACEOF
12114rm -f conftest.$ac_objext
12115if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 12116 (eval $ac_compile) 2>conftest.er1
13b2be9c 12117 ac_status=$?
ab509236
L
12118 grep -v '^ *+' conftest.er1 >conftest.err
12119 rm -f conftest.er1
12120 cat conftest.err >&5
13b2be9c
DJ
12121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12122 (exit $ac_status); } &&
1ad12f97
NC
12123 { ac_try='test -z "$ac_c_werror_flag"
12124 || test ! -s conftest.err'
ab509236
L
12125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12126 (eval $ac_try) 2>&5
12127 ac_status=$?
12128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12129 (exit $ac_status); }; } &&
12130 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
12131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12132 (eval $ac_try) 2>&5
12133 ac_status=$?
12134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12135 (exit $ac_status); }; }; then
12136 ac_header_compiler=yes
12137else
12138 echo "$as_me: failed program was:" >&5
12139sed 's/^/| /' conftest.$ac_ext >&5
12140
12141ac_header_compiler=no
12142fi
ab509236 12143rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
12144echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12145echo "${ECHO_T}$ac_header_compiler" >&6
12146
12147# Is the header present?
12148echo "$as_me:$LINENO: checking $ac_header presence" >&5
12149echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12150cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
12151/* confdefs.h. */
12152_ACEOF
12153cat confdefs.h >>conftest.$ac_ext
12154cat >>conftest.$ac_ext <<_ACEOF
12155/* end confdefs.h. */
12156#include <$ac_header>
12157_ACEOF
12158if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12159 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12160 ac_status=$?
12161 grep -v '^ *+' conftest.er1 >conftest.err
12162 rm -f conftest.er1
12163 cat conftest.err >&5
12164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165 (exit $ac_status); } >/dev/null; then
12166 if test -s conftest.err; then
12167 ac_cpp_err=$ac_c_preproc_warn_flag
ab509236 12168 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13b2be9c
DJ
12169 else
12170 ac_cpp_err=
12171 fi
9b2b7d69 12172else
13b2be9c
DJ
12173 ac_cpp_err=yes
12174fi
12175if test -z "$ac_cpp_err"; then
12176 ac_header_preproc=yes
12177else
12178 echo "$as_me: failed program was:" >&5
12179sed 's/^/| /' conftest.$ac_ext >&5
12180
12181 ac_header_preproc=no
12182fi
12183rm -f conftest.err conftest.$ac_ext
12184echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12185echo "${ECHO_T}$ac_header_preproc" >&6
12186
12187# So? What about this header?
ab509236
L
12188case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12189 yes:no: )
13b2be9c
DJ
12190 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12191echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ab509236
L
12192 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12193echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12194 ac_header_preproc=yes
13b2be9c 12195 ;;
ab509236 12196 no:yes:* )
13b2be9c
DJ
12197 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12198echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ab509236
L
12199 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12200echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12201 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12202echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12203 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12204echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13b2be9c
DJ
12205 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12206echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ab509236
L
12207 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12208echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13b2be9c
DJ
12209 (
12210 cat <<\_ASBOX
ab509236
L
12211## ------------------------------------------ ##
12212## Report this to the AC_PACKAGE_NAME lists. ##
12213## ------------------------------------------ ##
13b2be9c
DJ
12214_ASBOX
12215 ) |
12216 sed "s/^/$as_me: WARNING: /" >&2
12217 ;;
12218esac
12219echo "$as_me:$LINENO: checking for $ac_header" >&5
12220echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12221if eval "test \"\${$as_ac_Header+set}\" = set"; then
12222 echo $ECHO_N "(cached) $ECHO_C" >&6
12223else
ab509236 12224 eval "$as_ac_Header=\$ac_header_preproc"
252b5132 12225fi
13b2be9c
DJ
12226echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12227echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12228
252b5132 12229fi
13b2be9c
DJ
12230if test `eval echo '${'$as_ac_Header'}'` = yes; then
12231 cat >>confdefs.h <<_ACEOF
12232#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12233_ACEOF
12234
252b5132 12235fi
13b2be9c 12236
252b5132
RH
12237done
12238
d6d788bd 12239
252b5132
RH
12240# Put this here so that autoconf's "cross-compiling" message doesn't confuse
12241# people who are not cross-compiling but are compiling cross-assemblers.
13b2be9c
DJ
12242echo "$as_me:$LINENO: checking whether compiling a cross-assembler" >&5
12243echo $ECHO_N "checking whether compiling a cross-assembler... $ECHO_C" >&6
252b5132
RH
12244if test "${host}" = "${target}"; then
12245 cross_gas=no
12246else
12247 cross_gas=yes
13b2be9c
DJ
12248
12249cat >>confdefs.h <<\_ACEOF
252b5132 12250#define CROSS_COMPILE 1
13b2be9c 12251_ACEOF
252b5132
RH
12252
12253fi
13b2be9c
DJ
12254echo "$as_me:$LINENO: result: $cross_gas" >&5
12255echo "${ECHO_T}$cross_gas" >&6
252b5132
RH
12256
12257# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12258# for constant arguments. Useless!
13b2be9c
DJ
12259echo "$as_me:$LINENO: checking for working alloca.h" >&5
12260echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
12261if test "${ac_cv_working_alloca_h+set}" = set; then
12262 echo $ECHO_N "(cached) $ECHO_C" >&6
12263else
12264 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
12265/* confdefs.h. */
12266_ACEOF
12267cat confdefs.h >>conftest.$ac_ext
12268cat >>conftest.$ac_ext <<_ACEOF
12269/* end confdefs.h. */
252b5132 12270#include <alloca.h>
13b2be9c
DJ
12271int
12272main ()
12273{
12274char *p = (char *) alloca (2 * sizeof (int));
12275 ;
12276 return 0;
12277}
12278_ACEOF
12279rm -f conftest.$ac_objext conftest$ac_exeext
12280if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 12281 (eval $ac_link) 2>conftest.er1
13b2be9c 12282 ac_status=$?
ab509236
L
12283 grep -v '^ *+' conftest.er1 >conftest.err
12284 rm -f conftest.er1
12285 cat conftest.err >&5
13b2be9c
DJ
12286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287 (exit $ac_status); } &&
1ad12f97
NC
12288 { ac_try='test -z "$ac_c_werror_flag"
12289 || test ! -s conftest.err'
ab509236
L
12290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12291 (eval $ac_try) 2>&5
12292 ac_status=$?
12293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12294 (exit $ac_status); }; } &&
12295 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
12296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12297 (eval $ac_try) 2>&5
12298 ac_status=$?
12299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12300 (exit $ac_status); }; }; then
12301 ac_cv_working_alloca_h=yes
12302else
12303 echo "$as_me: failed program was:" >&5
12304sed 's/^/| /' conftest.$ac_ext >&5
12305
12306ac_cv_working_alloca_h=no
12307fi
ab509236
L
12308rm -f conftest.err conftest.$ac_objext \
12309 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
12310fi
12311echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12312echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
12313if test $ac_cv_working_alloca_h = yes; then
12314
12315cat >>confdefs.h <<\_ACEOF
252b5132 12316#define HAVE_ALLOCA_H 1
13b2be9c 12317_ACEOF
252b5132
RH
12318
12319fi
12320
13b2be9c
DJ
12321echo "$as_me:$LINENO: checking for alloca" >&5
12322echo $ECHO_N "checking for alloca... $ECHO_C" >&6
12323if test "${ac_cv_func_alloca_works+set}" = set; then
12324 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12325else
13b2be9c 12326 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
12327/* confdefs.h. */
12328_ACEOF
12329cat confdefs.h >>conftest.$ac_ext
12330cat >>conftest.$ac_ext <<_ACEOF
12331/* end confdefs.h. */
252b5132
RH
12332#ifdef __GNUC__
12333# define alloca __builtin_alloca
12334#else
12335# ifdef _MSC_VER
12336# include <malloc.h>
12337# define alloca _alloca
12338# else
12339# if HAVE_ALLOCA_H
12340# include <alloca.h>
12341# else
12342# ifdef _AIX
12343 #pragma alloca
12344# else
12345# ifndef alloca /* predefined by HP cc +Olibcalls */
12346char *alloca ();
12347# endif
12348# endif
12349# endif
12350# endif
12351#endif
12352
13b2be9c
DJ
12353int
12354main ()
12355{
12356char *p = (char *) alloca (1);
12357 ;
12358 return 0;
12359}
12360_ACEOF
12361rm -f conftest.$ac_objext conftest$ac_exeext
12362if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 12363 (eval $ac_link) 2>conftest.er1
13b2be9c 12364 ac_status=$?
ab509236
L
12365 grep -v '^ *+' conftest.er1 >conftest.err
12366 rm -f conftest.er1
12367 cat conftest.err >&5
13b2be9c
DJ
12368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369 (exit $ac_status); } &&
1ad12f97
NC
12370 { ac_try='test -z "$ac_c_werror_flag"
12371 || test ! -s conftest.err'
ab509236
L
12372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12373 (eval $ac_try) 2>&5
12374 ac_status=$?
12375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12376 (exit $ac_status); }; } &&
12377 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
12378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12379 (eval $ac_try) 2>&5
12380 ac_status=$?
12381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12382 (exit $ac_status); }; }; then
252b5132
RH
12383 ac_cv_func_alloca_works=yes
12384else
13b2be9c
DJ
12385 echo "$as_me: failed program was:" >&5
12386sed 's/^/| /' conftest.$ac_ext >&5
12387
12388ac_cv_func_alloca_works=no
252b5132 12389fi
ab509236
L
12390rm -f conftest.err conftest.$ac_objext \
12391 conftest$ac_exeext conftest.$ac_ext
252b5132 12392fi
13b2be9c
DJ
12393echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12394echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
252b5132 12395
252b5132 12396if test $ac_cv_func_alloca_works = yes; then
9b2b7d69 12397
13b2be9c
DJ
12398cat >>confdefs.h <<\_ACEOF
12399#define HAVE_ALLOCA 1
12400_ACEOF
9b2b7d69 12401
13b2be9c 12402else
c8615825 12403 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13b2be9c
DJ
12404# that cause trouble. Some versions do not even contain alloca or
12405# contain a buggy version. If you still want to use their alloca,
12406# use ar to extract alloca.o from them instead of compiling alloca.c.
12407
12408ALLOCA=alloca.$ac_objext
12409
12410cat >>confdefs.h <<\_ACEOF
252b5132 12411#define C_ALLOCA 1
13b2be9c 12412_ACEOF
252b5132 12413
d6d788bd 12414
13b2be9c
DJ
12415echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12416echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
12417if test "${ac_cv_os_cray+set}" = set; then
12418 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12419else
13b2be9c 12420 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
12421/* confdefs.h. */
12422_ACEOF
12423cat confdefs.h >>conftest.$ac_ext
12424cat >>conftest.$ac_ext <<_ACEOF
12425/* end confdefs.h. */
252b5132
RH
12426#if defined(CRAY) && ! defined(CRAY2)
12427webecray
12428#else
12429wenotbecray
12430#endif
12431
13b2be9c 12432_ACEOF
252b5132 12433if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13b2be9c 12434 $EGREP "webecray" >/dev/null 2>&1; then
252b5132
RH
12435 ac_cv_os_cray=yes
12436else
252b5132
RH
12437 ac_cv_os_cray=no
12438fi
12439rm -f conftest*
12440
12441fi
13b2be9c
DJ
12442echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12443echo "${ECHO_T}$ac_cv_os_cray" >&6
252b5132 12444if test $ac_cv_os_cray = yes; then
13b2be9c
DJ
12445 for ac_func in _getb67 GETB67 getb67; do
12446 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12447echo "$as_me:$LINENO: checking for $ac_func" >&5
12448echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12449if eval "test \"\${$as_ac_var+set}\" = set"; then
12450 echo $ECHO_N "(cached) $ECHO_C" >&6
12451else
12452 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
12453/* confdefs.h. */
12454_ACEOF
12455cat confdefs.h >>conftest.$ac_ext
12456cat >>conftest.$ac_ext <<_ACEOF
12457/* end confdefs.h. */
ab509236
L
12458/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12459 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12460#define $ac_func innocuous_$ac_func
12461
252b5132 12462/* System header to define __stub macros and hopefully few prototypes,
13b2be9c
DJ
12463 which can conflict with char $ac_func (); below.
12464 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12465 <limits.h> exists even on freestanding compilers. */
ab509236 12466
13b2be9c
DJ
12467#ifdef __STDC__
12468# include <limits.h>
12469#else
12470# include <assert.h>
12471#endif
ab509236
L
12472
12473#undef $ac_func
12474
252b5132 12475/* Override any gcc2 internal prototype to avoid an error. */
13b2be9c
DJ
12476#ifdef __cplusplus
12477extern "C"
12478{
12479#endif
252b5132 12480/* We use char because int might match the return type of a gcc2
13b2be9c
DJ
12481 builtin and then its argument prototype would still apply. */
12482char $ac_func ();
252b5132
RH
12483/* The GNU C library defines this for functions which it implements
12484 to always fail with ENOSYS. Some functions are actually named
12485 something starting with __ and the normal name is an alias. */
12486#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12487choke me
12488#else
13b2be9c
DJ
12489char (*f) () = $ac_func;
12490#endif
12491#ifdef __cplusplus
12492}
252b5132
RH
12493#endif
12494
13b2be9c
DJ
12495int
12496main ()
12497{
12498return f != $ac_func;
12499 ;
12500 return 0;
12501}
12502_ACEOF
12503rm -f conftest.$ac_objext conftest$ac_exeext
12504if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 12505 (eval $ac_link) 2>conftest.er1
13b2be9c 12506 ac_status=$?
ab509236
L
12507 grep -v '^ *+' conftest.er1 >conftest.err
12508 rm -f conftest.er1
12509 cat conftest.err >&5
13b2be9c
DJ
12510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12511 (exit $ac_status); } &&
1ad12f97
NC
12512 { ac_try='test -z "$ac_c_werror_flag"
12513 || test ! -s conftest.err'
ab509236
L
12514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12515 (eval $ac_try) 2>&5
12516 ac_status=$?
12517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12518 (exit $ac_status); }; } &&
12519 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
12520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12521 (eval $ac_try) 2>&5
12522 ac_status=$?
12523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12524 (exit $ac_status); }; }; then
12525 eval "$as_ac_var=yes"
12526else
12527 echo "$as_me: failed program was:" >&5
12528sed 's/^/| /' conftest.$ac_ext >&5
12529
12530eval "$as_ac_var=no"
12531fi
ab509236
L
12532rm -f conftest.err conftest.$ac_objext \
12533 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
12534fi
12535echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12536echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12537if test `eval echo '${'$as_ac_var'}'` = yes; then
12538
12539cat >>confdefs.h <<_ACEOF
252b5132 12540#define CRAY_STACKSEG_END $ac_func
13b2be9c 12541_ACEOF
252b5132 12542
13b2be9c 12543 break
252b5132
RH
12544fi
12545
13b2be9c 12546 done
252b5132
RH
12547fi
12548
13b2be9c
DJ
12549echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
12550echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
12551if test "${ac_cv_c_stack_direction+set}" = set; then
12552 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
12553else
12554 if test "$cross_compiling" = yes; then
12555 ac_cv_c_stack_direction=0
12556else
13b2be9c 12557 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
12558/* confdefs.h. */
12559_ACEOF
12560cat confdefs.h >>conftest.$ac_ext
12561cat >>conftest.$ac_ext <<_ACEOF
12562/* end confdefs.h. */
12563int
252b5132
RH
12564find_stack_direction ()
12565{
12566 static char *addr = 0;
12567 auto char dummy;
12568 if (addr == 0)
12569 {
12570 addr = &dummy;
12571 return find_stack_direction ();
12572 }
12573 else
12574 return (&dummy > addr) ? 1 : -1;
12575}
13b2be9c
DJ
12576
12577int
252b5132
RH
12578main ()
12579{
13b2be9c 12580 exit (find_stack_direction () < 0);
252b5132 12581}
13b2be9c
DJ
12582_ACEOF
12583rm -f conftest$ac_exeext
12584if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12585 (eval $ac_link) 2>&5
12586 ac_status=$?
12587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12588 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12590 (eval $ac_try) 2>&5
12591 ac_status=$?
12592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12593 (exit $ac_status); }; }; then
252b5132
RH
12594 ac_cv_c_stack_direction=1
12595else
13b2be9c
DJ
12596 echo "$as_me: program exited with status $ac_status" >&5
12597echo "$as_me: failed program was:" >&5
12598sed 's/^/| /' conftest.$ac_ext >&5
12599
12600( exit $ac_status )
12601ac_cv_c_stack_direction=-1
252b5132 12602fi
ab509236 12603rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 12604fi
252b5132 12605fi
13b2be9c
DJ
12606echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
12607echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
252b5132 12608
13b2be9c 12609cat >>confdefs.h <<_ACEOF
252b5132 12610#define STACK_DIRECTION $ac_cv_c_stack_direction
13b2be9c
DJ
12611_ACEOF
12612
252b5132
RH
12613
12614fi
12615
13b2be9c
DJ
12616echo "$as_me:$LINENO: checking for inline" >&5
12617echo $ECHO_N "checking for inline... $ECHO_C" >&6
12618if test "${ac_cv_c_inline+set}" = set; then
12619 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
12620else
12621 ac_cv_c_inline=no
12622for ac_kw in inline __inline__ __inline; do
13b2be9c 12623 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
12624/* confdefs.h. */
12625_ACEOF
12626cat confdefs.h >>conftest.$ac_ext
12627cat >>conftest.$ac_ext <<_ACEOF
12628/* end confdefs.h. */
12629#ifndef __cplusplus
12630typedef int foo_t;
12631static $ac_kw foo_t static_foo () {return 0; }
12632$ac_kw foo_t foo () {return 0; }
12633#endif
252b5132 12634
13b2be9c
DJ
12635_ACEOF
12636rm -f conftest.$ac_objext
12637if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 12638 (eval $ac_compile) 2>conftest.er1
13b2be9c 12639 ac_status=$?
ab509236
L
12640 grep -v '^ *+' conftest.er1 >conftest.err
12641 rm -f conftest.er1
12642 cat conftest.err >&5
13b2be9c
DJ
12643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644 (exit $ac_status); } &&
1ad12f97
NC
12645 { ac_try='test -z "$ac_c_werror_flag"
12646 || test ! -s conftest.err'
ab509236
L
12647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12648 (eval $ac_try) 2>&5
12649 ac_status=$?
12650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651 (exit $ac_status); }; } &&
12652 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
12653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12654 (eval $ac_try) 2>&5
12655 ac_status=$?
12656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657 (exit $ac_status); }; }; then
252b5132
RH
12658 ac_cv_c_inline=$ac_kw; break
12659else
13b2be9c
DJ
12660 echo "$as_me: failed program was:" >&5
12661sed 's/^/| /' conftest.$ac_ext >&5
12662
252b5132 12663fi
ab509236 12664rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
12665done
12666
12667fi
13b2be9c
DJ
12668echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
12669echo "${ECHO_T}$ac_cv_c_inline" >&6
ab509236
L
12670
12671
13b2be9c 12672case $ac_cv_c_inline in
252b5132 12673 inline | yes) ;;
ab509236
L
12674 *)
12675 case $ac_cv_c_inline in
12676 no) ac_val=;;
12677 *) ac_val=$ac_cv_c_inline;;
12678 esac
12679 cat >>confdefs.h <<_ACEOF
12680#ifndef __cplusplus
12681#define inline $ac_val
12682#endif
13b2be9c 12683_ACEOF
ab509236 12684 ;;
252b5132
RH
12685esac
12686
6840198f 12687
d6d788bd 12688# VMS doesn't have unlink.
13b2be9c
DJ
12689
12690
252b5132
RH
12691for ac_func in unlink remove
12692do
13b2be9c
DJ
12693as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12694echo "$as_me:$LINENO: checking for $ac_func" >&5
12695echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12696if eval "test \"\${$as_ac_var+set}\" = set"; then
12697 echo $ECHO_N "(cached) $ECHO_C" >&6
12698else
12699 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
12700/* confdefs.h. */
12701_ACEOF
12702cat confdefs.h >>conftest.$ac_ext
12703cat >>conftest.$ac_ext <<_ACEOF
12704/* end confdefs.h. */
ab509236
L
12705/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12706 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12707#define $ac_func innocuous_$ac_func
12708
252b5132 12709/* System header to define __stub macros and hopefully few prototypes,
13b2be9c
DJ
12710 which can conflict with char $ac_func (); below.
12711 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12712 <limits.h> exists even on freestanding compilers. */
ab509236 12713
13b2be9c
DJ
12714#ifdef __STDC__
12715# include <limits.h>
12716#else
12717# include <assert.h>
12718#endif
ab509236
L
12719
12720#undef $ac_func
12721
252b5132 12722/* Override any gcc2 internal prototype to avoid an error. */
13b2be9c
DJ
12723#ifdef __cplusplus
12724extern "C"
12725{
12726#endif
252b5132 12727/* We use char because int might match the return type of a gcc2
13b2be9c
DJ
12728 builtin and then its argument prototype would still apply. */
12729char $ac_func ();
252b5132
RH
12730/* The GNU C library defines this for functions which it implements
12731 to always fail with ENOSYS. Some functions are actually named
12732 something starting with __ and the normal name is an alias. */
12733#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12734choke me
12735#else
13b2be9c
DJ
12736char (*f) () = $ac_func;
12737#endif
12738#ifdef __cplusplus
12739}
252b5132
RH
12740#endif
12741
13b2be9c
DJ
12742int
12743main ()
12744{
12745return f != $ac_func;
12746 ;
12747 return 0;
12748}
12749_ACEOF
12750rm -f conftest.$ac_objext conftest$ac_exeext
12751if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 12752 (eval $ac_link) 2>conftest.er1
13b2be9c 12753 ac_status=$?
ab509236
L
12754 grep -v '^ *+' conftest.er1 >conftest.err
12755 rm -f conftest.er1
12756 cat conftest.err >&5
13b2be9c
DJ
12757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758 (exit $ac_status); } &&
1ad12f97
NC
12759 { ac_try='test -z "$ac_c_werror_flag"
12760 || test ! -s conftest.err'
ab509236
L
12761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12762 (eval $ac_try) 2>&5
12763 ac_status=$?
12764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12765 (exit $ac_status); }; } &&
12766 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
12767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12768 (eval $ac_try) 2>&5
12769 ac_status=$?
12770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771 (exit $ac_status); }; }; then
12772 eval "$as_ac_var=yes"
12773else
12774 echo "$as_me: failed program was:" >&5
12775sed 's/^/| /' conftest.$ac_ext >&5
12776
12777eval "$as_ac_var=no"
12778fi
ab509236
L
12779rm -f conftest.err conftest.$ac_objext \
12780 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
12781fi
12782echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12783echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12784if test `eval echo '${'$as_ac_var'}'` = yes; then
12785 cat >>confdefs.h <<_ACEOF
12786#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12787_ACEOF
252b5132 12788 break
252b5132
RH
12789fi
12790done
12791
6840198f 12792
d6d788bd 12793# Some systems don't have sbrk().
13b2be9c 12794
252b5132
RH
12795for ac_func in sbrk
12796do
13b2be9c
DJ
12797as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12798echo "$as_me:$LINENO: checking for $ac_func" >&5
12799echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12800if eval "test \"\${$as_ac_var+set}\" = set"; then
12801 echo $ECHO_N "(cached) $ECHO_C" >&6
12802else
12803 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
12804/* confdefs.h. */
12805_ACEOF
12806cat confdefs.h >>conftest.$ac_ext
12807cat >>conftest.$ac_ext <<_ACEOF
12808/* end confdefs.h. */
ab509236
L
12809/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12810 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12811#define $ac_func innocuous_$ac_func
12812
252b5132 12813/* System header to define __stub macros and hopefully few prototypes,
13b2be9c
DJ
12814 which can conflict with char $ac_func (); below.
12815 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12816 <limits.h> exists even on freestanding compilers. */
ab509236 12817
13b2be9c
DJ
12818#ifdef __STDC__
12819# include <limits.h>
12820#else
12821# include <assert.h>
12822#endif
ab509236
L
12823
12824#undef $ac_func
12825
252b5132 12826/* Override any gcc2 internal prototype to avoid an error. */
13b2be9c
DJ
12827#ifdef __cplusplus
12828extern "C"
12829{
12830#endif
252b5132 12831/* We use char because int might match the return type of a gcc2
13b2be9c
DJ
12832 builtin and then its argument prototype would still apply. */
12833char $ac_func ();
252b5132
RH
12834/* The GNU C library defines this for functions which it implements
12835 to always fail with ENOSYS. Some functions are actually named
12836 something starting with __ and the normal name is an alias. */
12837#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12838choke me
12839#else
13b2be9c
DJ
12840char (*f) () = $ac_func;
12841#endif
12842#ifdef __cplusplus
12843}
252b5132
RH
12844#endif
12845
13b2be9c
DJ
12846int
12847main ()
12848{
12849return f != $ac_func;
12850 ;
12851 return 0;
12852}
12853_ACEOF
12854rm -f conftest.$ac_objext conftest$ac_exeext
12855if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 12856 (eval $ac_link) 2>conftest.er1
13b2be9c 12857 ac_status=$?
ab509236
L
12858 grep -v '^ *+' conftest.er1 >conftest.err
12859 rm -f conftest.er1
12860 cat conftest.err >&5
13b2be9c
DJ
12861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12862 (exit $ac_status); } &&
1ad12f97
NC
12863 { ac_try='test -z "$ac_c_werror_flag"
12864 || test ! -s conftest.err'
ab509236
L
12865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12866 (eval $ac_try) 2>&5
12867 ac_status=$?
12868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12869 (exit $ac_status); }; } &&
12870 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
12871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12872 (eval $ac_try) 2>&5
12873 ac_status=$?
12874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12875 (exit $ac_status); }; }; then
12876 eval "$as_ac_var=yes"
12877else
12878 echo "$as_me: failed program was:" >&5
12879sed 's/^/| /' conftest.$ac_ext >&5
12880
12881eval "$as_ac_var=no"
12882fi
ab509236
L
12883rm -f conftest.err conftest.$ac_objext \
12884 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
12885fi
12886echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12887echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12888if test `eval echo '${'$as_ac_var'}'` = yes; then
12889 cat >>confdefs.h <<_ACEOF
12890#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12891_ACEOF
252b5132 12892
252b5132
RH
12893fi
12894done
12895
d6d788bd 12896
39bec121
TW
12897# do we need the math library?
12898case "${need_libm}" in
13b2be9c 12899yes)
39bec121 12900 LIBM=
f9c19112 12901case $host in
d70c5fc7 12902*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
d7040cdb 12903 # These system don't have libm, or don't need it
39bec121
TW
12904 ;;
12905*-ncr-sysv4.3*)
13b2be9c
DJ
12906 echo "$as_me:$LINENO: checking for _mwvalidcheckl in -lmw" >&5
12907echo $ECHO_N "checking for _mwvalidcheckl in -lmw... $ECHO_C" >&6
12908if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then
12909 echo $ECHO_N "(cached) $ECHO_C" >&6
39bec121 12910else
13b2be9c 12911 ac_check_lib_save_LIBS=$LIBS
39bec121 12912LIBS="-lmw $LIBS"
13b2be9c 12913cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
12914/* confdefs.h. */
12915_ACEOF
12916cat confdefs.h >>conftest.$ac_ext
12917cat >>conftest.$ac_ext <<_ACEOF
12918/* end confdefs.h. */
12919
39bec121 12920/* Override any gcc2 internal prototype to avoid an error. */
13b2be9c
DJ
12921#ifdef __cplusplus
12922extern "C"
12923#endif
39bec121 12924/* We use char because int might match the return type of a gcc2
13b2be9c
DJ
12925 builtin and then its argument prototype would still apply. */
12926char _mwvalidcheckl ();
12927int
12928main ()
12929{
12930_mwvalidcheckl ();
12931 ;
12932 return 0;
12933}
12934_ACEOF
12935rm -f conftest.$ac_objext conftest$ac_exeext
12936if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 12937 (eval $ac_link) 2>conftest.er1
13b2be9c 12938 ac_status=$?
ab509236
L
12939 grep -v '^ *+' conftest.er1 >conftest.err
12940 rm -f conftest.er1
12941 cat conftest.err >&5
13b2be9c
DJ
12942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943 (exit $ac_status); } &&
1ad12f97
NC
12944 { ac_try='test -z "$ac_c_werror_flag"
12945 || test ! -s conftest.err'
ab509236
L
12946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12947 (eval $ac_try) 2>&5
12948 ac_status=$?
12949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12950 (exit $ac_status); }; } &&
12951 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
12952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12953 (eval $ac_try) 2>&5
12954 ac_status=$?
12955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12956 (exit $ac_status); }; }; then
12957 ac_cv_lib_mw__mwvalidcheckl=yes
12958else
12959 echo "$as_me: failed program was:" >&5
12960sed 's/^/| /' conftest.$ac_ext >&5
12961
12962ac_cv_lib_mw__mwvalidcheckl=no
12963fi
ab509236
L
12964rm -f conftest.err conftest.$ac_objext \
12965 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
12966LIBS=$ac_check_lib_save_LIBS
12967fi
12968echo "$as_me:$LINENO: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
12969echo "${ECHO_T}$ac_cv_lib_mw__mwvalidcheckl" >&6
12970if test $ac_cv_lib_mw__mwvalidcheckl = yes; then
39bec121 12971 LIBM="-lmw"
39bec121
TW
12972fi
12973
d7040cdb
SE
12974 echo "$as_me:$LINENO: checking for cos in -lm" >&5
12975echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6
12976if test "${ac_cv_lib_m_cos+set}" = set; then
13b2be9c 12977 echo $ECHO_N "(cached) $ECHO_C" >&6
39bec121 12978else
13b2be9c 12979 ac_check_lib_save_LIBS=$LIBS
39bec121 12980LIBS="-lm $LIBS"
13b2be9c 12981cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
12982/* confdefs.h. */
12983_ACEOF
12984cat confdefs.h >>conftest.$ac_ext
12985cat >>conftest.$ac_ext <<_ACEOF
12986/* end confdefs.h. */
39bec121 12987
d7040cdb
SE
12988/* Override any gcc2 internal prototype to avoid an error. */
12989#ifdef __cplusplus
12990extern "C"
12991#endif
12992/* We use char because int might match the return type of a gcc2
12993 builtin and then its argument prototype would still apply. */
12994char cos ();
13b2be9c
DJ
12995int
12996main ()
12997{
d7040cdb 12998cos ();
13b2be9c
DJ
12999 ;
13000 return 0;
13001}
13002_ACEOF
13003rm -f conftest.$ac_objext conftest$ac_exeext
13004if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 13005 (eval $ac_link) 2>conftest.er1
13b2be9c 13006 ac_status=$?
ab509236
L
13007 grep -v '^ *+' conftest.er1 >conftest.err
13008 rm -f conftest.er1
13009 cat conftest.err >&5
13b2be9c
DJ
13010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13011 (exit $ac_status); } &&
1ad12f97
NC
13012 { ac_try='test -z "$ac_c_werror_flag"
13013 || test ! -s conftest.err'
ab509236
L
13014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13015 (eval $ac_try) 2>&5
13016 ac_status=$?
13017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13018 (exit $ac_status); }; } &&
13019 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
13020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13021 (eval $ac_try) 2>&5
13022 ac_status=$?
13023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13024 (exit $ac_status); }; }; then
d7040cdb 13025 ac_cv_lib_m_cos=yes
13b2be9c
DJ
13026else
13027 echo "$as_me: failed program was:" >&5
13028sed 's/^/| /' conftest.$ac_ext >&5
13029
d7040cdb 13030ac_cv_lib_m_cos=no
13b2be9c 13031fi
ab509236
L
13032rm -f conftest.err conftest.$ac_objext \
13033 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
13034LIBS=$ac_check_lib_save_LIBS
13035fi
d7040cdb
SE
13036echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
13037echo "${ECHO_T}$ac_cv_lib_m_cos" >&6
13038if test $ac_cv_lib_m_cos = yes; then
39bec121 13039 LIBM="$LIBM -lm"
39bec121
TW
13040fi
13041
13042 ;;
13043*)
d7040cdb
SE
13044 echo "$as_me:$LINENO: checking for cos in -lm" >&5
13045echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6
13046if test "${ac_cv_lib_m_cos+set}" = set; then
13b2be9c 13047 echo $ECHO_N "(cached) $ECHO_C" >&6
39bec121 13048else
13b2be9c 13049 ac_check_lib_save_LIBS=$LIBS
39bec121 13050LIBS="-lm $LIBS"
13b2be9c 13051cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
13052/* confdefs.h. */
13053_ACEOF
13054cat confdefs.h >>conftest.$ac_ext
13055cat >>conftest.$ac_ext <<_ACEOF
13056/* end confdefs.h. */
39bec121 13057
d7040cdb
SE
13058/* Override any gcc2 internal prototype to avoid an error. */
13059#ifdef __cplusplus
13060extern "C"
13061#endif
13062/* We use char because int might match the return type of a gcc2
13063 builtin and then its argument prototype would still apply. */
13064char cos ();
13b2be9c
DJ
13065int
13066main ()
13067{
d7040cdb 13068cos ();
13b2be9c
DJ
13069 ;
13070 return 0;
13071}
13072_ACEOF
13073rm -f conftest.$ac_objext conftest$ac_exeext
13074if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 13075 (eval $ac_link) 2>conftest.er1
13b2be9c 13076 ac_status=$?
ab509236
L
13077 grep -v '^ *+' conftest.er1 >conftest.err
13078 rm -f conftest.er1
13079 cat conftest.err >&5
13b2be9c
DJ
13080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13081 (exit $ac_status); } &&
1ad12f97
NC
13082 { ac_try='test -z "$ac_c_werror_flag"
13083 || test ! -s conftest.err'
ab509236
L
13084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13085 (eval $ac_try) 2>&5
13086 ac_status=$?
13087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13088 (exit $ac_status); }; } &&
13089 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
13090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13091 (eval $ac_try) 2>&5
13092 ac_status=$?
13093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13094 (exit $ac_status); }; }; then
d7040cdb 13095 ac_cv_lib_m_cos=yes
13b2be9c
DJ
13096else
13097 echo "$as_me: failed program was:" >&5
13098sed 's/^/| /' conftest.$ac_ext >&5
13099
d7040cdb 13100ac_cv_lib_m_cos=no
13b2be9c 13101fi
ab509236
L
13102rm -f conftest.err conftest.$ac_objext \
13103 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
13104LIBS=$ac_check_lib_save_LIBS
13105fi
d7040cdb
SE
13106echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
13107echo "${ECHO_T}$ac_cv_lib_m_cos" >&6
13108if test $ac_cv_lib_m_cos = yes; then
39bec121 13109 LIBM="-lm"
39bec121
TW
13110fi
13111
13112 ;;
13113esac
13114
13b2be9c 13115
d7040cdb 13116
39bec121
TW
13117 ;;
13118esac
13119
252b5132
RH
13120# Some non-ANSI preprocessors botch requoting inside strings. That's bad
13121# enough, but on some of those systems, the assert macro relies on requoting
13122# working properly!
13b2be9c
DJ
13123echo "$as_me:$LINENO: checking for working assert macro" >&5
13124echo $ECHO_N "checking for working assert macro... $ECHO_C" >&6
13125if test "${gas_cv_assert_ok+set}" = set; then
13126 echo $ECHO_N "(cached) $ECHO_C" >&6
13127else
13128 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
13129/* confdefs.h. */
13130_ACEOF
13131cat confdefs.h >>conftest.$ac_ext
13132cat >>conftest.$ac_ext <<_ACEOF
13133/* end confdefs.h. */
252b5132
RH
13134#include <assert.h>
13135#include <stdio.h>
13b2be9c
DJ
13136int
13137main ()
13138{
252b5132
RH
13139
13140/* check for requoting problems */
13141static int a, b, c, d;
13142static char *s;
13143assert (!strcmp(s, "foo bar baz quux"));
13144/* check for newline handling */
13145assert (a == b
13146 || c == d);
13147
13b2be9c
DJ
13148 ;
13149 return 0;
13150}
13151_ACEOF
13152rm -f conftest.$ac_objext conftest$ac_exeext
13153if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 13154 (eval $ac_link) 2>conftest.er1
13b2be9c 13155 ac_status=$?
ab509236
L
13156 grep -v '^ *+' conftest.er1 >conftest.err
13157 rm -f conftest.er1
13158 cat conftest.err >&5
13b2be9c
DJ
13159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13160 (exit $ac_status); } &&
1ad12f97
NC
13161 { ac_try='test -z "$ac_c_werror_flag"
13162 || test ! -s conftest.err'
ab509236
L
13163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13164 (eval $ac_try) 2>&5
13165 ac_status=$?
13166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167 (exit $ac_status); }; } &&
13168 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
13169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13170 (eval $ac_try) 2>&5
13171 ac_status=$?
13172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13173 (exit $ac_status); }; }; then
252b5132
RH
13174 gas_cv_assert_ok=yes
13175else
13b2be9c
DJ
13176 echo "$as_me: failed program was:" >&5
13177sed 's/^/| /' conftest.$ac_ext >&5
13178
13179gas_cv_assert_ok=no
252b5132 13180fi
ab509236
L
13181rm -f conftest.err conftest.$ac_objext \
13182 conftest$ac_exeext conftest.$ac_ext
252b5132 13183fi
13b2be9c
DJ
13184echo "$as_me:$LINENO: result: $gas_cv_assert_ok" >&5
13185echo "${ECHO_T}$gas_cv_assert_ok" >&6
13186test $gas_cv_assert_ok = yes ||
13187cat >>confdefs.h <<\_ACEOF
252b5132 13188#define BROKEN_ASSERT 1
13b2be9c 13189_ACEOF
252b5132 13190
d6d788bd
L
13191
13192
252b5132
RH
13193# On some systems, the system header files may not declare malloc, realloc,
13194# and free. There are places where gas needs these functions to have been
13195# declared -- such as when taking their addresses.
13196gas_test_headers="
13197#ifdef HAVE_MEMORY_H
13198#include <memory.h>
13199#endif
13200#ifdef HAVE_STRING_H
13201#include <string.h>
13202#else
13203#ifdef HAVE_STRINGS_H
13204#include <strings.h>
13205#endif
13206#endif
13207#ifdef HAVE_STDLIB_H
13208#include <stdlib.h>
13209#endif
13210#ifdef HAVE_UNISTD_H
13211#include <unistd.h>
13212#endif
13213"
13214
e8a38df5
AL
13215# Does errno.h declare errno, or do we have to add a separate declaration
13216# for it?
13217
13218echo "$as_me:$LINENO: checking whether declaration is required for errno" >&5
13219echo $ECHO_N "checking whether declaration is required for errno... $ECHO_C" >&6
13220if test "${gas_cv_decl_needed_errno+set}" = set; then
13221 echo $ECHO_N "(cached) $ECHO_C" >&6
13222else
13223 cat >conftest.$ac_ext <<_ACEOF
13224/* confdefs.h. */
13225_ACEOF
13226cat confdefs.h >>conftest.$ac_ext
13227cat >>conftest.$ac_ext <<_ACEOF
13228/* end confdefs.h. */
13229
13230#ifdef HAVE_ERRNO_H
13231#include <errno.h>
13232#endif
13233
13234int
13235main ()
13236{
13237
13238typedef int f;
13239f x;
13240x = (f) errno;
13241
13242 ;
13243 return 0;
13244}
13245_ACEOF
13246rm -f conftest.$ac_objext conftest$ac_exeext
13247if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13248 (eval $ac_link) 2>conftest.er1
13249 ac_status=$?
13250 grep -v '^ *+' conftest.er1 >conftest.err
13251 rm -f conftest.er1
13252 cat conftest.err >&5
13253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13254 (exit $ac_status); } &&
13255 { ac_try='test -z "$ac_c_werror_flag"
13256 || test ! -s conftest.err'
13257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13258 (eval $ac_try) 2>&5
13259 ac_status=$?
13260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261 (exit $ac_status); }; } &&
13262 { ac_try='test -s conftest$ac_exeext'
13263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13264 (eval $ac_try) 2>&5
13265 ac_status=$?
13266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13267 (exit $ac_status); }; }; then
13268 gas_cv_decl_needed_errno=no
13269else
13270 echo "$as_me: failed program was:" >&5
13271sed 's/^/| /' conftest.$ac_ext >&5
13272
13273gas_cv_decl_needed_errno=yes
13274fi
13275rm -f conftest.err conftest.$ac_objext \
13276 conftest$ac_exeext conftest.$ac_ext
13277fi
13278echo "$as_me:$LINENO: result: $gas_cv_decl_needed_errno" >&5
13279echo "${ECHO_T}$gas_cv_decl_needed_errno" >&6
13280if test $gas_cv_decl_needed_errno = yes; then
13281
13282cat >>confdefs.h <<\_ACEOF
13283#define NEED_DECLARATION_ERRNO 1
13284_ACEOF
13285
13286fi
13287
13288
56f36663
NC
13289echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
13290echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
13291if test "${gas_cv_decl_getopt_unistd_h+set}" = set; then
13292 echo $ECHO_N "(cached) $ECHO_C" >&6
13293else
13294 cat >conftest.$ac_ext <<_ACEOF
13295/* confdefs.h. */
13296_ACEOF
13297cat confdefs.h >>conftest.$ac_ext
13298cat >>conftest.$ac_ext <<_ACEOF
13299/* end confdefs.h. */
13300#include <unistd.h>
13301int
13302main ()
13303{
13304extern int getopt (int, char *const*, const char *);
13305 ;
13306 return 0;
13307}
13308_ACEOF
13309rm -f conftest.$ac_objext
13310if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13311 (eval $ac_compile) 2>conftest.er1
13312 ac_status=$?
13313 grep -v '^ *+' conftest.er1 >conftest.err
13314 rm -f conftest.er1
13315 cat conftest.err >&5
13316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13317 (exit $ac_status); } &&
13318 { ac_try='test -z "$ac_c_werror_flag"
13319 || test ! -s conftest.err'
13320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13321 (eval $ac_try) 2>&5
13322 ac_status=$?
13323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13324 (exit $ac_status); }; } &&
13325 { ac_try='test -s conftest.$ac_objext'
13326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13327 (eval $ac_try) 2>&5
13328 ac_status=$?
13329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330 (exit $ac_status); }; }; then
13331 gas_cv_decl_getopt_unistd_h=yes
13332else
13333 echo "$as_me: failed program was:" >&5
13334sed 's/^/| /' conftest.$ac_ext >&5
13335
13336gas_cv_decl_getopt_unistd_h=no
13337fi
13338rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13339fi
13340
13341echo "$as_me:$LINENO: result: $gas_cv_decl_getopt_unistd_h" >&5
13342echo "${ECHO_T}$gas_cv_decl_getopt_unistd_h" >&6
13343if test $gas_cv_decl_getopt_unistd_h = yes; then
13344
13345cat >>confdefs.h <<\_ACEOF
13346#define HAVE_DECL_GETOPT 1
13347_ACEOF
13348
13349fi
13350
e8a38df5
AL
13351
13352echo "$as_me:$LINENO: checking whether declaration is required for environ" >&5
13353echo $ECHO_N "checking whether declaration is required for environ... $ECHO_C" >&6
13354if test "${gas_cv_decl_needed_environ+set}" = set; then
13b2be9c
DJ
13355 echo $ECHO_N "(cached) $ECHO_C" >&6
13356else
13357 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
13358/* confdefs.h. */
13359_ACEOF
13360cat confdefs.h >>conftest.$ac_ext
13361cat >>conftest.$ac_ext <<_ACEOF
13362/* end confdefs.h. */
252b5132 13363$gas_test_headers
13b2be9c
DJ
13364int
13365main ()
13366{
252b5132 13367
e8a38df5 13368typedef char **f;
252b5132 13369f x;
e8a38df5 13370x = (f) environ;
252b5132 13371
13b2be9c
DJ
13372 ;
13373 return 0;
13374}
13375_ACEOF
13376rm -f conftest.$ac_objext conftest$ac_exeext
13377if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 13378 (eval $ac_link) 2>conftest.er1
13b2be9c 13379 ac_status=$?
ab509236
L
13380 grep -v '^ *+' conftest.er1 >conftest.err
13381 rm -f conftest.er1
13382 cat conftest.err >&5
13b2be9c
DJ
13383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13384 (exit $ac_status); } &&
1ad12f97
NC
13385 { ac_try='test -z "$ac_c_werror_flag"
13386 || test ! -s conftest.err'
ab509236
L
13387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13388 (eval $ac_try) 2>&5
13389 ac_status=$?
13390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13391 (exit $ac_status); }; } &&
13392 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
13393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13394 (eval $ac_try) 2>&5
13395 ac_status=$?
13396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13397 (exit $ac_status); }; }; then
e8a38df5 13398 gas_cv_decl_needed_environ=no
252b5132 13399else
13b2be9c
DJ
13400 echo "$as_me: failed program was:" >&5
13401sed 's/^/| /' conftest.$ac_ext >&5
13402
e8a38df5 13403gas_cv_decl_needed_environ=yes
252b5132 13404fi
ab509236
L
13405rm -f conftest.err conftest.$ac_objext \
13406 conftest$ac_exeext conftest.$ac_ext
252b5132 13407fi
e8a38df5
AL
13408echo "$as_me:$LINENO: result: $gas_cv_decl_needed_environ" >&5
13409echo "${ECHO_T}$gas_cv_decl_needed_environ" >&6
13410if test $gas_cv_decl_needed_environ = yes; then
13b2be9c
DJ
13411
13412cat >>confdefs.h <<\_ACEOF
e8a38df5 13413#define NEED_DECLARATION_ENVIRON 1
13b2be9c
DJ
13414_ACEOF
13415
13416fi
13417
13418
e8a38df5
AL
13419echo "$as_me:$LINENO: checking whether declaration is required for ffs" >&5
13420echo $ECHO_N "checking whether declaration is required for ffs... $ECHO_C" >&6
13421if test "${gas_cv_decl_needed_ffs+set}" = set; then
13b2be9c
DJ
13422 echo $ECHO_N "(cached) $ECHO_C" >&6
13423else
13424 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
13425/* confdefs.h. */
13426_ACEOF
13427cat confdefs.h >>conftest.$ac_ext
13428cat >>conftest.$ac_ext <<_ACEOF
13429/* end confdefs.h. */
13430$gas_test_headers
13431int
13432main ()
13433{
13434
e8a38df5 13435typedef int (*f)(int);
13b2be9c 13436f x;
e8a38df5 13437x = (f) ffs;
13b2be9c
DJ
13438
13439 ;
13440 return 0;
13441}
13442_ACEOF
13443rm -f conftest.$ac_objext conftest$ac_exeext
13444if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 13445 (eval $ac_link) 2>conftest.er1
13b2be9c 13446 ac_status=$?
ab509236
L
13447 grep -v '^ *+' conftest.er1 >conftest.err
13448 rm -f conftest.er1
13449 cat conftest.err >&5
13b2be9c
DJ
13450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13451 (exit $ac_status); } &&
1ad12f97
NC
13452 { ac_try='test -z "$ac_c_werror_flag"
13453 || test ! -s conftest.err'
ab509236
L
13454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13455 (eval $ac_try) 2>&5
13456 ac_status=$?
13457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13458 (exit $ac_status); }; } &&
13459 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
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
e8a38df5 13465 gas_cv_decl_needed_ffs=no
13b2be9c
DJ
13466else
13467 echo "$as_me: failed program was:" >&5
13468sed 's/^/| /' conftest.$ac_ext >&5
13469
e8a38df5 13470gas_cv_decl_needed_ffs=yes
13b2be9c 13471fi
ab509236
L
13472rm -f conftest.err conftest.$ac_objext \
13473 conftest$ac_exeext conftest.$ac_ext
13b2be9c 13474fi
e8a38df5
AL
13475echo "$as_me:$LINENO: result: $gas_cv_decl_needed_ffs" >&5
13476echo "${ECHO_T}$gas_cv_decl_needed_ffs" >&6
13477if test $gas_cv_decl_needed_ffs = yes; then
13b2be9c
DJ
13478
13479cat >>confdefs.h <<\_ACEOF
e8a38df5 13480#define NEED_DECLARATION_FFS 1
13b2be9c
DJ
13481_ACEOF
13482
13483fi
13484
13485
13486echo "$as_me:$LINENO: checking whether declaration is required for free" >&5
13487echo $ECHO_N "checking whether declaration is required for free... $ECHO_C" >&6
13488if test "${gas_cv_decl_needed_free+set}" = set; then
13489 echo $ECHO_N "(cached) $ECHO_C" >&6
13490else
13491 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
13492/* confdefs.h. */
13493_ACEOF
13494cat confdefs.h >>conftest.$ac_ext
13495cat >>conftest.$ac_ext <<_ACEOF
13496/* end confdefs.h. */
13497$gas_test_headers
13498int
13499main ()
13500{
13501
13502typedef void (*f)();
13503f x;
13504x = (f) free;
13505
13506 ;
13507 return 0;
13508}
13509_ACEOF
13510rm -f conftest.$ac_objext conftest$ac_exeext
13511if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 13512 (eval $ac_link) 2>conftest.er1
13b2be9c 13513 ac_status=$?
ab509236
L
13514 grep -v '^ *+' conftest.er1 >conftest.err
13515 rm -f conftest.er1
13516 cat conftest.err >&5
13b2be9c
DJ
13517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13518 (exit $ac_status); } &&
1ad12f97
NC
13519 { ac_try='test -z "$ac_c_werror_flag"
13520 || test ! -s conftest.err'
ab509236
L
13521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13522 (eval $ac_try) 2>&5
13523 ac_status=$?
13524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525 (exit $ac_status); }; } &&
13526 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
13527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13528 (eval $ac_try) 2>&5
13529 ac_status=$?
13530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13531 (exit $ac_status); }; }; then
13532 gas_cv_decl_needed_free=no
13533else
13534 echo "$as_me: failed program was:" >&5
13535sed 's/^/| /' conftest.$ac_ext >&5
13536
13537gas_cv_decl_needed_free=yes
13538fi
ab509236
L
13539rm -f conftest.err conftest.$ac_objext \
13540 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
13541fi
13542echo "$as_me:$LINENO: result: $gas_cv_decl_needed_free" >&5
13543echo "${ECHO_T}$gas_cv_decl_needed_free" >&6
13544if test $gas_cv_decl_needed_free = yes; then
13545
13546cat >>confdefs.h <<\_ACEOF
13547#define NEED_DECLARATION_FREE 1
13548_ACEOF
13549
13550fi
13551
13552
e8a38df5
AL
13553echo "$as_me:$LINENO: checking whether declaration is required for malloc" >&5
13554echo $ECHO_N "checking whether declaration is required for malloc... $ECHO_C" >&6
13555if test "${gas_cv_decl_needed_malloc+set}" = set; then
13b2be9c
DJ
13556 echo $ECHO_N "(cached) $ECHO_C" >&6
13557else
13558 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
13559/* confdefs.h. */
13560_ACEOF
13561cat confdefs.h >>conftest.$ac_ext
13562cat >>conftest.$ac_ext <<_ACEOF
13563/* end confdefs.h. */
13564$gas_test_headers
13565int
13566main ()
13567{
13568
13569typedef char *(*f)();
13570f x;
e8a38df5 13571x = (f) malloc;
13b2be9c
DJ
13572
13573 ;
13574 return 0;
13575}
13576_ACEOF
13577rm -f conftest.$ac_objext conftest$ac_exeext
13578if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 13579 (eval $ac_link) 2>conftest.er1
13b2be9c 13580 ac_status=$?
ab509236
L
13581 grep -v '^ *+' conftest.er1 >conftest.err
13582 rm -f conftest.er1
13583 cat conftest.err >&5
13b2be9c
DJ
13584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13585 (exit $ac_status); } &&
1ad12f97
NC
13586 { ac_try='test -z "$ac_c_werror_flag"
13587 || test ! -s conftest.err'
ab509236
L
13588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13589 (eval $ac_try) 2>&5
13590 ac_status=$?
13591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13592 (exit $ac_status); }; } &&
13593 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
13594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13595 (eval $ac_try) 2>&5
13596 ac_status=$?
13597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13598 (exit $ac_status); }; }; then
e8a38df5 13599 gas_cv_decl_needed_malloc=no
13b2be9c
DJ
13600else
13601 echo "$as_me: failed program was:" >&5
13602sed 's/^/| /' conftest.$ac_ext >&5
13603
e8a38df5 13604gas_cv_decl_needed_malloc=yes
13b2be9c 13605fi
ab509236
L
13606rm -f conftest.err conftest.$ac_objext \
13607 conftest$ac_exeext conftest.$ac_ext
13b2be9c 13608fi
e8a38df5
AL
13609echo "$as_me:$LINENO: result: $gas_cv_decl_needed_malloc" >&5
13610echo "${ECHO_T}$gas_cv_decl_needed_malloc" >&6
13611if test $gas_cv_decl_needed_malloc = yes; then
13b2be9c
DJ
13612
13613cat >>confdefs.h <<\_ACEOF
e8a38df5 13614#define NEED_DECLARATION_MALLOC 1
13b2be9c
DJ
13615_ACEOF
13616
13617fi
13618
13619
e8a38df5
AL
13620echo "$as_me:$LINENO: checking whether declaration is required for sbrk" >&5
13621echo $ECHO_N "checking whether declaration is required for sbrk... $ECHO_C" >&6
13622if test "${gas_cv_decl_needed_sbrk+set}" = set; then
13b2be9c
DJ
13623 echo $ECHO_N "(cached) $ECHO_C" >&6
13624else
13625 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
13626/* confdefs.h. */
13627_ACEOF
13628cat confdefs.h >>conftest.$ac_ext
13629cat >>conftest.$ac_ext <<_ACEOF
13630/* end confdefs.h. */
13631$gas_test_headers
13632int
13633main ()
13634{
13635
e8a38df5 13636typedef char *(*f)();
13b2be9c 13637f x;
e8a38df5 13638x = (f) sbrk;
13b2be9c
DJ
13639
13640 ;
13641 return 0;
13642}
13643_ACEOF
13644rm -f conftest.$ac_objext conftest$ac_exeext
13645if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 13646 (eval $ac_link) 2>conftest.er1
13b2be9c 13647 ac_status=$?
ab509236
L
13648 grep -v '^ *+' conftest.er1 >conftest.err
13649 rm -f conftest.er1
13650 cat conftest.err >&5
13b2be9c
DJ
13651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13652 (exit $ac_status); } &&
1ad12f97
NC
13653 { ac_try='test -z "$ac_c_werror_flag"
13654 || test ! -s conftest.err'
ab509236
L
13655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13656 (eval $ac_try) 2>&5
13657 ac_status=$?
13658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13659 (exit $ac_status); }; } &&
13660 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
13661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13662 (eval $ac_try) 2>&5
13663 ac_status=$?
13664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13665 (exit $ac_status); }; }; then
e8a38df5 13666 gas_cv_decl_needed_sbrk=no
13b2be9c
DJ
13667else
13668 echo "$as_me: failed program was:" >&5
13669sed 's/^/| /' conftest.$ac_ext >&5
13670
e8a38df5 13671gas_cv_decl_needed_sbrk=yes
13b2be9c 13672fi
ab509236
L
13673rm -f conftest.err conftest.$ac_objext \
13674 conftest$ac_exeext conftest.$ac_ext
13b2be9c 13675fi
e8a38df5
AL
13676echo "$as_me:$LINENO: result: $gas_cv_decl_needed_sbrk" >&5
13677echo "${ECHO_T}$gas_cv_decl_needed_sbrk" >&6
13678if test $gas_cv_decl_needed_sbrk = yes; then
13b2be9c
DJ
13679
13680cat >>confdefs.h <<\_ACEOF
e8a38df5 13681#define NEED_DECLARATION_SBRK 1
13b2be9c
DJ
13682_ACEOF
13683
13684fi
13685
13686
e8a38df5
AL
13687echo "$as_me:$LINENO: checking whether declaration is required for strstr" >&5
13688echo $ECHO_N "checking whether declaration is required for strstr... $ECHO_C" >&6
13689if test "${gas_cv_decl_needed_strstr+set}" = set; then
13b2be9c
DJ
13690 echo $ECHO_N "(cached) $ECHO_C" >&6
13691else
13692 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
13693/* confdefs.h. */
13694_ACEOF
13695cat confdefs.h >>conftest.$ac_ext
13696cat >>conftest.$ac_ext <<_ACEOF
13697/* end confdefs.h. */
e8a38df5 13698$gas_test_headers
13b2be9c
DJ
13699int
13700main ()
13701{
13702
e8a38df5 13703typedef char *(*f)();
13b2be9c 13704f x;
e8a38df5 13705x = (f) strstr;
13b2be9c
DJ
13706
13707 ;
13708 return 0;
13709}
13710_ACEOF
13711rm -f conftest.$ac_objext conftest$ac_exeext
13712if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 13713 (eval $ac_link) 2>conftest.er1
13b2be9c 13714 ac_status=$?
ab509236
L
13715 grep -v '^ *+' conftest.er1 >conftest.err
13716 rm -f conftest.er1
13717 cat conftest.err >&5
13b2be9c
DJ
13718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13719 (exit $ac_status); } &&
1ad12f97
NC
13720 { ac_try='test -z "$ac_c_werror_flag"
13721 || test ! -s conftest.err'
ab509236
L
13722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13723 (eval $ac_try) 2>&5
13724 ac_status=$?
13725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726 (exit $ac_status); }; } &&
13727 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
13728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13729 (eval $ac_try) 2>&5
13730 ac_status=$?
13731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13732 (exit $ac_status); }; }; then
e8a38df5 13733 gas_cv_decl_needed_strstr=no
13b2be9c
DJ
13734else
13735 echo "$as_me: failed program was:" >&5
13736sed 's/^/| /' conftest.$ac_ext >&5
13737
e8a38df5 13738gas_cv_decl_needed_strstr=yes
13b2be9c 13739fi
ab509236
L
13740rm -f conftest.err conftest.$ac_objext \
13741 conftest$ac_exeext conftest.$ac_ext
13b2be9c 13742fi
e8a38df5
AL
13743echo "$as_me:$LINENO: result: $gas_cv_decl_needed_strstr" >&5
13744echo "${ECHO_T}$gas_cv_decl_needed_strstr" >&6
13745if test $gas_cv_decl_needed_strstr = yes; then
13b2be9c
DJ
13746
13747cat >>confdefs.h <<\_ACEOF
e8a38df5 13748#define NEED_DECLARATION_STRSTR 1
13b2be9c
DJ
13749_ACEOF
13750
13751fi
13752
13753
6d74f28b
EB
13754echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
13755echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
13756if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
13757 echo $ECHO_N "(cached) $ECHO_C" >&6
13758else
13759 cat >conftest.$ac_ext <<_ACEOF
13760/* confdefs.h. */
13761_ACEOF
13762cat confdefs.h >>conftest.$ac_ext
13763cat >>conftest.$ac_ext <<_ACEOF
13764/* end confdefs.h. */
13765$ac_includes_default
13766int
13767main ()
13768{
13769#ifndef vsnprintf
13770 char *p = (char *) vsnprintf;
13771#endif
13772
13773 ;
13774 return 0;
13775}
13776_ACEOF
13777rm -f conftest.$ac_objext
13778if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13779 (eval $ac_compile) 2>conftest.er1
13780 ac_status=$?
13781 grep -v '^ *+' conftest.er1 >conftest.err
13782 rm -f conftest.er1
13783 cat conftest.err >&5
13784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13785 (exit $ac_status); } &&
13786 { ac_try='test -z "$ac_c_werror_flag"
13787 || test ! -s conftest.err'
13788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13789 (eval $ac_try) 2>&5
13790 ac_status=$?
13791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13792 (exit $ac_status); }; } &&
13793 { ac_try='test -s conftest.$ac_objext'
13794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13795 (eval $ac_try) 2>&5
13796 ac_status=$?
13797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798 (exit $ac_status); }; }; then
13799 ac_cv_have_decl_vsnprintf=yes
13800else
13801 echo "$as_me: failed program was:" >&5
13802sed 's/^/| /' conftest.$ac_ext >&5
13803
13804ac_cv_have_decl_vsnprintf=no
13805fi
13806rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13807fi
13808echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
13809echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
13810if test $ac_cv_have_decl_vsnprintf = yes; then
13811
13812cat >>confdefs.h <<_ACEOF
13813#define HAVE_DECL_VSNPRINTF 1
13814_ACEOF
13815
13816
13817else
13818 cat >>confdefs.h <<_ACEOF
13819#define HAVE_DECL_VSNPRINTF 0
13820_ACEOF
13821
13822
13823fi
13824
13825
13826
13b2be9c 13827
c973bc5c
NC
13828case "${host}" in
13829*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
13830
13831cat >>confdefs.h <<\_ACEOF
13832#define USE_BINARY_FOPEN 1
13833_ACEOF
13834 ;;
13835esac
13836
13837
13b2be9c 13838
108a6f8e
CD
13839
13840
13841
13842
13b2be9c
DJ
13843 ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
13844
13845 ac_config_commands="$ac_config_commands default"
13846
13847
13848cat >confcache <<\_ACEOF
13849# This file is a shell script that caches the results of configure
13850# tests run on this system so they can be shared between configure
13851# scripts and configure runs, see configure's option --config-cache.
13852# It is not useful on other systems. If it contains results you don't
13853# want to keep, you may remove or edit it.
13854#
13855# config.status only pays attention to the cache file if you give it
13856# the --recheck option to rerun configure.
13857#
13858# `ac_cv_env_foo' variables (set or unset) will be overridden when
13859# loading this file, other *unset* `ac_cv_foo' will be assigned the
13860# following values.
13861
13862_ACEOF
13863
13864# The following way of writing the cache mishandles newlines in values,
13865# but we know of no workaround that is simple, portable, and efficient.
13866# So, don't put newlines in cache variables' values.
13867# Ultrix sh set writes to stderr and can't be redirected directly,
13868# and sets the high bit in the cache file unless we assign to the vars.
13869{
13870 (set) 2>&1 |
13871 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13872 *ac_space=\ *)
13873 # `set' does not quote correctly, so add quotes (double-quote
13874 # substitution turns \\\\ into \\, and sed turns \\ into \).
13875 sed -n \
ab509236
L
13876 "s/'/'\\\\''/g;
13877 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13b2be9c
DJ
13878 ;;
13879 *)
13880 # `set' quotes correctly as required by POSIX, so do not add quotes.
13881 sed -n \
ab509236 13882 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13b2be9c
DJ
13883 ;;
13884 esac;
13885} |
13886 sed '
13887 t clear
13888 : clear
13889 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13890 t end
13891 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13892 : end' >>confcache
13893if diff $cache_file confcache >/dev/null 2>&1; then :; else
13894 if test -w $cache_file; then
13895 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
13896 cat confcache >$cache_file
13897 else
13898 echo "not updating unwritable cache $cache_file"
13899 fi
13900fi
13901rm -f confcache
13902
13903test "x$prefix" = xNONE && prefix=$ac_default_prefix
13904# Let make expand exec_prefix.
13905test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13906
13907# VPATH may cause trouble with some makes, so we remove $(srcdir),
13908# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13909# trailing colons and then remove the whole line if VPATH becomes empty
13910# (actually we leave an empty line to preserve line numbers).
13911if test "x$srcdir" = x.; then
ab509236 13912 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13b2be9c
DJ
13913s/:*\$(srcdir):*/:/;
13914s/:*\${srcdir}:*/:/;
13915s/:*@srcdir@:*/:/;
ab509236 13916s/^\([^=]*=[ ]*\):*/\1/;
13b2be9c 13917s/:*$//;
ab509236 13918s/^[^=]*=[ ]*$//;
13b2be9c
DJ
13919}'
13920fi
13921
13922DEFS=-DHAVE_CONFIG_H
13923
13924ac_libobjs=
13925ac_ltlibobjs=
13926for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13927 # 1. Remove the extension, and $U if already installed.
13928 ac_i=`echo "$ac_i" |
ab509236 13929 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
13b2be9c
DJ
13930 # 2. Add them.
13931 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
13932 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
13933done
13934LIBOBJS=$ac_libobjs
13935
13936LTLIBOBJS=$ac_ltlibobjs
13937
13938
13939if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13940 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13941Usually this means the macro was only invoked conditionally." >&5
13942echo "$as_me: error: conditional \"AMDEP\" was never defined.
13943Usually this means the macro was only invoked conditionally." >&2;}
13944 { (exit 1); exit 1; }; }
13945fi
13946if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13947 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13948Usually this means the macro was only invoked conditionally." >&5
13949echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13950Usually this means the macro was only invoked conditionally." >&2;}
13951 { (exit 1); exit 1; }; }
13952fi
13953if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13954 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
13955Usually this means the macro was only invoked conditionally." >&5
13956echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
13957Usually this means the macro was only invoked conditionally." >&2;}
13958 { (exit 1); exit 1; }; }
13959fi
d5fbea21
DJ
13960if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
13961 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
13962Usually this means the macro was only invoked conditionally." >&5
13963echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
13964Usually this means the macro was only invoked conditionally." >&2;}
13965 { (exit 1); exit 1; }; }
13966fi
13b2be9c
DJ
13967
13968: ${CONFIG_STATUS=./config.status}
13969ac_clean_files_save=$ac_clean_files
13970ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13971{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13972echo "$as_me: creating $CONFIG_STATUS" >&6;}
13973cat >$CONFIG_STATUS <<_ACEOF
13974#! $SHELL
13975# Generated by $as_me.
13976# Run this file to recreate the current configuration.
13977# Compiler output produced by configure, useful for debugging
13978# configure, is in config.log if it exists.
13979
13980debug=false
13981ac_cs_recheck=false
13982ac_cs_silent=false
13983SHELL=\${CONFIG_SHELL-$SHELL}
13984_ACEOF
13985
13986cat >>$CONFIG_STATUS <<\_ACEOF
13987## --------------------- ##
13988## M4sh Initialization. ##
13989## --------------------- ##
13990
13991# Be Bourne compatible
13992if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13993 emulate sh
13994 NULLCMD=:
13995 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13996 # is contrary to our usage. Disable this feature.
13997 alias -g '${1+"$@"}'='"$@"'
13998elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13999 set -o posix
14000fi
ab509236 14001DUALCASE=1; export DUALCASE # for MKS sh
13b2be9c
DJ
14002
14003# Support unset when possible.
ab509236 14004if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13b2be9c
DJ
14005 as_unset=unset
14006else
14007 as_unset=false
14008fi
14009
14010
14011# Work around bugs in pre-3.0 UWIN ksh.
14012$as_unset ENV MAIL MAILPATH
14013PS1='$ '
14014PS2='> '
14015PS4='+ '
14016
14017# NLS nuisances.
14018for as_var in \
14019 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14020 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14021 LC_TELEPHONE LC_TIME
14022do
ab509236 14023 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13b2be9c
DJ
14024 eval $as_var=C; export $as_var
14025 else
14026 $as_unset $as_var
14027 fi
14028done
14029
14030# Required to use basename.
14031if expr a : '\(a\)' >/dev/null 2>&1; then
14032 as_expr=expr
14033else
14034 as_expr=false
14035fi
14036
14037if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
14038 as_basename=basename
14039else
14040 as_basename=false
14041fi
14042
14043
14044# Name of the executable.
14045as_me=`$as_basename "$0" ||
14046$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14047 X"$0" : 'X\(//\)$' \| \
14048 X"$0" : 'X\(/\)$' \| \
14049 . : '\(.\)' 2>/dev/null ||
14050echo X/"$0" |
14051 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14052 /^X\/\(\/\/\)$/{ s//\1/; q; }
14053 /^X\/\(\/\).*/{ s//\1/; q; }
14054 s/.*/./; q'`
14055
14056
14057# PATH needs CR, and LINENO needs CR and PATH.
14058# Avoid depending upon Character Ranges.
14059as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14060as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14061as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14062as_cr_digits='0123456789'
14063as_cr_alnum=$as_cr_Letters$as_cr_digits
14064
14065# The user is always right.
14066if test "${PATH_SEPARATOR+set}" != set; then
14067 echo "#! /bin/sh" >conf$$.sh
14068 echo "exit 0" >>conf$$.sh
14069 chmod +x conf$$.sh
14070 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14071 PATH_SEPARATOR=';'
14072 else
14073 PATH_SEPARATOR=:
14074 fi
14075 rm -f conf$$.sh
14076fi
14077
14078
14079 as_lineno_1=$LINENO
14080 as_lineno_2=$LINENO
14081 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14082 test "x$as_lineno_1" != "x$as_lineno_2" &&
14083 test "x$as_lineno_3" = "x$as_lineno_2" || {
14084 # Find who we are. Look in the path if we contain no path at all
14085 # relative or not.
14086 case $0 in
14087 *[\\/]* ) as_myself=$0 ;;
14088 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14089for as_dir in $PATH
14090do
14091 IFS=$as_save_IFS
14092 test -z "$as_dir" && as_dir=.
14093 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14094done
252b5132 14095
13b2be9c
DJ
14096 ;;
14097 esac
14098 # We did not find ourselves, most probably we were run as `sh COMMAND'
14099 # in which case we are not to be found in the path.
14100 if test "x$as_myself" = x; then
14101 as_myself=$0
14102 fi
14103 if test ! -f "$as_myself"; then
14104 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
14105echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
14106 { (exit 1); exit 1; }; }
14107 fi
14108 case $CONFIG_SHELL in
14109 '')
14110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14111for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
14112do
14113 IFS=$as_save_IFS
14114 test -z "$as_dir" && as_dir=.
14115 for as_base in sh bash ksh sh5; do
14116 case $as_dir in
14117 /*)
14118 if ("$as_dir/$as_base" -c '
14119 as_lineno_1=$LINENO
14120 as_lineno_2=$LINENO
14121 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14122 test "x$as_lineno_1" != "x$as_lineno_2" &&
14123 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
14124 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
14125 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
14126 CONFIG_SHELL=$as_dir/$as_base
14127 export CONFIG_SHELL
14128 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
14129 fi;;
14130 esac
14131 done
14132done
14133;;
14134 esac
252b5132 14135
13b2be9c
DJ
14136 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14137 # uniformly replaced by the line number. The first 'sed' inserts a
14138 # line-number line before each line; the second 'sed' does the real
14139 # work. The second script uses 'N' to pair each line-number line
14140 # with the numbered line, and appends trailing '-' during
14141 # substitution so that $LINENO is not a special case at line end.
14142 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14143 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
14144 sed '=' <$as_myself |
14145 sed '
14146 N
14147 s,$,-,
14148 : loop
14149 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
14150 t loop
14151 s,-$,,
14152 s,^['$as_cr_digits']*\n,,
14153 ' >$as_me.lineno &&
14154 chmod +x $as_me.lineno ||
14155 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
14156echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
14157 { (exit 1); exit 1; }; }
14158
14159 # Don't try to exec as it changes $[0], causing all sort of problems
14160 # (the dirname of $[0] is not the place where we might find the
14161 # original and so on. Autoconf is especially sensible to this).
14162 . ./$as_me.lineno
14163 # Exit status is that of the last command.
14164 exit
14165}
d6d788bd 14166
252b5132 14167
13b2be9c
DJ
14168case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
14169 *c*,-n*) ECHO_N= ECHO_C='
14170' ECHO_T=' ' ;;
14171 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
14172 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
14173esac
252b5132 14174
13b2be9c
DJ
14175if expr a : '\(a\)' >/dev/null 2>&1; then
14176 as_expr=expr
252b5132 14177else
13b2be9c 14178 as_expr=false
252b5132 14179fi
252b5132 14180
13b2be9c
DJ
14181rm -f conf$$ conf$$.exe conf$$.file
14182echo >conf$$.file
14183if ln -s conf$$.file conf$$ 2>/dev/null; then
14184 # We could just check for DJGPP; but this test a) works b) is more generic
14185 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
14186 if test -f conf$$.exe; then
14187 # Don't use ln at all; we don't have any links
14188 as_ln_s='cp -p'
14189 else
14190 as_ln_s='ln -s'
14191 fi
14192elif ln conf$$.file conf$$ 2>/dev/null; then
14193 as_ln_s=ln
14194else
14195 as_ln_s='cp -p'
252b5132 14196fi
13b2be9c 14197rm -f conf$$ conf$$.exe conf$$.file
252b5132 14198
13b2be9c
DJ
14199if mkdir -p . 2>/dev/null; then
14200 as_mkdir_p=:
252b5132 14201else
ab509236 14202 test -d ./-p && rmdir ./-p
13b2be9c
DJ
14203 as_mkdir_p=false
14204fi
252b5132 14205
13b2be9c 14206as_executable_p="test -f"
252b5132 14207
13b2be9c 14208# Sed expression to map a string onto a valid CPP name.
ab509236 14209as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
252b5132 14210
13b2be9c 14211# Sed expression to map a string onto a valid variable name.
ab509236 14212as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
252b5132 14213
d6d788bd 14214
13b2be9c
DJ
14215# IFS
14216# We need space, tab and new line, in precisely that order.
14217as_nl='
14218'
14219IFS=" $as_nl"
252b5132 14220
13b2be9c
DJ
14221# CDPATH.
14222$as_unset CDPATH
252b5132 14223
13b2be9c 14224exec 6>&1
252b5132 14225
13b2be9c
DJ
14226# Open the log real soon, to keep \$[0] and so on meaningful, and to
14227# report actual input values of CONFIG_FILES etc. instead of their
14228# values after options handling. Logging --version etc. is OK.
14229exec 5>>config.log
14230{
14231 echo
14232 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14233## Running $as_me. ##
14234_ASBOX
14235} >&5
14236cat >&5 <<_CSEOF
252b5132 14237
13b2be9c 14238This file was extended by $as_me, which was
ab509236 14239generated by GNU Autoconf 2.59. Invocation command line was
d6d788bd 14240
13b2be9c
DJ
14241 CONFIG_FILES = $CONFIG_FILES
14242 CONFIG_HEADERS = $CONFIG_HEADERS
14243 CONFIG_LINKS = $CONFIG_LINKS
14244 CONFIG_COMMANDS = $CONFIG_COMMANDS
14245 $ $0 $@
252b5132 14246
13b2be9c
DJ
14247_CSEOF
14248echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
14249echo >&5
14250_ACEOF
252b5132 14251
13b2be9c
DJ
14252# Files that config.status was made for.
14253if test -n "$ac_config_files"; then
14254 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
252b5132 14255fi
13b2be9c
DJ
14256
14257if test -n "$ac_config_headers"; then
14258 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
252b5132 14259fi
252b5132 14260
13b2be9c
DJ
14261if test -n "$ac_config_links"; then
14262 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
252b5132
RH
14263fi
14264
13b2be9c
DJ
14265if test -n "$ac_config_commands"; then
14266 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14267fi
d6d788bd 14268
13b2be9c 14269cat >>$CONFIG_STATUS <<\_ACEOF
252b5132 14270
13b2be9c
DJ
14271ac_cs_usage="\
14272\`$as_me' instantiates files from templates according to the
14273current configuration.
252b5132 14274
13b2be9c 14275Usage: $0 [OPTIONS] [FILE]...
252b5132 14276
13b2be9c
DJ
14277 -h, --help print this help, then exit
14278 -V, --version print version number, then exit
14279 -q, --quiet do not print progress messages
14280 -d, --debug don't remove temporary files
14281 --recheck update $as_me by reconfiguring in the same conditions
14282 --file=FILE[:TEMPLATE]
ab509236 14283 instantiate the configuration file FILE
13b2be9c 14284 --header=FILE[:TEMPLATE]
ab509236 14285 instantiate the configuration header FILE
252b5132 14286
13b2be9c
DJ
14287Configuration files:
14288$config_files
252b5132 14289
13b2be9c
DJ
14290Configuration headers:
14291$config_headers
252b5132 14292
13b2be9c
DJ
14293Configuration commands:
14294$config_commands
252b5132 14295
13b2be9c
DJ
14296Report bugs to <bug-autoconf@gnu.org>."
14297_ACEOF
d6d788bd 14298
13b2be9c
DJ
14299cat >>$CONFIG_STATUS <<_ACEOF
14300ac_cs_version="\\
14301config.status
ab509236 14302configured by $0, generated by GNU Autoconf 2.59,
13b2be9c 14303 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
d6d788bd 14304
ab509236 14305Copyright (C) 2003 Free Software Foundation, Inc.
13b2be9c
DJ
14306This config.status script is free software; the Free Software Foundation
14307gives unlimited permission to copy, distribute and modify it."
14308srcdir=$srcdir
14309INSTALL="$INSTALL"
14310_ACEOF
d6d788bd 14311
13b2be9c
DJ
14312cat >>$CONFIG_STATUS <<\_ACEOF
14313# If no file are specified by the user, then we need to provide default
14314# value. By we need to know if files were specified by the user.
14315ac_need_defaults=:
14316while test $# != 0
14317do
14318 case $1 in
14319 --*=*)
14320 ac_option=`expr "x$1" : 'x\([^=]*\)='`
14321 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
14322 ac_shift=:
c8615825 14323 ;;
13b2be9c
DJ
14324 -*)
14325 ac_option=$1
14326 ac_optarg=$2
14327 ac_shift=shift
c8615825 14328 ;;
13b2be9c
DJ
14329 *) # This is not an option, so the user has probably given explicit
14330 # arguments.
14331 ac_option=$1
14332 ac_need_defaults=false;;
14333 esac
252b5132 14334
13b2be9c
DJ
14335 case $ac_option in
14336 # Handling of the options.
14337_ACEOF
14338cat >>$CONFIG_STATUS <<\_ACEOF
14339 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14340 ac_cs_recheck=: ;;
14341 --version | --vers* | -V )
14342 echo "$ac_cs_version"; exit 0 ;;
14343 --he | --h)
14344 # Conflict between --help and --header
14345 { { echo "$as_me:$LINENO: error: ambiguous option: $1
14346Try \`$0 --help' for more information." >&5
14347echo "$as_me: error: ambiguous option: $1
14348Try \`$0 --help' for more information." >&2;}
14349 { (exit 1); exit 1; }; };;
14350 --help | --hel | -h )
14351 echo "$ac_cs_usage"; exit 0 ;;
14352 --debug | --d* | -d )
14353 debug=: ;;
14354 --file | --fil | --fi | --f )
14355 $ac_shift
14356 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14357 ac_need_defaults=false;;
14358 --header | --heade | --head | --hea )
14359 $ac_shift
14360 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14361 ac_need_defaults=false;;
14362 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14363 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14364 ac_cs_silent=: ;;
c8615825 14365
13b2be9c
DJ
14366 # This is an error.
14367 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
14368Try \`$0 --help' for more information." >&5
14369echo "$as_me: error: unrecognized option: $1
14370Try \`$0 --help' for more information." >&2;}
14371 { (exit 1); exit 1; }; } ;;
252b5132 14372
13b2be9c 14373 *) ac_config_targets="$ac_config_targets $1" ;;
252b5132 14374
13b2be9c
DJ
14375 esac
14376 shift
14377done
252b5132 14378
13b2be9c 14379ac_configure_extra_args=
d6d788bd 14380
13b2be9c
DJ
14381if $ac_cs_silent; then
14382 exec 6>/dev/null
14383 ac_configure_extra_args="$ac_configure_extra_args --silent"
14384fi
9b2b7d69 14385
13b2be9c
DJ
14386_ACEOF
14387cat >>$CONFIG_STATUS <<_ACEOF
14388if \$ac_cs_recheck; then
14389 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14390 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14391fi
14392
14393_ACEOF
14394
14395cat >>$CONFIG_STATUS <<_ACEOF
9b2b7d69 14396#
13b2be9c 14397# INIT-COMMANDS section.
9b2b7d69
MM
14398#
14399
13b2be9c 14400AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
14401
14402
14403# The HP-UX ksh and POSIX shell print the target directory to stdout
14404# if CDPATH is set.
14405(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14406
14407sed_quote_subst='$sed_quote_subst'
14408double_quote_subst='$double_quote_subst'
14409delay_variable_subst='$delay_variable_subst'
14410macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14411macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14412enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14413enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14414pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14415enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14416host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14417host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14418host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14419build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14420build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14421build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14422SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14423Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14424GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14425EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14426FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14427LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14428NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14429LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14430max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14431ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14432exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14433lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14434lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14435lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14436reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14437reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14438deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14439file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14440AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14441AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14442STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14443RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14444old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14445old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14446old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14447CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14448CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14449compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14450GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14451lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14452lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14453lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
14454objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14455SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14456ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14457MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14458lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14459lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14460lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14461lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14462lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14463need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14464libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14465shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14466extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14467archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14468enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14469export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14470whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14471compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14472old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14473old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14474archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14475archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14476module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14477module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14478with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14479allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14480no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14481hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14482hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14483hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14484hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14485hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14486hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14487hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14488hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14489inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14490link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14491fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14492always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14493export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14494exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14495include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14496prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14497file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14498variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14499need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14500need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14501version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14502runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14503shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14504shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14505libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14506library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14507soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14508postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14509postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14510finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14511finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14512hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14513sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14514sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14515hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14516enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14517enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14518enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14519old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14520striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14521
14522LTCC='$LTCC'
14523LTCFLAGS='$LTCFLAGS'
14524compiler='$compiler_DEFAULT'
14525
14526# Quote evaled strings.
14527for var in SED \
14528GREP \
14529EGREP \
14530FGREP \
14531LD \
14532NM \
14533LN_S \
14534lt_SP2NL \
14535lt_NL2SP \
14536reload_flag \
14537deplibs_check_method \
14538file_magic_cmd \
14539AR \
14540AR_FLAGS \
14541STRIP \
14542RANLIB \
14543CC \
14544CFLAGS \
14545compiler \
14546lt_cv_sys_global_symbol_pipe \
14547lt_cv_sys_global_symbol_to_cdecl \
14548lt_cv_sys_global_symbol_to_c_name_address \
14549SHELL \
14550ECHO \
14551lt_prog_compiler_no_builtin_flag \
14552lt_prog_compiler_wl \
14553lt_prog_compiler_pic \
14554lt_prog_compiler_static \
14555lt_cv_prog_compiler_c_o \
14556need_locks \
14557shrext_cmds \
14558export_dynamic_flag_spec \
14559whole_archive_flag_spec \
14560compiler_needs_object \
14561with_gnu_ld \
14562allow_undefined_flag \
14563no_undefined_flag \
14564hardcode_libdir_flag_spec \
14565hardcode_libdir_flag_spec_ld \
14566hardcode_libdir_separator \
14567fix_srcfile_path \
14568exclude_expsyms \
14569include_expsyms \
14570file_list_spec \
14571variables_saved_for_relink \
14572libname_spec \
14573library_names_spec \
14574soname_spec \
14575finish_eval \
14576old_striplib \
14577striplib; do
14578 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14579 *[\\\\\\\`\\"\\\$]*)
14580 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14581 ;;
14582 *)
14583 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14584 ;;
14585 esac
14586done
14587
14588# Double-quote double-evaled strings.
14589for var in reload_cmds \
14590old_postinstall_cmds \
14591old_postuninstall_cmds \
14592old_archive_cmds \
14593extract_expsyms_cmds \
14594old_archive_from_new_cmds \
14595old_archive_from_expsyms_cmds \
14596archive_cmds \
14597archive_expsym_cmds \
14598module_cmds \
14599module_expsym_cmds \
14600export_symbols_cmds \
14601prelink_cmds \
14602postinstall_cmds \
14603postuninstall_cmds \
14604finish_cmds \
14605sys_lib_search_path_spec \
14606sys_lib_dlsearch_path_spec; do
14607 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14608 *[\\\\\\\`\\"\\\$]*)
14609 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14610 ;;
14611 *)
14612 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14613 ;;
14614 esac
14615done
14616
14617# Fix-up fallback echo if it was mangled by the above quoting rules.
14618case \$lt_ECHO in
14619*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14620 ;;
14621esac
14622
14623ac_aux_dir='$ac_aux_dir'
14624xsi_shell='$xsi_shell'
14625lt_shell_append='$lt_shell_append'
14626
14627# See if we are running on zsh, and set the options which allow our
14628# commands through without removal of \ escapes INIT.
14629if test -n "\${ZSH_VERSION+set}" ; then
14630 setopt NO_GLOB_SUBST
14631fi
14632
14633
14634 PACKAGE='$PACKAGE'
14635 VERSION='$VERSION'
14636 TIMESTAMP='$TIMESTAMP'
14637 RM='$RM'
14638 ofile='$ofile'
14639
14640
14641
20e95c23
DJ
14642# Capture the value of obsolete ALL_LINGUAS because we need it to compute
14643 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
14644 # from automake.
14645 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14646 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14647 LINGUAS="${LINGUAS-%UNSET%}"
14648
13b2be9c
DJ
14649target_cpu_type=${target_cpu_type}
14650 cgen_cpu_prefix=${cgen_cpu_prefix}
14651 obj_format=${obj_format}
14652 te_file=${te_file}
14653
14654_ACEOF
14655
14656
14657
14658cat >>$CONFIG_STATUS <<\_ACEOF
14659for ac_config_target in $ac_config_targets
9b2b7d69 14660do
13b2be9c
DJ
14661 case "$ac_config_target" in
14662 # Handling of arguments.
14663 "gdb.ini" ) CONFIG_FILES="$CONFIG_FILES gdb.ini:gdbinit.in" ;;
14664 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
14665 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14666 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14667 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
14668 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
d7040cdb 14669 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20e95c23 14670 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13b2be9c
DJ
14671 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
14672 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
14673 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14674echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14675 { (exit 1); exit 1; }; };;
9b2b7d69
MM
14676 esac
14677done
14678
13b2be9c
DJ
14679# If the user did not use the arguments to specify the items to instantiate,
14680# then the envvar interface is used. Set only those that are not.
14681# We use the long form for the default assignment because of an extremely
14682# bizarre bug on SunOS 4.1.3.
14683if $ac_need_defaults; then
14684 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14685 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14686 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14687fi
14688
14689# Have a temporary directory for convenience. Make it in the build tree
14690# simply because there is no reason to put it here, and in addition,
14691# creating and moving files from /tmp can sometimes cause problems.
14692# Create a temporary directory, and hook for its removal unless debugging.
14693$debug ||
14694{
14695 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14696 trap '{ (exit 1); exit 1; }' 1 2 13 15
14697}
9b2b7d69 14698
13b2be9c 14699# Create a (secure) tmp directory for tmp files.
9b2b7d69 14700
13b2be9c
DJ
14701{
14702 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
14703 test -n "$tmp" && test -d "$tmp"
14704} ||
14705{
14706 tmp=./confstat$$-$RANDOM
14707 (umask 077 && mkdir $tmp)
14708} ||
14709{
14710 echo "$me: cannot create a temporary directory in ." >&2
14711 { (exit 1); exit 1; }
14712}
9b2b7d69 14713
13b2be9c
DJ
14714_ACEOF
14715
14716cat >>$CONFIG_STATUS <<_ACEOF
14717
14718#
14719# CONFIG_FILES section.
14720#
14721
14722# No need to generate the scripts if there are no CONFIG_FILES.
14723# This happens for instance when ./config.status config.h
14724if test -n "\$CONFIG_FILES"; then
14725 # Protect against being on the right side of a sed subst in config.status.
14726 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
14727 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
14728s,@SHELL@,$SHELL,;t t
14729s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14730s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14731s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14732s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14733s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14734s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
14735s,@exec_prefix@,$exec_prefix,;t t
14736s,@prefix@,$prefix,;t t
14737s,@program_transform_name@,$program_transform_name,;t t
14738s,@bindir@,$bindir,;t t
14739s,@sbindir@,$sbindir,;t t
14740s,@libexecdir@,$libexecdir,;t t
14741s,@datadir@,$datadir,;t t
14742s,@sysconfdir@,$sysconfdir,;t t
14743s,@sharedstatedir@,$sharedstatedir,;t t
14744s,@localstatedir@,$localstatedir,;t t
14745s,@libdir@,$libdir,;t t
14746s,@includedir@,$includedir,;t t
14747s,@oldincludedir@,$oldincludedir,;t t
14748s,@infodir@,$infodir,;t t
14749s,@mandir@,$mandir,;t t
14750s,@build_alias@,$build_alias,;t t
14751s,@host_alias@,$host_alias,;t t
14752s,@target_alias@,$target_alias,;t t
14753s,@DEFS@,$DEFS,;t t
14754s,@ECHO_C@,$ECHO_C,;t t
14755s,@ECHO_N@,$ECHO_N,;t t
14756s,@ECHO_T@,$ECHO_T,;t t
14757s,@LIBS@,$LIBS,;t t
14758s,@build@,$build,;t t
14759s,@build_cpu@,$build_cpu,;t t
14760s,@build_vendor@,$build_vendor,;t t
14761s,@build_os@,$build_os,;t t
14762s,@host@,$host,;t t
14763s,@host_cpu@,$host_cpu,;t t
14764s,@host_vendor@,$host_vendor,;t t
14765s,@host_os@,$host_os,;t t
14766s,@target@,$target,;t t
14767s,@target_cpu@,$target_cpu,;t t
14768s,@target_vendor@,$target_vendor,;t t
14769s,@target_os@,$target_os,;t t
14770s,@CC@,$CC,;t t
14771s,@CFLAGS@,$CFLAGS,;t t
14772s,@LDFLAGS@,$LDFLAGS,;t t
14773s,@CPPFLAGS@,$CPPFLAGS,;t t
14774s,@ac_ct_CC@,$ac_ct_CC,;t t
14775s,@EXEEXT@,$EXEEXT,;t t
14776s,@OBJEXT@,$OBJEXT,;t t
14777s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
14778s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
14779s,@INSTALL_DATA@,$INSTALL_DATA,;t t
14780s,@CYGPATH_W@,$CYGPATH_W,;t t
14781s,@PACKAGE@,$PACKAGE,;t t
14782s,@VERSION@,$VERSION,;t t
14783s,@ACLOCAL@,$ACLOCAL,;t t
14784s,@AUTOCONF@,$AUTOCONF,;t t
14785s,@AUTOMAKE@,$AUTOMAKE,;t t
14786s,@AUTOHEADER@,$AUTOHEADER,;t t
14787s,@MAKEINFO@,$MAKEINFO,;t t
13b2be9c
DJ
14788s,@install_sh@,$install_sh,;t t
14789s,@STRIP@,$STRIP,;t t
14790s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
14791s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
ab509236 14792s,@mkdir_p@,$mkdir_p,;t t
13b2be9c
DJ
14793s,@AWK@,$AWK,;t t
14794s,@SET_MAKE@,$SET_MAKE,;t t
14795s,@am__leading_dot@,$am__leading_dot,;t t
8ea2b00f
AM
14796s,@AMTAR@,$AMTAR,;t t
14797s,@am__tar@,$am__tar,;t t
14798s,@am__untar@,$am__untar,;t t
13b2be9c
DJ
14799s,@DEPDIR@,$DEPDIR,;t t
14800s,@am__include@,$am__include,;t t
14801s,@am__quote@,$am__quote,;t t
14802s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
14803s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
14804s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
14805s,@CCDEPMODE@,$CCDEPMODE,;t t
14806s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
14807s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
d7040cdb
SE
14808s,@LIBTOOL@,$LIBTOOL,;t t
14809s,@SED@,$SED,;t t
14810s,@EGREP@,$EGREP,;t t
14811s,@FGREP@,$FGREP,;t t
14812s,@GREP@,$GREP,;t t
14813s,@LD@,$LD,;t t
14814s,@DUMPBIN@,$DUMPBIN,;t t
14815s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
14816s,@NM@,$NM,;t t
13b2be9c 14817s,@LN_S@,$LN_S,;t t
d7040cdb
SE
14818s,@AR@,$AR,;t t
14819s,@ac_ct_AR@,$ac_ct_AR,;t t
13b2be9c
DJ
14820s,@RANLIB@,$RANLIB,;t t
14821s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
d7040cdb
SE
14822s,@lt_ECHO@,$lt_ECHO,;t t
14823s,@CPP@,$CPP,;t t
13b2be9c 14824s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
9e9b66a9 14825s,@NO_WERROR@,$NO_WERROR,;t t
13b2be9c
DJ
14826s,@GDBINIT@,$GDBINIT,;t t
14827s,@cgen_cpu_prefix@,$cgen_cpu_prefix,;t t
14828s,@extra_objects@,$extra_objects,;t t
14829s,@target_cpu_type@,$target_cpu_type,;t t
14830s,@obj_format@,$obj_format,;t t
14831s,@te_file@,$te_file,;t t
14832s,@install_tooldir@,$install_tooldir,;t t
14833s,@atof@,$atof,;t t
13b2be9c 14834s,@OPCODES_LIB@,$OPCODES_LIB,;t t
13b2be9c
DJ
14835s,@YACC@,$YACC,;t t
14836s,@LEX@,$LEX,;t t
14837s,@LEXLIB@,$LEXLIB,;t t
14838s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
13b2be9c 14839s,@USE_NLS@,$USE_NLS,;t t
20e95c23
DJ
14840s,@LIBINTL@,$LIBINTL,;t t
14841s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
14842s,@INCINTL@,$INCINTL,;t t
13b2be9c 14843s,@XGETTEXT@,$XGETTEXT,;t t
20e95c23
DJ
14844s,@GMSGFMT@,$GMSGFMT,;t t
14845s,@POSUB@,$POSUB,;t t
13b2be9c 14846s,@CATALOGS@,$CATALOGS,;t t
13b2be9c 14847s,@DATADIRNAME@,$DATADIRNAME,;t t
13b2be9c 14848s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20e95c23
DJ
14849s,@GENCAT@,$GENCAT,;t t
14850s,@CATOBJEXT@,$CATOBJEXT,;t t
13b2be9c 14851s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
20e95c23
DJ
14852s,@MSGFMT@,$MSGFMT,;t t
14853s,@MSGMERGE@,$MSGMERGE,;t t
13b2be9c
DJ
14854s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
14855s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
14856s,@MAINT@,$MAINT,;t t
d5fbea21
DJ
14857s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
14858s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
20e95c23 14859s,@ALLOCA@,$ALLOCA,;t t
13b2be9c 14860s,@LIBM@,$LIBM,;t t
108a6f8e
CD
14861s,@datarootdir@,$datarootdir,;t t
14862s,@docdir@,$docdir,;t t
14863s,@htmldir@,$htmldir,;t t
13b2be9c
DJ
14864s,@LIBOBJS@,$LIBOBJS,;t t
14865s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9b2b7d69
MM
14866CEOF
14867
13b2be9c
DJ
14868_ACEOF
14869
14870 cat >>$CONFIG_STATUS <<\_ACEOF
14871 # Split the substitutions into bite-sized pieces for seds with
14872 # small command number limits, like on Digital OSF/1 and HP-UX.
14873 ac_max_sed_lines=48
14874 ac_sed_frag=1 # Number of current file.
14875 ac_beg=1 # First line for current file.
14876 ac_end=$ac_max_sed_lines # Line after last line for current file.
14877 ac_more_lines=:
14878 ac_sed_cmds=
14879 while $ac_more_lines; do
14880 if test $ac_beg -gt 1; then
14881 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14882 else
14883 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14884 fi
14885 if test ! -s $tmp/subs.frag; then
14886 ac_more_lines=false
9b2b7d69 14887 else
13b2be9c
DJ
14888 # The purpose of the label and of the branching condition is to
14889 # speed up the sed processing (if there are no `@' at all, there
14890 # is no need to browse any of the substitutions).
14891 # These are the two extra sed commands mentioned above.
14892 (echo ':t
14893 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
14894 if test -z "$ac_sed_cmds"; then
ab509236 14895 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13b2be9c 14896 else
ab509236 14897 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13b2be9c
DJ
14898 fi
14899 ac_sed_frag=`expr $ac_sed_frag + 1`
14900 ac_beg=$ac_end
14901 ac_end=`expr $ac_end + $ac_max_sed_lines`
9b2b7d69 14902 fi
13b2be9c
DJ
14903 done
14904 if test -z "$ac_sed_cmds"; then
14905 ac_sed_cmds=cat
252b5132 14906 fi
13b2be9c 14907fi # test -n "$CONFIG_FILES"
252b5132 14908
13b2be9c
DJ
14909_ACEOF
14910cat >>$CONFIG_STATUS <<\_ACEOF
14911for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
c8615825 14912 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13b2be9c
DJ
14913 case $ac_file in
14914 - | *:- | *:-:* ) # input from stdin
ab509236
L
14915 cat >$tmp/stdin
14916 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14917 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13b2be9c 14918 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ab509236 14919 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13b2be9c 14920 * ) ac_file_in=$ac_file.in ;;
252b5132 14921 esac
9b2b7d69 14922
13b2be9c
DJ
14923 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
14924 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14925$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
14926 X"$ac_file" : 'X\(//\)[^/]' \| \
14927 X"$ac_file" : 'X\(//\)$' \| \
14928 X"$ac_file" : 'X\(/\)' \| \
14929 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
14930echo X"$ac_file" |
14931 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14932 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14933 /^X\(\/\/\)$/{ s//\1/; q; }
14934 /^X\(\/\).*/{ s//\1/; q; }
14935 s/.*/./; q'`
14936 { if $as_mkdir_p; then
14937 mkdir -p "$ac_dir"
c8615825 14938 else
13b2be9c
DJ
14939 as_dir="$ac_dir"
14940 as_dirs=
14941 while test ! -d "$as_dir"; do
14942 as_dirs="$as_dir $as_dirs"
14943 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14944$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
14945 X"$as_dir" : 'X\(//\)[^/]' \| \
14946 X"$as_dir" : 'X\(//\)$' \| \
14947 X"$as_dir" : 'X\(/\)' \| \
14948 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
14949echo X"$as_dir" |
14950 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14951 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14952 /^X\(\/\/\)$/{ s//\1/; q; }
14953 /^X\(\/\).*/{ s//\1/; q; }
14954 s/.*/./; q'`
14955 done
14956 test ! -n "$as_dirs" || mkdir $as_dirs
14957 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14958echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14959 { (exit 1); exit 1; }; }; }
14960
14961 ac_builddir=.
14962
14963if test "$ac_dir" != .; then
14964 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14965 # A "../" for each directory in $ac_dir_suffix.
14966 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14967else
14968 ac_dir_suffix= ac_top_builddir=
14969fi
9b2b7d69 14970
13b2be9c
DJ
14971case $srcdir in
14972 .) # No --srcdir option. We are building in place.
14973 ac_srcdir=.
14974 if test -z "$ac_top_builddir"; then
14975 ac_top_srcdir=.
14976 else
14977 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14978 fi ;;
14979 [\\/]* | ?:[\\/]* ) # Absolute path.
14980 ac_srcdir=$srcdir$ac_dir_suffix;
14981 ac_top_srcdir=$srcdir ;;
9b2b7d69 14982 *) # Relative path.
13b2be9c
DJ
14983 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14984 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14985esac
ab509236
L
14986
14987# Do not use `cd foo && pwd` to compute absolute paths, because
14988# the directories may not exist.
14989case `pwd` in
14990.) ac_abs_builddir="$ac_dir";;
14991*)
14992 case "$ac_dir" in
14993 .) ac_abs_builddir=`pwd`;;
14994 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14995 *) ac_abs_builddir=`pwd`/"$ac_dir";;
14996 esac;;
14997esac
14998case $ac_abs_builddir in
14999.) ac_abs_top_builddir=${ac_top_builddir}.;;
15000*)
15001 case ${ac_top_builddir}. in
15002 .) ac_abs_top_builddir=$ac_abs_builddir;;
15003 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15004 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15005 esac;;
15006esac
15007case $ac_abs_builddir in
15008.) ac_abs_srcdir=$ac_srcdir;;
15009*)
15010 case $ac_srcdir in
15011 .) ac_abs_srcdir=$ac_abs_builddir;;
15012 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15013 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15014 esac;;
15015esac
15016case $ac_abs_builddir in
15017.) ac_abs_top_srcdir=$ac_top_srcdir;;
15018*)
15019 case $ac_top_srcdir in
15020 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15021 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15022 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15023 esac;;
15024esac
252b5132 15025
9b2b7d69 15026
13b2be9c
DJ
15027 case $INSTALL in
15028 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15029 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
c8615825 15030 esac
9b2b7d69 15031
1ad12f97
NC
15032 if test x"$ac_file" != x-; then
15033 { echo "$as_me:$LINENO: creating $ac_file" >&5
15034echo "$as_me: creating $ac_file" >&6;}
15035 rm -f "$ac_file"
15036 fi
13b2be9c
DJ
15037 # Let's still pretend it is `configure' which instantiates (i.e., don't
15038 # use $as_me), people would be surprised to read:
15039 # /* config.h. Generated by config.status. */
15040 if test x"$ac_file" = x-; then
15041 configure_input=
15042 else
15043 configure_input="$ac_file. "
15044 fi
15045 configure_input=$configure_input"Generated from `echo $ac_file_in |
ab509236 15046 sed 's,.*/,,'` by configure."
13b2be9c
DJ
15047
15048 # First look for the input files in the build tree, otherwise in the
15049 # src tree.
15050 ac_file_inputs=`IFS=:
15051 for f in $ac_file_in; do
15052 case $f in
15053 -) echo $tmp/stdin ;;
15054 [\\/$]*)
ab509236
L
15055 # Absolute (can't be DOS-style, as IFS=:)
15056 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13b2be9c
DJ
15057echo "$as_me: error: cannot find input file: $f" >&2;}
15058 { (exit 1); exit 1; }; }
ab509236 15059 echo "$f";;
13b2be9c 15060 *) # Relative
ab509236
L
15061 if test -f "$f"; then
15062 # Build tree
15063 echo "$f"
15064 elif test -f "$srcdir/$f"; then
15065 # Source tree
15066 echo "$srcdir/$f"
15067 else
15068 # /dev/null tree
15069 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13b2be9c
DJ
15070echo "$as_me: error: cannot find input file: $f" >&2;}
15071 { (exit 1); exit 1; }; }
ab509236 15072 fi;;
13b2be9c
DJ
15073 esac
15074 done` || { (exit 1); exit 1; }
15075_ACEOF
15076cat >>$CONFIG_STATUS <<_ACEOF
15077 sed "$ac_vpsub
15078$extrasub
15079_ACEOF
15080cat >>$CONFIG_STATUS <<\_ACEOF
15081:t
15082/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15083s,@configure_input@,$configure_input,;t t
15084s,@srcdir@,$ac_srcdir,;t t
15085s,@abs_srcdir@,$ac_abs_srcdir,;t t
15086s,@top_srcdir@,$ac_top_srcdir,;t t
15087s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
15088s,@builddir@,$ac_builddir,;t t
15089s,@abs_builddir@,$ac_abs_builddir,;t t
15090s,@top_builddir@,$ac_top_builddir,;t t
15091s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
15092s,@INSTALL@,$ac_INSTALL,;t t
15093" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
15094 rm -f $tmp/stdin
15095 if test x"$ac_file" != x-; then
15096 mv $tmp/out $ac_file
15097 else
15098 cat $tmp/out
15099 rm -f $tmp/out
15100 fi
15101
15102done
15103_ACEOF
15104cat >>$CONFIG_STATUS <<\_ACEOF
15105
15106#
15107# CONFIG_HEADER section.
15108#
252b5132
RH
15109
15110# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15111# NAME is the cpp macro being defined and VALUE is the value it is being given.
15112#
15113# ac_d sets the value in "#define NAME VALUE" lines.
ab509236
L
15114ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
15115ac_dB='[ ].*$,\1#\2'
13b2be9c
DJ
15116ac_dC=' '
15117ac_dD=',;t'
15118# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ab509236 15119ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13b2be9c 15120ac_uB='$,\1#\2define\3'
252b5132 15121ac_uC=' '
13b2be9c
DJ
15122ac_uD=',;t'
15123
15124for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
252b5132 15125 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13b2be9c
DJ
15126 case $ac_file in
15127 - | *:- | *:-:* ) # input from stdin
ab509236
L
15128 cat >$tmp/stdin
15129 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15130 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13b2be9c 15131 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ab509236 15132 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13b2be9c 15133 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
15134 esac
15135
13b2be9c
DJ
15136 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
15137echo "$as_me: creating $ac_file" >&6;}
15138
15139 # First look for the input files in the build tree, otherwise in the
15140 # src tree.
15141 ac_file_inputs=`IFS=:
15142 for f in $ac_file_in; do
15143 case $f in
15144 -) echo $tmp/stdin ;;
15145 [\\/$]*)
ab509236
L
15146 # Absolute (can't be DOS-style, as IFS=:)
15147 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13b2be9c
DJ
15148echo "$as_me: error: cannot find input file: $f" >&2;}
15149 { (exit 1); exit 1; }; }
ab509236
L
15150 # Do quote $f, to prevent DOS paths from being IFS'd.
15151 echo "$f";;
13b2be9c 15152 *) # Relative
ab509236
L
15153 if test -f "$f"; then
15154 # Build tree
15155 echo "$f"
15156 elif test -f "$srcdir/$f"; then
15157 # Source tree
15158 echo "$srcdir/$f"
15159 else
15160 # /dev/null tree
15161 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13b2be9c
DJ
15162echo "$as_me: error: cannot find input file: $f" >&2;}
15163 { (exit 1); exit 1; }; }
ab509236 15164 fi;;
13b2be9c
DJ
15165 esac
15166 done` || { (exit 1); exit 1; }
15167 # Remove the trailing spaces.
ab509236 15168 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13b2be9c
DJ
15169
15170_ACEOF
15171
15172# Transform confdefs.h into two sed scripts, `conftest.defines' and
15173# `conftest.undefs', that substitutes the proper values into
15174# config.h.in to produce config.h. The first handles `#define'
15175# templates, and the second `#undef' templates.
15176# And first: Protect against being on the right side of a sed subst in
15177# config.status. Protect against being in an unquoted here document
15178# in config.status.
15179rm -f conftest.defines conftest.undefs
15180# Using a here document instead of a string reduces the quoting nightmare.
15181# Putting comments in sed scripts is not portable.
15182#
15183# `end' is used to avoid that the second main sed command (meant for
15184# 0-ary CPP macros) applies to n-ary macro definitions.
15185# See the Autoconf documentation for `clear'.
15186cat >confdef2sed.sed <<\_ACEOF
15187s/[\\&,]/\\&/g
15188s,[\\$`],\\&,g
15189t clear
15190: clear
ab509236 15191s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13b2be9c 15192t end
ab509236 15193s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13b2be9c
DJ
15194: end
15195_ACEOF
15196# If some macros were called several times there might be several times
15197# the same #defines, which is useless. Nevertheless, we may not want to
15198# sort them, since we want the *last* AC-DEFINE to be honored.
15199uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
15200sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
15201rm -f confdef2sed.sed
252b5132
RH
15202
15203# This sed command replaces #undef with comments. This is necessary, for
15204# example, in the case of _POSIX_SOURCE, which is predefined and required
15205# on some systems where configure will not decide to define it.
13b2be9c 15206cat >>conftest.undefs <<\_ACEOF
ab509236 15207s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13b2be9c
DJ
15208_ACEOF
15209
15210# Break up conftest.defines because some shells have a limit on the size
15211# of here documents, and old seds have small limits too (100 cmds).
15212echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ab509236 15213echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13b2be9c
DJ
15214echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
15215echo ' :' >>$CONFIG_STATUS
15216rm -f conftest.tail
15217while grep . conftest.defines >/dev/null
15218do
15219 # Write a limited-size here document to $tmp/defines.sed.
15220 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
15221 # Speed up: don't consider the non `#define' lines.
ab509236 15222 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13b2be9c
DJ
15223 # Work around the forget-to-reset-the-flag bug.
15224 echo 't clr' >>$CONFIG_STATUS
15225 echo ': clr' >>$CONFIG_STATUS
15226 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
15227 echo 'CEOF
15228 sed -f $tmp/defines.sed $tmp/in >$tmp/out
15229 rm -f $tmp/in
15230 mv $tmp/out $tmp/in
15231' >>$CONFIG_STATUS
15232 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
15233 rm -f conftest.defines
15234 mv conftest.tail conftest.defines
15235done
15236rm -f conftest.defines
15237echo ' fi # grep' >>$CONFIG_STATUS
15238echo >>$CONFIG_STATUS
252b5132 15239
13b2be9c
DJ
15240# Break up conftest.undefs because some shells have a limit on the size
15241# of here documents, and old seds have small limits too (100 cmds).
15242echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
252b5132 15243rm -f conftest.tail
13b2be9c 15244while grep . conftest.undefs >/dev/null
252b5132 15245do
13b2be9c
DJ
15246 # Write a limited-size here document to $tmp/undefs.sed.
15247 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
15248 # Speed up: don't consider the non `#undef'
ab509236 15249 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13b2be9c
DJ
15250 # Work around the forget-to-reset-the-flag bug.
15251 echo 't clr' >>$CONFIG_STATUS
15252 echo ': clr' >>$CONFIG_STATUS
15253 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
252b5132 15254 echo 'CEOF
13b2be9c
DJ
15255 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
15256 rm -f $tmp/in
15257 mv $tmp/out $tmp/in
15258' >>$CONFIG_STATUS
15259 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
15260 rm -f conftest.undefs
15261 mv conftest.tail conftest.undefs
252b5132 15262done
13b2be9c
DJ
15263rm -f conftest.undefs
15264
15265cat >>$CONFIG_STATUS <<\_ACEOF
15266 # Let's still pretend it is `configure' which instantiates (i.e., don't
15267 # use $as_me), people would be surprised to read:
15268 # /* config.h. Generated by config.status. */
15269 if test x"$ac_file" = x-; then
15270 echo "/* Generated by configure. */" >$tmp/config.h
252b5132 15271 else
13b2be9c
DJ
15272 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
15273 fi
15274 cat $tmp/in >>$tmp/config.h
15275 rm -f $tmp/in
15276 if test x"$ac_file" != x-; then
15277 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
15278 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15279echo "$as_me: $ac_file is unchanged" >&6;}
15280 else
15281 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15282$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
15283 X"$ac_file" : 'X\(//\)[^/]' \| \
15284 X"$ac_file" : 'X\(//\)$' \| \
15285 X"$ac_file" : 'X\(/\)' \| \
15286 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
15287echo X"$ac_file" |
15288 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15289 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15290 /^X\(\/\/\)$/{ s//\1/; q; }
15291 /^X\(\/\).*/{ s//\1/; q; }
15292 s/.*/./; q'`
15293 { if $as_mkdir_p; then
15294 mkdir -p "$ac_dir"
15295 else
15296 as_dir="$ac_dir"
15297 as_dirs=
15298 while test ! -d "$as_dir"; do
15299 as_dirs="$as_dir $as_dirs"
15300 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15301$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
15302 X"$as_dir" : 'X\(//\)[^/]' \| \
15303 X"$as_dir" : 'X\(//\)$' \| \
15304 X"$as_dir" : 'X\(/\)' \| \
15305 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
15306echo X"$as_dir" |
15307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15308 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15309 /^X\(\/\/\)$/{ s//\1/; q; }
15310 /^X\(\/\).*/{ s//\1/; q; }
15311 s/.*/./; q'`
15312 done
15313 test ! -n "$as_dirs" || mkdir $as_dirs
15314 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15315echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15316 { (exit 1); exit 1; }; }; }
15317
15318 rm -f $ac_file
15319 mv $tmp/config.h $ac_file
9b2b7d69 15320 fi
13b2be9c
DJ
15321 else
15322 cat $tmp/config.h
15323 rm -f $tmp/config.h
9b2b7d69 15324 fi
13b2be9c
DJ
15325# Compute $ac_file's index in $config_headers.
15326_am_stamp_count=1
15327for _am_header in $config_headers :; do
15328 case $_am_header in
15329 $ac_file | $ac_file:* )
15330 break ;;
15331 * )
15332 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15333 esac
15334done
15335echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
15336$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
15337 X$ac_file : 'X\(//\)[^/]' \| \
15338 X$ac_file : 'X\(//\)$' \| \
15339 X$ac_file : 'X\(/\)' \| \
15340 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
15341echo X$ac_file |
15342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15343 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15344 /^X\(\/\/\)$/{ s//\1/; q; }
15345 /^X\(\/\).*/{ s//\1/; q; }
15346 s/.*/./; q'`/stamp-h$_am_stamp_count
15347done
15348_ACEOF
15349cat >>$CONFIG_STATUS <<\_ACEOF
6840198f 15350
13b2be9c
DJ
15351#
15352# CONFIG_COMMANDS section.
15353#
15354for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
15355 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
15356 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
15357 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
15358$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
15359 X"$ac_dest" : 'X\(//\)[^/]' \| \
15360 X"$ac_dest" : 'X\(//\)$' \| \
15361 X"$ac_dest" : 'X\(/\)' \| \
15362 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
15363echo X"$ac_dest" |
15364 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15365 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15366 /^X\(\/\/\)$/{ s//\1/; q; }
15367 /^X\(\/\).*/{ s//\1/; q; }
15368 s/.*/./; q'`
ab509236
L
15369 { if $as_mkdir_p; then
15370 mkdir -p "$ac_dir"
15371 else
15372 as_dir="$ac_dir"
15373 as_dirs=
15374 while test ! -d "$as_dir"; do
15375 as_dirs="$as_dir $as_dirs"
15376 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15377$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15378 X"$as_dir" : 'X\(//\)[^/]' \| \
15379 X"$as_dir" : 'X\(//\)$' \| \
15380 X"$as_dir" : 'X\(/\)' \| \
15381 . : '\(.\)' 2>/dev/null ||
15382echo X"$as_dir" |
15383 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15384 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15385 /^X\(\/\/\)$/{ s//\1/; q; }
15386 /^X\(\/\).*/{ s//\1/; q; }
15387 s/.*/./; q'`
15388 done
15389 test ! -n "$as_dirs" || mkdir $as_dirs
15390 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15391echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15392 { (exit 1); exit 1; }; }; }
15393
13b2be9c
DJ
15394 ac_builddir=.
15395
15396if test "$ac_dir" != .; then
15397 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15398 # A "../" for each directory in $ac_dir_suffix.
15399 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15400else
15401 ac_dir_suffix= ac_top_builddir=
15402fi
15403
15404case $srcdir in
15405 .) # No --srcdir option. We are building in place.
15406 ac_srcdir=.
15407 if test -z "$ac_top_builddir"; then
15408 ac_top_srcdir=.
15409 else
15410 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15411 fi ;;
15412 [\\/]* | ?:[\\/]* ) # Absolute path.
15413 ac_srcdir=$srcdir$ac_dir_suffix;
15414 ac_top_srcdir=$srcdir ;;
15415 *) # Relative path.
15416 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15417 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15418esac
ab509236
L
15419
15420# Do not use `cd foo && pwd` to compute absolute paths, because
15421# the directories may not exist.
15422case `pwd` in
15423.) ac_abs_builddir="$ac_dir";;
15424*)
15425 case "$ac_dir" in
15426 .) ac_abs_builddir=`pwd`;;
15427 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15428 *) ac_abs_builddir=`pwd`/"$ac_dir";;
15429 esac;;
15430esac
15431case $ac_abs_builddir in
15432.) ac_abs_top_builddir=${ac_top_builddir}.;;
15433*)
15434 case ${ac_top_builddir}. in
15435 .) ac_abs_top_builddir=$ac_abs_builddir;;
15436 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15437 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15438 esac;;
15439esac
15440case $ac_abs_builddir in
15441.) ac_abs_srcdir=$ac_srcdir;;
15442*)
15443 case $ac_srcdir in
15444 .) ac_abs_srcdir=$ac_abs_builddir;;
15445 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15446 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15447 esac;;
15448esac
15449case $ac_abs_builddir in
15450.) ac_abs_top_srcdir=$ac_top_srcdir;;
15451*)
15452 case $ac_top_srcdir in
15453 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15454 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15455 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15456 esac;;
15457esac
13b2be9c
DJ
15458
15459
15460 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
15461echo "$as_me: executing $ac_dest commands" >&6;}
15462 case $ac_dest in
15463 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
15464 # Strip MF so we end up with the name of the file.
15465 mf=`echo "$mf" | sed -e 's/:.*$//'`
15466 # Check whether this is an Automake generated Makefile or not.
15467 # We used to match only the files named `Makefile.in', but
15468 # some people rename them; so instead we look at the file content.
15469 # Grep'ing the first line is not enough: some people post-process
15470 # each Makefile.in and add a new line on top of each file to say so.
15471 # So let's grep whole file.
15472 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
15473 dirpart=`(dirname "$mf") 2>/dev/null ||
15474$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
15475 X"$mf" : 'X\(//\)[^/]' \| \
15476 X"$mf" : 'X\(//\)$' \| \
15477 X"$mf" : 'X\(/\)' \| \
15478 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
15479echo X"$mf" |
15480 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15481 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15482 /^X\(\/\/\)$/{ s//\1/; q; }
15483 /^X\(\/\).*/{ s//\1/; q; }
15484 s/.*/./; q'`
15485 else
15486 continue
15487 fi
8ea2b00f
AM
15488 # Extract the definition of DEPDIR, am__include, and am__quote
15489 # from the Makefile without running `make'.
4b363073 15490 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13b2be9c 15491 test -z "$DEPDIR" && continue
8ea2b00f
AM
15492 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15493 test -z "am__include" && continue
15494 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13b2be9c 15495 # When using ansi2knr, U may be empty or an underscore; expand it
4b363073 15496 U=`sed -n 's/^U = //p' < "$mf"`
8ea2b00f
AM
15497 # Find all dependency output files, they are included files with
15498 # $(DEPDIR) in their names. We invoke sed twice because it is the
15499 # simplest approach to changing $(DEPDIR) to its actual value in the
15500 # expansion.
15501 for file in `sed -n "
15502 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13b2be9c
DJ
15503 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15504 # Make sure the directory exists.
15505 test -f "$dirpart/$file" && continue
15506 fdir=`(dirname "$file") 2>/dev/null ||
15507$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
15508 X"$file" : 'X\(//\)[^/]' \| \
15509 X"$file" : 'X\(//\)$' \| \
15510 X"$file" : 'X\(/\)' \| \
15511 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
15512echo X"$file" |
15513 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15514 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15515 /^X\(\/\/\)$/{ s//\1/; q; }
15516 /^X\(\/\).*/{ s//\1/; q; }
15517 s/.*/./; q'`
15518 { if $as_mkdir_p; then
15519 mkdir -p $dirpart/$fdir
15520 else
15521 as_dir=$dirpart/$fdir
15522 as_dirs=
15523 while test ! -d "$as_dir"; do
15524 as_dirs="$as_dir $as_dirs"
15525 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15526$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
15527 X"$as_dir" : 'X\(//\)[^/]' \| \
15528 X"$as_dir" : 'X\(//\)$' \| \
15529 X"$as_dir" : 'X\(/\)' \| \
15530 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
15531echo X"$as_dir" |
15532 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15533 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15534 /^X\(\/\/\)$/{ s//\1/; q; }
15535 /^X\(\/\).*/{ s//\1/; q; }
15536 s/.*/./; q'`
15537 done
15538 test ! -n "$as_dirs" || mkdir $as_dirs
15539 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
15540echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
15541 { (exit 1); exit 1; }; }; }
c8615825 15542
13b2be9c
DJ
15543 # echo "creating $dirpart/$file"
15544 echo '# dummy' > "$dirpart/$file"
15545 done
15546done
d7040cdb
SE
15547 ;;
15548 libtool )
15549
15550 # See if we are running on zsh, and set the options which allow our
15551 # commands through without removal of \ escapes.
15552 if test -n "${ZSH_VERSION+set}" ; then
15553 setopt NO_GLOB_SUBST
15554 fi
15555
15556 cfgfile="${ofile}T"
15557 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15558 $RM "$cfgfile"
15559
15560 cat <<_LT_EOF >> "$cfgfile"
15561#! $SHELL
15562
15563# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15564# Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
15565# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15566# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15567#
15568# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15569# 2006, 2007 Free Software Foundation, Inc.
15570#
15571# This file is part of GNU Libtool:
15572# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
15573#
15574# This program is free software; you can redistribute it and/or modify
15575# it under the terms of the GNU General Public License as published by
15576# the Free Software Foundation; either version 2 of the License, or
15577# (at your option) any later version.
15578#
15579# This program is distributed in the hope that it will be useful, but
15580# WITHOUT ANY WARRANTY; without even the implied warranty of
15581# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15582# General Public License for more details.
15583#
15584# You should have received a copy of the GNU General Public License
15585# along with this program; if not, a copy can be downloaded from
15586# http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
15587# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
15588# MA 02110-1301, USA.
15589#
15590# As a special exception to the GNU General Public License, if you
15591# distribute this file as part of a program that contains a
15592# configuration script generated by Autoconf, you may include it under
15593# the same distribution terms that you use for the rest of that program.
15594
15595
15596# The names of the tagged configurations supported by this script.
15597available_tags=""
15598
15599# ### BEGIN LIBTOOL CONFIG
15600
15601# Which release of libtool.m4 was used?
15602macro_version=$macro_version
15603macro_revision=$macro_revision
15604
15605# Whether or not to build shared libraries.
15606build_libtool_libs=$enable_shared
15607
15608# Whether or not to build static libraries.
15609build_old_libs=$enable_static
15610
15611# What type of objects to build.
15612pic_mode=$pic_mode
15613
15614# Whether or not to optimize for fast installation.
15615fast_install=$enable_fast_install
15616
15617# The host system.
15618host_alias=$host_alias
15619host=$host
15620host_os=$host_os
15621
15622# The build system.
15623build_alias=$build_alias
15624build=$build
15625build_os=$build_os
15626
15627# A sed program that does not truncate output.
15628SED=$lt_SED
15629
15630# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15631Xsed="\$SED -e 1s/^X//"
15632
15633# A grep program that handles long lines.
15634GREP=$lt_GREP
15635
15636# An ERE matcher.
15637EGREP=$lt_EGREP
15638
15639# A literal string matcher.
15640FGREP=$lt_FGREP
15641
15642# A BSD- or MS-compatible name lister.
15643NM=$lt_NM
15644
15645# Whether we need soft or hard links.
15646LN_S=$lt_LN_S
15647
15648# What is the maximum length of a command?
15649max_cmd_len=$max_cmd_len
15650
15651# Object file suffix (normally "o").
15652objext=$ac_objext
15653
15654# Executable file suffix (normally "").
15655exeext=$exeext
15656
15657# whether the shell understands "unset".
15658lt_unset=$lt_unset
15659
15660# turn spaces into newlines.
15661SP2NL=$lt_lt_SP2NL
15662
15663# turn newlines into spaces.
15664NL2SP=$lt_lt_NL2SP
15665
15666# How to create reloadable object files.
15667reload_flag=$lt_reload_flag
15668reload_cmds=$lt_reload_cmds
15669
15670# Method to check whether dependent libraries are shared objects.
15671deplibs_check_method=$lt_deplibs_check_method
15672
15673# Command to use when deplibs_check_method == "file_magic".
15674file_magic_cmd=$lt_file_magic_cmd
15675
15676# The archiver.
15677AR=$lt_AR
15678AR_FLAGS=$lt_AR_FLAGS
15679
15680# A symbol stripping program.
15681STRIP=$lt_STRIP
15682
15683# Commands used to install an old-style archive.
15684RANLIB=$lt_RANLIB
15685old_postinstall_cmds=$lt_old_postinstall_cmds
15686old_postuninstall_cmds=$lt_old_postuninstall_cmds
15687
15688# A C compiler.
15689LTCC=$lt_CC
15690
15691# LTCC compiler flags.
15692LTCFLAGS=$lt_CFLAGS
15693
15694# Take the output of nm and produce a listing of raw symbols and C names.
15695global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15696
15697# Transform the output of nm in a proper C declaration.
15698global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15699
15700# Transform the output of nm in a C name address pair.
15701global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15702
15703# The name of the directory that contains temporary libtool files.
15704objdir=$objdir
15705
15706# Shell to use when invoking shell scripts.
15707SHELL=$lt_SHELL
15708
15709# An echo program that does not interpret backslashes.
15710ECHO=$lt_ECHO
15711
15712# Used to examine libraries when file_magic_cmd begins with "file".
15713MAGIC_CMD=$MAGIC_CMD
15714
15715# Must we lock files when doing compilation?
15716need_locks=$lt_need_locks
15717
15718# Old archive suffix (normally "a").
15719libext=$libext
15720
15721# Shared library suffix (normally ".so").
15722shrext_cmds=$lt_shrext_cmds
15723
15724# The commands to extract the exported symbol list from a shared archive.
15725extract_expsyms_cmds=$lt_extract_expsyms_cmds
15726
15727# Variables whose values should be saved in libtool wrapper scripts and
15728# restored at link time.
15729variables_saved_for_relink=$lt_variables_saved_for_relink
15730
15731# Do we need the "lib" prefix for modules?
15732need_lib_prefix=$need_lib_prefix
15733
15734# Do we need a version for libraries?
15735need_version=$need_version
15736
15737# Library versioning type.
15738version_type=$version_type
15739
15740# Shared library runtime path variable.
15741runpath_var=$runpath_var
15742
15743# Shared library path variable.
15744shlibpath_var=$shlibpath_var
15745
15746# Is shlibpath searched before the hard-coded library search path?
15747shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15748
15749# Format of library name prefix.
15750libname_spec=$lt_libname_spec
15751
15752# List of archive names. First name is the real one, the rest are links.
15753# The last name is the one that the linker finds with -lNAME
15754library_names_spec=$lt_library_names_spec
15755
15756# The coded name of the library, if different from the real name.
15757soname_spec=$lt_soname_spec
15758
15759# Command to use after installation of a shared archive.
15760postinstall_cmds=$lt_postinstall_cmds
15761
15762# Command to use after uninstallation of a shared archive.
15763postuninstall_cmds=$lt_postuninstall_cmds
15764
15765# Commands used to finish a libtool library installation in a directory.
15766finish_cmds=$lt_finish_cmds
15767
15768# As "finish_cmds", except a single script fragment to be evaled but
15769# not shown.
15770finish_eval=$lt_finish_eval
15771
15772# Whether we should hardcode library paths into libraries.
15773hardcode_into_libs=$hardcode_into_libs
15774
15775# Compile-time system search path for libraries.
15776sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15777
15778# Run-time system search path for libraries.
15779sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15780
15781# Whether dlopen is supported.
15782dlopen_support=$enable_dlopen
15783
15784# Whether dlopen of programs is supported.
15785dlopen_self=$enable_dlopen_self
15786
15787# Whether dlopen of statically linked programs is supported.
15788dlopen_self_static=$enable_dlopen_self_static
15789
15790# Commands to strip libraries.
15791old_striplib=$lt_old_striplib
15792striplib=$lt_striplib
15793
15794
15795# The linker used to build libraries.
15796LD=$lt_LD
15797
15798# Commands used to build an old-style archive.
15799old_archive_cmds=$lt_old_archive_cmds
15800
15801# A language specific compiler.
15802CC=$lt_compiler
15803
15804# Is the compiler the GNU compiler?
15805with_gcc=$GCC
15806
15807# Compiler flag to turn off builtin functions.
15808no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15809
15810# How to pass a linker flag through the compiler.
15811wl=$lt_lt_prog_compiler_wl
15812
15813# Additional compiler flags for building library objects.
15814pic_flag=$lt_lt_prog_compiler_pic
15815
15816# Compiler flag to prevent dynamic linking.
15817link_static_flag=$lt_lt_prog_compiler_static
15818
15819# Does compiler simultaneously support -c and -o options?
15820compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15821
15822# Whether or not to add -lc for building shared libraries.
15823build_libtool_need_lc=$archive_cmds_need_lc
15824
15825# Whether or not to disallow shared libs when runtime libs are static.
15826allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15827
15828# Compiler flag to allow reflexive dlopens.
15829export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15830
15831# Compiler flag to generate shared objects directly from archives.
15832whole_archive_flag_spec=$lt_whole_archive_flag_spec
15833
15834# Whether the compiler copes with passing no objects directly.
15835compiler_needs_object=$lt_compiler_needs_object
15836
15837# Create an old-style archive from a shared archive.
15838old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15839
15840# Create a temporary old-style archive to link instead of a shared archive.
15841old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15842
15843# Commands used to build a shared archive.
15844archive_cmds=$lt_archive_cmds
15845archive_expsym_cmds=$lt_archive_expsym_cmds
15846
15847# Commands used to build a loadable module if different from building
15848# a shared archive.
15849module_cmds=$lt_module_cmds
15850module_expsym_cmds=$lt_module_expsym_cmds
15851
15852# Whether we are building with GNU ld or not.
15853with_gnu_ld=$lt_with_gnu_ld
15854
15855# Flag that allows shared libraries with undefined symbols to be built.
15856allow_undefined_flag=$lt_allow_undefined_flag
15857
15858# Flag that enforces no undefined symbols.
15859no_undefined_flag=$lt_no_undefined_flag
15860
15861# Flag to hardcode \$libdir into a binary during linking.
15862# This must work even if \$libdir does not exist
15863hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15864
15865# If ld is used when linking, flag to hardcode \$libdir into a binary
15866# during linking. This must work even if \$libdir does not exist.
15867hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15868
15869# Whether we need a single "-rpath" flag with a separated argument.
15870hardcode_libdir_separator=$lt_hardcode_libdir_separator
15871
15872# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15873# DIR into the resulting binary.
15874hardcode_direct=$hardcode_direct
15875
15876# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15877# DIR into the resulting binary and the resulting library dependency is
15878# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15879# library is relocated.
15880hardcode_direct_absolute=$hardcode_direct_absolute
15881
15882# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15883# into the resulting binary.
15884hardcode_minus_L=$hardcode_minus_L
15885
15886# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15887# into the resulting binary.
15888hardcode_shlibpath_var=$hardcode_shlibpath_var
15889
15890# Set to "yes" if building a shared library automatically hardcodes DIR
15891# into the library and all subsequent libraries and executables linked
15892# against it.
15893hardcode_automatic=$hardcode_automatic
15894
15895# Set to yes if linker adds runtime paths of dependent libraries
15896# to runtime path list.
15897inherit_rpath=$inherit_rpath
15898
15899# Whether libtool must link a program against all its dependency libraries.
15900link_all_deplibs=$link_all_deplibs
15901
15902# Fix the shell variable \$srcfile for the compiler.
15903fix_srcfile_path=$lt_fix_srcfile_path
15904
15905# Set to "yes" if exported symbols are required.
15906always_export_symbols=$always_export_symbols
15907
15908# The commands to list exported symbols.
15909export_symbols_cmds=$lt_export_symbols_cmds
15910
15911# Symbols that should not be listed in the preloaded symbols.
15912exclude_expsyms=$lt_exclude_expsyms
15913
15914# Symbols that must always be exported.
15915include_expsyms=$lt_include_expsyms
15916
15917# Commands necessary for linking programs (against libraries) with templates.
15918prelink_cmds=$lt_prelink_cmds
15919
15920# Specify filename containing input files.
15921file_list_spec=$lt_file_list_spec
15922
15923# How to hardcode a shared library path into an executable.
15924hardcode_action=$hardcode_action
15925
15926# ### END LIBTOOL CONFIG
15927
15928_LT_EOF
15929
15930 case $host_os in
15931 aix3*)
15932 cat <<\_LT_EOF >> "$cfgfile"
15933# AIX sometimes has problems with the GCC collect2 program. For some
15934# reason, if we set the COLLECT_NAMES environment variable, the problems
15935# vanish in a puff of smoke.
15936if test "X${COLLECT_NAMES+set}" != Xset; then
15937 COLLECT_NAMES=
15938 export COLLECT_NAMES
15939fi
15940_LT_EOF
15941 ;;
15942 esac
15943
15944
15945ltmain="$ac_aux_dir/ltmain.sh"
15946
15947
15948 # We use sed instead of cat because bash on DJGPP gets confused if
15949 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15950 # text mode, it properly converts lines to CR/LF. This bash problem
15951 # is reportedly fixed, but why not run on old versions too?
15952 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15953 || (rm -f "$cfgfile"; exit 1)
15954
15955 case $xsi_shell in
15956 yes)
15957 cat << \_LT_EOF >> "$cfgfile"
15958# func_dirname file append nondir_replacement
15959# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15960# otherwise set result to NONDIR_REPLACEMENT.
15961func_dirname ()
15962{
15963 case ${1} in
15964 */*) func_dirname_result="${1%/*}${2}" ;;
15965 * ) func_dirname_result="${3}" ;;
15966 esac
15967}
15968
15969# func_basename file
15970func_basename ()
15971{
15972 func_basename_result="${1##*/}"
15973}
15974
15975# func_stripname prefix suffix name
15976# strip PREFIX and SUFFIX off of NAME.
15977# PREFIX and SUFFIX must not contain globbing or regex special
15978# characters, hashes, percent signs, but SUFFIX may contain a leading
15979# dot (in which case that matches only a dot).
15980func_stripname ()
15981{
15982 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15983 # positional parameters, so assign one to ordinary parameter first.
15984 func_stripname_result=${3}
15985 func_stripname_result=${func_stripname_result#"${1}"}
15986 func_stripname_result=${func_stripname_result%"${2}"}
15987}
15988
15989# func_opt_split
15990func_opt_split ()
15991{
15992 func_opt_split_opt=${1%%=*}
15993 func_opt_split_arg=${1#*=}
15994}
15995
15996# func_lo2o object
15997func_lo2o ()
15998{
15999 case ${1} in
16000 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16001 *) func_lo2o_result=${1} ;;
16002 esac
16003}
16004_LT_EOF
16005 ;;
16006 *) # Bourne compatible functions.
16007 cat << \_LT_EOF >> "$cfgfile"
16008# func_dirname file append nondir_replacement
16009# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16010# otherwise set result to NONDIR_REPLACEMENT.
16011func_dirname ()
16012{
16013 # Extract subdirectory from the argument.
16014 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
16015 if test "X$func_dirname_result" = "X${1}"; then
16016 func_dirname_result="${3}"
16017 else
16018 func_dirname_result="$func_dirname_result${2}"
16019 fi
16020}
16021
16022# func_basename file
16023func_basename ()
16024{
16025 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
16026}
16027
16028# func_stripname prefix suffix name
16029# strip PREFIX and SUFFIX off of NAME.
16030# PREFIX and SUFFIX must not contain globbing or regex special
16031# characters, hashes, percent signs, but SUFFIX may contain a leading
16032# dot (in which case that matches only a dot).
16033# func_strip_suffix prefix name
16034func_stripname ()
16035{
16036 case ${2} in
16037 .*) func_stripname_result=`$ECHO "X${3}" \
16038 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
16039 *) func_stripname_result=`$ECHO "X${3}" \
16040 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
16041 esac
16042}
16043
16044# sed scripts:
16045my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16046my_sed_long_arg='1s/^-[^=]*=//'
16047
16048# func_opt_split
16049func_opt_split ()
16050{
16051 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
16052 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
16053}
16054
16055# func_lo2o object
16056func_lo2o ()
16057{
16058 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
16059}
16060_LT_EOF
16061esac
16062
16063case $lt_shell_append in
16064 yes)
16065 cat << \_LT_EOF >> "$cfgfile"
16066
16067# func_append var value
16068# Append VALUE to the end of shell variable VAR.
16069func_append ()
16070{
16071 eval "$1+=\$2"
16072}
16073_LT_EOF
16074 ;;
16075 *)
16076 cat << \_LT_EOF >> "$cfgfile"
16077
16078# func_append var value
16079# Append VALUE to the end of shell variable VAR.
16080func_append ()
16081{
16082 eval "$1=\$$1\$2"
16083}
16084_LT_EOF
16085 ;;
16086 esac
16087
16088
16089 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16090 || (rm -f "$cfgfile"; exit 1)
16091
16092 mv -f "$cfgfile" "$ofile" ||
16093 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16094 chmod +x "$ofile"
16095
13b2be9c 16096 ;;
20e95c23
DJ
16097 default-1 )
16098 for ac_file in $CONFIG_FILES; do
16099 # Support "outfile[:infile[:infile...]]"
16100 case "$ac_file" in
16101 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16102 esac
16103 # PO directories have a Makefile.in generated from Makefile.in.in.
16104 case "$ac_file" in */Makefile.in)
16105 # Adjust a relative srcdir.
16106 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16107 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16108 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16109 # In autoconf-2.13 it is called $ac_given_srcdir.
16110 # In autoconf-2.50 it is called $srcdir.
16111 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16112 case "$ac_given_srcdir" in
16113 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16114 /*) top_srcdir="$ac_given_srcdir" ;;
16115 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16116 esac
16117 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16118 rm -f "$ac_dir/POTFILES"
16119 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16120 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16121 POMAKEFILEDEPS="POTFILES.in"
16122 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
16123 # on $ac_dir but don't depend on user-specified configuration
16124 # parameters.
16125 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16126 # The LINGUAS file contains the set of available languages.
16127 if test -n "$OBSOLETE_ALL_LINGUAS"; then
16128 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16129 fi
16130 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16131 # Hide the ALL_LINGUAS assigment from automake.
16132 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16133 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16134 else
16135 # The set of available languages was given in configure.in.
16136 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16137 fi
16138 case "$ac_given_srcdir" in
16139 .) srcdirpre= ;;
16140 *) srcdirpre='$(srcdir)/' ;;
16141 esac
16142 POFILES=
16143 GMOFILES=
16144 UPDATEPOFILES=
16145 DUMMYPOFILES=
16146 for lang in $ALL_LINGUAS; do
16147 POFILES="$POFILES $srcdirpre$lang.po"
16148 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16149 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16150 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16151 done
16152 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16153 # environment variable.
16154 INST_LINGUAS=
16155 if test -n "$ALL_LINGUAS"; then
16156 for presentlang in $ALL_LINGUAS; do
16157 useit=no
16158 if test "%UNSET%" != "$LINGUAS"; then
16159 desiredlanguages="$LINGUAS"
16160 else
16161 desiredlanguages="$ALL_LINGUAS"
16162 fi
16163 for desiredlang in $desiredlanguages; do
16164 # Use the presentlang catalog if desiredlang is
16165 # a. equal to presentlang, or
16166 # b. a variant of presentlang (because in this case,
16167 # presentlang can be used as a fallback for messages
16168 # which are not translated in the desiredlang catalog).
16169 case "$desiredlang" in
16170 "$presentlang"*) useit=yes;;
16171 esac
16172 done
16173 if test $useit = yes; then
16174 INST_LINGUAS="$INST_LINGUAS $presentlang"
16175 fi
16176 done
16177 fi
16178 CATALOGS=
16179 if test -n "$INST_LINGUAS"; then
16180 for lang in $INST_LINGUAS; do
16181 CATALOGS="$CATALOGS $lang.gmo"
16182 done
16183 fi
16184 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16185 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
16186 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16187 if test -f "$f"; then
16188 case "$f" in
16189 *.orig | *.bak | *~) ;;
16190 *) cat "$f" >> "$ac_dir/Makefile" ;;
16191 esac
16192 fi
16193 done
16194 fi
16195 ;;
16196 esac
16197 done ;;
13b2be9c 16198 default ) rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h
252b5132
RH
16199 echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
16200 echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
16201 echo '#include "te-'"${te_file}"'.h"' > targ-env.h
16202 echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
16203 if test "x$cgen_cpu_prefix" != x ; then
16204 echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h
20e95c23 16205 fi ;;
13b2be9c
DJ
16206 esac
16207done
16208_ACEOF
16209
16210cat >>$CONFIG_STATUS <<\_ACEOF
16211
16212{ (exit 0); exit 0; }
16213_ACEOF
252b5132 16214chmod +x $CONFIG_STATUS
13b2be9c
DJ
16215ac_clean_files=$ac_clean_files_save
16216
16217
16218# configure is writing to config.log, and then calls config.status.
16219# config.status does its own redirection, appending to config.log.
16220# Unfortunately, on DOS this fails, as config.log is still kept open
16221# by configure, so config.status won't be able to write to it; its
16222# output is simply discarded. So we exec the FD to /dev/null,
16223# effectively closing config.log, so it can be properly (re)opened and
16224# appended to by config.status. When coming back to configure, we
16225# need to make the FD available again.
16226if test "$no_create" != yes; then
16227 ac_cs_success=:
16228 ac_config_status_args=
16229 test "$silent" = yes &&
16230 ac_config_status_args="$ac_config_status_args --quiet"
16231 exec 5>/dev/null
16232 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16233 exec 5>>config.log
16234 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16235 # would make configure fail if this is the last instruction.
16236 $ac_cs_success || { (exit 1); exit 1; }
16237fi
252b5132 16238
This page took 1.377096 seconds and 4 git commands to generate.