Change source files over to GPLv3.
[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
ab509236 1420 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
13b2be9c 1421echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ab509236 1422 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
13b2be9c 1423echo "$as_me: former value: $ac_old_val" >&2;}
ab509236 1424 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
13b2be9c 1425echo "$as_me: current value: $ac_new_val" >&2;}
ab509236 1426 ac_cache_corrupted=:
13b2be9c
DJ
1427 fi;;
1428 esac
1429 # Pass precious variables to config.status.
1430 if test "$ac_new_set" = set; then
1431 case $ac_new_val in
1432 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1433 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1434 *) ac_arg=$ac_var=$ac_new_val ;;
1435 esac
1436 case " $ac_configure_args " in
1437 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1438 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1439 esac
1440 fi
1441done
1442if $ac_cache_corrupted; then
1443 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1444echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1445 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1446echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1447 { (exit 1); exit 1; }; }
1448fi
1449
1450ac_ext=c
1451ac_cpp='$CPP $CPPFLAGS'
1452ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1453ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1454ac_compiler_gnu=$ac_cv_c_compiler_gnu
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475ac_aux_dir=
1476for ac_dir in .. $srcdir/..; do
1477 if test -f $ac_dir/install-sh; then
1478 ac_aux_dir=$ac_dir
1479 ac_install_sh="$ac_aux_dir/install-sh -c"
1480 break
1481 elif test -f $ac_dir/install.sh; then
1482 ac_aux_dir=$ac_dir
1483 ac_install_sh="$ac_aux_dir/install.sh -c"
1484 break
1485 elif test -f $ac_dir/shtool; then
1486 ac_aux_dir=$ac_dir
1487 ac_install_sh="$ac_aux_dir/shtool install -c"
1488 break
1489 fi
1490done
1491if test -z "$ac_aux_dir"; then
1492 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
1493echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
1494 { (exit 1); exit 1; }; }
1495fi
1496ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1497ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1498ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1499
1500# Make sure we can run config.sub.
1501$ac_config_sub sun4 >/dev/null 2>&1 ||
1502 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1503echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1504 { (exit 1); exit 1; }; }
1505
1506echo "$as_me:$LINENO: checking build system type" >&5
1507echo $ECHO_N "checking build system type... $ECHO_C" >&6
1508if test "${ac_cv_build+set}" = set; then
1509 echo $ECHO_N "(cached) $ECHO_C" >&6
1510else
1511 ac_cv_build_alias=$build_alias
1512test -z "$ac_cv_build_alias" &&
1513 ac_cv_build_alias=`$ac_config_guess`
1514test -z "$ac_cv_build_alias" &&
1515 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1516echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1517 { (exit 1); exit 1; }; }
1518ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1519 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1520echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1521 { (exit 1); exit 1; }; }
1522
1523fi
1524echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1525echo "${ECHO_T}$ac_cv_build" >&6
1526build=$ac_cv_build
1527build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1528build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1529build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1530
1531
1532echo "$as_me:$LINENO: checking host system type" >&5
1533echo $ECHO_N "checking host system type... $ECHO_C" >&6
1534if test "${ac_cv_host+set}" = set; then
1535 echo $ECHO_N "(cached) $ECHO_C" >&6
1536else
1537 ac_cv_host_alias=$host_alias
1538test -z "$ac_cv_host_alias" &&
1539 ac_cv_host_alias=$ac_cv_build_alias
1540ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1541 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1542echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1543 { (exit 1); exit 1; }; }
1544
1545fi
1546echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1547echo "${ECHO_T}$ac_cv_host" >&6
1548host=$ac_cv_host
1549host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1550host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1551host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1552
1553
1554echo "$as_me:$LINENO: checking target system type" >&5
1555echo $ECHO_N "checking target system type... $ECHO_C" >&6
1556if test "${ac_cv_target+set}" = set; then
1557 echo $ECHO_N "(cached) $ECHO_C" >&6
1558else
1559 ac_cv_target_alias=$target_alias
1560test "x$ac_cv_target_alias" = "x" &&
1561 ac_cv_target_alias=$ac_cv_host_alias
1562ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1563 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1564echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1565 { (exit 1); exit 1; }; }
1566
1567fi
1568echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1569echo "${ECHO_T}$ac_cv_target" >&6
1570target=$ac_cv_target
1571target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1572target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1573target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1574
1575
1576# The aliases save the names the user supplied, while $host etc.
1577# will get canonicalized.
1578test -n "$target_alias" &&
1579 test "$program_prefix$program_suffix$program_transform_name" = \
1580 NONENONEs,x,x, &&
1581 program_prefix=${target_alias}-
1582ac_ext=c
1583ac_cpp='$CPP $CPPFLAGS'
1584ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1585ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1586ac_compiler_gnu=$ac_cv_c_compiler_gnu
1587if test -n "$ac_tool_prefix"; then
1588 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1589set dummy ${ac_tool_prefix}gcc; ac_word=$2
1590echo "$as_me:$LINENO: checking for $ac_word" >&5
1591echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1592if test "${ac_cv_prog_CC+set}" = set; then
1593 echo $ECHO_N "(cached) $ECHO_C" >&6
1594else
1595 if test -n "$CC"; then
1596 ac_cv_prog_CC="$CC" # Let the user override the test.
1597else
1598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1599for as_dir in $PATH
1600do
1601 IFS=$as_save_IFS
1602 test -z "$as_dir" && as_dir=.
1603 for ac_exec_ext in '' $ac_executable_extensions; do
1604 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1605 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1607 break 2
1608 fi
1609done
1610done
1611
1612fi
1613fi
1614CC=$ac_cv_prog_CC
1615if test -n "$CC"; then
1616 echo "$as_me:$LINENO: result: $CC" >&5
1617echo "${ECHO_T}$CC" >&6
1618else
1619 echo "$as_me:$LINENO: result: no" >&5
1620echo "${ECHO_T}no" >&6
1621fi
1622
1623fi
1624if test -z "$ac_cv_prog_CC"; then
1625 ac_ct_CC=$CC
1626 # Extract the first word of "gcc", so it can be a program name with args.
1627set dummy gcc; ac_word=$2
1628echo "$as_me:$LINENO: checking for $ac_word" >&5
1629echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1630if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1631 echo $ECHO_N "(cached) $ECHO_C" >&6
1632else
1633 if test -n "$ac_ct_CC"; then
1634 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1635else
1636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1637for as_dir in $PATH
1638do
1639 IFS=$as_save_IFS
1640 test -z "$as_dir" && as_dir=.
1641 for ac_exec_ext in '' $ac_executable_extensions; do
1642 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1643 ac_cv_prog_ac_ct_CC="gcc"
1644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1645 break 2
1646 fi
1647done
1648done
1649
1650fi
1651fi
1652ac_ct_CC=$ac_cv_prog_ac_ct_CC
1653if test -n "$ac_ct_CC"; then
1654 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1655echo "${ECHO_T}$ac_ct_CC" >&6
1656else
1657 echo "$as_me:$LINENO: result: no" >&5
1658echo "${ECHO_T}no" >&6
1659fi
1660
1661 CC=$ac_ct_CC
1662else
1663 CC="$ac_cv_prog_CC"
1664fi
1665
1666if test -z "$CC"; then
1667 if test -n "$ac_tool_prefix"; then
1668 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1669set dummy ${ac_tool_prefix}cc; ac_word=$2
1670echo "$as_me:$LINENO: checking for $ac_word" >&5
1671echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1672if test "${ac_cv_prog_CC+set}" = set; then
1673 echo $ECHO_N "(cached) $ECHO_C" >&6
1674else
1675 if test -n "$CC"; then
1676 ac_cv_prog_CC="$CC" # Let the user override the test.
1677else
1678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1679for as_dir in $PATH
1680do
1681 IFS=$as_save_IFS
1682 test -z "$as_dir" && as_dir=.
1683 for ac_exec_ext in '' $ac_executable_extensions; do
1684 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1685 ac_cv_prog_CC="${ac_tool_prefix}cc"
1686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1687 break 2
1688 fi
1689done
1690done
1691
1692fi
1693fi
1694CC=$ac_cv_prog_CC
1695if test -n "$CC"; then
1696 echo "$as_me:$LINENO: result: $CC" >&5
1697echo "${ECHO_T}$CC" >&6
1698else
1699 echo "$as_me:$LINENO: result: no" >&5
1700echo "${ECHO_T}no" >&6
1701fi
1702
1703fi
1704if test -z "$ac_cv_prog_CC"; then
1705 ac_ct_CC=$CC
1706 # Extract the first word of "cc", so it can be a program name with args.
1707set dummy cc; ac_word=$2
1708echo "$as_me:$LINENO: checking for $ac_word" >&5
1709echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1710if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1711 echo $ECHO_N "(cached) $ECHO_C" >&6
1712else
1713 if test -n "$ac_ct_CC"; then
1714 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1715else
1716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1717for as_dir in $PATH
1718do
1719 IFS=$as_save_IFS
1720 test -z "$as_dir" && as_dir=.
1721 for ac_exec_ext in '' $ac_executable_extensions; do
1722 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1723 ac_cv_prog_ac_ct_CC="cc"
1724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1725 break 2
1726 fi
1727done
1728done
1729
1730fi
1731fi
1732ac_ct_CC=$ac_cv_prog_ac_ct_CC
1733if test -n "$ac_ct_CC"; then
1734 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1735echo "${ECHO_T}$ac_ct_CC" >&6
1736else
1737 echo "$as_me:$LINENO: result: no" >&5
1738echo "${ECHO_T}no" >&6
1739fi
1740
1741 CC=$ac_ct_CC
1742else
1743 CC="$ac_cv_prog_CC"
1744fi
1745
1746fi
1747if test -z "$CC"; then
1748 # Extract the first word of "cc", so it can be a program name with args.
1749set dummy cc; ac_word=$2
1750echo "$as_me:$LINENO: checking for $ac_word" >&5
1751echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1752if test "${ac_cv_prog_CC+set}" = set; then
1753 echo $ECHO_N "(cached) $ECHO_C" >&6
1754else
1755 if test -n "$CC"; then
1756 ac_cv_prog_CC="$CC" # Let the user override the test.
1757else
1758 ac_prog_rejected=no
1759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1760for as_dir in $PATH
1761do
1762 IFS=$as_save_IFS
1763 test -z "$as_dir" && as_dir=.
1764 for ac_exec_ext in '' $ac_executable_extensions; do
1765 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1766 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1767 ac_prog_rejected=yes
1768 continue
1769 fi
1770 ac_cv_prog_CC="cc"
1771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1772 break 2
1773 fi
1774done
1775done
1776
1777if test $ac_prog_rejected = yes; then
1778 # We found a bogon in the path, so make sure we never use it.
1779 set dummy $ac_cv_prog_CC
1780 shift
1781 if test $# != 0; then
1782 # We chose a different compiler from the bogus one.
1783 # However, it has the same basename, so the bogon will be chosen
1784 # first if we set CC to just the basename; use the full file name.
1785 shift
1786 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1787 fi
1788fi
1789fi
1790fi
1791CC=$ac_cv_prog_CC
1792if test -n "$CC"; then
1793 echo "$as_me:$LINENO: result: $CC" >&5
1794echo "${ECHO_T}$CC" >&6
1795else
1796 echo "$as_me:$LINENO: result: no" >&5
1797echo "${ECHO_T}no" >&6
1798fi
1799
1800fi
1801if test -z "$CC"; then
1802 if test -n "$ac_tool_prefix"; then
1803 for ac_prog in cl
1804 do
1805 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1806set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1807echo "$as_me:$LINENO: checking for $ac_word" >&5
1808echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1809if test "${ac_cv_prog_CC+set}" = set; then
1810 echo $ECHO_N "(cached) $ECHO_C" >&6
1811else
1812 if test -n "$CC"; then
1813 ac_cv_prog_CC="$CC" # Let the user override the test.
1814else
1815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1816for as_dir in $PATH
1817do
1818 IFS=$as_save_IFS
1819 test -z "$as_dir" && as_dir=.
1820 for ac_exec_ext in '' $ac_executable_extensions; do
1821 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1822 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1824 break 2
1825 fi
1826done
1827done
1828
1829fi
1830fi
1831CC=$ac_cv_prog_CC
1832if test -n "$CC"; then
1833 echo "$as_me:$LINENO: result: $CC" >&5
1834echo "${ECHO_T}$CC" >&6
1835else
1836 echo "$as_me:$LINENO: result: no" >&5
1837echo "${ECHO_T}no" >&6
1838fi
1839
1840 test -n "$CC" && break
1841 done
1842fi
1843if test -z "$CC"; then
1844 ac_ct_CC=$CC
1845 for ac_prog in cl
1846do
1847 # Extract the first word of "$ac_prog", so it can be a program name with args.
1848set dummy $ac_prog; ac_word=$2
1849echo "$as_me:$LINENO: checking for $ac_word" >&5
1850echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1851if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1852 echo $ECHO_N "(cached) $ECHO_C" >&6
1853else
1854 if test -n "$ac_ct_CC"; then
1855 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1856else
1857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1858for as_dir in $PATH
1859do
1860 IFS=$as_save_IFS
1861 test -z "$as_dir" && as_dir=.
1862 for ac_exec_ext in '' $ac_executable_extensions; do
1863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1864 ac_cv_prog_ac_ct_CC="$ac_prog"
1865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1866 break 2
1867 fi
1868done
1869done
1870
1871fi
1872fi
1873ac_ct_CC=$ac_cv_prog_ac_ct_CC
1874if test -n "$ac_ct_CC"; then
1875 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1876echo "${ECHO_T}$ac_ct_CC" >&6
1877else
1878 echo "$as_me:$LINENO: result: no" >&5
1879echo "${ECHO_T}no" >&6
1880fi
1881
1882 test -n "$ac_ct_CC" && break
1883done
1884
1885 CC=$ac_ct_CC
1886fi
1887
1888fi
1889
1890
1891test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1892See \`config.log' for more details." >&5
1893echo "$as_me: error: no acceptable C compiler found in \$PATH
1894See \`config.log' for more details." >&2;}
1895 { (exit 1); exit 1; }; }
1896
1897# Provide some information about the compiler.
1898echo "$as_me:$LINENO:" \
1899 "checking for C compiler version" >&5
1900ac_compiler=`set X $ac_compile; echo $2`
1901{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1902 (eval $ac_compiler --version </dev/null >&5) 2>&5
1903 ac_status=$?
1904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1905 (exit $ac_status); }
1906{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1907 (eval $ac_compiler -v </dev/null >&5) 2>&5
1908 ac_status=$?
1909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1910 (exit $ac_status); }
1911{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1912 (eval $ac_compiler -V </dev/null >&5) 2>&5
1913 ac_status=$?
1914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1915 (exit $ac_status); }
1916
1917cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
1918/* confdefs.h. */
1919_ACEOF
1920cat confdefs.h >>conftest.$ac_ext
1921cat >>conftest.$ac_ext <<_ACEOF
1922/* end confdefs.h. */
1923
1924int
1925main ()
1926{
1927
1928 ;
1929 return 0;
1930}
1931_ACEOF
1932ac_clean_files_save=$ac_clean_files
1933ac_clean_files="$ac_clean_files a.out a.exe b.out"
1934# Try to create an executable without -o first, disregard a.out.
1935# It will help us diagnose broken compilers, and finding out an intuition
1936# of exeext.
ab509236
L
1937echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1938echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
13b2be9c
DJ
1939ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1940if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1941 (eval $ac_link_default) 2>&5
1942 ac_status=$?
1943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1944 (exit $ac_status); }; then
1945 # Find the output, starting from the most likely. This scheme is
1946# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1947# resort.
1948
1949# Be careful to initialize this variable, since it used to be cached.
1950# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1951ac_cv_exeext=
1952# b.out is created by i960 compilers.
1953for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1954do
1955 test -f "$ac_file" || continue
1956 case $ac_file in
1957 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ab509236 1958 ;;
13b2be9c 1959 conftest.$ac_ext )
ab509236
L
1960 # This is the source file.
1961 ;;
13b2be9c 1962 [ab].out )
ab509236
L
1963 # We found the default executable, but exeext='' is most
1964 # certainly right.
1965 break;;
13b2be9c 1966 *.* )
ab509236
L
1967 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1968 # FIXME: I believe we export ac_cv_exeext for Libtool,
1969 # but it would be cool to find out if it's true. Does anybody
1970 # maintain Libtool? --akim.
1971 export ac_cv_exeext
1972 break;;
13b2be9c 1973 * )
ab509236 1974 break;;
13b2be9c
DJ
1975 esac
1976done
1977else
1978 echo "$as_me: failed program was:" >&5
1979sed 's/^/| /' conftest.$ac_ext >&5
1980
1981{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1982See \`config.log' for more details." >&5
1983echo "$as_me: error: C compiler cannot create executables
1984See \`config.log' for more details." >&2;}
1985 { (exit 77); exit 77; }; }
1986fi
1987
1988ac_exeext=$ac_cv_exeext
1989echo "$as_me:$LINENO: result: $ac_file" >&5
1990echo "${ECHO_T}$ac_file" >&6
1991
1992# Check the compiler produces executables we can run. If not, either
1993# the compiler is broken, or we cross compile.
1994echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1995echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1996# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1997# If not cross compiling, check that we can run a simple program.
1998if test "$cross_compiling" != yes; then
1999 if { ac_try='./$ac_file'
2000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2001 (eval $ac_try) 2>&5
2002 ac_status=$?
2003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2004 (exit $ac_status); }; }; then
2005 cross_compiling=no
2006 else
2007 if test "$cross_compiling" = maybe; then
2008 cross_compiling=yes
2009 else
2010 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2011If you meant to cross compile, use \`--host'.
2012See \`config.log' for more details." >&5
2013echo "$as_me: error: cannot run C compiled programs.
2014If you meant to cross compile, use \`--host'.
2015See \`config.log' for more details." >&2;}
2016 { (exit 1); exit 1; }; }
2017 fi
2018 fi
2019fi
2020echo "$as_me:$LINENO: result: yes" >&5
2021echo "${ECHO_T}yes" >&6
2022
2023rm -f a.out a.exe conftest$ac_cv_exeext b.out
2024ac_clean_files=$ac_clean_files_save
2025# Check the compiler produces executables we can run. If not, either
2026# the compiler is broken, or we cross compile.
2027echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2028echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2029echo "$as_me:$LINENO: result: $cross_compiling" >&5
2030echo "${ECHO_T}$cross_compiling" >&6
2031
2032echo "$as_me:$LINENO: checking for suffix of executables" >&5
2033echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2034if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2035 (eval $ac_link) 2>&5
2036 ac_status=$?
2037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2038 (exit $ac_status); }; then
2039 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2040# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2041# work properly (i.e., refer to `conftest.exe'), while it won't with
2042# `rm'.
2043for ac_file in conftest.exe conftest conftest.*; do
2044 test -f "$ac_file" || continue
2045 case $ac_file in
2046 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2047 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ab509236
L
2048 export ac_cv_exeext
2049 break;;
13b2be9c
DJ
2050 * ) break;;
2051 esac
2052done
2053else
2054 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2055See \`config.log' for more details." >&5
2056echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2057See \`config.log' for more details." >&2;}
2058 { (exit 1); exit 1; }; }
2059fi
2060
2061rm -f conftest$ac_cv_exeext
2062echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2063echo "${ECHO_T}$ac_cv_exeext" >&6
2064
2065rm -f conftest.$ac_ext
2066EXEEXT=$ac_cv_exeext
2067ac_exeext=$EXEEXT
2068echo "$as_me:$LINENO: checking for suffix of object files" >&5
2069echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2070if test "${ac_cv_objext+set}" = set; then
2071 echo $ECHO_N "(cached) $ECHO_C" >&6
2072else
2073 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
2074/* confdefs.h. */
2075_ACEOF
2076cat confdefs.h >>conftest.$ac_ext
2077cat >>conftest.$ac_ext <<_ACEOF
2078/* end confdefs.h. */
2079
2080int
2081main ()
2082{
2083
2084 ;
2085 return 0;
2086}
2087_ACEOF
2088rm -f conftest.o conftest.obj
2089if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2090 (eval $ac_compile) 2>&5
2091 ac_status=$?
2092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2093 (exit $ac_status); }; then
2094 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2095 case $ac_file in
2096 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2097 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2098 break;;
2099 esac
2100done
2101else
2102 echo "$as_me: failed program was:" >&5
2103sed 's/^/| /' conftest.$ac_ext >&5
2104
2105{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2106See \`config.log' for more details." >&5
2107echo "$as_me: error: cannot compute suffix of object files: cannot compile
2108See \`config.log' for more details." >&2;}
2109 { (exit 1); exit 1; }; }
2110fi
2111
2112rm -f conftest.$ac_cv_objext conftest.$ac_ext
2113fi
2114echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2115echo "${ECHO_T}$ac_cv_objext" >&6
2116OBJEXT=$ac_cv_objext
2117ac_objext=$OBJEXT
2118echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2119echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2120if test "${ac_cv_c_compiler_gnu+set}" = set; then
2121 echo $ECHO_N "(cached) $ECHO_C" >&6
2122else
2123 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
2124/* confdefs.h. */
2125_ACEOF
2126cat confdefs.h >>conftest.$ac_ext
2127cat >>conftest.$ac_ext <<_ACEOF
2128/* end confdefs.h. */
2129
2130int
2131main ()
2132{
2133#ifndef __GNUC__
2134 choke me
2135#endif
2136
2137 ;
2138 return 0;
2139}
2140_ACEOF
2141rm -f conftest.$ac_objext
2142if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 2143 (eval $ac_compile) 2>conftest.er1
13b2be9c 2144 ac_status=$?
ab509236
L
2145 grep -v '^ *+' conftest.er1 >conftest.err
2146 rm -f conftest.er1
2147 cat conftest.err >&5
13b2be9c
DJ
2148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2149 (exit $ac_status); } &&
1ad12f97
NC
2150 { ac_try='test -z "$ac_c_werror_flag"
2151 || test ! -s conftest.err'
ab509236
L
2152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2153 (eval $ac_try) 2>&5
2154 ac_status=$?
2155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2156 (exit $ac_status); }; } &&
2157 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
2158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2159 (eval $ac_try) 2>&5
2160 ac_status=$?
2161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2162 (exit $ac_status); }; }; then
2163 ac_compiler_gnu=yes
2164else
2165 echo "$as_me: failed program was:" >&5
2166sed 's/^/| /' conftest.$ac_ext >&5
2167
2168ac_compiler_gnu=no
2169fi
ab509236 2170rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
2171ac_cv_c_compiler_gnu=$ac_compiler_gnu
2172
2173fi
2174echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2175echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2176GCC=`test $ac_compiler_gnu = yes && echo yes`
2177ac_test_CFLAGS=${CFLAGS+set}
2178ac_save_CFLAGS=$CFLAGS
2179CFLAGS="-g"
2180echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2181echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2182if test "${ac_cv_prog_cc_g+set}" = set; then
2183 echo $ECHO_N "(cached) $ECHO_C" >&6
2184else
2185 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
2186/* confdefs.h. */
2187_ACEOF
2188cat confdefs.h >>conftest.$ac_ext
2189cat >>conftest.$ac_ext <<_ACEOF
2190/* end confdefs.h. */
2191
2192int
2193main ()
2194{
2195
2196 ;
2197 return 0;
2198}
2199_ACEOF
2200rm -f conftest.$ac_objext
2201if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 2202 (eval $ac_compile) 2>conftest.er1
13b2be9c 2203 ac_status=$?
ab509236
L
2204 grep -v '^ *+' conftest.er1 >conftest.err
2205 rm -f conftest.er1
2206 cat conftest.err >&5
13b2be9c
DJ
2207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208 (exit $ac_status); } &&
1ad12f97
NC
2209 { ac_try='test -z "$ac_c_werror_flag"
2210 || test ! -s conftest.err'
ab509236
L
2211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2212 (eval $ac_try) 2>&5
2213 ac_status=$?
2214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215 (exit $ac_status); }; } &&
2216 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
2217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2218 (eval $ac_try) 2>&5
2219 ac_status=$?
2220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2221 (exit $ac_status); }; }; then
2222 ac_cv_prog_cc_g=yes
2223else
2224 echo "$as_me: failed program was:" >&5
2225sed 's/^/| /' conftest.$ac_ext >&5
2226
2227ac_cv_prog_cc_g=no
2228fi
ab509236 2229rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
2230fi
2231echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2232echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2233if test "$ac_test_CFLAGS" = set; then
2234 CFLAGS=$ac_save_CFLAGS
2235elif test $ac_cv_prog_cc_g = yes; then
2236 if test "$GCC" = yes; then
2237 CFLAGS="-g -O2"
2238 else
2239 CFLAGS="-g"
2240 fi
2241else
2242 if test "$GCC" = yes; then
2243 CFLAGS="-O2"
2244 else
2245 CFLAGS=
2246 fi
2247fi
2248echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2249echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2250if test "${ac_cv_prog_cc_stdc+set}" = set; then
2251 echo $ECHO_N "(cached) $ECHO_C" >&6
2252else
2253 ac_cv_prog_cc_stdc=no
2254ac_save_CC=$CC
2255cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
2256/* confdefs.h. */
2257_ACEOF
2258cat confdefs.h >>conftest.$ac_ext
2259cat >>conftest.$ac_ext <<_ACEOF
2260/* end confdefs.h. */
2261#include <stdarg.h>
2262#include <stdio.h>
2263#include <sys/types.h>
2264#include <sys/stat.h>
2265/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2266struct buf { int x; };
2267FILE * (*rcsopen) (struct buf *, struct stat *, int);
2268static char *e (p, i)
2269 char **p;
2270 int i;
2271{
2272 return p[i];
2273}
2274static char *f (char * (*g) (char **, int), char **p, ...)
2275{
2276 char *s;
2277 va_list v;
2278 va_start (v,p);
2279 s = g (p, va_arg (v,int));
2280 va_end (v);
2281 return s;
2282}
ab509236
L
2283
2284/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2285 function prototypes and stuff, but not '\xHH' hex character constants.
2286 These don't provoke an error unfortunately, instead are silently treated
2287 as 'x'. The following induces an error, until -std1 is added to get
2288 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2289 array size at least. It's necessary to write '\x00'==0 to get something
2290 that's true only with -std1. */
2291int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2292
13b2be9c
DJ
2293int test (int i, double x);
2294struct s1 {int (*f) (int a);};
2295struct s2 {int (*f) (double a);};
2296int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2297int argc;
2298char **argv;
2299int
2300main ()
2301{
2302return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2303 ;
2304 return 0;
2305}
2306_ACEOF
2307# Don't try gcc -ansi; that turns off useful extensions and
2308# breaks some systems' header files.
2309# AIX -qlanglvl=ansi
2310# Ultrix and OSF/1 -std1
2311# HP-UX 10.20 and later -Ae
2312# HP-UX older versions -Aa -D_HPUX_SOURCE
2313# SVR4 -Xc -D__EXTENSIONS__
2314for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2315do
2316 CC="$ac_save_CC $ac_arg"
2317 rm -f conftest.$ac_objext
2318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 2319 (eval $ac_compile) 2>conftest.er1
13b2be9c 2320 ac_status=$?
ab509236
L
2321 grep -v '^ *+' conftest.er1 >conftest.err
2322 rm -f conftest.er1
2323 cat conftest.err >&5
13b2be9c
DJ
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); } &&
1ad12f97
NC
2326 { ac_try='test -z "$ac_c_werror_flag"
2327 || test ! -s conftest.err'
ab509236
L
2328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2329 (eval $ac_try) 2>&5
2330 ac_status=$?
2331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332 (exit $ac_status); }; } &&
2333 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
2334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2335 (eval $ac_try) 2>&5
2336 ac_status=$?
2337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338 (exit $ac_status); }; }; then
2339 ac_cv_prog_cc_stdc=$ac_arg
2340break
2341else
2342 echo "$as_me: failed program was:" >&5
2343sed 's/^/| /' conftest.$ac_ext >&5
2344
2345fi
ab509236 2346rm -f conftest.err conftest.$ac_objext
13b2be9c
DJ
2347done
2348rm -f conftest.$ac_ext conftest.$ac_objext
2349CC=$ac_save_CC
2350
2351fi
2352
2353case "x$ac_cv_prog_cc_stdc" in
2354 x|xno)
2355 echo "$as_me:$LINENO: result: none needed" >&5
2356echo "${ECHO_T}none needed" >&6 ;;
2357 *)
2358 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2359echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2360 CC="$CC $ac_cv_prog_cc_stdc" ;;
2361esac
2362
2363# Some people use a C++ compiler to compile C. Since we use `exit',
2364# in C++ we need to declare it. In case someone uses the same compiler
2365# for both compiling C and C++ we need to have the C++ compiler decide
2366# the declaration of exit, since it's the most demanding environment.
2367cat >conftest.$ac_ext <<_ACEOF
2368#ifndef __cplusplus
2369 choke me
2370#endif
2371_ACEOF
2372rm -f conftest.$ac_objext
2373if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 2374 (eval $ac_compile) 2>conftest.er1
13b2be9c 2375 ac_status=$?
ab509236
L
2376 grep -v '^ *+' conftest.er1 >conftest.err
2377 rm -f conftest.er1
2378 cat conftest.err >&5
13b2be9c
DJ
2379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380 (exit $ac_status); } &&
1ad12f97
NC
2381 { ac_try='test -z "$ac_c_werror_flag"
2382 || test ! -s conftest.err'
ab509236
L
2383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2384 (eval $ac_try) 2>&5
2385 ac_status=$?
2386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387 (exit $ac_status); }; } &&
2388 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
2389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2390 (eval $ac_try) 2>&5
2391 ac_status=$?
2392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393 (exit $ac_status); }; }; then
2394 for ac_declaration in \
ab509236 2395 '' \
13b2be9c
DJ
2396 'extern "C" void std::exit (int) throw (); using std::exit;' \
2397 'extern "C" void std::exit (int); using std::exit;' \
2398 'extern "C" void exit (int) throw ();' \
2399 'extern "C" void exit (int);' \
2400 'void exit (int);'
2401do
2402 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
2403/* confdefs.h. */
2404_ACEOF
2405cat confdefs.h >>conftest.$ac_ext
2406cat >>conftest.$ac_ext <<_ACEOF
2407/* end confdefs.h. */
13dfd2d0 2408$ac_declaration
ab509236 2409#include <stdlib.h>
13b2be9c
DJ
2410int
2411main ()
2412{
2413exit (42);
2414 ;
2415 return 0;
2416}
2417_ACEOF
2418rm -f conftest.$ac_objext
2419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 2420 (eval $ac_compile) 2>conftest.er1
13b2be9c 2421 ac_status=$?
ab509236
L
2422 grep -v '^ *+' conftest.er1 >conftest.err
2423 rm -f conftest.er1
2424 cat conftest.err >&5
13b2be9c
DJ
2425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426 (exit $ac_status); } &&
1ad12f97
NC
2427 { ac_try='test -z "$ac_c_werror_flag"
2428 || test ! -s conftest.err'
ab509236
L
2429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2430 (eval $ac_try) 2>&5
2431 ac_status=$?
2432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433 (exit $ac_status); }; } &&
2434 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
2435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2436 (eval $ac_try) 2>&5
2437 ac_status=$?
2438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439 (exit $ac_status); }; }; then
2440 :
2441else
2442 echo "$as_me: failed program was:" >&5
2443sed 's/^/| /' conftest.$ac_ext >&5
2444
2445continue
2446fi
ab509236 2447rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c 2448 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
2449/* confdefs.h. */
2450_ACEOF
2451cat confdefs.h >>conftest.$ac_ext
2452cat >>conftest.$ac_ext <<_ACEOF
2453/* end confdefs.h. */
2454$ac_declaration
2455int
2456main ()
2457{
2458exit (42);
2459 ;
2460 return 0;
2461}
2462_ACEOF
2463rm -f conftest.$ac_objext
2464if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 2465 (eval $ac_compile) 2>conftest.er1
13b2be9c 2466 ac_status=$?
ab509236
L
2467 grep -v '^ *+' conftest.er1 >conftest.err
2468 rm -f conftest.er1
2469 cat conftest.err >&5
13b2be9c
DJ
2470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471 (exit $ac_status); } &&
1ad12f97
NC
2472 { ac_try='test -z "$ac_c_werror_flag"
2473 || test ! -s conftest.err'
ab509236
L
2474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2475 (eval $ac_try) 2>&5
2476 ac_status=$?
2477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478 (exit $ac_status); }; } &&
2479 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
2480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2481 (eval $ac_try) 2>&5
2482 ac_status=$?
2483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484 (exit $ac_status); }; }; then
2485 break
2486else
2487 echo "$as_me: failed program was:" >&5
2488sed 's/^/| /' conftest.$ac_ext >&5
2489
2490fi
ab509236 2491rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
2492done
2493rm -f conftest*
2494if test -n "$ac_declaration"; then
2495 echo '#ifdef __cplusplus' >>confdefs.h
2496 echo $ac_declaration >>confdefs.h
2497 echo '#endif' >>confdefs.h
2498fi
2499
2500else
2501 echo "$as_me: failed program was:" >&5
2502sed 's/^/| /' conftest.$ac_ext >&5
2503
2504fi
ab509236 2505rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
2506ac_ext=c
2507ac_cpp='$CPP $CPPFLAGS'
2508ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2509ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2510ac_compiler_gnu=$ac_cv_c_compiler_gnu
2511
2512
ab509236
L
2513echo "$as_me:$LINENO: checking for library containing strerror" >&5
2514echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2515if test "${ac_cv_search_strerror+set}" = set; then
13b2be9c
DJ
2516 echo $ECHO_N "(cached) $ECHO_C" >&6
2517else
ab509236
L
2518 ac_func_search_save_LIBS=$LIBS
2519ac_cv_search_strerror=no
13b2be9c 2520cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
2521/* confdefs.h. */
2522_ACEOF
2523cat confdefs.h >>conftest.$ac_ext
2524cat >>conftest.$ac_ext <<_ACEOF
2525/* end confdefs.h. */
2526
2527/* Override any gcc2 internal prototype to avoid an error. */
2528#ifdef __cplusplus
2529extern "C"
2530#endif
2531/* We use char because int might match the return type of a gcc2
2532 builtin and then its argument prototype would still apply. */
2533char strerror ();
2534int
2535main ()
2536{
2537strerror ();
2538 ;
2539 return 0;
2540}
2541_ACEOF
2542rm -f conftest.$ac_objext conftest$ac_exeext
2543if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 2544 (eval $ac_link) 2>conftest.er1
13b2be9c 2545 ac_status=$?
ab509236
L
2546 grep -v '^ *+' conftest.er1 >conftest.err
2547 rm -f conftest.er1
2548 cat conftest.err >&5
13b2be9c
DJ
2549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550 (exit $ac_status); } &&
1ad12f97
NC
2551 { ac_try='test -z "$ac_c_werror_flag"
2552 || test ! -s conftest.err'
ab509236
L
2553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2554 (eval $ac_try) 2>&5
2555 ac_status=$?
2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557 (exit $ac_status); }; } &&
2558 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
2559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2560 (eval $ac_try) 2>&5
2561 ac_status=$?
2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563 (exit $ac_status); }; }; then
ab509236 2564 ac_cv_search_strerror="none required"
13b2be9c
DJ
2565else
2566 echo "$as_me: failed program was:" >&5
2567sed 's/^/| /' conftest.$ac_ext >&5
2568
13b2be9c 2569fi
ab509236
L
2570rm -f conftest.err conftest.$ac_objext \
2571 conftest$ac_exeext conftest.$ac_ext
2572if test "$ac_cv_search_strerror" = no; then
2573 for ac_lib in cposix; do
2574 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2575 cat >conftest.$ac_ext <<_ACEOF
2576/* confdefs.h. */
2577_ACEOF
2578cat confdefs.h >>conftest.$ac_ext
2579cat >>conftest.$ac_ext <<_ACEOF
2580/* end confdefs.h. */
2581
2582/* Override any gcc2 internal prototype to avoid an error. */
2583#ifdef __cplusplus
2584extern "C"
2585#endif
2586/* We use char because int might match the return type of a gcc2
2587 builtin and then its argument prototype would still apply. */
2588char strerror ();
2589int
2590main ()
2591{
2592strerror ();
2593 ;
2594 return 0;
2595}
2596_ACEOF
2597rm -f conftest.$ac_objext conftest$ac_exeext
2598if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2599 (eval $ac_link) 2>conftest.er1
2600 ac_status=$?
2601 grep -v '^ *+' conftest.er1 >conftest.err
2602 rm -f conftest.er1
2603 cat conftest.err >&5
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); } &&
1ad12f97
NC
2606 { ac_try='test -z "$ac_c_werror_flag"
2607 || test ! -s conftest.err'
ab509236
L
2608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2609 (eval $ac_try) 2>&5
2610 ac_status=$?
2611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612 (exit $ac_status); }; } &&
2613 { ac_try='test -s conftest$ac_exeext'
2614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2615 (eval $ac_try) 2>&5
2616 ac_status=$?
2617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618 (exit $ac_status); }; }; then
2619 ac_cv_search_strerror="-l$ac_lib"
2620break
2621else
2622 echo "$as_me: failed program was:" >&5
2623sed 's/^/| /' conftest.$ac_ext >&5
2624
13b2be9c 2625fi
ab509236
L
2626rm -f conftest.err conftest.$ac_objext \
2627 conftest$ac_exeext conftest.$ac_ext
2628 done
13b2be9c 2629fi
ab509236
L
2630LIBS=$ac_func_search_save_LIBS
2631fi
2632echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2633echo "${ECHO_T}$ac_cv_search_strerror" >&6
2634if test "$ac_cv_search_strerror" != no; then
2635 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
13b2be9c 2636
ab509236 2637fi
13b2be9c
DJ
2638
2639
2640BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
8ea2b00f 2641am__api_version="1.9"
13b2be9c
DJ
2642# Find a good install program. We prefer a C program (faster),
2643# so one script is as good as another. But avoid the broken or
2644# incompatible versions:
2645# SysV /etc/install, /usr/sbin/install
2646# SunOS /usr/etc/install
2647# IRIX /sbin/install
2648# AIX /bin/install
2649# AmigaOS /C/install, which installs bootblocks on floppy discs
2650# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2651# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2652# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ab509236 2653# OS/2's system install, which has a completely different semantic
13b2be9c
DJ
2654# ./install, which can be erroneously created by make from ./install.sh.
2655echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2656echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2657if test -z "$INSTALL"; then
2658if test "${ac_cv_path_install+set}" = set; then
2659 echo $ECHO_N "(cached) $ECHO_C" >&6
2660else
2661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2662for as_dir in $PATH
2663do
2664 IFS=$as_save_IFS
2665 test -z "$as_dir" && as_dir=.
2666 # Account for people who put trailing slashes in PATH elements.
2667case $as_dir/ in
2668 ./ | .// | /cC/* | \
2669 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ab509236 2670 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
13b2be9c
DJ
2671 /usr/ucb/* ) ;;
2672 *)
2673 # OSF1 and SCO ODT 3.0 have their own names for install.
2674 # Don't use installbsd from OSF since it installs stuff as root
2675 # by default.
2676 for ac_prog in ginstall scoinst install; do
2677 for ac_exec_ext in '' $ac_executable_extensions; do
ab509236
L
2678 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2679 if test $ac_prog = install &&
2680 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2681 # AIX install. It has an incompatible calling convention.
2682 :
2683 elif test $ac_prog = install &&
2684 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2685 # program-specific install script used by HP pwplus--don't use.
2686 :
2687 else
2688 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2689 break 3
2690 fi
2691 fi
13b2be9c
DJ
2692 done
2693 done
2694 ;;
2695esac
2696done
2697
252b5132
RH
2698
2699fi
2700 if test "${ac_cv_path_install+set}" = set; then
13b2be9c 2701 INSTALL=$ac_cv_path_install
252b5132
RH
2702 else
2703 # As a last resort, use the slow shell script. We don't cache a
2704 # path for INSTALL within a source directory, because that will
2705 # break other packages using the cache if that directory is
2706 # removed, or if the path is relative.
13b2be9c 2707 INSTALL=$ac_install_sh
252b5132
RH
2708 fi
2709fi
13b2be9c
DJ
2710echo "$as_me:$LINENO: result: $INSTALL" >&5
2711echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
2712
2713# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2714# It thinks the first close brace ends the variable substitution.
2715test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2716
13b2be9c 2717test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
2718
2719test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2720
13b2be9c
DJ
2721echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2722echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
252b5132
RH
2723# Just in case
2724sleep 1
13b2be9c 2725echo timestamp > conftest.file
252b5132
RH
2726# Do `set' in a subshell so we don't clobber the current shell's
2727# arguments. Must try -L first in case configure is actually a
2728# symlink; some systems play weird games with the mod time of symlinks
2729# (eg FreeBSD returns the mod time of the symlink's containing
2730# directory).
2731if (
13b2be9c 2732 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
252b5132
RH
2733 if test "$*" = "X"; then
2734 # -L didn't work.
13b2be9c 2735 set X `ls -t $srcdir/configure conftest.file`
252b5132 2736 fi
13b2be9c
DJ
2737 rm -f conftest.file
2738 if test "$*" != "X $srcdir/configure conftest.file" \
2739 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
2740
2741 # If neither matched, then we have a broken ls. This can happen
2742 # if, for instance, CONFIG_SHELL is bash and it inherits a
2743 # broken ls alias from the environment. This has actually
2744 # happened. Such a system could not be considered "sane".
13b2be9c
DJ
2745 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2746alias in your environment" >&5
2747echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2748alias in your environment" >&2;}
2749 { (exit 1); exit 1; }; }
252b5132
RH
2750 fi
2751
13b2be9c
DJ
2752 test "$2" = conftest.file
2753 )
2754then
2755 # Ok.
2756 :
2757else
2758 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2759Check your system clock" >&5
2760echo "$as_me: error: newly created file is older than distributed files!
2761Check your system clock" >&2;}
2762 { (exit 1); exit 1; }; }
2763fi
2764echo "$as_me:$LINENO: result: yes" >&5
2765echo "${ECHO_T}yes" >&6
2766test "$program_prefix" != NONE &&
2767 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2768# Use a double $ so make ignores it.
2769test "$program_suffix" != NONE &&
2770 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2771# Double any \ or $. echo might interpret backslashes.
2772# By default was `s,x,x', remove it if useless.
2773cat <<\_ACEOF >conftest.sed
2774s/[\\$]/&&/g;s/;s,x,x,$//
2775_ACEOF
2776program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2777rm conftest.sed
2778
13b2be9c
DJ
2779# expand $ac_aux_dir to an absolute path
2780am_aux_dir=`cd $ac_aux_dir && pwd`
2781
2782test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2783# Use eval to expand $SHELL
2784if eval "$MISSING --run true"; then
2785 am_missing_run="$MISSING --run "
2786else
2787 am_missing_run=
2788 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2789echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2790fi
2791
4b363073 2792if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
8ea2b00f
AM
2793 # We used to keeping the `.' as first argument, in order to
2794 # allow $(mkdir_p) to be used without argument. As in
ab509236 2795 # $(mkdir_p) $(somedir)
8ea2b00f
AM
2796 # where $(somedir) is conditionally defined. However this is wrong
2797 # for two reasons:
2798 # 1. if the package is installed by a user who cannot write `.'
2799 # make install will fail,
2800 # 2. the above comment should most certainly read
2801 # $(mkdir_p) $(DESTDIR)$(somedir)
2802 # so it does not work when $(somedir) is undefined and
2803 # $(DESTDIR) is not.
2804 # To support the latter case, we have to write
2805 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2806 # so the `.' trick is pointless.
2807 mkdir_p='mkdir -p --'
ab509236
L
2808else
2809 # On NextStep and OpenStep, the `mkdir' command does not
2810 # recognize any option. It will interpret all options as
2811 # directories to create, and then abort because `.' already
2812 # exists.
4b363073 2813 for d in ./-p ./--version;
ab509236
L
2814 do
2815 test -d $d && rmdir $d
2816 done
2817 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2818 if test -f "$ac_aux_dir/mkinstalldirs"; then
2819 mkdir_p='$(mkinstalldirs)'
2820 else
2821 mkdir_p='$(install_sh) -d'
2822 fi
2823fi
2824
13b2be9c
DJ
2825for ac_prog in gawk mawk nawk awk
2826do
2827 # Extract the first word of "$ac_prog", so it can be a program name with args.
2828set dummy $ac_prog; ac_word=$2
2829echo "$as_me:$LINENO: checking for $ac_word" >&5
2830echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2831if test "${ac_cv_prog_AWK+set}" = set; then
2832 echo $ECHO_N "(cached) $ECHO_C" >&6
2833else
2834 if test -n "$AWK"; then
2835 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2836else
2837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2838for as_dir in $PATH
2839do
2840 IFS=$as_save_IFS
2841 test -z "$as_dir" && as_dir=.
2842 for ac_exec_ext in '' $ac_executable_extensions; do
2843 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2844 ac_cv_prog_AWK="$ac_prog"
2845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2846 break 2
2847 fi
2848done
2849done
2850
2851fi
2852fi
2853AWK=$ac_cv_prog_AWK
2854if test -n "$AWK"; then
2855 echo "$as_me:$LINENO: result: $AWK" >&5
2856echo "${ECHO_T}$AWK" >&6
2857else
2858 echo "$as_me:$LINENO: result: no" >&5
2859echo "${ECHO_T}no" >&6
2860fi
2861
2862 test -n "$AWK" && break
2863done
2864
2865echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2866echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ab509236 2867set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
13b2be9c
DJ
2868if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2869 echo $ECHO_N "(cached) $ECHO_C" >&6
2870else
2871 cat >conftest.make <<\_ACEOF
2872all:
2873 @echo 'ac_maketemp="$(MAKE)"'
2874_ACEOF
2875# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2876eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2877if test -n "$ac_maketemp"; then
2878 eval ac_cv_prog_make_${ac_make}_set=yes
2879else
2880 eval ac_cv_prog_make_${ac_make}_set=no
2881fi
2882rm -f conftest.make
2883fi
2884if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2885 echo "$as_me:$LINENO: result: yes" >&5
2886echo "${ECHO_T}yes" >&6
2887 SET_MAKE=
2888else
2889 echo "$as_me:$LINENO: result: no" >&5
2890echo "${ECHO_T}no" >&6
2891 SET_MAKE="MAKE=${MAKE-make}"
2892fi
2893
2894rm -rf .tst 2>/dev/null
2895mkdir .tst 2>/dev/null
2896if test -d .tst; then
2897 am__leading_dot=.
2898else
2899 am__leading_dot=_
2900fi
2901rmdir .tst 2>/dev/null
2902
2903DEPDIR="${am__leading_dot}deps"
2904
2905 ac_config_commands="$ac_config_commands depfiles"
2906
2907
2908am_make=${MAKE-make}
2909cat > confinc << 'END'
2910am__doit:
2911 @echo done
2912.PHONY: am__doit
2913END
2914# If we don't find an include directive, just comment out the code.
2915echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2916echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2917am__include="#"
2918am__quote=
2919_am_result=none
2920# First try GNU make style include.
2921echo "include confinc" > confmf
2922# We grep out `Entering directory' and `Leaving directory'
2923# messages which can occur if `w' ends up in MAKEFLAGS.
2924# In particular we don't look at `^make:' because GNU make might
2925# be invoked under some other name (usually "gmake"), in which
2926# case it prints its new name instead of `make'.
2927if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2928 am__include=include
2929 am__quote=
2930 _am_result=GNU
2931fi
2932# Now try BSD make style include.
2933if test "$am__include" = "#"; then
2934 echo '.include "confinc"' > confmf
2935 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2936 am__include=.include
2937 am__quote="\""
2938 _am_result=BSD
2939 fi
2940fi
2941
2942
2943echo "$as_me:$LINENO: result: $_am_result" >&5
2944echo "${ECHO_T}$_am_result" >&6
2945rm -f confinc confmf
2946
2947# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2948if test "${enable_dependency_tracking+set}" = set; then
2949 enableval="$enable_dependency_tracking"
2950
2951fi;
2952if test "x$enable_dependency_tracking" != xno; then
2953 am_depcomp="$ac_aux_dir/depcomp"
2954 AMDEPBACKSLASH='\'
2955fi
2956
2957
2958if test "x$enable_dependency_tracking" != xno; then
2959 AMDEP_TRUE=
2960 AMDEP_FALSE='#'
2961else
2962 AMDEP_TRUE='#'
2963 AMDEP_FALSE=
2964fi
2965
2966
2967
ab509236 2968# test to see if srcdir already configured
13b2be9c
DJ
2969if test "`cd $srcdir && pwd`" != "`pwd`" &&
2970 test -f $srcdir/config.status; then
2971 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2972echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2973 { (exit 1); exit 1; }; }
2974fi
2975
2976# test whether we have cygpath
2977if test -z "$CYGPATH_W"; then
2978 if (cygpath --version) >/dev/null 2>/dev/null; then
2979 CYGPATH_W='cygpath -w'
2980 else
2981 CYGPATH_W=echo
2982 fi
2983fi
2984
2985
2986# Define the identity of the package.
2987 PACKAGE=gas
2988 VERSION=${BFD_VERSION}
2989
2990
2991cat >>confdefs.h <<_ACEOF
2992#define PACKAGE "$PACKAGE"
2993_ACEOF
2994
2995
2996cat >>confdefs.h <<_ACEOF
2997#define VERSION "$VERSION"
2998_ACEOF
2999
3000# Some tools Automake needs.
3001
3002ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3003
3004
3005AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3006
3007
3008AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3009
3010
3011AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3012
3013
3014MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3015
13b2be9c
DJ
3016install_sh=${install_sh-"$am_aux_dir/install-sh"}
3017
3018# Installed binaries are usually stripped using `strip' when the user
3019# run `make install-strip'. However `strip' might not be the right
3020# tool to use in cross-compilation environments, therefore Automake
3021# will honor the `STRIP' environment variable to overrule this program.
3022if test "$cross_compiling" != no; then
3023 if test -n "$ac_tool_prefix"; then
3024 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3025set dummy ${ac_tool_prefix}strip; ac_word=$2
3026echo "$as_me:$LINENO: checking for $ac_word" >&5
3027echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3028if test "${ac_cv_prog_STRIP+set}" = set; then
3029 echo $ECHO_N "(cached) $ECHO_C" >&6
3030else
3031 if test -n "$STRIP"; then
3032 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
252b5132 3033else
13b2be9c
DJ
3034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3035for as_dir in $PATH
3036do
3037 IFS=$as_save_IFS
3038 test -z "$as_dir" && as_dir=.
3039 for ac_exec_ext in '' $ac_executable_extensions; do
3040 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3041 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3043 break 2
3044 fi
3045done
3046done
3047
252b5132 3048fi
13b2be9c
DJ
3049fi
3050STRIP=$ac_cv_prog_STRIP
3051if test -n "$STRIP"; then
3052 echo "$as_me:$LINENO: result: $STRIP" >&5
3053echo "${ECHO_T}$STRIP" >&6
c8615825 3054else
13b2be9c
DJ
3055 echo "$as_me:$LINENO: result: no" >&5
3056echo "${ECHO_T}no" >&6
c8615825 3057fi
c8615825 3058
13b2be9c
DJ
3059fi
3060if test -z "$ac_cv_prog_STRIP"; then
3061 ac_ct_STRIP=$STRIP
3062 # Extract the first word of "strip", so it can be a program name with args.
3063set dummy strip; ac_word=$2
3064echo "$as_me:$LINENO: checking for $ac_word" >&5
3065echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3066if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3067 echo $ECHO_N "(cached) $ECHO_C" >&6
c8615825 3068else
13b2be9c
DJ
3069 if test -n "$ac_ct_STRIP"; then
3070 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
252b5132 3071else
13b2be9c
DJ
3072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3073for as_dir in $PATH
3074do
3075 IFS=$as_save_IFS
3076 test -z "$as_dir" && as_dir=.
3077 for ac_exec_ext in '' $ac_executable_extensions; do
3078 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3079 ac_cv_prog_ac_ct_STRIP="strip"
3080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3081 break 2
3082 fi
3083done
3084done
3085
3086 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
252b5132 3087fi
252b5132 3088fi
13b2be9c
DJ
3089ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3090if test -n "$ac_ct_STRIP"; then
3091 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3092echo "${ECHO_T}$ac_ct_STRIP" >&6
252b5132 3093else
13b2be9c
DJ
3094 echo "$as_me:$LINENO: result: no" >&5
3095echo "${ECHO_T}no" >&6
252b5132
RH
3096fi
3097
13b2be9c
DJ
3098 STRIP=$ac_ct_STRIP
3099else
3100 STRIP="$ac_cv_prog_STRIP"
3101fi
d6d788bd 3102
252b5132 3103fi
13b2be9c 3104INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
252b5132 3105
13b2be9c
DJ
3106# We need awk for the "check" target. The system "awk" is bad on
3107# some platforms.
8ea2b00f
AM
3108# Always define AMTAR for backward compatibility.
3109
3110AMTAR=${AMTAR-"${am_missing_run}tar"}
3111
3112am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3113
3114
252b5132 3115
d6d788bd 3116
13b2be9c 3117depcc="$CC" am_compiler_list=
d6d788bd 3118
13b2be9c
DJ
3119echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3120echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3121if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3122 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3123else
13b2be9c
DJ
3124 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3125 # We make a subdir and do the tests there. Otherwise we can end up
3126 # making bogus files that we don't know about and never remove. For
3127 # instance it was reported that on HP-UX the gcc test will end up
3128 # making a dummy file named `D' -- because `-MD' means `put the output
3129 # in D'.
3130 mkdir conftest.dir
3131 # Copy depcomp to subdir because otherwise we won't find it if we're
3132 # using a relative directory.
3133 cp "$am_depcomp" conftest.dir
3134 cd conftest.dir
3135 # We will build objects and dependencies in a subdirectory because
3136 # it helps to detect inapplicable dependency modes. For instance
3137 # both Tru64's cc and ICC support -MD to output dependencies as a
3138 # side effect of compilation, but ICC will put the dependencies in
3139 # the current directory while Tru64 will put them in the object
3140 # directory.
3141 mkdir sub
252b5132 3142
13b2be9c
DJ
3143 am_cv_CC_dependencies_compiler_type=none
3144 if test "$am_compiler_list" = ""; then
3145 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3146 fi
3147 for depmode in $am_compiler_list; do
3148 # Setup a source with many dependencies, because some compilers
3149 # like to wrap large dependency lists on column 80 (with \), and
3150 # we should not choose a depcomp mode which is confused by this.
3151 #
3152 # We need to recreate these files for each test, as the compiler may
3153 # overwrite some of them when testing with obscure command lines.
3154 # This happens at least with the AIX C compiler.
3155 : > sub/conftest.c
3156 for i in 1 2 3 4 5 6; do
3157 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4b363073
NC
3158 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3159 # Solaris 8's {/usr,}/bin/sh.
3160 touch sub/conftst$i.h
13b2be9c
DJ
3161 done
3162 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3163
3164 case $depmode in
3165 nosideeffect)
3166 # after this tag, mechanisms are not by side-effect, so they'll
3167 # only be used when explicitly requested
3168 if test "x$enable_dependency_tracking" = xyes; then
3169 continue
3170 else
3171 break
3172 fi
3173 ;;
3174 none) break ;;
3175 esac
3176 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3177 # mode. It turns out that the SunPro C++ compiler does not properly
3178 # handle `-M -o', and we need to detect this.
3179 if depmode=$depmode \
3180 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3181 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3182 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3183 >/dev/null 2>conftest.err &&
3184 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3185 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3186 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3187 # icc doesn't choke on unknown options, it will just issue warnings
4b363073
NC
3188 # or remarks (even with -Werror). So we grep stderr for any message
3189 # that says an option was ignored or not supported.
3190 # When given -MP, icc 7.0 and 7.1 complain thusly:
3191 # icc: Command line warning: ignoring option '-M'; no argument required
3192 # The diagnosis changed in icc 8.0:
3193 # icc: Command line remark: option '-MP' not supported
3194 if (grep 'ignoring option' conftest.err ||
3195 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13b2be9c
DJ
3196 am_cv_CC_dependencies_compiler_type=$depmode
3197 break
3198 fi
3199 fi
3200 done
252b5132 3201
13b2be9c
DJ
3202 cd ..
3203 rm -rf conftest.dir
252b5132 3204else
13b2be9c 3205 am_cv_CC_dependencies_compiler_type=none
252b5132
RH
3206fi
3207
252b5132 3208fi
13b2be9c
DJ
3209echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3210echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3211CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
252b5132 3212
13b2be9c
DJ
3213
3214
3215if
3216 test "x$enable_dependency_tracking" != xno \
3217 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3218 am__fastdepCC_TRUE=
3219 am__fastdepCC_FALSE='#'
252b5132 3220else
13b2be9c
DJ
3221 am__fastdepCC_TRUE='#'
3222 am__fastdepCC_FALSE=
252b5132
RH
3223fi
3224
d6d788bd
L
3225
3226
13b2be9c 3227
d7040cdb
SE
3228
3229
3230macro_version='2.1a'
3231macro_revision='1.2435'
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244ltmain="$ac_aux_dir/ltmain.sh"
3245
3246# Set options
3247
3248enable_dlopen=no
3249
3250
3251enable_win32_dll=no
3252
3253
252b5132
RH
3254# Check whether --enable-shared or --disable-shared was given.
3255if test "${enable_shared+set}" = set; then
3256 enableval="$enable_shared"
3257 p=${PACKAGE-default}
d7040cdb
SE
3258 case $enableval in
3259 yes) enable_shared=yes ;;
3260 no) enable_shared=no ;;
3261 *)
3262 enable_shared=no
3263 # Look at the argument we got. We use all the common list separators.
3264 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3265 for pkg in $enableval; do
3266 IFS="$lt_save_ifs"
3267 if test "X$pkg" = "X$p"; then
3268 enable_shared=yes
3269 fi
3270 done
3271 IFS="$lt_save_ifs"
3272 ;;
3273 esac
252b5132
RH
3274else
3275 enable_shared=yes
13b2be9c 3276fi;
d7040cdb
SE
3277
3278
3279
3280
3281
3282
3283
3284
252b5132
RH
3285# Check whether --enable-static or --disable-static was given.
3286if test "${enable_static+set}" = set; then
3287 enableval="$enable_static"
3288 p=${PACKAGE-default}
d7040cdb
SE
3289 case $enableval in
3290 yes) enable_static=yes ;;
3291 no) enable_static=no ;;
3292 *)
3293 enable_static=no
3294 # Look at the argument we got. We use all the common list separators.
3295 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3296 for pkg in $enableval; do
3297 IFS="$lt_save_ifs"
3298 if test "X$pkg" = "X$p"; then
3299 enable_static=yes
3300 fi
3301 done
3302 IFS="$lt_save_ifs"
3303 ;;
3304 esac
252b5132
RH
3305else
3306 enable_static=yes
13b2be9c 3307fi;
d7040cdb
SE
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317# Check whether --with-pic or --without-pic was given.
3318if test "${with_pic+set}" = set; then
3319 withval="$with_pic"
3320 pic_mode="$withval"
3321else
3322 pic_mode=default
3323fi;
3324
3325test -z "$pic_mode" && pic_mode=default
3326
3327
3328
3329
3330
3331
3332
bedf545c
ILT
3333# Check whether --enable-fast-install or --disable-fast-install was given.
3334if test "${enable_fast_install+set}" = set; then
3335 enableval="$enable_fast_install"
3336 p=${PACKAGE-default}
d7040cdb
SE
3337 case $enableval in
3338 yes) enable_fast_install=yes ;;
3339 no) enable_fast_install=no ;;
3340 *)
3341 enable_fast_install=no
3342 # Look at the argument we got. We use all the common list separators.
3343 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3344 for pkg in $enableval; do
3345 IFS="$lt_save_ifs"
3346 if test "X$pkg" = "X$p"; then
3347 enable_fast_install=yes
3348 fi
3349 done
3350 IFS="$lt_save_ifs"
3351 ;;
3352 esac
bedf545c
ILT
3353else
3354 enable_fast_install=yes
13b2be9c 3355fi;
87ccc1b0 3356
d7040cdb
SE
3357
3358
3359
3360
3361
3362
3363
3364echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3365echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3366if test "${lt_cv_path_SED+set}" = set; then
3367 echo $ECHO_N "(cached) $ECHO_C" >&6
3368else
3369 # Loop through the user's path and test for sed and gsed.
3370# Then use that list of sed's as ones to test for truncation.
3371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3372for as_dir in $PATH
3373do
3374 IFS=$as_save_IFS
3375 test -z "$as_dir" && as_dir=.
3376 for lt_ac_prog in sed gsed; do
3377 for ac_exec_ext in '' $ac_executable_extensions; do
3378 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3379 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3380 fi
3381 done
3382 done
3383done
3384IFS=$as_save_IFS
3385lt_ac_max=0
3386lt_ac_count=0
3387# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3388# along with /bin/sed that truncates output.
3389for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3390 test ! -f $lt_ac_sed && continue
3391 cat /dev/null > conftest.in
3392 lt_ac_count=0
3393 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3394 # Check for GNU sed and select it if it is found.
3395 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3396 lt_cv_path_SED=$lt_ac_sed
3397 break
3398 fi
3399 while true; do
3400 cat conftest.in conftest.in >conftest.tmp
3401 mv conftest.tmp conftest.in
3402 cp conftest.in conftest.nl
3403 echo >>conftest.nl
3404 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3405 cmp -s conftest.out conftest.nl || break
3406 # 10000 chars as input seems more than enough
3407 test $lt_ac_count -gt 10 && break
3408 lt_ac_count=`expr $lt_ac_count + 1`
3409 if test $lt_ac_count -gt $lt_ac_max; then
3410 lt_ac_max=$lt_ac_count
3411 lt_cv_path_SED=$lt_ac_sed
3412 fi
3413 done
3414done
3415
3416fi
3417
3418SED=$lt_cv_path_SED
3419
3420echo "$as_me:$LINENO: result: $SED" >&5
3421echo "${ECHO_T}$SED" >&6
3422
3423test -z "$SED" && SED=sed
3424Xsed="$SED -e 1s/^X//"
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436echo "$as_me:$LINENO: checking for egrep" >&5
3437echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3438if test "${ac_cv_prog_egrep+set}" = set; then
3439 echo $ECHO_N "(cached) $ECHO_C" >&6
3440else
3441 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3442 then ac_cv_prog_egrep='grep -E'
3443 else ac_cv_prog_egrep='egrep'
3444 fi
3445fi
3446echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3447echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3448 EGREP=$ac_cv_prog_egrep
3449
3450
3451echo "$as_me:$LINENO: checking for fgrep" >&5
3452echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
3453if test "${ac_cv_prog_fgrep+set}" = set; then
3454 echo $ECHO_N "(cached) $ECHO_C" >&6
3455else
3456 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
3457 then ac_cv_prog_fgrep='grep -F'
3458 else ac_cv_prog_fgrep='fgrep'
3459 fi
3460fi
3461echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
3462echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
3463 FGREP=$ac_cv_prog_fgrep
3464
3465
3466test -z "$GREP" && GREP=grep
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
6840198f
NC
3486# Check whether --with-gnu-ld or --without-gnu-ld was given.
3487if test "${with_gnu_ld+set}" = set; then
3488 withval="$with_gnu_ld"
3489 test "$withval" = no || with_gnu_ld=yes
27b7e12d 3490else
6840198f 3491 with_gnu_ld=no
13b2be9c 3492fi;
6840198f
NC
3493ac_prog=ld
3494if test "$GCC" = yes; then
3495 # Check if gcc -print-prog-name=ld gives a path.
d7040cdb
SE
3496 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3497echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
6840198f
NC
3498 case $host in
3499 *-*-mingw*)
3500 # gcc leaves a trailing carriage return which upsets mingw
3501 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3502 *)
3503 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3504 esac
3505 case $ac_prog in
3506 # Accept absolute paths.
d7040cdb 3507 [\\/]* | ?:[\\/]*)
6840198f 3508 re_direlt='/[^/][^/]*/\.\./'
d7040cdb
SE
3509 # Canonicalize the pathname of ld
3510 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3511 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3512 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6840198f
NC
3513 done
3514 test -z "$LD" && LD="$ac_prog"
3515 ;;
3516 "")
3517 # If it fails, then pretend we aren't using GCC.
3518 ac_prog=ld
3519 ;;
3520 *)
3521 # If it is relative, then search for the first ld in PATH.
3522 with_gnu_ld=unknown
3523 ;;
3524 esac
3525elif test "$with_gnu_ld" = yes; then
13b2be9c
DJ
3526 echo "$as_me:$LINENO: checking for GNU ld" >&5
3527echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
27b7e12d 3528else
13b2be9c
DJ
3529 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3530echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
27b7e12d 3531fi
13b2be9c
DJ
3532if test "${lt_cv_path_LD+set}" = set; then
3533 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3534else
3535 if test -z "$LD"; then
d7040cdb 3536 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
252b5132 3537 for ac_dir in $PATH; do
d7040cdb 3538 IFS="$lt_save_ifs"
252b5132 3539 test -z "$ac_dir" && ac_dir=.
a74801ba 3540 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
f9c19112 3541 lt_cv_path_LD="$ac_dir/$ac_prog"
252b5132 3542 # Check to see if the program is GNU ld. I'd rather use --version,
d7040cdb 3543 # but apparently some variants of GNU ld only accept -v.
252b5132 3544 # Break only if it was the GNU/non-GNU ld that we prefer.
d7040cdb
SE
3545 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3546 *GNU* | *'with BFD'*)
252b5132 3547 test "$with_gnu_ld" != no && break
d7040cdb
SE
3548 ;;
3549 *)
bedf545c 3550 test "$with_gnu_ld" != yes && break
d7040cdb
SE
3551 ;;
3552 esac
252b5132
RH
3553 fi
3554 done
d7040cdb 3555 IFS="$lt_save_ifs"
252b5132 3556else
f9c19112 3557 lt_cv_path_LD="$LD" # Let the user override the test with a path.
252b5132
RH
3558fi
3559fi
3560
f9c19112 3561LD="$lt_cv_path_LD"
252b5132 3562if test -n "$LD"; then
13b2be9c
DJ
3563 echo "$as_me:$LINENO: result: $LD" >&5
3564echo "${ECHO_T}$LD" >&6
252b5132 3565else
13b2be9c
DJ
3566 echo "$as_me:$LINENO: result: no" >&5
3567echo "${ECHO_T}no" >&6
252b5132 3568fi
13b2be9c
DJ
3569test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3570echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3571 { (exit 1); exit 1; }; }
3572echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3573echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3574if test "${lt_cv_prog_gnu_ld+set}" = set; then
3575 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3576else
d7040cdb
SE
3577 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3578case `$LD -v 2>&1 </dev/null` in
3579*GNU* | *'with BFD'*)
f9c19112 3580 lt_cv_prog_gnu_ld=yes
d7040cdb
SE
3581 ;;
3582*)
f9c19112 3583 lt_cv_prog_gnu_ld=no
d7040cdb
SE
3584 ;;
3585esac
252b5132 3586fi
13b2be9c
DJ
3587echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3588echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
f9c19112 3589with_gnu_ld=$lt_cv_prog_gnu_ld
ac48eca1 3590
d6d788bd 3591
252b5132 3592
d7040cdb
SE
3593
3594
3595
3596
3597
3598
3599
3600echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
3601echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
13b2be9c
DJ
3602if test "${lt_cv_path_NM+set}" = set; then
3603 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3604else
3605 if test -n "$NM"; then
3606 # Let the user override the test.
f9c19112 3607 lt_cv_path_NM="$NM"
252b5132 3608else
d7040cdb
SE
3609 lt_nm_to_check="${ac_tool_prefix}nm"
3610 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3611 lt_nm_to_check="$lt_nm_to_check nm"
3612 fi
3613 for lt_tmp_nm in $lt_nm_to_check; do
3614 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3615 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3616 IFS="$lt_save_ifs"
3617 test -z "$ac_dir" && ac_dir=.
3618 tmp_nm="$ac_dir/$lt_tmp_nm"
3619 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3620 # Check to see if the nm accepts a BSD-compat flag.
3621 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3622 # nm: unknown option "B" ignored
3623 # Tru64's nm complains that /dev/null is an invalid object file
3624 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3625 */dev/null* | *'Invalid file or object type'*)
3626 lt_cv_path_NM="$tmp_nm -B"
3627 break
3628 ;;
3629 *)
3630 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3631 */dev/null*)
3632 lt_cv_path_NM="$tmp_nm -p"
3633 break
3634 ;;
3635 *)
3636 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3637 continue # so that we can try to find one that supports BSD flags
3638 ;;
3639 esac
3640 ;;
3641 esac
252b5132 3642 fi
d7040cdb
SE
3643 done
3644 IFS="$lt_save_ifs"
252b5132 3645 done
d7040cdb 3646 : ${lt_cv_path_NM=no}
252b5132
RH
3647fi
3648fi
d7040cdb
SE
3649echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3650echo "${ECHO_T}$lt_cv_path_NM" >&6
3651if test "$lt_cv_path_NM" != "no"; then
3652 NM="$lt_cv_path_NM"
252b5132 3653else
d7040cdb
SE
3654 # Didn't find any BSD compatible name lister, look for dumpbin.
3655 if test -n "$ac_tool_prefix"; then
3656 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3657 do
3658 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3659set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3660echo "$as_me:$LINENO: checking for $ac_word" >&5
3661echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3662if test "${ac_cv_prog_DUMPBIN+set}" = set; then
13b2be9c 3663 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3664else
d7040cdb
SE
3665 if test -n "$DUMPBIN"; then
3666 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3667else
3668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3669for as_dir in $PATH
3670do
3671 IFS=$as_save_IFS
3672 test -z "$as_dir" && as_dir=.
3673 for ac_exec_ext in '' $ac_executable_extensions; do
3674 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3675 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3677 break 2
3678 fi
3679done
3680done
ac48eca1 3681
d7040cdb
SE
3682fi
3683fi
3684DUMPBIN=$ac_cv_prog_DUMPBIN
3685if test -n "$DUMPBIN"; then
3686 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
3687echo "${ECHO_T}$DUMPBIN" >&6
3688else
3689 echo "$as_me:$LINENO: result: no" >&5
3690echo "${ECHO_T}no" >&6
3691fi
f9c19112 3692
d7040cdb
SE
3693 test -n "$DUMPBIN" && break
3694 done
3695fi
3696if test -z "$DUMPBIN"; then
3697 ac_ct_DUMPBIN=$DUMPBIN
3698 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3699do
3700 # Extract the first word of "$ac_prog", so it can be a program name with args.
3701set dummy $ac_prog; ac_word=$2
3702echo "$as_me:$LINENO: checking for $ac_word" >&5
3703echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3704if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
3705 echo $ECHO_N "(cached) $ECHO_C" >&6
3706else
3707 if test -n "$ac_ct_DUMPBIN"; then
3708 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3709else
3710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3711for as_dir in $PATH
3712do
3713 IFS=$as_save_IFS
3714 test -z "$as_dir" && as_dir=.
3715 for ac_exec_ext in '' $ac_executable_extensions; do
3716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3717 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3719 break 2
ac48eca1 3720 fi
d7040cdb
SE
3721done
3722done
ac48eca1 3723
d7040cdb
SE
3724fi
3725fi
3726ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3727if test -n "$ac_ct_DUMPBIN"; then
3728 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
3729echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
3730else
3731 echo "$as_me:$LINENO: result: no" >&5
3732echo "${ECHO_T}no" >&6
3733fi
ac48eca1 3734
d7040cdb
SE
3735 test -n "$ac_ct_DUMPBIN" && break
3736done
3737test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
ac48eca1 3738
d7040cdb
SE
3739 DUMPBIN=$ac_ct_DUMPBIN
3740fi
ac48eca1 3741
ac48eca1 3742
d7040cdb
SE
3743 if test "$DUMPBIN" != ":"; then
3744 NM="$DUMPBIN"
ac48eca1 3745 fi
d7040cdb
SE
3746fi
3747test -z "$NM" && NM=nm
ac48eca1 3748
ac48eca1 3749
ac48eca1 3750
ac48eca1 3751
6be7c12c 3752
ac48eca1 3753
d7040cdb
SE
3754echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
3755echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
3756if test "${lt_cv_nm_interface+set}" = set; then
3757 echo $ECHO_N "(cached) $ECHO_C" >&6
3758else
3759 lt_cv_nm_interface="BSD nm"
3760 echo "int some_variable = 0;" > conftest.$ac_ext
3761 (eval echo "\"\$as_me:3761: $ac_compile\"" >&5)
3762 (eval "$ac_compile" 2>conftest.err)
3763 cat conftest.err >&5
3764 (eval echo "\"\$as_me:3764: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3765 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3766 cat conftest.err >&5
3767 (eval echo "\"\$as_me:3767: output\"" >&5)
3768 cat conftest.out >&5
3769 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3770 lt_cv_nm_interface="MS dumpbin"
3771 fi
3772 rm -f conftest*
ac48eca1 3773fi
d7040cdb
SE
3774echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
3775echo "${ECHO_T}$lt_cv_nm_interface" >&6
c8615825 3776
d7040cdb
SE
3777echo "$as_me:$LINENO: checking whether ln -s works" >&5
3778echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3779LN_S=$as_ln_s
3780if test "$LN_S" = "ln -s"; then
3781 echo "$as_me:$LINENO: result: yes" >&5
3782echo "${ECHO_T}yes" >&6
3783else
3784 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3785echo "${ECHO_T}no, using $LN_S" >&6
3786fi
ac48eca1 3787
d70c5fc7
NC
3788# find the maximum length of command line arguments
3789echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3790echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3791if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3792 echo $ECHO_N "(cached) $ECHO_C" >&6
3793else
3794 i=0
3795 teststring="ABCD"
3796
3797 case $build_os in
3798 msdosdjgpp*)
3799 # On DJGPP, this test can blow up pretty badly due to problems in libc
3800 # (any single argument exceeding 2000 bytes causes a buffer overrun
3801 # during glob expansion). Even if it were fixed, the result of this
3802 # check would be larger than it should be.
3803 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3804 ;;
3805
d7040cdb
SE
3806 gnu*)
3807 # Under GNU Hurd, this test is not required because there is
3808 # no limit to the length of command line arguments.
3809 # Libtool will interpret -1 as no limit whatsoever
3810 lt_cv_sys_max_cmd_len=-1;
3811 ;;
3812
d70c5fc7
NC
3813 cygwin* | mingw*)
3814 # On Win9x/ME, this test blows up -- it succeeds, but takes
3815 # about 5 minutes as the teststring grows exponentially.
3816 # Worse, since 9x/ME are not pre-emptively multitasking,
3817 # you end up with a "frozen" computer, even though with patience
3818 # the test eventually succeeds (with a max line length of 256k).
3819 # Instead, let's just punt: use the minimum linelength reported by
3820 # all of the supported platforms: 8192 (on NT/2K/XP).
3821 lt_cv_sys_max_cmd_len=8192;
3822 ;;
3823
3824 amigaos*)
3825 # On AmigaOS with pdksh, this test takes hours, literally.
3826 # So we just punt and use a minimum line length of 8192.
3827 lt_cv_sys_max_cmd_len=8192;
3828 ;;
3829
3830 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3831 # This has been around since 386BSD, at least. Likely further.
3832 if test -x /sbin/sysctl; then
3833 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3834 elif test -x /usr/sbin/sysctl; then
3835 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3836 else
d7040cdb 3837 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
d70c5fc7
NC
3838 fi
3839 # And add a safety zone
3840 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3841 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3842 ;;
d7040cdb
SE
3843
3844 interix*)
3845 # We know the value 262144 and hardcode it with a safety zone (like BSD)
3846 lt_cv_sys_max_cmd_len=196608
3847 ;;
3848
3849 osf*)
3850 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3851 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3852 # nice to cause kernel panics so lets avoid the loop below.
3853 # First set a reasonable default.
3854 lt_cv_sys_max_cmd_len=16384
3855 #
3856 if test -x /sbin/sysconfig; then
3857 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
3858 *1*) lt_cv_sys_max_cmd_len=-1 ;;
3859 esac
3860 fi
3861 ;;
3862 sco3.2v5*)
3863 lt_cv_sys_max_cmd_len=102400
3864 ;;
3865 sysv5* | sco5v6* | sysv4.2uw2*)
3866 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
3867 if test -n "$kargmax"; then
3868 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
3869 else
3870 lt_cv_sys_max_cmd_len=32768
3871 fi
3872 ;;
3873 *)
79887925
L
3874 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
3875 if test -n $lt_cv_sys_max_cmd_len; then
3876 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3877 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3878 else
3879 # Make teststring a little bigger before we do anything with it.
3880 # a 1K string should be a reasonable start.
3881 for i in 1 2 3 4 5 6 7 8 ; do
3882 teststring=$teststring$teststring
3883 done
3884 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
3885 # If test is not a shell built-in, we'll probably end up computing a
3886 # maximum length that is only half of the actual maximum length, but
3887 # we can't tell.
3888 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
3889 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
3890 test $i != 17 # 1/2 MB should be enough
3891 do
3892 i=`expr $i + 1`
3893 teststring=$teststring$teststring
3894 done
3895 # Only check the string length outside the loop.
3896 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
3897 teststring=
3898 # Add a significant safety factor because C++ compilers can tack on
3899 # massive amounts of additional arguments before passing them to the
3900 # linker. It appears as though 1/2 is a usable value.
3901 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
3902 fi
d7040cdb 3903 ;;
d70c5fc7
NC
3904 esac
3905
3906fi
3907
d7040cdb 3908if test -n $lt_cv_sys_max_cmd_len ; then
d70c5fc7
NC
3909 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3910echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3911else
3912 echo "$as_me:$LINENO: result: none" >&5
3913echo "${ECHO_T}none" >&6
3914fi
d7040cdb 3915max_cmd_len=$lt_cv_sys_max_cmd_len
d70c5fc7
NC
3916
3917
ac48eca1 3918
ac48eca1 3919
ac48eca1 3920
d7040cdb
SE
3921
3922
3923: ${CP="cp -f"}
3924: ${MV="mv -f"}
3925: ${RM="rm -f"}
3926
3927echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
3928echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
3929# Try some XSI features
3930xsi_shell=no
3931( _lt_dummy="a/b/c"
3932 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
3933 = c,a/b,, ) >/dev/null 2>&1 \
3934 && xsi_shell=yes
3935echo "$as_me:$LINENO: result: $xsi_shell" >&5
3936echo "${ECHO_T}$xsi_shell" >&6
3937
3938
3939echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
3940echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
3941lt_shell_append=no
3942( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
3943 >/dev/null 2>&1 \
3944 && lt_shell_append=yes
3945echo "$as_me:$LINENO: result: $lt_shell_append" >&5
3946echo "${ECHO_T}$lt_shell_append" >&6
3947
3948
3949if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3950 lt_unset=unset
ac48eca1 3951else
d7040cdb 3952 lt_unset=false
ac48eca1
AO
3953fi
3954
d7040cdb
SE
3955
3956
3957
3958
3959# test EBCDIC or ASCII
3960case `echo X|tr X '\101'` in
3961 A) # ASCII based system
3962 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
3963 lt_SP2NL='tr \040 \012'
3964 lt_NL2SP='tr \015\012 \040\040'
3965 ;;
3966 *) # EBCDIC based system
3967 lt_SP2NL='tr \100 \n'
3968 lt_NL2SP='tr \r\n \100\100'
3969 ;;
3970esac
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3981echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3982if test "${lt_cv_ld_reload_flag+set}" = set; then
13b2be9c 3983 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3984else
d7040cdb
SE
3985 lt_cv_ld_reload_flag='-r'
3986fi
3987echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3988echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3989reload_flag=$lt_cv_ld_reload_flag
3990case $reload_flag in
3991"" | " "*) ;;
3992*) reload_flag=" $reload_flag" ;;
3993esac
3994reload_cmds='$LD$reload_flag -o $output$reload_objs'
3995case $host_os in
3996 darwin*)
3997 if test "$GCC" = yes; then
3998 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3999 else
4000 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4001 fi
4002 ;;
4003esac
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4015echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4016if test "${lt_cv_deplibs_check_method+set}" = set; then
4017 echo $ECHO_N "(cached) $ECHO_C" >&6
4018else
4019 lt_cv_file_magic_cmd='$MAGIC_CMD'
4020lt_cv_file_magic_test_file=
4021lt_cv_deplibs_check_method='unknown'
4022# Need to set the preceding variable on all platforms that support
4023# interlibrary dependencies.
4024# 'none' -- dependencies not supported.
4025# `unknown' -- same as none, but documents that we really don't know.
4026# 'pass_all' -- all dependencies passed with no checks.
4027# 'test_compile' -- check by making test program.
4028# 'file_magic [[regex]]' -- check by looking for files in library path
4029# which responds to the $file_magic_cmd with a given extended regex.
4030# If you have `file' or equivalent on your system and you're not sure
4031# whether `pass_all' will *always* work, you probably want this one.
4032
4033case $host_os in
4034aix4* | aix5*)
4035 lt_cv_deplibs_check_method=pass_all
4036 ;;
4037
4038beos*)
4039 lt_cv_deplibs_check_method=pass_all
ac48eca1 4040 ;;
d7040cdb
SE
4041
4042bsdi[45]*)
4043 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4044 lt_cv_file_magic_cmd='/usr/bin/file -L'
4045 lt_cv_file_magic_test_file=/shlib/libc.so
4046 ;;
4047
4048cygwin*)
4049 # func_win32_libid is a shell function defined in ltmain.sh
4050 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4051 lt_cv_file_magic_cmd='func_win32_libid'
4052 ;;
4053
4054mingw* | pw32*)
4055 # Base MSYS/MinGW do not provide the 'file' command needed by
4056 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4057 # unless we find 'file', for example because we are cross-compiling.
4058 if ( file / ) >/dev/null 2>&1; then
4059 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4060 lt_cv_file_magic_cmd='func_win32_libid'
4061 else
4062 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4063 lt_cv_file_magic_cmd='$OBJDUMP -f'
4064 fi
4065 ;;
4066
4067darwin* | rhapsody*)
4068 lt_cv_deplibs_check_method=pass_all
4069 ;;
4070
4071freebsd* | dragonfly*)
4072 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4073 case $host_cpu in
4074 i*86 )
4075 # Not sure whether the presence of OpenBSD here was a mistake.
4076 # Let's accept both of them until this is cleared up.
4077 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4078 lt_cv_file_magic_cmd=/usr/bin/file
4079 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4080 ;;
4081 esac
4082 else
4083 lt_cv_deplibs_check_method=pass_all
4084 fi
4085 ;;
4086
4087gnu*)
4088 lt_cv_deplibs_check_method=pass_all
ac48eca1 4089 ;;
d7040cdb
SE
4090
4091hpux10.20* | hpux11*)
4092 lt_cv_file_magic_cmd=/usr/bin/file
4093 case $host_cpu in
4094 ia64*)
4095 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4096 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4097 ;;
4098 hppa*64*)
4099 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]'
4100 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4101 ;;
ac48eca1 4102 *)
d7040cdb
SE
4103 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4104 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4105 ;;
4106 esac
4107 ;;
ac48eca1 4108
d7040cdb
SE
4109interix[3-9]*)
4110 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4111 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4112 ;;
ac48eca1 4113
d7040cdb
SE
4114irix5* | irix6* | nonstopux*)
4115 case $LD in
4116 *-32|*"-32 ") libmagic=32-bit;;
4117 *-n32|*"-n32 ") libmagic=N32;;
4118 *-64|*"-64 ") libmagic=64-bit;;
4119 *) libmagic=never-match;;
4120 esac
4121 lt_cv_deplibs_check_method=pass_all
ac48eca1 4122 ;;
ac48eca1 4123
d7040cdb
SE
4124# This must be Linux ELF.
4125linux* | k*bsd*-gnu)
4126 lt_cv_deplibs_check_method=pass_all
4127 ;;
ac48eca1 4128
d7040cdb
SE
4129netbsd*)
4130 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4131 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
ac48eca1 4132 else
d7040cdb 4133 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
ac48eca1 4134 fi
d7040cdb
SE
4135 ;;
4136
4137newos6*)
4138 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4139 lt_cv_file_magic_cmd=/usr/bin/file
4140 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4141 ;;
4142
4143*nto* | *qnx*)
4144 lt_cv_deplibs_check_method=pass_all
4145 ;;
ac48eca1 4146
d7040cdb
SE
4147openbsd*)
4148 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4149 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4150 else
4151 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
ac48eca1
AO
4152 fi
4153 ;;
d7040cdb
SE
4154
4155osf3* | osf4* | osf5*)
4156 lt_cv_deplibs_check_method=pass_all
4157 ;;
4158
4159rdos*)
4160 lt_cv_deplibs_check_method=pass_all
4161 ;;
4162
4163solaris*)
4164 lt_cv_deplibs_check_method=pass_all
4165 ;;
4166
4167sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4168 lt_cv_deplibs_check_method=pass_all
4169 ;;
4170
4171sysv4 | sysv4.3*)
4172 case $host_vendor in
4173 motorola)
4174 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]'
4175 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4176 ;;
4177 ncr)
4178 lt_cv_deplibs_check_method=pass_all
4179 ;;
4180 sequent)
4181 lt_cv_file_magic_cmd='/bin/file'
4182 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4183 ;;
4184 sni)
4185 lt_cv_file_magic_cmd='/bin/file'
4186 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4187 lt_cv_file_magic_test_file=/lib/libc.so
4188 ;;
4189 siemens)
4190 lt_cv_deplibs_check_method=pass_all
4191 ;;
4192 pc)
4193 lt_cv_deplibs_check_method=pass_all
4194 ;;
4195 esac
4196 ;;
4197
4198tpf*)
4199 lt_cv_deplibs_check_method=pass_all
4200 ;;
ac48eca1
AO
4201esac
4202
d7040cdb
SE
4203fi
4204echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4205echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4206file_magic_cmd=$lt_cv_file_magic_cmd
4207deplibs_check_method=$lt_cv_deplibs_check_method
4208test -z "$deplibs_check_method" && deplibs_check_method=unknown
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
13b2be9c 4221if test -n "$ac_tool_prefix"; then
d7040cdb
SE
4222 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4223set dummy ${ac_tool_prefix}ar; ac_word=$2
13b2be9c
DJ
4224echo "$as_me:$LINENO: checking for $ac_word" >&5
4225echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d7040cdb 4226if test "${ac_cv_prog_AR+set}" = set; then
13b2be9c 4227 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 4228else
d7040cdb
SE
4229 if test -n "$AR"; then
4230 ac_cv_prog_AR="$AR" # Let the user override the test.
ac48eca1 4231else
13b2be9c
DJ
4232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4233for as_dir in $PATH
4234do
4235 IFS=$as_save_IFS
4236 test -z "$as_dir" && as_dir=.
4237 for ac_exec_ext in '' $ac_executable_extensions; do
4238 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 4239 ac_cv_prog_AR="${ac_tool_prefix}ar"
13b2be9c
DJ
4240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4241 break 2
4242 fi
4243done
4244done
4245
ac48eca1
AO
4246fi
4247fi
d7040cdb
SE
4248AR=$ac_cv_prog_AR
4249if test -n "$AR"; then
4250 echo "$as_me:$LINENO: result: $AR" >&5
4251echo "${ECHO_T}$AR" >&6
ac48eca1 4252else
13b2be9c
DJ
4253 echo "$as_me:$LINENO: result: no" >&5
4254echo "${ECHO_T}no" >&6
ac48eca1
AO
4255fi
4256
13b2be9c 4257fi
d7040cdb
SE
4258if test -z "$ac_cv_prog_AR"; then
4259 ac_ct_AR=$AR
4260 # Extract the first word of "ar", so it can be a program name with args.
4261set dummy ar; ac_word=$2
13b2be9c
DJ
4262echo "$as_me:$LINENO: checking for $ac_word" >&5
4263echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d7040cdb 4264if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13b2be9c 4265 echo $ECHO_N "(cached) $ECHO_C" >&6
d6d788bd 4266else
d7040cdb
SE
4267 if test -n "$ac_ct_AR"; then
4268 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
d6d788bd 4269else
13b2be9c
DJ
4270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4271for as_dir in $PATH
4272do
4273 IFS=$as_save_IFS
4274 test -z "$as_dir" && as_dir=.
4275 for ac_exec_ext in '' $ac_executable_extensions; do
4276 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 4277 ac_cv_prog_ac_ct_AR="ar"
13b2be9c
DJ
4278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4279 break 2
4280 fi
4281done
4282done
4283
d7040cdb 4284 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
ac48eca1
AO
4285fi
4286fi
d7040cdb
SE
4287ac_ct_AR=$ac_cv_prog_ac_ct_AR
4288if test -n "$ac_ct_AR"; then
4289 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4290echo "${ECHO_T}$ac_ct_AR" >&6
ac48eca1 4291else
13b2be9c
DJ
4292 echo "$as_me:$LINENO: result: no" >&5
4293echo "${ECHO_T}no" >&6
ac48eca1
AO
4294fi
4295
d7040cdb 4296 AR=$ac_ct_AR
ac48eca1 4297else
d7040cdb 4298 AR="$ac_cv_prog_AR"
ac48eca1
AO
4299fi
4300
d7040cdb
SE
4301test -z "$AR" && AR=ar
4302test -z "$AR_FLAGS" && AR_FLAGS=cru
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
13b2be9c
DJ
4314if test -n "$ac_tool_prefix"; then
4315 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
ac48eca1 4316set dummy ${ac_tool_prefix}strip; ac_word=$2
13b2be9c
DJ
4317echo "$as_me:$LINENO: checking for $ac_word" >&5
4318echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4319if test "${ac_cv_prog_STRIP+set}" = set; then
4320 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
4321else
4322 if test -n "$STRIP"; then
4323 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4324else
13b2be9c
DJ
4325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4326for as_dir in $PATH
4327do
4328 IFS=$as_save_IFS
4329 test -z "$as_dir" && as_dir=.
4330 for ac_exec_ext in '' $ac_executable_extensions; do
4331 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4332 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4334 break 2
4335 fi
4336done
4337done
4338
ac48eca1
AO
4339fi
4340fi
13b2be9c 4341STRIP=$ac_cv_prog_STRIP
ac48eca1 4342if test -n "$STRIP"; then
13b2be9c
DJ
4343 echo "$as_me:$LINENO: result: $STRIP" >&5
4344echo "${ECHO_T}$STRIP" >&6
ac48eca1 4345else
13b2be9c
DJ
4346 echo "$as_me:$LINENO: result: no" >&5
4347echo "${ECHO_T}no" >&6
ac48eca1
AO
4348fi
4349
13b2be9c 4350fi
ac48eca1 4351if test -z "$ac_cv_prog_STRIP"; then
13b2be9c 4352 ac_ct_STRIP=$STRIP
ac48eca1
AO
4353 # Extract the first word of "strip", so it can be a program name with args.
4354set dummy strip; ac_word=$2
13b2be9c
DJ
4355echo "$as_me:$LINENO: checking for $ac_word" >&5
4356echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4357if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4358 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 4359else
13b2be9c
DJ
4360 if test -n "$ac_ct_STRIP"; then
4361 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
ac48eca1 4362else
13b2be9c
DJ
4363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4364for as_dir in $PATH
4365do
4366 IFS=$as_save_IFS
4367 test -z "$as_dir" && as_dir=.
4368 for ac_exec_ext in '' $ac_executable_extensions; do
4369 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4370 ac_cv_prog_ac_ct_STRIP="strip"
4371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4372 break 2
4373 fi
4374done
4375done
4376
4377 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
d6d788bd
L
4378fi
4379fi
13b2be9c
DJ
4380ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4381if test -n "$ac_ct_STRIP"; then
4382 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4383echo "${ECHO_T}$ac_ct_STRIP" >&6
d6d788bd 4384else
13b2be9c
DJ
4385 echo "$as_me:$LINENO: result: no" >&5
4386echo "${ECHO_T}no" >&6
d6d788bd
L
4387fi
4388
13b2be9c 4389 STRIP=$ac_ct_STRIP
d6d788bd 4390else
13b2be9c 4391 STRIP="$ac_cv_prog_STRIP"
d6d788bd
L
4392fi
4393
d7040cdb 4394test -z "$STRIP" && STRIP=:
252b5132 4395
252b5132 4396
d6d788bd 4397
a74801ba 4398
a74801ba 4399
13b2be9c 4400
d7040cdb
SE
4401if test -n "$ac_tool_prefix"; then
4402 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4403set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4404echo "$as_me:$LINENO: checking for $ac_word" >&5
4405echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4406if test "${ac_cv_prog_RANLIB+set}" = set; then
4407 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 4408else
d7040cdb
SE
4409 if test -n "$RANLIB"; then
4410 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4411else
4412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4413for as_dir in $PATH
4414do
4415 IFS=$as_save_IFS
4416 test -z "$as_dir" && as_dir=.
4417 for ac_exec_ext in '' $ac_executable_extensions; do
4418 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4419 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4421 break 2
252b5132 4422 fi
d7040cdb
SE
4423done
4424done
252b5132 4425
d7040cdb
SE
4426fi
4427fi
4428RANLIB=$ac_cv_prog_RANLIB
4429if test -n "$RANLIB"; then
4430 echo "$as_me:$LINENO: result: $RANLIB" >&5
4431echo "${ECHO_T}$RANLIB" >&6
4432else
4433 echo "$as_me:$LINENO: result: no" >&5
4434echo "${ECHO_T}no" >&6
4435fi
4867be41 4436
d7040cdb
SE
4437fi
4438if test -z "$ac_cv_prog_RANLIB"; then
4439 ac_ct_RANLIB=$RANLIB
4440 # Extract the first word of "ranlib", so it can be a program name with args.
4441set dummy ranlib; ac_word=$2
4442echo "$as_me:$LINENO: checking for $ac_word" >&5
4443echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4444if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4445 echo $ECHO_N "(cached) $ECHO_C" >&6
4446else
4447 if test -n "$ac_ct_RANLIB"; then
4448 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4449else
4450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4451for as_dir in $PATH
4452do
4453 IFS=$as_save_IFS
4454 test -z "$as_dir" && as_dir=.
4455 for ac_exec_ext in '' $ac_executable_extensions; do
4456 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4457 ac_cv_prog_ac_ct_RANLIB="ranlib"
4458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4459 break 2
d70c5fc7 4460 fi
d7040cdb
SE
4461done
4462done
d70c5fc7 4463
d7040cdb
SE
4464 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4465fi
4466fi
4467ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4468if test -n "$ac_ct_RANLIB"; then
4469 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4470echo "${ECHO_T}$ac_ct_RANLIB" >&6
bedf545c 4471else
d7040cdb
SE
4472 echo "$as_me:$LINENO: result: no" >&5
4473echo "${ECHO_T}no" >&6
4474fi
13b2be9c 4475
d7040cdb
SE
4476 RANLIB=$ac_ct_RANLIB
4477else
4478 RANLIB="$ac_cv_prog_RANLIB"
4479fi
4480
4481test -z "$RANLIB" && RANLIB=:
13b2be9c 4482
13b2be9c 4483
bedf545c 4484
6840198f 4485
13b2be9c 4486
ac48eca1 4487
d7040cdb
SE
4488# Determine commands to create old-style static archives.
4489old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4490old_postinstall_cmds='chmod 644 $oldlib'
4491old_postuninstall_cmds=
4492
4493if test -n "$RANLIB"; then
4494 case $host_os in
4495 openbsd*)
4496 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4497 ;;
4498 *)
4499 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4500 ;;
4501 esac
4502 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
bedf545c 4503fi
252b5132 4504
d6d788bd 4505
252b5132 4506
d6d788bd 4507
13b2be9c 4508
13b2be9c 4509
bedf545c 4510
252b5132 4511
bedf545c 4512
d6d788bd 4513
bedf545c 4514
bedf545c 4515
252b5132 4516
d6d788bd 4517
13b2be9c
DJ
4518
4519
4520
4521
d6d788bd 4522
c43a438d 4523
c43a438d 4524
c43a438d 4525
252b5132 4526
ad22bfe8 4527
1ad12f97 4528
1ad12f97 4529
9e9b66a9 4530
1ad12f97 4531
a541e3ce 4532
9e9b66a9 4533
a2d91340 4534
d6d788bd 4535
9e9b66a9
AM
4536
4537
d7040cdb
SE
4538# If no C compiler was specified, use CC.
4539LTCC=${LTCC-"$CC"}
9e9b66a9 4540
d7040cdb
SE
4541# If no C compiler flags were specified, use CFLAGS.
4542LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d6d788bd 4543
d7040cdb
SE
4544# Allow CC to be a program name with arguments.
4545compiler=$CC
252b5132 4546
13b2be9c 4547
d7040cdb
SE
4548# Check for command to grab the raw symbol name followed by C symbol from nm.
4549echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4550echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
4551if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4552 echo $ECHO_N "(cached) $ECHO_C" >&6
4553else
13b2be9c 4554
d7040cdb
SE
4555# These are sane defaults that work on at least a few old systems.
4556# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4557
4558# Character class describing NM global symbol codes.
4559symcode='[BCDEGRST]'
4560
4561# Regexp to match symbols that can be accessed directly from C.
4562sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4563
4564# Define system-specific variables.
4565case $host_os in
4566aix*)
4567 symcode='[BCDT]'
4568 ;;
4569cygwin* | mingw* | pw32*)
4570 symcode='[ABCDGISTW]'
4571 ;;
4572hpux*)
4573 if test "$host_cpu" = ia64; then
4574 symcode='[ABCDEGRST]'
4575 fi
4576 ;;
4577irix* | nonstopux*)
4578 symcode='[BCDEGRST]'
4579 ;;
4580osf*)
4581 symcode='[BCDEGQRST]'
4582 ;;
4583solaris*)
4584 symcode='[BDRT]'
4585 ;;
4586sco3.2v5*)
4587 symcode='[DT]'
4588 ;;
4589sysv4.2uw2*)
4590 symcode='[DT]'
4591 ;;
4592sysv5* | sco5v6* | unixware* | OpenUNIX*)
4593 symcode='[ABDT]'
4594 ;;
4595sysv4)
4596 symcode='[DFNSTU]'
4597 ;;
76a27922
ILT
4598esac
4599
d7040cdb
SE
4600# If we're using GNU nm, then use its standard symbol codes.
4601case `$NM -V 2>&1` in
4602*GNU* | *'with BFD'*)
4603 symcode='[ABCDGIRSTW]' ;;
4604esac
d6d788bd 4605
d7040cdb
SE
4606# Transform an extracted symbol line into a proper C declaration.
4607# Some systems (esp. on ia64) link data and code symbols differently,
4608# so use this general approach.
4609lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
44f2f9d2 4610
d7040cdb
SE
4611# Transform an extracted symbol line into symbol name and symbol address
4612lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
44f2f9d2 4613
d7040cdb
SE
4614# Handle CRLF in mingw tool chain
4615opt_cr=
4616case $build_os in
4617mingw*)
4618 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4619 ;;
4620esac
4621
4622# Try without a prefix underscore, then with it.
4623for ac_symprfx in "" "_"; do
4624
4625 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4626 symxfrm="\\1 $ac_symprfx\\2 \\2"
4627
4628 # Write the raw and C identifiers.
4629 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4630 # Fake it for dumpbin and say T for any non-static function
4631 # and D for any global variable.
4632 # Also find C++ and __fastcall symbols from MSVC++,
4633 # which start with @ or ?.
4634 lt_cv_sys_global_symbol_pipe="$AWK '"\
4635" {last_section=section; section=\$ 3};"\
4636" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4637" \$ 0!~/External *\|/{next};"\
4638" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4639" {if(hide[section]) next};"\
4640" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4641" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4642" s[1]~/^[@?]/{print s[1], s[1]; next};"\
4643" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4644" ' prfx=^$ac_symprfx"
4645 else
4646 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4647 fi
4648
4649 # Check to see that the pipe works correctly.
4650 pipe_works=no
4651
4652 rm -f conftest*
4653 cat > conftest.$ac_ext <<_LT_EOF
4654#ifdef __cplusplus
4655extern "C" {
4656#endif
4657char nm_test_var;
4658void nm_test_func(void);
4659void nm_test_func(void){}
4660#ifdef __cplusplus
44f2f9d2 4661}
d7040cdb
SE
4662#endif
4663int main(){nm_test_var='a';nm_test_func();return(0);}
4664_LT_EOF
4665
4666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4667 (eval $ac_compile) 2>&5
44f2f9d2
AM
4668 ac_status=$?
4669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
4670 (exit $ac_status); }; then
4671 # Now try to grab the symbols.
4672 nlist=conftest.nm
4673 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4674 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
44f2f9d2
AM
4675 ac_status=$?
4676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
4677 (exit $ac_status); } && test -s "$nlist"; then
4678 # Try sorting and uniquifying the output.
4679 if sort "$nlist" | uniq > "$nlist"T; then
4680 mv -f "$nlist"T "$nlist"
4681 else
4682 rm -f "$nlist"T
4683 fi
44f2f9d2 4684
d7040cdb
SE
4685 # Make sure that we snagged all the symbols we need.
4686 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4687 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4688 cat <<_LT_EOF > conftest.$ac_ext
4689#ifdef __cplusplus
4690extern "C" {
4691#endif
4692
4693_LT_EOF
4694 # Now generate the symbol file.
4695 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4696
4697 cat <<_LT_EOF >> conftest.$ac_ext
4698
4699/* The mapping between symbol names and symbols. */
4700const struct {
4701 const char *name;
4702 void *address;
4703}
4704lt__PROGRAM__LTX_preloaded_symbols[] =
44f2f9d2 4705{
d7040cdb
SE
4706 { "@PROGRAM@", (void *) 0 },
4707_LT_EOF
4708 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4709 cat <<\_LT_EOF >> conftest.$ac_ext
4710 {0, (void *) 0}
4711};
4712
4713/* This works around a problem in FreeBSD linker */
4714#ifdef FREEBSD_WORKAROUND
4715static const void *lt_preloaded_setup() {
4716 return lt__PROGRAM__LTX_preloaded_symbols;
4717}
44f2f9d2
AM
4718#endif
4719
d7040cdb 4720#ifdef __cplusplus
44f2f9d2 4721}
d7040cdb
SE
4722#endif
4723_LT_EOF
4724 # Now try linking the two files.
4725 mv conftest.$ac_objext conftstm.$ac_objext
4726 lt_save_LIBS="$LIBS"
4727 lt_save_CFLAGS="$CFLAGS"
4728 LIBS="conftstm.$ac_objext"
4729 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4731 (eval $ac_link) 2>&5
44f2f9d2
AM
4732 ac_status=$?
4733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
4734 (exit $ac_status); } && test -s conftest${ac_exeext}; then
4735 pipe_works=yes
4736 fi
4737 LIBS="$lt_save_LIBS"
4738 CFLAGS="$lt_save_CFLAGS"
4739 else
4740 echo "cannot find nm_test_func in $nlist" >&5
4741 fi
4742 else
4743 echo "cannot find nm_test_var in $nlist" >&5
4744 fi
4745 else
4746 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4747 fi
4748 else
4749 echo "$progname: failed program was:" >&5
4750 cat conftest.$ac_ext >&5
4751 fi
4752 rm -f conftest* conftst*
4753
4754 # Do not use the global_symbol_pipe unless it works.
4755 if test "$pipe_works" = yes; then
4756 break
4757 else
4758 lt_cv_sys_global_symbol_pipe=
4759 fi
4760done
44f2f9d2 4761
44f2f9d2 4762fi
d7040cdb
SE
4763
4764if test -z "$lt_cv_sys_global_symbol_pipe"; then
4765 lt_cv_sys_global_symbol_to_cdecl=
4766fi
4767if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4768 echo "$as_me:$LINENO: result: failed" >&5
4769echo "${ECHO_T}failed" >&6
44f2f9d2 4770else
d7040cdb
SE
4771 echo "$as_me:$LINENO: result: ok" >&5
4772echo "${ECHO_T}ok" >&6
4773fi
44f2f9d2 4774
d7040cdb
SE
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4792if test "${enable_libtool_lock+set}" = set; then
4793 enableval="$enable_libtool_lock"
4794
4795fi;
4796test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4797
4798# Some flags need to be propagated to the compiler or linker for good
4799# libtool support.
4800case $host in
4801ia64-*-hpux*)
4802 # Find out which ABI we are using.
4803 echo 'int i;' > conftest.$ac_ext
4804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4805 (eval $ac_compile) 2>&5
4806 ac_status=$?
4807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808 (exit $ac_status); }; then
4809 case `/usr/bin/file conftest.$ac_objext` in
4810 *ELF-32*)
4811 HPUX_IA64_MODE="32"
4812 ;;
4813 *ELF-64*)
4814 HPUX_IA64_MODE="64"
4815 ;;
4816 esac
4817 fi
4818 rm -rf conftest*
4819 ;;
4820*-*-irix6*)
4821 # Find out which ABI we are using.
79887925 4822 echo '#line 4822 "configure"' > conftest.$ac_ext
d7040cdb
SE
4823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4824 (eval $ac_compile) 2>&5
4825 ac_status=$?
4826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827 (exit $ac_status); }; then
4828 if test "$lt_cv_prog_gnu_ld" = yes; then
4829 case `/usr/bin/file conftest.$ac_objext` in
4830 *32-bit*)
4831 LD="${LD-ld} -melf32bsmip"
4832 ;;
4833 *N32*)
4834 LD="${LD-ld} -melf32bmipn32"
4835 ;;
4836 *64-bit*)
4837 LD="${LD-ld} -melf64bmip"
4838 ;;
4839 esac
4840 else
4841 case `/usr/bin/file conftest.$ac_objext` in
4842 *32-bit*)
4843 LD="${LD-ld} -32"
4844 ;;
4845 *N32*)
4846 LD="${LD-ld} -n32"
4847 ;;
4848 *64-bit*)
4849 LD="${LD-ld} -64"
4850 ;;
4851 esac
4852 fi
4853 fi
4854 rm -rf conftest*
4855 ;;
4856
4857x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4858s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
4859 # Find out which ABI we are using.
4860 echo 'int i;' > conftest.$ac_ext
4861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4862 (eval $ac_compile) 2>&5
4863 ac_status=$?
4864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865 (exit $ac_status); }; then
4866 case `/usr/bin/file conftest.o` in
4867 *32-bit*)
4868 case $host in
4869 x86_64-*kfreebsd*-gnu)
4870 LD="${LD-ld} -m elf_i386_fbsd"
4871 ;;
4872 x86_64-*linux*)
4873 LD="${LD-ld} -m elf_i386"
4874 ;;
4875 ppc64-*linux*|powerpc64-*linux*)
4876 LD="${LD-ld} -m elf32ppclinux"
4877 ;;
4878 s390x-*linux*)
4879 LD="${LD-ld} -m elf_s390"
4880 ;;
4881 sparc64-*linux*)
4882 LD="${LD-ld} -m elf32_sparc"
4883 ;;
4884 esac
4885 ;;
4886 *64-bit*)
4887 case $host in
4888 x86_64-*kfreebsd*-gnu)
4889 LD="${LD-ld} -m elf_x86_64_fbsd"
4890 ;;
4891 x86_64-*linux*)
4892 LD="${LD-ld} -m elf_x86_64"
4893 ;;
4894 ppc*-*linux*|powerpc*-*linux*)
4895 LD="${LD-ld} -m elf64ppc"
4896 ;;
4897 s390*-*linux*|s390*-*tpf*)
4898 LD="${LD-ld} -m elf64_s390"
4899 ;;
4900 sparc*-*linux*)
4901 LD="${LD-ld} -m elf64_sparc"
4902 ;;
4903 esac
4904 ;;
4905 esac
4906 fi
4907 rm -rf conftest*
4908 ;;
4909
4910*-*-sco3.2v5*)
4911 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4912 SAVE_CFLAGS="$CFLAGS"
4913 CFLAGS="$CFLAGS -belf"
4914 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4915echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4916if test "${lt_cv_cc_needs_belf+set}" = set; then
4917 echo $ECHO_N "(cached) $ECHO_C" >&6
4918else
4919 ac_ext=c
4920ac_cpp='$CPP $CPPFLAGS'
4921ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4922ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4923ac_compiler_gnu=$ac_cv_c_compiler_gnu
4924
4925 cat >conftest.$ac_ext <<_ACEOF
44f2f9d2
AM
4926/* confdefs.h. */
4927_ACEOF
4928cat confdefs.h >>conftest.$ac_ext
4929cat >>conftest.$ac_ext <<_ACEOF
4930/* end confdefs.h. */
d7040cdb 4931
44f2f9d2
AM
4932int
4933main ()
4934{
d7040cdb 4935
44f2f9d2
AM
4936 ;
4937 return 0;
4938}
4939_ACEOF
d7040cdb
SE
4940rm -f conftest.$ac_objext conftest$ac_exeext
4941if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4942 (eval $ac_link) 2>conftest.er1
44f2f9d2
AM
4943 ac_status=$?
4944 grep -v '^ *+' conftest.er1 >conftest.err
4945 rm -f conftest.er1
4946 cat conftest.err >&5
4947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948 (exit $ac_status); } &&
1ad12f97
NC
4949 { ac_try='test -z "$ac_c_werror_flag"
4950 || test ! -s conftest.err'
44f2f9d2
AM
4951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4952 (eval $ac_try) 2>&5
4953 ac_status=$?
4954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955 (exit $ac_status); }; } &&
d7040cdb 4956 { ac_try='test -s conftest$ac_exeext'
44f2f9d2
AM
4957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4958 (eval $ac_try) 2>&5
4959 ac_status=$?
4960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961 (exit $ac_status); }; }; then
d7040cdb 4962 lt_cv_cc_needs_belf=yes
44f2f9d2
AM
4963else
4964 echo "$as_me: failed program was:" >&5
4965sed 's/^/| /' conftest.$ac_ext >&5
4966
d7040cdb
SE
4967lt_cv_cc_needs_belf=no
4968fi
4969rm -f conftest.err conftest.$ac_objext \
4970 conftest$ac_exeext conftest.$ac_ext
4971 ac_ext=c
4972ac_cpp='$CPP $CPPFLAGS'
4973ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4974ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4975ac_compiler_gnu=$ac_cv_c_compiler_gnu
4976
44f2f9d2 4977fi
d7040cdb
SE
4978echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4979echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4980 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4981 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4982 CFLAGS="$SAVE_CFLAGS"
4983 fi
4984 ;;
4985sparc*-*solaris*)
4986 # Find out which ABI we are using.
4987 echo 'int i;' > conftest.$ac_ext
4988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4989 (eval $ac_compile) 2>&5
4990 ac_status=$?
4991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4992 (exit $ac_status); }; then
4993 case `/usr/bin/file conftest.o` in
4994 *64-bit*)
4995 case $lt_cv_prog_gnu_ld in
4996 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4997 *) LD="${LD-ld} -64" ;;
4998 esac
4999 ;;
5000 esac
5001 fi
5002 rm -rf conftest*
5003 ;;
5004esac
5005
5006need_locks="$enable_libtool_lock"
5007
5008ac_ext=c
5009ac_cpp='$CPP $CPPFLAGS'
5010ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5011ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5012ac_compiler_gnu=$ac_cv_c_compiler_gnu
5013echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5014echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5015# On Suns, sometimes $CPP names a directory.
5016if test -n "$CPP" && test -d "$CPP"; then
5017 CPP=
5018fi
5019if test -z "$CPP"; then
5020 if test "${ac_cv_prog_CPP+set}" = set; then
5021 echo $ECHO_N "(cached) $ECHO_C" >&6
44f2f9d2 5022else
d7040cdb
SE
5023 # Double quotes because CPP needs to be expanded
5024 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5025 do
5026 ac_preproc_ok=false
5027for ac_c_preproc_warn_flag in '' yes
5028do
5029 # Use a header file that comes with gcc, so configuring glibc
5030 # with a fresh cross-compiler works.
5031 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5032 # <limits.h> exists even on freestanding compilers.
5033 # On the NeXT, cc -E runs the code through the compiler's parser,
5034 # not just through cpp. "Syntax error" is here to catch this case.
44f2f9d2
AM
5035 cat >conftest.$ac_ext <<_ACEOF
5036/* confdefs.h. */
5037_ACEOF
5038cat confdefs.h >>conftest.$ac_ext
5039cat >>conftest.$ac_ext <<_ACEOF
5040/* end confdefs.h. */
d7040cdb
SE
5041#ifdef __STDC__
5042# include <limits.h>
5043#else
5044# include <assert.h>
5045#endif
5046 Syntax error
44f2f9d2 5047_ACEOF
d7040cdb
SE
5048if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5049 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44f2f9d2 5050 ac_status=$?
d7040cdb
SE
5051 grep -v '^ *+' conftest.er1 >conftest.err
5052 rm -f conftest.er1
5053 cat conftest.err >&5
44f2f9d2 5054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
5055 (exit $ac_status); } >/dev/null; then
5056 if test -s conftest.err; then
5057 ac_cpp_err=$ac_c_preproc_warn_flag
5058 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5059 else
5060 ac_cpp_err=
5061 fi
44f2f9d2 5062else
d7040cdb
SE
5063 ac_cpp_err=yes
5064fi
5065if test -z "$ac_cpp_err"; then
5066 :
5067else
5068 echo "$as_me: failed program was:" >&5
44f2f9d2
AM
5069sed 's/^/| /' conftest.$ac_ext >&5
5070
d7040cdb
SE
5071 # Broken: fails on valid input.
5072continue
44f2f9d2 5073fi
d7040cdb 5074rm -f conftest.err conftest.$ac_ext
44f2f9d2 5075
d7040cdb
SE
5076 # OK, works on sane cases. Now check whether non-existent headers
5077 # can be detected and how.
5078 cat >conftest.$ac_ext <<_ACEOF
5079/* confdefs.h. */
44f2f9d2 5080_ACEOF
d7040cdb
SE
5081cat confdefs.h >>conftest.$ac_ext
5082cat >>conftest.$ac_ext <<_ACEOF
5083/* end confdefs.h. */
5084#include <ac_nonexistent.h>
5085_ACEOF
5086if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5087 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5088 ac_status=$?
5089 grep -v '^ *+' conftest.er1 >conftest.err
5090 rm -f conftest.er1
5091 cat conftest.err >&5
5092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093 (exit $ac_status); } >/dev/null; then
5094 if test -s conftest.err; then
5095 ac_cpp_err=$ac_c_preproc_warn_flag
5096 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5097 else
5098 ac_cpp_err=
5099 fi
5100else
5101 ac_cpp_err=yes
5102fi
5103if test -z "$ac_cpp_err"; then
5104 # Broken: success on invalid input.
5105continue
5106else
5107 echo "$as_me: failed program was:" >&5
5108sed 's/^/| /' conftest.$ac_ext >&5
252b5132 5109
d7040cdb
SE
5110 # Passes both tests.
5111ac_preproc_ok=:
5112break
5113fi
5114rm -f conftest.err conftest.$ac_ext
252b5132 5115
252b5132 5116done
d7040cdb
SE
5117# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5118rm -f conftest.err conftest.$ac_ext
5119if $ac_preproc_ok; then
5120 break
252b5132
RH
5121fi
5122
d7040cdb
SE
5123 done
5124 ac_cv_prog_CPP=$CPP
ae57792d 5125
d7040cdb
SE
5126fi
5127 CPP=$ac_cv_prog_CPP
5128else
5129 ac_cv_prog_CPP=$CPP
5130fi
5131echo "$as_me:$LINENO: result: $CPP" >&5
5132echo "${ECHO_T}$CPP" >&6
5133ac_preproc_ok=false
5134for ac_c_preproc_warn_flag in '' yes
5135do
5136 # Use a header file that comes with gcc, so configuring glibc
5137 # with a fresh cross-compiler works.
5138 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5139 # <limits.h> exists even on freestanding compilers.
5140 # On the NeXT, cc -E runs the code through the compiler's parser,
5141 # not just through cpp. "Syntax error" is here to catch this case.
5142 cat >conftest.$ac_ext <<_ACEOF
5143/* confdefs.h. */
ae57792d 5144_ACEOF
d7040cdb
SE
5145cat confdefs.h >>conftest.$ac_ext
5146cat >>conftest.$ac_ext <<_ACEOF
5147/* end confdefs.h. */
5148#ifdef __STDC__
5149# include <limits.h>
5150#else
5151# include <assert.h>
5152#endif
5153 Syntax error
13b2be9c 5154_ACEOF
d7040cdb
SE
5155if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5156 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5157 ac_status=$?
5158 grep -v '^ *+' conftest.er1 >conftest.err
5159 rm -f conftest.er1
5160 cat conftest.err >&5
5161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162 (exit $ac_status); } >/dev/null; then
5163 if test -s conftest.err; then
5164 ac_cpp_err=$ac_c_preproc_warn_flag
5165 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5166 else
5167 ac_cpp_err=
5168 fi
5169else
5170 ac_cpp_err=yes
5171fi
5172if test -z "$ac_cpp_err"; then
5173 :
5174else
5175 echo "$as_me: failed program was:" >&5
5176sed 's/^/| /' conftest.$ac_ext >&5
252b5132 5177
d7040cdb
SE
5178 # Broken: fails on valid input.
5179continue
5180fi
5181rm -f conftest.err conftest.$ac_ext
13b2be9c 5182
d7040cdb
SE
5183 # OK, works on sane cases. Now check whether non-existent headers
5184 # can be detected and how.
5185 cat >conftest.$ac_ext <<_ACEOF
5186/* confdefs.h. */
13b2be9c 5187_ACEOF
d7040cdb
SE
5188cat confdefs.h >>conftest.$ac_ext
5189cat >>conftest.$ac_ext <<_ACEOF
5190/* end confdefs.h. */
5191#include <ac_nonexistent.h>
5192_ACEOF
5193if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5194 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5195 ac_status=$?
5196 grep -v '^ *+' conftest.er1 >conftest.err
5197 rm -f conftest.er1
5198 cat conftest.err >&5
5199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200 (exit $ac_status); } >/dev/null; then
5201 if test -s conftest.err; then
5202 ac_cpp_err=$ac_c_preproc_warn_flag
5203 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5204 else
5205 ac_cpp_err=
5206 fi
5207else
5208 ac_cpp_err=yes
5209fi
5210if test -z "$ac_cpp_err"; then
5211 # Broken: success on invalid input.
5212continue
5213else
5214 echo "$as_me: failed program was:" >&5
5215sed 's/^/| /' conftest.$ac_ext >&5
14ee9f48 5216
d7040cdb
SE
5217 # Passes both tests.
5218ac_preproc_ok=:
5219break
5220fi
5221rm -f conftest.err conftest.$ac_ext
14ee9f48 5222
d7040cdb
SE
5223done
5224# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5225rm -f conftest.err conftest.$ac_ext
5226if $ac_preproc_ok; then
5227 :
5228else
5229 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5230See \`config.log' for more details." >&5
5231echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5232See \`config.log' for more details." >&2;}
14ee9f48 5233 { (exit 1); exit 1; }; }
d7040cdb 5234fi
14ee9f48 5235
d7040cdb
SE
5236ac_ext=c
5237ac_cpp='$CPP $CPPFLAGS'
5238ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5239ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5240ac_compiler_gnu=$ac_cv_c_compiler_gnu
f8fc3443 5241
f8fc3443 5242
d7040cdb
SE
5243echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5244echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5245if test "${ac_cv_header_stdc+set}" = set; then
5246 echo $ECHO_N "(cached) $ECHO_C" >&6
5247else
5248 cat >conftest.$ac_ext <<_ACEOF
5249/* confdefs.h. */
13b2be9c 5250_ACEOF
d7040cdb
SE
5251cat confdefs.h >>conftest.$ac_ext
5252cat >>conftest.$ac_ext <<_ACEOF
5253/* end confdefs.h. */
5254#include <stdlib.h>
5255#include <stdarg.h>
5256#include <string.h>
5257#include <float.h>
252b5132 5258
d7040cdb
SE
5259int
5260main ()
5261{
85fbca6a 5262
d7040cdb
SE
5263 ;
5264 return 0;
5265}
85fbca6a 5266_ACEOF
d7040cdb
SE
5267rm -f conftest.$ac_objext
5268if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5269 (eval $ac_compile) 2>conftest.er1
5270 ac_status=$?
5271 grep -v '^ *+' conftest.er1 >conftest.err
5272 rm -f conftest.er1
5273 cat conftest.err >&5
5274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275 (exit $ac_status); } &&
5276 { ac_try='test -z "$ac_c_werror_flag"
5277 || test ! -s conftest.err'
5278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5279 (eval $ac_try) 2>&5
5280 ac_status=$?
5281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282 (exit $ac_status); }; } &&
5283 { ac_try='test -s conftest.$ac_objext'
5284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5285 (eval $ac_try) 2>&5
5286 ac_status=$?
5287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288 (exit $ac_status); }; }; then
5289 ac_cv_header_stdc=yes
5290else
5291 echo "$as_me: failed program was:" >&5
5292sed 's/^/| /' conftest.$ac_ext >&5
85fbca6a 5293
d7040cdb
SE
5294ac_cv_header_stdc=no
5295fi
5296rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c 5297
d7040cdb
SE
5298if test $ac_cv_header_stdc = yes; then
5299 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5300 cat >conftest.$ac_ext <<_ACEOF
5301/* confdefs.h. */
13b2be9c 5302_ACEOF
d7040cdb
SE
5303cat confdefs.h >>conftest.$ac_ext
5304cat >>conftest.$ac_ext <<_ACEOF
5305/* end confdefs.h. */
5306#include <string.h>
252b5132 5307
d7040cdb
SE
5308_ACEOF
5309if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5310 $EGREP "memchr" >/dev/null 2>&1; then
5311 :
5312else
5313 ac_cv_header_stdc=no
5314fi
5315rm -f conftest*
252b5132 5316
d7040cdb 5317fi
13b2be9c 5318
d7040cdb
SE
5319if test $ac_cv_header_stdc = yes; then
5320 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5321 cat >conftest.$ac_ext <<_ACEOF
5322/* confdefs.h. */
13b2be9c 5323_ACEOF
d7040cdb
SE
5324cat confdefs.h >>conftest.$ac_ext
5325cat >>conftest.$ac_ext <<_ACEOF
5326/* end confdefs.h. */
5327#include <stdlib.h>
316f5878 5328
13b2be9c 5329_ACEOF
d7040cdb
SE
5330if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5331 $EGREP "free" >/dev/null 2>&1; then
5332 :
5333else
5334 ac_cv_header_stdc=no
5335fi
5336rm -f conftest*
316f5878 5337
d7040cdb 5338fi
13b2be9c 5339
d7040cdb
SE
5340if test $ac_cv_header_stdc = yes; then
5341 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5342 if test "$cross_compiling" = yes; then
5343 :
5344else
5345 cat >conftest.$ac_ext <<_ACEOF
5346/* confdefs.h. */
13b2be9c 5347_ACEOF
d7040cdb
SE
5348cat confdefs.h >>conftest.$ac_ext
5349cat >>conftest.$ac_ext <<_ACEOF
5350/* end confdefs.h. */
5351#include <ctype.h>
5352#if ((' ' & 0x0FF) == 0x020)
5353# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5354# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5355#else
5356# define ISLOWER(c) \
5357 (('a' <= (c) && (c) <= 'i') \
5358 || ('j' <= (c) && (c) <= 'r') \
5359 || ('s' <= (c) && (c) <= 'z'))
5360# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5361#endif
cac012d6 5362
d7040cdb
SE
5363#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5364int
5365main ()
5366{
5367 int i;
5368 for (i = 0; i < 256; i++)
5369 if (XOR (islower (i), ISLOWER (i))
5370 || toupper (i) != TOUPPER (i))
5371 exit(2);
5372 exit (0);
5373}
13b2be9c 5374_ACEOF
d7040cdb
SE
5375rm -f conftest$ac_exeext
5376if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5377 (eval $ac_link) 2>&5
5378 ac_status=$?
5379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5382 (eval $ac_try) 2>&5
5383 ac_status=$?
5384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385 (exit $ac_status); }; }; then
5386 :
5387else
5388 echo "$as_me: program exited with status $ac_status" >&5
5389echo "$as_me: failed program was:" >&5
5390sed 's/^/| /' conftest.$ac_ext >&5
316f5878 5391
d7040cdb
SE
5392( exit $ac_status )
5393ac_cv_header_stdc=no
5394fi
5395rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5396fi
5397fi
5398fi
5399echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5400echo "${ECHO_T}$ac_cv_header_stdc" >&6
5401if test $ac_cv_header_stdc = yes; then
316f5878 5402
d7040cdb
SE
5403cat >>confdefs.h <<\_ACEOF
5404#define STDC_HEADERS 1
5405_ACEOF
252b5132 5406
d7040cdb 5407fi
252b5132 5408
d7040cdb 5409# On IRIX 5.3, sys/types and inttypes.h are conflicting.
252b5132 5410
07c1b327 5411
07c1b327 5412
07c1b327 5413
252b5132 5414
252b5132 5415
280d71bf 5416
252b5132 5417
252b5132 5418
d7040cdb
SE
5419for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5420 inttypes.h stdint.h unistd.h
5421do
5422as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5423echo "$as_me:$LINENO: checking for $ac_header" >&5
5424echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5425if eval "test \"\${$as_ac_Header+set}\" = set"; then
5426 echo $ECHO_N "(cached) $ECHO_C" >&6
5427else
5428 cat >conftest.$ac_ext <<_ACEOF
5429/* confdefs.h. */
5430_ACEOF
5431cat confdefs.h >>conftest.$ac_ext
5432cat >>conftest.$ac_ext <<_ACEOF
5433/* end confdefs.h. */
5434$ac_includes_default
252b5132 5435
d7040cdb
SE
5436#include <$ac_header>
5437_ACEOF
5438rm -f conftest.$ac_objext
5439if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5440 (eval $ac_compile) 2>conftest.er1
5441 ac_status=$?
5442 grep -v '^ *+' conftest.er1 >conftest.err
5443 rm -f conftest.er1
5444 cat conftest.err >&5
5445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446 (exit $ac_status); } &&
5447 { ac_try='test -z "$ac_c_werror_flag"
5448 || test ! -s conftest.err'
5449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5450 (eval $ac_try) 2>&5
5451 ac_status=$?
5452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453 (exit $ac_status); }; } &&
5454 { ac_try='test -s conftest.$ac_objext'
5455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5456 (eval $ac_try) 2>&5
5457 ac_status=$?
5458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459 (exit $ac_status); }; }; then
5460 eval "$as_ac_Header=yes"
5461else
5462 echo "$as_me: failed program was:" >&5
5463sed 's/^/| /' conftest.$ac_ext >&5
047af9ef 5464
d7040cdb
SE
5465eval "$as_ac_Header=no"
5466fi
5467rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5468fi
5469echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5470echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5471if test `eval echo '${'$as_ac_Header'}'` = yes; then
5472 cat >>confdefs.h <<_ACEOF
5473#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5474_ACEOF
13b2be9c 5475
d7040cdb
SE
5476fi
5477
5478done
5479
5480
5481
5482for ac_header in dlfcn.h
5483do
5484as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5485echo "$as_me:$LINENO: checking for $ac_header" >&5
5486echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5487if eval "test \"\${$as_ac_Header+set}\" = set"; then
5488 echo $ECHO_N "(cached) $ECHO_C" >&6
5489else
5490 cat >conftest.$ac_ext <<_ACEOF
5491/* confdefs.h. */
13b2be9c 5492_ACEOF
d7040cdb
SE
5493cat confdefs.h >>conftest.$ac_ext
5494cat >>conftest.$ac_ext <<_ACEOF
5495/* end confdefs.h. */
5496$ac_includes_default
252b5132 5497
d7040cdb
SE
5498#include <$ac_header>
5499_ACEOF
5500rm -f conftest.$ac_objext
5501if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5502 (eval $ac_compile) 2>conftest.er1
5503 ac_status=$?
5504 grep -v '^ *+' conftest.er1 >conftest.err
5505 rm -f conftest.er1
5506 cat conftest.err >&5
5507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508 (exit $ac_status); } &&
5509 { ac_try='test -z "$ac_c_werror_flag"
5510 || test ! -s conftest.err'
5511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5512 (eval $ac_try) 2>&5
5513 ac_status=$?
5514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515 (exit $ac_status); }; } &&
5516 { ac_try='test -s conftest.$ac_objext'
5517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5518 (eval $ac_try) 2>&5
5519 ac_status=$?
5520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521 (exit $ac_status); }; }; then
5522 eval "$as_ac_Header=yes"
5523else
5524 echo "$as_me: failed program was:" >&5
5525sed 's/^/| /' conftest.$ac_ext >&5
93fbbb04 5526
d7040cdb
SE
5527eval "$as_ac_Header=no"
5528fi
5529rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5530fi
5531echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5532echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5533if test `eval echo '${'$as_ac_Header'}'` = yes; then
5534 cat >>confdefs.h <<_ACEOF
5535#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5536_ACEOF
93fbbb04 5537
d7040cdb 5538fi
d70c5fc7 5539
d7040cdb 5540done
e0001a05 5541
252b5132 5542
252b5132 5543
d7040cdb
SE
5544# This can be used to rebuild libtool when needed
5545LIBTOOL_DEPS="$ltmain"
252b5132 5546
d7040cdb
SE
5547# Always use our own libtool.
5548LIBTOOL='$(SHELL) $(top_builddir)/libtool'
252b5132 5549
252b5132 5550
3bcbcc3d 5551
252b5132 5552
252b5132 5553
252b5132 5554
15886821 5555
252b5132 5556
252b5132 5557
13b2be9c
DJ
5558
5559
252b5132 5560
252b5132 5561
d6d788bd 5562
252b5132 5563
252b5132 5564
252b5132 5565
252b5132 5566
252b5132 5567
252b5132 5568
252b5132 5569
13b2be9c 5570
252b5132 5571
13b2be9c 5572
13b2be9c 5573
d7040cdb 5574test -z "$LN_S" && LN_S="ln -s"
252b5132 5575
252b5132 5576
d6d788bd 5577
252b5132 5578
252b5132 5579
d6d788bd
L
5580
5581
5582
5583
5584
5585
252b5132 5586
d6d788bd 5587
4001ad8c 5588
d7040cdb
SE
5589if test -n "${ZSH_VERSION+set}" ; then
5590 setopt NO_GLOB_SUBST
5591fi
5592
5593echo "$as_me:$LINENO: checking for objdir" >&5
5594echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5595if test "${lt_cv_objdir+set}" = set; then
5596 echo $ECHO_N "(cached) $ECHO_C" >&6
5597else
5598 rm -f .libs 2>/dev/null
5599mkdir .libs 2>/dev/null
5600if test -d .libs; then
5601 lt_cv_objdir=.libs
5602else
5603 # MS-DOS does not allow filenames that begin with a dot.
5604 lt_cv_objdir=_libs
5605fi
5606rmdir .libs 2>/dev/null
5607fi
5608echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5609echo "${ECHO_T}$lt_cv_objdir" >&6
5610objdir=$lt_cv_objdir
13b2be9c 5611
9b2b7d69 5612
13b2be9c 5613
9b2b7d69 5614
13b2be9c
DJ
5615
5616cat >>confdefs.h <<_ACEOF
d7040cdb 5617#define LT_OBJDIR "$lt_cv_objdir/"
13b2be9c 5618_ACEOF
9b2b7d69 5619
13b2be9c 5620
9b2b7d69 5621
13b2be9c 5622
13b2be9c
DJ
5623
5624
d7040cdb
SE
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636case $host_os in
5637aix3*)
5638 # AIX sometimes has problems with the GCC collect2 program. For some
5639 # reason, if we set the COLLECT_NAMES environment variable, the problems
5640 # vanish in a puff of smoke.
5641 if test "X${COLLECT_NAMES+set}" != Xset; then
5642 COLLECT_NAMES=
5643 export COLLECT_NAMES
13b2be9c 5644 fi
d7040cdb
SE
5645 ;;
5646esac
5647
5648# Sed substitution that helps us do robust quoting. It backslashifies
5649# metacharacters that are still active within double-quoted strings.
5650sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5651
5652# Same as above, but do not quote variable references.
5653double_quote_subst='s/\(["`\\]\)/\\\1/g'
5654
5655# Sed substitution to delay expansion of an escaped shell variable in a
5656# double_quote_subst'ed string.
5657delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5658
5659# Sed substitution to delay expansion of an escaped single quote.
5660delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5661
5662# Sed substitution to avoid accidental globbing in evaled expressions
5663no_glob_subst='s/\*/\\\*/g'
5664
5665# Global variables:
5666ofile=libtool
5667can_build_shared=yes
5668
5669# All known linkers require a `.a' archive for static linking (except MSVC,
5670# which needs '.lib').
5671libext=a
5672
5673with_gnu_ld="$lt_cv_prog_gnu_ld"
5674
5675old_CC="$CC"
5676old_CFLAGS="$CFLAGS"
5677
5678# Set sane defaults for various variables
5679test -z "$CC" && CC=cc
5680test -z "$LTCC" && LTCC=$CC
5681test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
5682test -z "$LD" && LD=ld
5683test -z "$ac_objext" && ac_objext=o
5684
5685for cc_temp in $compiler""; do
5686 case $cc_temp in
5687 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5688 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5689 \-*) ;;
5690 *) break;;
5691 esac
13b2be9c 5692done
d7040cdb 5693cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
252b5132
RH
5694
5695
d7040cdb
SE
5696# Only perform the check for file, if the check method requires it
5697test -z "$MAGIC_CMD" && MAGIC_CMD=file
5698case $deplibs_check_method in
5699file_magic*)
5700 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5701 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5702echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5703if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13b2be9c
DJ
5704 echo $ECHO_N "(cached) $ECHO_C" >&6
5705else
d7040cdb
SE
5706 case $MAGIC_CMD in
5707[\\/*] | ?:[\\/]*)
5708 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5709 ;;
5710*)
5711 lt_save_MAGIC_CMD="$MAGIC_CMD"
5712 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5713 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5714 for ac_dir in $ac_dummy; do
5715 IFS="$lt_save_ifs"
5716 test -z "$ac_dir" && ac_dir=.
5717 if test -f $ac_dir/${ac_tool_prefix}file; then
5718 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5719 if test -n "$file_magic_test_file"; then
5720 case $deplibs_check_method in
5721 "file_magic "*)
5722 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5723 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5724 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5725 $EGREP "$file_magic_regex" > /dev/null; then
5726 :
5727 else
5728 cat <<_LT_EOF 1>&2
13b2be9c 5729
d7040cdb
SE
5730*** Warning: the command libtool uses to detect shared libraries,
5731*** $file_magic_cmd, produces output that libtool cannot recognize.
5732*** The result is that libtool may fail to recognize shared libraries
5733*** as such. This will affect the creation of libtool libraries that
5734*** depend on shared libraries, but programs linked with such libtool
5735*** libraries will work regardless of this problem. Nevertheless, you
5736*** may want to report the problem to your system manager and/or to
5737*** bug-libtool@gnu.org
5738
5739_LT_EOF
5740 fi ;;
5741 esac
5742 fi
5743 break
5744 fi
5745 done
5746 IFS="$lt_save_ifs"
5747 MAGIC_CMD="$lt_save_MAGIC_CMD"
5748 ;;
5749esac
13b2be9c 5750fi
d7040cdb
SE
5751
5752MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5753if test -n "$MAGIC_CMD"; then
5754 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5755echo "${ECHO_T}$MAGIC_CMD" >&6
13b2be9c
DJ
5756else
5757 echo "$as_me:$LINENO: result: no" >&5
5758echo "${ECHO_T}no" >&6
5759fi
5760
13b2be9c 5761
d7040cdb
SE
5762
5763
5764
5765if test -z "$lt_cv_path_MAGIC_CMD"; then
13b2be9c 5766 if test -n "$ac_tool_prefix"; then
d7040cdb
SE
5767 echo "$as_me:$LINENO: checking for file" >&5
5768echo $ECHO_N "checking for file... $ECHO_C" >&6
5769if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13b2be9c 5770 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5771else
d7040cdb
SE
5772 case $MAGIC_CMD in
5773[\\/*] | ?:[\\/]*)
5774 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5775 ;;
5776*)
5777 lt_save_MAGIC_CMD="$MAGIC_CMD"
5778 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5779 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5780 for ac_dir in $ac_dummy; do
5781 IFS="$lt_save_ifs"
5782 test -z "$ac_dir" && ac_dir=.
5783 if test -f $ac_dir/file; then
5784 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5785 if test -n "$file_magic_test_file"; then
5786 case $deplibs_check_method in
5787 "file_magic "*)
5788 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5789 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5790 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5791 $EGREP "$file_magic_regex" > /dev/null; then
5792 :
5793 else
5794 cat <<_LT_EOF 1>&2
13b2be9c 5795
d7040cdb
SE
5796*** Warning: the command libtool uses to detect shared libraries,
5797*** $file_magic_cmd, produces output that libtool cannot recognize.
5798*** The result is that libtool may fail to recognize shared libraries
5799*** as such. This will affect the creation of libtool libraries that
5800*** depend on shared libraries, but programs linked with such libtool
5801*** libraries will work regardless of this problem. Nevertheless, you
5802*** may want to report the problem to your system manager and/or to
5803*** bug-libtool@gnu.org
13b2be9c 5804
d7040cdb
SE
5805_LT_EOF
5806 fi ;;
5807 esac
5808 fi
5809 break
5810 fi
5811 done
5812 IFS="$lt_save_ifs"
5813 MAGIC_CMD="$lt_save_MAGIC_CMD"
5814 ;;
5815esac
13b2be9c 5816fi
13b2be9c 5817
d7040cdb
SE
5818MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5819if test -n "$MAGIC_CMD"; then
5820 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5821echo "${ECHO_T}$MAGIC_CMD" >&6
13b2be9c
DJ
5822else
5823 echo "$as_me:$LINENO: result: no" >&5
5824echo "${ECHO_T}no" >&6
5825fi
5826
6840198f 5827
d7040cdb
SE
5828 else
5829 MAGIC_CMD=:
5830 fi
13b2be9c 5831fi
13b2be9c 5832
252b5132 5833 fi
d7040cdb
SE
5834 ;;
5835esac
252b5132 5836
d7040cdb 5837# Use C for the default configuration in the libtool script
13b2be9c 5838
d7040cdb
SE
5839lt_save_CC="$CC"
5840ac_ext=c
5841ac_cpp='$CPP $CPPFLAGS'
5842ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5843ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5844ac_compiler_gnu=$ac_cv_c_compiler_gnu
6840198f 5845
13b2be9c 5846
d7040cdb
SE
5847# Source file extension for C test sources.
5848ac_ext=c
252b5132 5849
d7040cdb
SE
5850# Object file extension for compiled C test sources.
5851objext=o
5852objext=$objext
13b2be9c 5853
d7040cdb
SE
5854# Code to be used in simple compile tests
5855lt_simple_compile_test_code="int some_variable = 0;"
13b2be9c 5856
d7040cdb
SE
5857# Code to be used in simple link tests
5858lt_simple_link_test_code='int main(){return(0);}'
13b2be9c
DJ
5859
5860
13b2be9c 5861
13b2be9c 5862
d7040cdb
SE
5863
5864
5865
5866# If no C compiler was specified, use CC.
5867LTCC=${LTCC-"$CC"}
5868
5869# If no C compiler flags were specified, use CFLAGS.
5870LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5871
5872# Allow CC to be a program name with arguments.
5873compiler=$CC
5874
5875# Save the default compiler, since it gets overwritten when the other
5876# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
5877compiler_DEFAULT=$CC
5878
5879# save warnings/boilerplate of simple test code
5880ac_outfile=conftest.$ac_objext
5881echo "$lt_simple_compile_test_code" >conftest.$ac_ext
5882eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
5883_lt_compiler_boilerplate=`cat conftest.err`
5884$RM conftest*
5885
5886ac_outfile=conftest.$ac_objext
5887echo "$lt_simple_link_test_code" >conftest.$ac_ext
5888eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
5889_lt_linker_boilerplate=`cat conftest.err`
5890$RM conftest*
5891
5892
5893## CAVEAT EMPTOR:
5894## There is no encapsulation within the following macros, do not change
5895## the running order or otherwise move them around unless you know exactly
5896## what you are doing...
5897if test -n "$compiler"; then
5898
5899lt_prog_compiler_no_builtin_flag=
5900
5901if test "$GCC" = yes; then
5902 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5903
5904 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5905echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5906if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
13b2be9c
DJ
5907 echo $ECHO_N "(cached) $ECHO_C" >&6
5908else
d7040cdb
SE
5909 lt_cv_prog_compiler_rtti_exceptions=no
5910 ac_outfile=conftest.$ac_objext
5911 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5912 lt_compiler_flag="-fno-rtti -fno-exceptions"
5913 # Insert the option either (1) after the last *FLAGS variable, or
5914 # (2) before a word containing "conftest.", or (3) at the end.
5915 # Note that $ac_compile itself does not contain backslashes and begins
5916 # with a dollar sign (not a hyphen), so the echo should work correctly.
5917 # The option is referenced via a variable to avoid confusing sed.
5918 lt_compile=`echo "$ac_compile" | $SED \
5919 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
5920 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5921 -e 's:$: $lt_compiler_flag:'`
79887925 5922 (eval echo "\"\$as_me:5922: $lt_compile\"" >&5)
d7040cdb
SE
5923 (eval "$lt_compile" 2>conftest.err)
5924 ac_status=$?
5925 cat conftest.err >&5
79887925 5926 echo "$as_me:5926: \$? = $ac_status" >&5
d7040cdb
SE
5927 if (exit $ac_status) && test -s "$ac_outfile"; then
5928 # The compiler can only warn and ignore the option if not recognized
5929 # So say no if there are warnings other than the usual output.
5930 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
5931 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
5932 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
5933 lt_cv_prog_compiler_rtti_exceptions=yes
5934 fi
5935 fi
5936 $RM conftest*
13b2be9c 5937
d7040cdb
SE
5938fi
5939echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5940echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
13b2be9c 5941
d7040cdb
SE
5942if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5943 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13b2be9c 5944else
d7040cdb 5945 :
13b2be9c 5946fi
13b2be9c
DJ
5947
5948fi
13b2be9c 5949
13b2be9c 5950
c8615825 5951
d7040cdb
SE
5952
5953
5954
5955 lt_prog_compiler_wl=
5956lt_prog_compiler_pic=
5957lt_prog_compiler_static=
5958
5959echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5960echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5961
252b5132 5962 if test "$GCC" = yes; then
d7040cdb
SE
5963 lt_prog_compiler_wl='-Wl,'
5964 lt_prog_compiler_static='-static'
5965
5966 case $host_os in
5967 aix*)
5968 # All AIX code is PIC.
5969 if test "$host_cpu" = ia64; then
5970 # AIX 5 now supports IA64 processor
5971 lt_prog_compiler_static='-Bstatic'
5972 fi
5973 ;;
5974
5975 amigaos*)
5976 if test "$host_cpu" = m68k; then
5977 # FIXME: we need at least 68020 code to build shared libraries, but
5978 # adding the `-m68020' flag to GCC prevents building anything better,
5979 # like `-m68040'.
5980 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5981 fi
5982 ;;
5983
5984 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5985 # PIC is the default for these OSes.
5986 ;;
5987
5988 mingw* | cygwin* | pw32* | os2*)
5989 # This hack is so that the source file can tell whether it is being
5990 # built for inclusion in a dll (and should export symbols for example).
5991 # Although the cygwin gcc ignores -fPIC, still need this for old-style
5992 # (--disable-auto-import) libraries
5993 lt_prog_compiler_pic='-DDLL_EXPORT'
5994 ;;
5995
5996 darwin* | rhapsody*)
5997 # PIC is the default on this platform
5998 # Common symbols not allowed in MH_DYLIB files
5999 lt_prog_compiler_pic='-fno-common'
6000 ;;
6001
6002 hpux*)
6003 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6004 # not for PA HP-UX.
6005 case $host_cpu in
6006 hppa*64*|ia64*)
6007 # +Z the default
6008 ;;
6009 *)
6010 lt_prog_compiler_pic='-fPIC'
6011 ;;
6012 esac
6013 ;;
6014
6015 interix[3-9]*)
6016 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6017 # Instead, we relocate shared libraries at runtime.
6018 ;;
6019
6020 msdosdjgpp*)
6021 # Just because we use GCC doesn't mean we suddenly get shared libraries
6022 # on systems that don't support them.
6023 lt_prog_compiler_can_build_shared=no
6024 enable_shared=no
6025 ;;
6026
6027 *nto* | *qnx*)
6028 # QNX uses GNU C++, but need to define -shared option too, otherwise
6029 # it will coredump.
6030 lt_prog_compiler_pic='-fPIC -shared'
6031 ;;
6032
6033 sysv4*MP*)
6034 if test -d /usr/nec; then
6035 lt_prog_compiler_pic=-Kconform_pic
6036 fi
6037 ;;
6038
6039 *)
6040 lt_prog_compiler_pic='-fPIC'
6041 ;;
6042 esac
252b5132 6043 else
d7040cdb
SE
6044 # PORTME Check for flag to pass linker flags through the system compiler.
6045 case $host_os in
6046 aix*)
6047 lt_prog_compiler_wl='-Wl,'
6048 if test "$host_cpu" = ia64; then
6049 # AIX 5 now supports IA64 processor
6050 lt_prog_compiler_static='-Bstatic'
6051 else
6052 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6053 fi
6054 ;;
6055 darwin*)
6056 # PIC is the default on this platform
6057 # Common symbols not allowed in MH_DYLIB files
6058 case $cc_basename in
6059 xlc*)
6060 lt_prog_compiler_pic='-qnocommon'
6061 lt_prog_compiler_wl='-Wl,'
6062 ;;
6063 esac
6064 ;;
6065
6066 mingw* | cygwin* | pw32* | os2*)
6067 # This hack is so that the source file can tell whether it is being
6068 # built for inclusion in a dll (and should export symbols for example).
6069 lt_prog_compiler_pic='-DDLL_EXPORT'
6070 ;;
6071
6072 hpux9* | hpux10* | hpux11*)
6073 lt_prog_compiler_wl='-Wl,'
6074 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6075 # not for PA HP-UX.
6076 case $host_cpu in
6077 hppa*64*|ia64*)
6078 # +Z the default
6079 ;;
6080 *)
6081 lt_prog_compiler_pic='+Z'
6082 ;;
6083 esac
6084 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6085 lt_prog_compiler_static='${wl}-a ${wl}archive'
6086 ;;
6087
6088 irix5* | irix6* | nonstopux*)
6089 lt_prog_compiler_wl='-Wl,'
6090 # PIC (with -KPIC) is the default.
6091 lt_prog_compiler_static='-non_shared'
6092 ;;
6093
6094 linux* | k*bsd*-gnu)
6095 case $cc_basename in
6096 icc* | ecc*)
6097 lt_prog_compiler_wl='-Wl,'
6098 lt_prog_compiler_pic='-KPIC'
6099 lt_prog_compiler_static='-static'
6100 ;;
6101 pgcc* | pgf77* | pgf90* | pgf95*)
6102 # Portland Group compilers (*not* the Pentium gcc compiler,
6103 # which looks to be a dead project)
6104 lt_prog_compiler_wl='-Wl,'
6105 lt_prog_compiler_pic='-fpic'
6106 lt_prog_compiler_static='-Bstatic'
6107 ;;
6108 ccc*)
6109 lt_prog_compiler_wl='-Wl,'
6110 # All Alpha code is PIC.
6111 lt_prog_compiler_static='-non_shared'
6112 ;;
6113 *)
6114 case `$CC -V 2>&1 | sed 5q` in
6115 *Sun\ C*)
6116 # Sun C 5.9
6117 lt_prog_compiler_pic='-KPIC'
6118 lt_prog_compiler_static='-Bstatic'
6119 lt_prog_compiler_wl='-Wl,'
6120 ;;
6121 *Sun\ F*)
6122 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6123 lt_prog_compiler_pic='-KPIC'
6124 lt_prog_compiler_static='-Bstatic'
6125 lt_prog_compiler_wl=''
6126 ;;
6127 esac
6128 ;;
6129 esac
6130 ;;
6131
6132 newsos6)
6133 lt_prog_compiler_pic='-KPIC'
6134 lt_prog_compiler_static='-Bstatic'
6135 ;;
6136
6137 *nto* | *qnx*)
6138 # QNX uses GNU C++, but need to define -shared option too, otherwise
6139 # it will coredump.
6140 lt_prog_compiler_pic='-fPIC -shared'
6141 ;;
6142
6143 osf3* | osf4* | osf5*)
6144 lt_prog_compiler_wl='-Wl,'
6145 # All OSF/1 code is PIC.
6146 lt_prog_compiler_static='-non_shared'
6147 ;;
6148
6149 rdos*)
6150 lt_prog_compiler_static='-non_shared'
6151 ;;
6152
6153 solaris*)
6154 lt_prog_compiler_pic='-KPIC'
6155 lt_prog_compiler_static='-Bstatic'
6156 case $cc_basename in
6157 f77* | f90* | f95*)
6158 lt_prog_compiler_wl='-Qoption ld ';;
6159 *)
6160 lt_prog_compiler_wl='-Wl,';;
6161 esac
6162 ;;
6163
6164 sunos4*)
6165 lt_prog_compiler_wl='-Qoption ld '
6166 lt_prog_compiler_pic='-PIC'
6167 lt_prog_compiler_static='-Bstatic'
6168 ;;
6169
6170 sysv4 | sysv4.2uw2* | sysv4.3*)
6171 lt_prog_compiler_wl='-Wl,'
6172 lt_prog_compiler_pic='-KPIC'
6173 lt_prog_compiler_static='-Bstatic'
6174 ;;
6175
6176 sysv4*MP*)
6177 if test -d /usr/nec ;then
6178 lt_prog_compiler_pic='-Kconform_pic'
6179 lt_prog_compiler_static='-Bstatic'
6180 fi
6181 ;;
6182
6183 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6184 lt_prog_compiler_wl='-Wl,'
6185 lt_prog_compiler_pic='-KPIC'
6186 lt_prog_compiler_static='-Bstatic'
6187 ;;
6188
6189 unicos*)
6190 lt_prog_compiler_wl='-Wl,'
6191 lt_prog_compiler_can_build_shared=no
6192 ;;
6193
6194 uts4*)
6195 lt_prog_compiler_pic='-pic'
6196 lt_prog_compiler_static='-Bstatic'
6197 ;;
6198
6199 *)
6200 lt_prog_compiler_can_build_shared=no
6201 ;;
6202 esac
252b5132 6203 fi
d7040cdb
SE
6204
6205case $host_os in
6206 # For platforms which do not support PIC, -DPIC is meaningless:
6207 *djgpp*)
6208 lt_prog_compiler_pic=
6209 ;;
6210 *)
6211 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6212 ;;
6213esac
6214echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6215echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6216
6217
6218
6219
6220
6221
6222#
6223# Check to make sure the PIC flag actually works.
6224#
6225if test -n "$lt_prog_compiler_pic"; then
6226 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6227echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6228if test "${lt_prog_compiler_pic_works+set}" = set; then
6229 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6230else
d7040cdb
SE
6231 lt_prog_compiler_pic_works=no
6232 ac_outfile=conftest.$ac_objext
6233 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6234 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6235 # Insert the option either (1) after the last *FLAGS variable, or
6236 # (2) before a word containing "conftest.", or (3) at the end.
6237 # Note that $ac_compile itself does not contain backslashes and begins
6238 # with a dollar sign (not a hyphen), so the echo should work correctly.
6239 # The option is referenced via a variable to avoid confusing sed.
6240 lt_compile=`echo "$ac_compile" | $SED \
6241 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6242 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6243 -e 's:$: $lt_compiler_flag:'`
79887925 6244 (eval echo "\"\$as_me:6244: $lt_compile\"" >&5)
d7040cdb
SE
6245 (eval "$lt_compile" 2>conftest.err)
6246 ac_status=$?
6247 cat conftest.err >&5
79887925 6248 echo "$as_me:6248: \$? = $ac_status" >&5
d7040cdb
SE
6249 if (exit $ac_status) && test -s "$ac_outfile"; then
6250 # The compiler can only warn and ignore the option if not recognized
6251 # So say no if there are warnings other than the usual output.
6252 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6253 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6254 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6255 lt_prog_compiler_pic_works=yes
6256 fi
6257 fi
6258 $RM conftest*
6259
9b2b7d69 6260fi
d7040cdb
SE
6261echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6262echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6263
6264if test x"$lt_prog_compiler_pic_works" = xyes; then
6265 case $lt_prog_compiler_pic in
6266 "" | " "*) ;;
6267 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6268 esac
13b2be9c 6269else
d7040cdb
SE
6270 lt_prog_compiler_pic=
6271 lt_prog_compiler_can_build_shared=no
6272fi
ab509236 6273
d7040cdb 6274fi
ab509236 6275
d7040cdb
SE
6276
6277
6278
6279
6280
6281#
6282# Check to make sure the static flag actually works.
6283#
6284wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6285echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6286echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6287if test "${lt_prog_compiler_static_works+set}" = set; then
6288 echo $ECHO_N "(cached) $ECHO_C" >&6
13b2be9c 6289else
d7040cdb
SE
6290 lt_prog_compiler_static_works=no
6291 save_LDFLAGS="$LDFLAGS"
6292 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6293 echo "$lt_simple_link_test_code" > conftest.$ac_ext
6294 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6295 # The linker can only warn and ignore the option if not recognized
6296 # So say no if there are warnings
6297 if test -s conftest.err; then
6298 # Append any errors to the config.log.
6299 cat conftest.err 1>&5
6300 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6301 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6302 if diff conftest.exp conftest.er2 >/dev/null; then
6303 lt_prog_compiler_static_works=yes
6304 fi
6305 else
6306 lt_prog_compiler_static_works=yes
6307 fi
6308 fi
6309 $RM conftest*
6310 LDFLAGS="$save_LDFLAGS"
13b2be9c
DJ
6311
6312fi
d7040cdb
SE
6313echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6314echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
13b2be9c 6315
d7040cdb
SE
6316if test x"$lt_prog_compiler_static_works" = xyes; then
6317 :
6318else
6319 lt_prog_compiler_static=
13b2be9c
DJ
6320fi
6321
13b2be9c 6322
d7040cdb
SE
6323
6324
6325
6326
6327
6328 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6329echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6330if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6331 echo $ECHO_N "(cached) $ECHO_C" >&6
6332else
6333 lt_cv_prog_compiler_c_o=no
6334 $RM -r conftest 2>/dev/null
6335 mkdir conftest
6336 cd conftest
6337 mkdir out
6338 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6339
6340 lt_compiler_flag="-o out/conftest2.$ac_objext"
6341 # Insert the option either (1) after the last *FLAGS variable, or
6342 # (2) before a word containing "conftest.", or (3) at the end.
6343 # Note that $ac_compile itself does not contain backslashes and begins
6344 # with a dollar sign (not a hyphen), so the echo should work correctly.
6345 lt_compile=`echo "$ac_compile" | $SED \
6346 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6347 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6348 -e 's:$: $lt_compiler_flag:'`
79887925 6349 (eval echo "\"\$as_me:6349: $lt_compile\"" >&5)
d7040cdb
SE
6350 (eval "$lt_compile" 2>out/conftest.err)
6351 ac_status=$?
6352 cat out/conftest.err >&5
79887925 6353 echo "$as_me:6353: \$? = $ac_status" >&5
d7040cdb
SE
6354 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6355 then
6356 # The compiler can only warn and ignore the option if not recognized
6357 # So say no if there are warnings
6358 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6359 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6360 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6361 lt_cv_prog_compiler_c_o=yes
6362 fi
6363 fi
6364 chmod u+w . 2>&5
6365 $RM conftest*
6366 # SGI C++ compiler will create directory out/ii_files/ for
6367 # template instantiation
6368 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6369 $RM out/* && rmdir out
6370 cd ..
6371 $RM -r conftest
6372 $RM conftest*
6373
6374fi
6375echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6376echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6377
6378
6379
6380
6381
6382
6383 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6384echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6385if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6386 echo $ECHO_N "(cached) $ECHO_C" >&6
6387else
6388 lt_cv_prog_compiler_c_o=no
6389 $RM -r conftest 2>/dev/null
6390 mkdir conftest
6391 cd conftest
6392 mkdir out
6393 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6394
6395 lt_compiler_flag="-o out/conftest2.$ac_objext"
6396 # Insert the option either (1) after the last *FLAGS variable, or
6397 # (2) before a word containing "conftest.", or (3) at the end.
6398 # Note that $ac_compile itself does not contain backslashes and begins
6399 # with a dollar sign (not a hyphen), so the echo should work correctly.
6400 lt_compile=`echo "$ac_compile" | $SED \
6401 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6402 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6403 -e 's:$: $lt_compiler_flag:'`
79887925 6404 (eval echo "\"\$as_me:6404: $lt_compile\"" >&5)
d7040cdb
SE
6405 (eval "$lt_compile" 2>out/conftest.err)
6406 ac_status=$?
6407 cat out/conftest.err >&5
79887925 6408 echo "$as_me:6408: \$? = $ac_status" >&5
d7040cdb
SE
6409 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6410 then
6411 # The compiler can only warn and ignore the option if not recognized
6412 # So say no if there are warnings
6413 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6414 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6415 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6416 lt_cv_prog_compiler_c_o=yes
6417 fi
6418 fi
6419 chmod u+w . 2>&5
6420 $RM conftest*
6421 # SGI C++ compiler will create directory out/ii_files/ for
6422 # template instantiation
6423 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6424 $RM out/* && rmdir out
6425 cd ..
6426 $RM -r conftest
6427 $RM conftest*
6428
6429fi
6430echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6431echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6432
6433
6434
6435
6436hard_links="nottested"
6437if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6438 # do not overwrite the value of need_locks provided by the user
6439 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6440echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6441 hard_links=yes
6442 $RM conftest*
6443 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6444 touch conftest.a
6445 ln conftest.a conftest.b 2>&5 || hard_links=no
6446 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6447 echo "$as_me:$LINENO: result: $hard_links" >&5
6448echo "${ECHO_T}$hard_links" >&6
6449 if test "$hard_links" = no; then
6450 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6451echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6452 need_locks=warn
6453 fi
6454else
6455 need_locks=no
6456fi
6457
6458
6459
6460
6461
6462
6463 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6464echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6465
6466 runpath_var=
6467 allow_undefined_flag=
6468 always_export_symbols=no
6469 archive_cmds=
6470 archive_expsym_cmds=
6471 compiler_needs_object=no
6472 enable_shared_with_static_runtimes=no
6473 export_dynamic_flag_spec=
6474 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6475 hardcode_automatic=no
6476 hardcode_direct=no
6477 hardcode_direct_absolute=no
6478 hardcode_libdir_flag_spec=
6479 hardcode_libdir_flag_spec_ld=
6480 hardcode_libdir_separator=
6481 hardcode_minus_L=no
6482 hardcode_shlibpath_var=unsupported
6483 inherit_rpath=no
6484 link_all_deplibs=unknown
6485 module_cmds=
6486 module_expsym_cmds=
6487 old_archive_from_new_cmds=
6488 old_archive_from_expsyms_cmds=
6489 thread_safe_flag_spec=
6490 whole_archive_flag_spec=
6491 # include_expsyms should be a list of space-separated symbols to be *always*
6492 # included in the symbol list
6493 include_expsyms=
6494 # exclude_expsyms can be an extended regexp of symbols to exclude
6495 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6496 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6497 # as well as any symbol that contains `d'.
6498 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6499 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6500 # platforms (ab)use it in PIC code, but their linkers get confused if
6501 # the symbol is explicitly referenced. Since portable code cannot
6502 # rely on this symbol name, it's probably fine to never include it in
6503 # preloaded symbol tables.
6504 extract_expsyms_cmds=
6505
6506 case $host_os in
6507 cygwin* | mingw* | pw32*)
6508 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6509 # When not using gcc, we currently assume that we are using
6510 # Microsoft Visual C++.
6511 if test "$GCC" != yes; then
6512 with_gnu_ld=no
6513 fi
6514 ;;
6515 interix*)
6516 # we just hope/assume this is gcc and not c89 (= MSVC++)
6517 with_gnu_ld=yes
6518 ;;
6519 openbsd*)
6520 with_gnu_ld=no
6521 ;;
6522 esac
6523
6524 ld_shlibs=yes
6525 if test "$with_gnu_ld" = yes; then
6526 # If archive_cmds runs LD, not CC, wlarc should be empty
6527 wlarc='${wl}'
6528
6529 # Set some defaults for GNU ld with shared library support. These
6530 # are reset later if shared libraries are not supported. Putting them
6531 # here allows them to be overridden if necessary.
6532 runpath_var=LD_RUN_PATH
6533 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6534 export_dynamic_flag_spec='${wl}--export-dynamic'
6535 # ancient GNU ld didn't support --whole-archive et. al.
6536 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
6537 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6538 else
6539 whole_archive_flag_spec=
6540 fi
6541 supports_anon_versioning=no
6542 case `$LD -v 2>&1` in
6543 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6544 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6545 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6546 *\ 2.11.*) ;; # other 2.11 versions
6547 *) supports_anon_versioning=yes ;;
6548 esac
6549
6550 # See if GNU ld supports shared libraries.
6551 case $host_os in
6552 aix3* | aix4* | aix5*)
6553 # On AIX/PPC, the GNU linker is very broken
6554 if test "$host_cpu" != ia64; then
6555 ld_shlibs=no
6556 cat <<_LT_EOF 1>&2
6557
6558*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6559*** to be unable to reliably create shared libraries on AIX.
6560*** Therefore, libtool is disabling shared libraries support. If you
6561*** really care for shared libraries, you may want to modify your PATH
6562*** so that a non-GNU linker is found, and then restart.
6563
6564_LT_EOF
6565 fi
6566 ;;
6567
6568 amigaos*)
6569 if test "$host_cpu" = m68k; then
6570 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)'
6571 hardcode_libdir_flag_spec='-L$libdir'
6572 hardcode_minus_L=yes
6573 fi
6574
6575 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6576 # that the semantics of dynamic libraries on AmigaOS, at least up
6577 # to version 4, is to share data among multiple programs linked
6578 # with the same dynamic library. Since this doesn't match the
6579 # behavior of shared libraries on other platforms, we can't use
6580 # them.
6581 ld_shlibs=no
6582 ;;
6583
6584 beos*)
6585 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6586 allow_undefined_flag=unsupported
6587 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6588 # support --undefined. This deserves some investigation. FIXME
6589 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6590 else
6591 ld_shlibs=no
6592 fi
6593 ;;
6594
6595 cygwin* | mingw* | pw32*)
6596 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6597 # as there is no search path for DLLs.
6598 hardcode_libdir_flag_spec='-L$libdir'
6599 allow_undefined_flag=unsupported
6600 always_export_symbols=no
6601 enable_shared_with_static_runtimes=yes
6602 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
6603
6604 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6605 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6606 # If the export-symbols file already is a .def file (1st line
6607 # is EXPORTS), use it as is; otherwise, prepend...
6608 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6609 cp $export_symbols $output_objdir/$soname.def;
6610 else
6611 echo EXPORTS > $output_objdir/$soname.def;
6612 cat $export_symbols >> $output_objdir/$soname.def;
6613 fi~
6614 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6615 else
6616 ld_shlibs=no
6617 fi
6618 ;;
6619
6620 interix[3-9]*)
6621 hardcode_direct=no
6622 hardcode_shlibpath_var=no
6623 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6624 export_dynamic_flag_spec='${wl}-E'
6625 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6626 # Instead, shared libraries are loaded at an image base (0x10000000 by
6627 # default) and relocated if they conflict, which is a slow very memory
6628 # consuming and fragmenting process. To avoid this, we pick a random,
6629 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6630 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6631 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6632 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'
6633 ;;
6634
6635 gnu* | linux* | tpf* | k*bsd*-gnu)
6636 tmp_diet=no
6637 if test "$host_os" = linux-dietlibc; then
6638 case $cc_basename in
6639 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
6640 esac
6641 fi
6642 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
6643 && test "$tmp_diet" = no
6644 then
6645 tmp_addflag=
6646 case $cc_basename,$host_cpu in
6647 pgcc*) # Portland Group C compiler
6648 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'
6649 tmp_addflag=' $pic_flag'
6650 ;;
6651 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
6652 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'
6653 tmp_addflag=' $pic_flag -Mnomain' ;;
6654 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6655 tmp_addflag=' -i_dynamic' ;;
6656 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6657 tmp_addflag=' -i_dynamic -nofor_main' ;;
6658 ifc* | ifort*) # Intel Fortran compiler
6659 tmp_addflag=' -nofor_main' ;;
6660 esac
6661 case `$CC -V 2>&1 | sed 5q` in
6662 *Sun\ C*) # Sun C 5.9
6663 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'
6664 compiler_needs_object=yes
6665 tmp_sharedflag='-G' ;;
6666 *Sun\ F*) # Sun Fortran 8.3
6667 tmp_sharedflag='-G' ;;
6668 *)
6669 tmp_sharedflag='-shared' ;;
6670 esac
6671 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6672
6673 if test "x$supports_anon_versioning" = xyes; then
6674 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
6675 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6676 echo "local: *; };" >> $output_objdir/$libname.ver~
6677 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6678 fi
6679 else
6680 ld_shlibs=no
6681 fi
6682 ;;
6683
6684 netbsd*)
6685 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6686 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6687 wlarc=
6688 else
6689 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6690 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6691 fi
6692 ;;
6693
6694 solaris*)
6695 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
6696 ld_shlibs=no
6697 cat <<_LT_EOF 1>&2
6698
6699*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6700*** create shared libraries on Solaris systems. Therefore, libtool
6701*** is disabling shared libraries support. We urge you to upgrade GNU
6702*** binutils to release 2.9.1 or newer. Another option is to modify
6703*** your PATH or compiler configuration so that the native linker is
6704*** used, and then restart.
6705
6706_LT_EOF
6707 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6708 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6709 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6710 else
6711 ld_shlibs=no
6712 fi
6713 ;;
6714
6715 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6716 case `$LD -v 2>&1` in
6717 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
6718 ld_shlibs=no
6719 cat <<_LT_EOF 1>&2
6720
6721*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
6722*** reliably create shared libraries on SCO systems. Therefore, libtool
6723*** is disabling shared libraries support. We urge you to upgrade GNU
6724*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
6725*** your PATH or compiler configuration so that the native linker is
6726*** used, and then restart.
6727
6728_LT_EOF
6729 ;;
6730 *)
6731 # For security reasons, it is highly recommended that you always
6732 # use absolute paths for naming shared libraries, and exclude the
6733 # DT_RUNPATH tag from executables and libraries. But doing so
6734 # requires that you compile everything twice, which is a pain.
6735 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6736 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6737 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6738 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6739 else
6740 ld_shlibs=no
6741 fi
6742 ;;
6743 esac
6744 ;;
6745
6746 sunos4*)
6747 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6748 wlarc=
6749 hardcode_direct=yes
6750 hardcode_shlibpath_var=no
6751 ;;
6752
6753 *)
6754 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6755 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6756 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6757 else
6758 ld_shlibs=no
6759 fi
6760 ;;
6761 esac
6762
6763 if test "$ld_shlibs" = no; then
6764 runpath_var=
6765 hardcode_libdir_flag_spec=
6766 export_dynamic_flag_spec=
6767 whole_archive_flag_spec=
6768 fi
6769 else
6770 # PORTME fill in a description of your system's linker (not GNU ld)
6771 case $host_os in
6772 aix3*)
6773 allow_undefined_flag=unsupported
6774 always_export_symbols=yes
6775 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'
6776 # Note: this linker hardcodes the directories in LIBPATH if there
6777 # are no directories specified by -L.
6778 hardcode_minus_L=yes
6779 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
6780 # Neither direct hardcoding nor static linking is supported with a
6781 # broken collect2.
6782 hardcode_direct=unsupported
6783 fi
6784 ;;
6785
6786 aix4* | aix5*)
6787 if test "$host_cpu" = ia64; then
6788 # On IA64, the linker does run time linking by default, so we don't
6789 # have to do anything special.
6790 aix_use_runtimelinking=no
6791 exp_sym_flag='-Bexport'
6792 no_entry_flag=""
6793 else
6794 # If we're using GNU nm, then we don't want the "-C" option.
6795 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6796 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
6797 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'
6798 else
6799 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'
6800 fi
6801 aix_use_runtimelinking=no
6802
6803 # Test if we are trying to use run time linking or normal
6804 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6805 # need to do runtime linking.
6806 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6807 for ld_flag in $LDFLAGS; do
6808 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6809 aix_use_runtimelinking=yes
6810 break
6811 fi
6812 done
6813 ;;
6814 esac
6815
6816 exp_sym_flag='-bexport'
6817 no_entry_flag='-bnoentry'
6818 fi
6819
6820 # When large executables or shared objects are built, AIX ld can
6821 # have problems creating the table of contents. If linking a library
6822 # or program results in "error TOC overflow" add -mminimal-toc to
6823 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6824 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6825
6826 archive_cmds=''
6827 hardcode_direct=yes
6828 hardcode_direct_absolute=yes
6829 hardcode_libdir_separator=':'
6830 link_all_deplibs=yes
6831 file_list_spec='${wl}-f,'
6832
6833 if test "$GCC" = yes; then
6834 case $host_os in aix4.[012]|aix4.[012].*)
6835 # We only want to do this on AIX 4.2 and lower, the check
6836 # below for broken collect2 doesn't work under 4.3+
6837 collect2name=`${CC} -print-prog-name=collect2`
6838 if test -f "$collect2name" &&
6839 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
6840 then
6841 # We have reworked collect2
6842 :
6843 else
6844 # We have old collect2
6845 hardcode_direct=unsupported
6846 # It fails to find uninstalled libraries when the uninstalled
6847 # path is not listed in the libpath. Setting hardcode_minus_L
6848 # to unsupported forces relinking
6849 hardcode_minus_L=yes
6850 hardcode_libdir_flag_spec='-L$libdir'
6851 hardcode_libdir_separator=
6852 fi
6853 ;;
6854 esac
6855 shared_flag='-shared'
6856 if test "$aix_use_runtimelinking" = yes; then
6857 shared_flag="$shared_flag "'${wl}-G'
6858 fi
6859 else
6860 # not using gcc
6861 if test "$host_cpu" = ia64; then
6862 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6863 # chokes on -Wl,-G. The following line is correct:
6864 shared_flag='-G'
6865 else
6866 if test "$aix_use_runtimelinking" = yes; then
6867 shared_flag='${wl}-G'
6868 else
6869 shared_flag='${wl}-bM:SRE'
6870 fi
6871 fi
6872 fi
6873
6874 # It seems that -bexpall does not export symbols beginning with
6875 # underscore (_), so it is better to generate a list of symbols to export.
6876 always_export_symbols=yes
6877 if test "$aix_use_runtimelinking" = yes; then
6878 # Warning - without using the other runtime loading flags (-brtl),
6879 # -berok will link without error, but may produce a broken library.
6880 allow_undefined_flag='-berok'
6881 # Determine the default libpath from the value encoded in an
6882 # empty executable.
6883 cat >conftest.$ac_ext <<_ACEOF
6884/* confdefs.h. */
13b2be9c 6885_ACEOF
d7040cdb
SE
6886cat confdefs.h >>conftest.$ac_ext
6887cat >>conftest.$ac_ext <<_ACEOF
6888/* end confdefs.h. */
6889
6890int
6891main ()
6892{
6893
6894 ;
6895 return 0;
6896}
6897_ACEOF
6898rm -f conftest.$ac_objext conftest$ac_exeext
6899if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6900 (eval $ac_link) 2>conftest.er1
13b2be9c 6901 ac_status=$?
ab509236
L
6902 grep -v '^ *+' conftest.er1 >conftest.err
6903 rm -f conftest.er1
6904 cat conftest.err >&5
13b2be9c
DJ
6905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6906 (exit $ac_status); } &&
1ad12f97
NC
6907 { ac_try='test -z "$ac_c_werror_flag"
6908 || test ! -s conftest.err'
ab509236
L
6909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6910 (eval $ac_try) 2>&5
6911 ac_status=$?
6912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913 (exit $ac_status); }; } &&
d7040cdb 6914 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
6915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6916 (eval $ac_try) 2>&5
6917 ac_status=$?
6918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919 (exit $ac_status); }; }; then
d7040cdb
SE
6920
6921lt_aix_libpath_sed='
6922 /Import File Strings/,/^$/ {
6923 /^0/ {
6924 s/^0 *\(.*\)$/\1/
6925 p
6926 }
6927 }'
6928aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
6929# Check for a 64-bit object if we didn't find anything.
6930if test -z "$aix_libpath"; then
6931 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
6932fi
6933else
6934 echo "$as_me: failed program was:" >&5
6935sed 's/^/| /' conftest.$ac_ext >&5
6936
6937fi
6938rm -f conftest.err conftest.$ac_objext \
6939 conftest$ac_exeext conftest.$ac_ext
6940if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6941
6942 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6943 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"
6944 else
6945 if test "$host_cpu" = ia64; then
6946 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6947 allow_undefined_flag="-z nodefs"
6948 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"
6949 else
6950 # Determine the default libpath from the value encoded in an
6951 # empty executable.
6952 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
6953/* confdefs.h. */
6954_ACEOF
6955cat confdefs.h >>conftest.$ac_ext
6956cat >>conftest.$ac_ext <<_ACEOF
6957/* end confdefs.h. */
d7040cdb 6958
13b2be9c
DJ
6959int
6960main ()
6961{
d7040cdb 6962
13b2be9c
DJ
6963 ;
6964 return 0;
6965}
6966_ACEOF
d7040cdb
SE
6967rm -f conftest.$ac_objext conftest$ac_exeext
6968if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6969 (eval $ac_link) 2>conftest.er1
13b2be9c 6970 ac_status=$?
ab509236
L
6971 grep -v '^ *+' conftest.er1 >conftest.err
6972 rm -f conftest.er1
6973 cat conftest.err >&5
13b2be9c
DJ
6974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975 (exit $ac_status); } &&
1ad12f97
NC
6976 { ac_try='test -z "$ac_c_werror_flag"
6977 || test ! -s conftest.err'
ab509236
L
6978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6979 (eval $ac_try) 2>&5
6980 ac_status=$?
6981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6982 (exit $ac_status); }; } &&
d7040cdb 6983 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
6984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6985 (eval $ac_try) 2>&5
6986 ac_status=$?
6987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6988 (exit $ac_status); }; }; then
d7040cdb
SE
6989
6990lt_aix_libpath_sed='
6991 /Import File Strings/,/^$/ {
6992 /^0/ {
6993 s/^0 *\(.*\)$/\1/
6994 p
6995 }
6996 }'
6997aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
6998# Check for a 64-bit object if we didn't find anything.
6999if test -z "$aix_libpath"; then
7000 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7001fi
7002else
7003 echo "$as_me: failed program was:" >&5
7004sed 's/^/| /' conftest.$ac_ext >&5
7005
7006fi
7007rm -f conftest.err conftest.$ac_objext \
7008 conftest$ac_exeext conftest.$ac_ext
7009if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7010
7011 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7012 # Warning - without using the other run time loading flags,
7013 # -berok will link without error, but may produce a broken library.
7014 no_undefined_flag=' ${wl}-bernotok'
7015 allow_undefined_flag=' ${wl}-berok'
7016 # Exported symbols can be pulled into shared objects from archives
7017 whole_archive_flag_spec='$convenience'
7018 archive_cmds_need_lc=yes
7019 # This is similar to how AIX traditionally builds its shared libraries.
7020 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'
7021 fi
7022 fi
7023 ;;
7024
7025 amigaos*)
7026 if test "$host_cpu" = m68k; then
7027 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)'
7028 hardcode_libdir_flag_spec='-L$libdir'
7029 hardcode_minus_L=yes
7030 fi
7031 # see comment about different semantics on the GNU ld section
7032 ld_shlibs=no
7033 ;;
7034
7035 bsdi[45]*)
7036 export_dynamic_flag_spec=-rdynamic
7037 ;;
7038
7039 cygwin* | mingw* | pw32*)
7040 # When not using gcc, we currently assume that we are using
7041 # Microsoft Visual C++.
7042 # hardcode_libdir_flag_spec is actually meaningless, as there is
7043 # no search path for DLLs.
7044 hardcode_libdir_flag_spec=' '
7045 allow_undefined_flag=unsupported
7046 # Tell ltmain to make .lib files, not .a files.
7047 libext=lib
7048 # Tell ltmain to make .dll files, not .so files.
7049 shrext_cmds=".dll"
7050 # FIXME: Setting linknames here is a bad hack.
7051 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7052 # The linker will automatically build a .lib file if we build a DLL.
7053 old_archive_from_new_cmds='true'
7054 # FIXME: Should let the user specify the lib program.
7055 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7056 fix_srcfile_path='`cygpath -w "$srcfile"`'
7057 enable_shared_with_static_runtimes=yes
7058 ;;
7059
7060 darwin* | rhapsody*)
7061 case $host_os in
7062 rhapsody* | darwin1.[012])
7063 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7064 ;;
7065 *) # Darwin 1.3 on
7066 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7067 10.[012])
7068 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7069 ;;
7070 10.*)
7071 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7072 ;;
7073 esac
7074 ;;
7075 esac
7076 archive_cmds_need_lc=no
7077 hardcode_direct=no
7078 hardcode_automatic=yes
7079 hardcode_shlibpath_var=unsupported
7080 whole_archive_flag_spec=''
7081 link_all_deplibs=yes
7082 if test "$GCC" = yes ; then
7083 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7084 echo $ECHO_N "(cached) $ECHO_C" >&6
7085else
7086 lt_cv_apple_cc_single_mod=no
7087 if test -z "${LT_MULTI_MODULE}"; then
7088 # By default we will add the -single_module flag. You can override
7089 # by either setting the environment variable LT_MULTI_MODULE
7090 # non-empty at configure time, or by adding -multi-module to the
7091 # link flags.
7092 echo "int foo(void){return 1;}" > conftest.c
7093 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7094 -dynamiclib ${wl}-single_module conftest.c
7095 if test -f libconftest.dylib; then
7096 lt_cv_apple_cc_single_mod=yes
7097 rm libconftest.dylib
7098 fi
7099 rm conftest.$ac_ext
7100 fi
7101fi
7102
7103 output_verbose_link_cmd=echo
7104 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
7105 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7106 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}'
7107 else
7108 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7109 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}'
7110 fi
7111 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7112 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}'
7113 else
7114 case $cc_basename in
7115 xlc*)
7116 output_verbose_link_cmd=echo
7117 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
7118 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7119 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7120 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}'
7121 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}'
7122 ;;
7123 *)
7124 ld_shlibs=no
7125 ;;
7126 esac
7127 fi
7128 ;;
7129
7130 dgux*)
7131 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7132 hardcode_libdir_flag_spec='-L$libdir'
7133 hardcode_shlibpath_var=no
7134 ;;
7135
7136 freebsd1*)
7137 ld_shlibs=no
7138 ;;
7139
7140 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7141 # support. Future versions do this automatically, but an explicit c++rt0.o
7142 # does not break anything, and helps significantly (at the cost of a little
7143 # extra space).
7144 freebsd2.2*)
7145 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7146 hardcode_libdir_flag_spec='-R$libdir'
7147 hardcode_direct=yes
7148 hardcode_shlibpath_var=no
7149 ;;
7150
7151 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7152 freebsd2*)
7153 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7154 hardcode_direct=yes
7155 hardcode_minus_L=yes
7156 hardcode_shlibpath_var=no
7157 ;;
7158
7159 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7160 freebsd* | dragonfly*)
7161 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7162 hardcode_libdir_flag_spec='-R$libdir'
7163 hardcode_direct=yes
7164 hardcode_shlibpath_var=no
7165 ;;
7166
7167 hpux9*)
7168 if test "$GCC" = yes; then
7169 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'
7170 else
7171 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'
7172 fi
7173 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7174 hardcode_libdir_separator=:
7175 hardcode_direct=yes
7176
7177 # hardcode_minus_L: Not really in the search PATH,
7178 # but as the default location of the library.
7179 hardcode_minus_L=yes
7180 export_dynamic_flag_spec='${wl}-E'
7181 ;;
7182
7183 hpux10*)
7184 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7185 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7186 else
7187 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7188 fi
7189 if test "$with_gnu_ld" = no; then
7190 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7191 hardcode_libdir_flag_spec_ld='+b $libdir'
7192 hardcode_libdir_separator=:
7193 hardcode_direct=yes
7194 hardcode_direct_absolute=yes
7195 export_dynamic_flag_spec='${wl}-E'
7196 # hardcode_minus_L: Not really in the search PATH,
7197 # but as the default location of the library.
7198 hardcode_minus_L=yes
7199 fi
7200 ;;
7201
7202 hpux11*)
7203 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7204 case $host_cpu in
7205 hppa*64*)
7206 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7207 ;;
7208 ia64*)
7209 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7210 ;;
7211 *)
7212 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7213 ;;
7214 esac
7215 else
7216 case $host_cpu in
7217 hppa*64*)
7218 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7219 ;;
7220 ia64*)
7221 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7222 ;;
7223 *)
7224 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7225 ;;
7226 esac
7227 fi
7228 if test "$with_gnu_ld" = no; then
7229 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7230 hardcode_libdir_separator=:
7231
7232 case $host_cpu in
7233 hppa*64*|ia64*)
7234 hardcode_direct=no
7235 hardcode_shlibpath_var=no
7236 ;;
7237 *)
7238 hardcode_direct=yes
7239 hardcode_direct_absolute=yes
7240 export_dynamic_flag_spec='${wl}-E'
7241
7242 # hardcode_minus_L: Not really in the search PATH,
7243 # but as the default location of the library.
7244 hardcode_minus_L=yes
7245 ;;
7246 esac
7247 fi
7248 ;;
7249
7250 irix5* | irix6* | nonstopux*)
7251 if test "$GCC" = yes; then
7252 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'
7253 # Try to use the -exported_symbol ld option, if it does not
7254 # work, assume that -exports_file does not work either and
7255 # implicitly export all symbols.
7256 save_LDFLAGS="$LDFLAGS"
7257 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
7258 cat >conftest.$ac_ext <<_ACEOF
7259int foo(void) {}
7260_ACEOF
7261rm -f conftest.$ac_objext conftest$ac_exeext
7262if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7263 (eval $ac_link) 2>conftest.er1
7264 ac_status=$?
7265 grep -v '^ *+' conftest.er1 >conftest.err
7266 rm -f conftest.er1
7267 cat conftest.err >&5
7268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7269 (exit $ac_status); } &&
7270 { ac_try='test -z "$ac_c_werror_flag"
7271 || test ! -s conftest.err'
7272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7273 (eval $ac_try) 2>&5
7274 ac_status=$?
7275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276 (exit $ac_status); }; } &&
7277 { ac_try='test -s conftest$ac_exeext'
7278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7279 (eval $ac_try) 2>&5
7280 ac_status=$?
7281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7282 (exit $ac_status); }; }; then
7283 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'
7284
7285else
7286 echo "$as_me: failed program was:" >&5
7287sed 's/^/| /' conftest.$ac_ext >&5
7288
7289fi
7290rm -f conftest.err conftest.$ac_objext \
7291 conftest$ac_exeext conftest.$ac_ext
7292 LDFLAGS="$save_LDFLAGS"
7293 else
7294 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'
7295 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'
7296 fi
7297 archive_cmds_need_lc='no'
7298 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7299 hardcode_libdir_separator=:
7300 inherit_rpath=yes
7301 link_all_deplibs=yes
7302 ;;
7303
7304 netbsd*)
7305 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7306 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7307 else
7308 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7309 fi
7310 hardcode_libdir_flag_spec='-R$libdir'
7311 hardcode_direct=yes
7312 hardcode_shlibpath_var=no
7313 ;;
7314
7315 newsos6)
7316 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7317 hardcode_direct=yes
7318 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7319 hardcode_libdir_separator=:
7320 hardcode_shlibpath_var=no
7321 ;;
7322
7323 *nto* | *qnx*)
7324 ;;
7325
7326 openbsd*)
7327 hardcode_direct=yes
7328 hardcode_shlibpath_var=no
7329 hardcode_direct_absolute=yes
7330 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7331 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7332 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7333 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7334 export_dynamic_flag_spec='${wl}-E'
7335 else
7336 case $host_os in
7337 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7338 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7339 hardcode_libdir_flag_spec='-R$libdir'
7340 ;;
7341 *)
7342 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7343 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7344 ;;
7345 esac
7346 fi
7347 ;;
7348
7349 os2*)
7350 hardcode_libdir_flag_spec='-L$libdir'
7351 hardcode_minus_L=yes
7352 allow_undefined_flag=unsupported
7353 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'
7354 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7355 ;;
7356
7357 osf3*)
7358 if test "$GCC" = yes; then
7359 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7360 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'
7361 else
7362 allow_undefined_flag=' -expect_unresolved \*'
7363 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'
7364 fi
7365 archive_cmds_need_lc='no'
7366 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7367 hardcode_libdir_separator=:
7368 ;;
7369
7370 osf4* | osf5*) # as osf3* with the addition of -msym flag
7371 if test "$GCC" = yes; then
7372 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7373 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'
7374 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7375 else
7376 allow_undefined_flag=' -expect_unresolved \*'
7377 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'
7378 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~
7379 $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'
7380
7381 # Both c and cxx compiler support -rpath directly
7382 hardcode_libdir_flag_spec='-rpath $libdir'
7383 fi
7384 archive_cmds_need_lc='no'
7385 hardcode_libdir_separator=:
7386 ;;
7387
7388 solaris*)
7389 no_undefined_flag=' -z defs'
7390 if test "$GCC" = yes; then
7391 wlarc='${wl}'
7392 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7393 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7394 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7395 else
7396 case `$CC -V 2>&1` in
7397 *"Compilers 5.0"*)
7398 wlarc=''
7399 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7400 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7401 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
7402 ;;
7403 *)
7404 wlarc='${wl}'
7405 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
7406 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7407 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7408 ;;
7409 esac
7410 fi
7411 hardcode_libdir_flag_spec='-R$libdir'
7412 hardcode_shlibpath_var=no
7413 case $host_os in
7414 solaris2.[0-5] | solaris2.[0-5].*) ;;
7415 *)
7416 # The compiler driver will combine and reorder linker options,
7417 # but understands `-z linker_flag'. GCC discards it without `$wl',
7418 # but is careful enough not to reorder.
7419 # Supported since Solaris 2.6 (maybe 2.5.1?)
7420 if test "$GCC" = yes; then
7421 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7422 else
7423 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
7424 fi
7425 ;;
7426 esac
7427 link_all_deplibs=yes
7428 ;;
7429
7430 sunos4*)
7431 if test "x$host_vendor" = xsequent; then
7432 # Use $CC to link under sequent, because it throws in some extra .o
7433 # files that make .init and .fini sections work.
7434 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7435 else
7436 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7437 fi
7438 hardcode_libdir_flag_spec='-L$libdir'
7439 hardcode_direct=yes
7440 hardcode_minus_L=yes
7441 hardcode_shlibpath_var=no
7442 ;;
7443
7444 sysv4)
7445 case $host_vendor in
7446 sni)
7447 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7448 hardcode_direct=yes # is this really true???
7449 ;;
7450 siemens)
7451 ## LD is ld it makes a PLAMLIB
7452 ## CC just makes a GrossModule.
7453 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7454 reload_cmds='$CC -r -o $output$reload_objs'
7455 hardcode_direct=no
7456 ;;
7457 motorola)
7458 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7459 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7460 ;;
7461 esac
7462 runpath_var='LD_RUN_PATH'
7463 hardcode_shlibpath_var=no
7464 ;;
7465
7466 sysv4.3*)
7467 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7468 hardcode_shlibpath_var=no
7469 export_dynamic_flag_spec='-Bexport'
7470 ;;
7471
7472 sysv4*MP*)
7473 if test -d /usr/nec; then
7474 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7475 hardcode_shlibpath_var=no
7476 runpath_var=LD_RUN_PATH
7477 hardcode_runpath_var=yes
7478 ld_shlibs=yes
7479 fi
7480 ;;
7481
7482 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
7483 no_undefined_flag='${wl}-z,text'
7484 archive_cmds_need_lc=no
7485 hardcode_shlibpath_var=no
7486 runpath_var='LD_RUN_PATH'
7487
7488 if test "$GCC" = yes; then
7489 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7490 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7491 else
7492 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7493 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7494 fi
7495 ;;
7496
7497 sysv5* | sco3.2v5* | sco5v6*)
7498 # Note: We can NOT use -z defs as we might desire, because we do not
7499 # link with -lc, and that would cause any symbols used from libc to
7500 # always be unresolved, which means just about no library would
7501 # ever link correctly. If we're not using GNU ld we use -z text
7502 # though, which does catch some bad symbols but isn't as heavy-handed
7503 # as -z defs.
7504 no_undefined_flag='${wl}-z,text'
7505 allow_undefined_flag='${wl}-z,nodefs'
7506 archive_cmds_need_lc=no
7507 hardcode_shlibpath_var=no
7508 hardcode_libdir_flag_spec='${wl}-R,$libdir'
7509 hardcode_libdir_separator=':'
7510 link_all_deplibs=yes
7511 export_dynamic_flag_spec='${wl}-Bexport'
7512 runpath_var='LD_RUN_PATH'
7513
7514 if test "$GCC" = yes; then
7515 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7516 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7517 else
7518 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7519 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7520 fi
7521 ;;
7522
7523 uts4*)
7524 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7525 hardcode_libdir_flag_spec='-L$libdir'
7526 hardcode_shlibpath_var=no
7527 ;;
7528
7529 *)
7530 ld_shlibs=no
7531 ;;
7532 esac
7533
7534 if test x$host_vendor = xsni; then
7535 case $host in
7536 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7537 export_dynamic_flag_spec='${wl}-Blargedynsym'
7538 ;;
7539 esac
7540 fi
7541 fi
7542
7543echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7544echo "${ECHO_T}$ld_shlibs" >&6
7545test "$ld_shlibs" = no && can_build_shared=no
7546
7547with_gnu_ld=$with_gnu_ld
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563#
7564# Do we need to explicitly link libc?
7565#
7566case "x$archive_cmds_need_lc" in
7567x|xyes)
7568 # Assume -lc should be added
7569 archive_cmds_need_lc=yes
7570
7571 if test "$enable_shared" = yes && test "$GCC" = yes; then
7572 case $archive_cmds in
7573 *'~'*)
7574 # FIXME: we may have to deal with multi-command sequences.
7575 ;;
7576 '$CC '*)
7577 # Test whether the compiler implicitly links with -lc since on some
7578 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7579 # to ld, don't add -lc before -lgcc.
7580 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7581echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7582 $RM conftest*
7583 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7584
7585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7586 (eval $ac_compile) 2>&5
7587 ac_status=$?
7588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7589 (exit $ac_status); } 2>conftest.err; then
7590 soname=conftest
7591 lib=conftest
7592 libobjs=conftest.$ac_objext
7593 deplibs=
7594 wl=$lt_prog_compiler_wl
7595 pic_flag=$lt_prog_compiler_pic
7596 compiler_flags=-v
7597 linker_flags=-v
7598 verstring=
7599 output_objdir=.
7600 libname=conftest
7601 lt_save_allow_undefined_flag=$allow_undefined_flag
7602 allow_undefined_flag=
7603 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
7604 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
7605 ac_status=$?
7606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7607 (exit $ac_status); }
7608 then
7609 archive_cmds_need_lc=no
7610 else
7611 archive_cmds_need_lc=yes
7612 fi
7613 allow_undefined_flag=$lt_save_allow_undefined_flag
7614 else
7615 cat conftest.err 1>&5
7616 fi
7617 $RM conftest*
7618 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7619echo "${ECHO_T}$archive_cmds_need_lc" >&6
7620 ;;
7621 esac
7622 fi
7623 ;;
7624esac
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7783echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7784withGCC=$GCC
7785if test "$withGCC" = yes; then
7786 case $host_os in
7787 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
7788 *) lt_awk_arg="/^libraries:/" ;;
7789 esac
7790 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7791 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
7792 # if the path contains ";" then we assume it to be the separator
7793 # otherwise default to the standard path separator (i.e. ":") - it is
7794 # assumed that no part of a normal pathname contains ";" but that should
7795 # okay in the real world where ";" in dirpaths is itself problematic.
7796 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
7797 else
7798 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7799 fi
7800 # Ok, now we have the path, separated by spaces, we can step through it
7801 # and add multilib dir if necessary.
7802 lt_tmp_lt_search_path_spec=
7803 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
7804 for lt_sys_path in $lt_search_path_spec; do
7805 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
7806 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
7807 else
7808 test -d "$lt_sys_path" && \
7809 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
7810 fi
7811 done
7812 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
7813BEGIN {RS=" "; FS="/|\n";} {
7814 lt_foo="";
7815 lt_count=0;
7816 for (lt_i = NF; lt_i > 0; lt_i--) {
7817 if ($lt_i != "" && $lt_i != ".") {
7818 if ($lt_i == "..") {
7819 lt_count++;
7820 } else {
7821 if (lt_count == 0) {
7822 lt_foo="/" $lt_i lt_foo;
7823 } else {
7824 lt_count--;
7825 }
7826 }
7827 }
7828 }
7829 if (lt_foo != "") { lt_freq[lt_foo]++; }
7830 if (lt_freq[lt_foo] == 1) { print lt_foo; }
7831}'`
7832 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
7833else
7834 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7835fi
7836library_names_spec=
7837libname_spec='lib$name'
7838soname_spec=
7839shrext_cmds=".so"
7840postinstall_cmds=
7841postuninstall_cmds=
7842finish_cmds=
7843finish_eval=
7844shlibpath_var=
7845shlibpath_overrides_runpath=unknown
7846version_type=none
7847dynamic_linker="$host_os ld.so"
7848sys_lib_dlsearch_path_spec="/lib /usr/lib"
7849need_lib_prefix=unknown
7850hardcode_into_libs=no
7851
7852# when you set need_version to no, make sure it does not cause -set_version
7853# flags to be left without arguments
7854need_version=unknown
7855
7856case $host_os in
7857aix3*)
7858 version_type=linux
7859 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7860 shlibpath_var=LIBPATH
7861
7862 # AIX 3 has no versioning support, so we append a major version to the name.
7863 soname_spec='${libname}${release}${shared_ext}$major'
7864 ;;
7865
7866aix4* | aix5*)
7867 version_type=linux
7868 need_lib_prefix=no
7869 need_version=no
7870 hardcode_into_libs=yes
7871 if test "$host_cpu" = ia64; then
7872 # AIX 5 supports IA64
7873 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7874 shlibpath_var=LD_LIBRARY_PATH
7875 else
7876 # With GCC up to 2.95.x, collect2 would create an import file
7877 # for dependence libraries. The import file would start with
7878 # the line `#! .'. This would cause the generated library to
7879 # depend on `.', always an invalid library. This was fixed in
7880 # development snapshots of GCC prior to 3.0.
7881 case $host_os in
7882 aix4 | aix4.[01] | aix4.[01].*)
7883 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7884 echo ' yes '
7885 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
7886 :
7887 else
7888 can_build_shared=no
7889 fi
7890 ;;
7891 esac
7892 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7893 # soname into executable. Probably we can add versioning support to
7894 # collect2, so additional links can be useful in future.
7895 if test "$aix_use_runtimelinking" = yes; then
7896 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7897 # instead of lib<name>.a to let people know that these are not
7898 # typical AIX shared libraries.
7899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7900 else
7901 # We preserve .a as extension for shared libraries through AIX4.2
7902 # and later when we are not doing run time linking.
7903 library_names_spec='${libname}${release}.a $libname.a'
7904 soname_spec='${libname}${release}${shared_ext}$major'
7905 fi
7906 shlibpath_var=LIBPATH
7907 fi
7908 ;;
7909
7910amigaos*)
7911 if test "$host_cpu" = m68k; then
7912 library_names_spec='$libname.ixlibrary $libname.a'
7913 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7914 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'
7915 else
7916 dynamic_linker=no
7917 fi
7918 ;;
7919
7920beos*)
7921 library_names_spec='${libname}${shared_ext}'
7922 dynamic_linker="$host_os ld.so"
7923 shlibpath_var=LIBRARY_PATH
7924 ;;
7925
7926bsdi[45]*)
7927 version_type=linux
7928 need_version=no
7929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7930 soname_spec='${libname}${release}${shared_ext}$major'
7931 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7932 shlibpath_var=LD_LIBRARY_PATH
7933 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7934 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7935 # the default ld.so.conf also contains /usr/contrib/lib and
7936 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7937 # libtool to hard-code these into programs
7938 ;;
7939
7940cygwin* | mingw* | pw32*)
7941 version_type=windows
7942 shrext_cmds=".dll"
7943 need_version=no
7944 need_lib_prefix=no
7945
7946 case $withGCC,$host_os in
7947 yes,cygwin* | yes,mingw* | yes,pw32*)
7948 library_names_spec='$libname.dll.a'
7949 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7950 postinstall_cmds='base_file=`basename \${file}`~
7951 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
7952 dldir=$destdir/`dirname \$dlpath`~
7953 test -d \$dldir || mkdir -p \$dldir~
7954 $install_prog $dir/$dlname \$dldir/$dlname~
7955 chmod a+x \$dldir/$dlname~
7956 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
7957 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
7958 fi'
7959 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7960 dlpath=$dir/\$dldll~
7961 $RM \$dlpath'
7962 shlibpath_overrides_runpath=yes
7963
7964 case $host_os in
7965 cygwin*)
7966 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7967 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7968 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7969 ;;
7970 mingw*)
7971 # MinGW DLLs use traditional 'lib' prefix
7972 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7973 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7974 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
7975 # It is most probably a Windows format PATH printed by
7976 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7977 # path with ; separators, and with drive letters. We can handle the
7978 # drive letters (cygwin fileutils understands them), so leave them,
7979 # especially as we might pass files found there to a mingw objdump,
7980 # which wouldn't understand a cygwinified path. Ahh.
7981 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7982 else
7983 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7984 fi
7985 ;;
7986 pw32*)
7987 # pw32 DLLs use 'pw' prefix rather than 'lib'
7988 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7989 ;;
7990 esac
7991 ;;
7992
7993 *)
7994 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7995 ;;
7996 esac
7997 dynamic_linker='Win32 ld.exe'
7998 # FIXME: first we should search . and the directory the executable is in
7999 shlibpath_var=PATH
8000 ;;
8001
8002darwin* | rhapsody*)
8003 dynamic_linker="$host_os dyld"
8004 version_type=darwin
8005 need_lib_prefix=no
8006 need_version=no
8007 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8008 soname_spec='${libname}${release}${major}$shared_ext'
8009 shlibpath_overrides_runpath=yes
8010 shlibpath_var=DYLD_LIBRARY_PATH
8011 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8012
8013 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8014 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8015 ;;
8016
8017dgux*)
8018 version_type=linux
8019 need_lib_prefix=no
8020 need_version=no
8021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8022 soname_spec='${libname}${release}${shared_ext}$major'
8023 shlibpath_var=LD_LIBRARY_PATH
8024 ;;
8025
8026freebsd1*)
8027 dynamic_linker=no
8028 ;;
8029
8030freebsd* | dragonfly*)
8031 # DragonFly does not have aout. When/if they implement a new
8032 # versioning mechanism, adjust this.
8033 if test -x /usr/bin/objformat; then
8034 objformat=`/usr/bin/objformat`
8035 else
8036 case $host_os in
8037 freebsd[123]*) objformat=aout ;;
8038 *) objformat=elf ;;
8039 esac
8040 fi
8041 version_type=freebsd-$objformat
8042 case $version_type in
8043 freebsd-elf*)
8044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8045 need_version=no
8046 need_lib_prefix=no
8047 ;;
8048 freebsd-*)
8049 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8050 need_version=yes
8051 ;;
8052 esac
8053 shlibpath_var=LD_LIBRARY_PATH
8054 case $host_os in
8055 freebsd2*)
8056 shlibpath_overrides_runpath=yes
8057 ;;
8058 freebsd3.[01]* | freebsdelf3.[01]*)
8059 shlibpath_overrides_runpath=yes
8060 hardcode_into_libs=yes
8061 ;;
8062 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8063 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8064 shlibpath_overrides_runpath=no
8065 hardcode_into_libs=yes
8066 ;;
8067 *) # from 4.6 on, and DragonFly
8068 shlibpath_overrides_runpath=yes
8069 hardcode_into_libs=yes
8070 ;;
8071 esac
8072 ;;
8073
8074gnu*)
8075 version_type=linux
8076 need_lib_prefix=no
8077 need_version=no
8078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8079 soname_spec='${libname}${release}${shared_ext}$major'
8080 shlibpath_var=LD_LIBRARY_PATH
8081 hardcode_into_libs=yes
8082 ;;
8083
8084hpux9* | hpux10* | hpux11*)
8085 # Give a soname corresponding to the major version so that dld.sl refuses to
8086 # link against other versions.
8087 version_type=sunos
8088 need_lib_prefix=no
8089 need_version=no
8090 case $host_cpu in
8091 ia64*)
8092 shrext_cmds='.so'
8093 hardcode_into_libs=yes
8094 dynamic_linker="$host_os dld.so"
8095 shlibpath_var=LD_LIBRARY_PATH
8096 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8098 soname_spec='${libname}${release}${shared_ext}$major'
8099 if test "X$HPUX_IA64_MODE" = X32; then
8100 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8101 else
8102 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8103 fi
8104 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8105 ;;
8106 hppa*64*)
8107 shrext_cmds='.sl'
8108 hardcode_into_libs=yes
8109 dynamic_linker="$host_os dld.sl"
8110 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8111 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8113 soname_spec='${libname}${release}${shared_ext}$major'
8114 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8115 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8116 ;;
8117 *)
8118 shrext_cmds='.sl'
8119 dynamic_linker="$host_os dld.sl"
8120 shlibpath_var=SHLIB_PATH
8121 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8123 soname_spec='${libname}${release}${shared_ext}$major'
8124 ;;
8125 esac
8126 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8127 postinstall_cmds='chmod 555 $lib'
8128 ;;
8129
8130interix[3-9]*)
8131 version_type=linux
8132 need_lib_prefix=no
8133 need_version=no
8134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8135 soname_spec='${libname}${release}${shared_ext}$major'
8136 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8137 shlibpath_var=LD_LIBRARY_PATH
8138 shlibpath_overrides_runpath=no
8139 hardcode_into_libs=yes
8140 ;;
8141
8142irix5* | irix6* | nonstopux*)
8143 case $host_os in
8144 nonstopux*) version_type=nonstopux ;;
8145 *)
8146 if test "$lt_cv_prog_gnu_ld" = yes; then
8147 version_type=linux
8148 else
8149 version_type=irix
8150 fi ;;
8151 esac
8152 need_lib_prefix=no
8153 need_version=no
8154 soname_spec='${libname}${release}${shared_ext}$major'
8155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8156 case $host_os in
8157 irix5* | nonstopux*)
8158 libsuff= shlibsuff=
8159 ;;
8160 *)
8161 case $LD in # libtool.m4 will add one of these switches to LD
8162 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8163 libsuff= shlibsuff= libmagic=32-bit;;
8164 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8165 libsuff=32 shlibsuff=N32 libmagic=N32;;
8166 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8167 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8168 *) libsuff= shlibsuff= libmagic=never-match;;
8169 esac
8170 ;;
8171 esac
8172 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8173 shlibpath_overrides_runpath=no
8174 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8175 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8176 hardcode_into_libs=yes
8177 ;;
8178
8179# No shared lib support for Linux oldld, aout, or coff.
8180linux*oldld* | linux*aout* | linux*coff*)
8181 dynamic_linker=no
8182 ;;
8183
8184# This must be Linux ELF.
8185linux* | k*bsd*-gnu)
8186 version_type=linux
8187 need_lib_prefix=no
8188 need_version=no
8189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8190 soname_spec='${libname}${release}${shared_ext}$major'
8191 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8192 shlibpath_var=LD_LIBRARY_PATH
8193 shlibpath_overrides_runpath=no
8194 # Some binutils ld are patched to set DT_RUNPATH
8195 save_LDFLAGS=$LDFLAGS
8196 save_libdir=$libdir
8197 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8198 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8199 cat >conftest.$ac_ext <<_ACEOF
8200/* confdefs.h. */
8201_ACEOF
8202cat confdefs.h >>conftest.$ac_ext
8203cat >>conftest.$ac_ext <<_ACEOF
8204/* end confdefs.h. */
8205
8206int
8207main ()
8208{
8209
8210 ;
8211 return 0;
8212}
8213_ACEOF
8214rm -f conftest.$ac_objext conftest$ac_exeext
8215if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8216 (eval $ac_link) 2>conftest.er1
8217 ac_status=$?
8218 grep -v '^ *+' conftest.er1 >conftest.err
8219 rm -f conftest.er1
8220 cat conftest.err >&5
8221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222 (exit $ac_status); } &&
8223 { ac_try='test -z "$ac_c_werror_flag"
8224 || test ! -s conftest.err'
8225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8226 (eval $ac_try) 2>&5
8227 ac_status=$?
8228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229 (exit $ac_status); }; } &&
8230 { ac_try='test -s conftest$ac_exeext'
8231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8232 (eval $ac_try) 2>&5
8233 ac_status=$?
8234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235 (exit $ac_status); }; }; then
8236 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
8237 shlibpath_overrides_runpath=yes
8238fi
8239
8240else
8241 echo "$as_me: failed program was:" >&5
8242sed 's/^/| /' conftest.$ac_ext >&5
8243
8244fi
8245rm -f conftest.err conftest.$ac_objext \
8246 conftest$ac_exeext conftest.$ac_ext
8247 LDFLAGS=$save_LDFLAGS
8248 libdir=$save_libdir
8249
8250 # This implies no fast_install, which is unacceptable.
8251 # Some rework will be needed to allow for fast_install
8252 # before this can be enabled.
8253 hardcode_into_libs=yes
8254
8255 # Append ld.so.conf contents to the search path
8256 if test -f /etc/ld.so.conf; then
8257 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' ' '`
8258 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8259 fi
8260
8261 # We used to test for /lib/ld.so.1 and disable shared libraries on
8262 # powerpc, because MkLinux only supported shared libraries with the
8263 # GNU dynamic linker. Since this was broken with cross compilers,
8264 # most powerpc-linux boxes support dynamic linking these days and
8265 # people can always --disable-shared, the test was removed, and we
8266 # assume the GNU/Linux dynamic linker is in use.
8267 dynamic_linker='GNU/Linux ld.so'
8268 ;;
8269
8270netbsd*)
8271 version_type=sunos
8272 need_lib_prefix=no
8273 need_version=no
8274 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8276 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8277 dynamic_linker='NetBSD (a.out) ld.so'
8278 else
8279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8280 soname_spec='${libname}${release}${shared_ext}$major'
8281 dynamic_linker='NetBSD ld.elf_so'
8282 fi
8283 shlibpath_var=LD_LIBRARY_PATH
8284 shlibpath_overrides_runpath=yes
8285 hardcode_into_libs=yes
8286 ;;
8287
8288newsos6)
8289 version_type=linux
8290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8291 shlibpath_var=LD_LIBRARY_PATH
8292 shlibpath_overrides_runpath=yes
8293 ;;
8294
8295*nto* | *qnx*)
8296 version_type=qnx
8297 need_lib_prefix=no
8298 need_version=no
8299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8300 soname_spec='${libname}${release}${shared_ext}$major'
8301 shlibpath_var=LD_LIBRARY_PATH
8302 shlibpath_overrides_runpath=no
8303 hardcode_into_libs=yes
8304 dynamic_linker='ldqnx.so'
8305 ;;
8306
8307openbsd*)
8308 version_type=sunos
8309 sys_lib_dlsearch_path_spec="/usr/lib"
8310 need_lib_prefix=no
8311 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8312 case $host_os in
8313 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8314 *) need_version=no ;;
8315 esac
8316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8317 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8318 shlibpath_var=LD_LIBRARY_PATH
8319 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8320 case $host_os in
8321 openbsd2.[89] | openbsd2.[89].*)
8322 shlibpath_overrides_runpath=no
8323 ;;
8324 *)
8325 shlibpath_overrides_runpath=yes
8326 ;;
8327 esac
8328 else
8329 shlibpath_overrides_runpath=yes
8330 fi
8331 ;;
8332
8333os2*)
8334 libname_spec='$name'
8335 shrext_cmds=".dll"
8336 need_lib_prefix=no
8337 library_names_spec='$libname${shared_ext} $libname.a'
8338 dynamic_linker='OS/2 ld.exe'
8339 shlibpath_var=LIBPATH
8340 ;;
8341
8342osf3* | osf4* | osf5*)
8343 version_type=osf
8344 need_lib_prefix=no
8345 need_version=no
8346 soname_spec='${libname}${release}${shared_ext}$major'
8347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8348 shlibpath_var=LD_LIBRARY_PATH
8349 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8350 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8351 ;;
8352
8353rdos*)
8354 dynamic_linker=no
8355 ;;
8356
8357solaris*)
8358 version_type=linux
8359 need_lib_prefix=no
8360 need_version=no
8361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8362 soname_spec='${libname}${release}${shared_ext}$major'
8363 shlibpath_var=LD_LIBRARY_PATH
8364 shlibpath_overrides_runpath=yes
8365 hardcode_into_libs=yes
8366 # ldd complains unless libraries are executable
8367 postinstall_cmds='chmod +x $lib'
8368 ;;
8369
8370sunos4*)
8371 version_type=sunos
8372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8373 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8374 shlibpath_var=LD_LIBRARY_PATH
8375 shlibpath_overrides_runpath=yes
8376 if test "$with_gnu_ld" = yes; then
8377 need_lib_prefix=no
8378 fi
8379 need_version=yes
8380 ;;
8381
8382sysv4 | sysv4.3*)
8383 version_type=linux
8384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8385 soname_spec='${libname}${release}${shared_ext}$major'
8386 shlibpath_var=LD_LIBRARY_PATH
8387 case $host_vendor in
8388 sni)
8389 shlibpath_overrides_runpath=no
8390 need_lib_prefix=no
8391 runpath_var=LD_RUN_PATH
8392 ;;
8393 siemens)
8394 need_lib_prefix=no
8395 ;;
8396 motorola)
8397 need_lib_prefix=no
8398 need_version=no
8399 shlibpath_overrides_runpath=no
8400 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8401 ;;
8402 esac
8403 ;;
8404
8405sysv4*MP*)
8406 if test -d /usr/nec ;then
8407 version_type=linux
8408 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8409 soname_spec='$libname${shared_ext}.$major'
8410 shlibpath_var=LD_LIBRARY_PATH
8411 fi
8412 ;;
8413
8414sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8415 version_type=freebsd-elf
8416 need_lib_prefix=no
8417 need_version=no
8418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8419 soname_spec='${libname}${release}${shared_ext}$major'
8420 shlibpath_var=LD_LIBRARY_PATH
8421 shlibpath_overrides_runpath=yes
8422 hardcode_into_libs=yes
8423 if test "$with_gnu_ld" = yes; then
8424 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8425 else
8426 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8427 case $host_os in
8428 sco3.2v5*)
8429 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8430 ;;
8431 esac
8432 fi
8433 sys_lib_dlsearch_path_spec='/usr/lib'
8434 ;;
8435
8436tpf*)
8437 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
8438 version_type=linux
8439 need_lib_prefix=no
8440 need_version=no
8441 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8442 shlibpath_var=LD_LIBRARY_PATH
8443 shlibpath_overrides_runpath=no
8444 hardcode_into_libs=yes
8445 ;;
8446
8447uts4*)
8448 version_type=linux
8449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8450 soname_spec='${libname}${release}${shared_ext}$major'
8451 shlibpath_var=LD_LIBRARY_PATH
8452 ;;
8453
8454*)
8455 dynamic_linker=no
8456 ;;
8457esac
8458echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8459echo "${ECHO_T}$dynamic_linker" >&6
8460test "$dynamic_linker" = no && can_build_shared=no
8461
8462variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8463if test "$GCC" = yes; then
8464 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8465fi
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
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
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8554echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8555hardcode_action=
8556if test -n "$hardcode_libdir_flag_spec" ||
8557 test -n "$runpath_var" ||
8558 test "X$hardcode_automatic" = "Xyes" ; then
8559
8560 # We can hardcode non-existent directories.
8561 if test "$hardcode_direct" != no &&
8562 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8563 # have to relink, otherwise we might link with an installed library
8564 # when we should be linking with a yet-to-be-installed one
8565 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
8566 test "$hardcode_minus_L" != no; then
8567 # Linking always hardcodes the temporary library directory.
8568 hardcode_action=relink
8569 else
8570 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8571 hardcode_action=immediate
8572 fi
8573else
8574 # We cannot hardcode anything, or else we can only hardcode existing
8575 # directories.
8576 hardcode_action=unsupported
8577fi
8578echo "$as_me:$LINENO: result: $hardcode_action" >&5
8579echo "${ECHO_T}$hardcode_action" >&6
8580
8581if test "$hardcode_action" = relink ||
8582 test "$inherit_rpath" = yes; then
8583 # Fast installation is not supported
8584 enable_fast_install=no
8585elif test "$shlibpath_overrides_runpath" = yes ||
8586 test "$enable_shared" = no; then
8587 # Fast installation is not necessary
8588 enable_fast_install=needless
8589fi
8590
8591
8592
8593
8594
8595
8596 if test "x$enable_dlopen" != xyes; then
8597 enable_dlopen=unknown
8598 enable_dlopen_self=unknown
8599 enable_dlopen_self_static=unknown
8600else
8601 lt_cv_dlopen=no
8602 lt_cv_dlopen_libs=
8603
8604 case $host_os in
8605 beos*)
8606 lt_cv_dlopen="load_add_on"
8607 lt_cv_dlopen_libs=
8608 lt_cv_dlopen_self=yes
8609 ;;
8610
8611 mingw* | pw32*)
8612 lt_cv_dlopen="LoadLibrary"
8613 lt_cv_dlopen_libs=
8614 ;;
8615
8616 cygwin*)
8617 lt_cv_dlopen="dlopen"
8618 lt_cv_dlopen_libs=
8619 ;;
8620
8621 darwin*)
8622 # if libdl is installed we need to link against it
8623 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8624echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8625if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8626 echo $ECHO_N "(cached) $ECHO_C" >&6
8627else
8628 ac_check_lib_save_LIBS=$LIBS
8629LIBS="-ldl $LIBS"
8630cat >conftest.$ac_ext <<_ACEOF
8631/* confdefs.h. */
8632_ACEOF
8633cat confdefs.h >>conftest.$ac_ext
8634cat >>conftest.$ac_ext <<_ACEOF
8635/* end confdefs.h. */
8636
8637/* Override any gcc2 internal prototype to avoid an error. */
8638#ifdef __cplusplus
8639extern "C"
8640#endif
8641/* We use char because int might match the return type of a gcc2
8642 builtin and then its argument prototype would still apply. */
8643char dlopen ();
8644int
8645main ()
8646{
8647dlopen ();
8648 ;
8649 return 0;
8650}
8651_ACEOF
8652rm -f conftest.$ac_objext conftest$ac_exeext
8653if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8654 (eval $ac_link) 2>conftest.er1
8655 ac_status=$?
8656 grep -v '^ *+' conftest.er1 >conftest.err
8657 rm -f conftest.er1
8658 cat conftest.err >&5
8659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8660 (exit $ac_status); } &&
8661 { ac_try='test -z "$ac_c_werror_flag"
8662 || test ! -s conftest.err'
8663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8664 (eval $ac_try) 2>&5
8665 ac_status=$?
8666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667 (exit $ac_status); }; } &&
8668 { ac_try='test -s conftest$ac_exeext'
8669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8670 (eval $ac_try) 2>&5
8671 ac_status=$?
8672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673 (exit $ac_status); }; }; then
8674 ac_cv_lib_dl_dlopen=yes
8675else
8676 echo "$as_me: failed program was:" >&5
8677sed 's/^/| /' conftest.$ac_ext >&5
8678
8679ac_cv_lib_dl_dlopen=no
8680fi
8681rm -f conftest.err conftest.$ac_objext \
8682 conftest$ac_exeext conftest.$ac_ext
8683LIBS=$ac_check_lib_save_LIBS
8684fi
8685echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8686echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8687if test $ac_cv_lib_dl_dlopen = yes; then
8688 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8689else
8690
8691 lt_cv_dlopen="dyld"
8692 lt_cv_dlopen_libs=
8693 lt_cv_dlopen_self=yes
8694
8695fi
8696
8697 ;;
8698
8699 *)
8700 echo "$as_me:$LINENO: checking for shl_load" >&5
8701echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8702if test "${ac_cv_func_shl_load+set}" = set; then
8703 echo $ECHO_N "(cached) $ECHO_C" >&6
8704else
8705 cat >conftest.$ac_ext <<_ACEOF
8706/* confdefs.h. */
8707_ACEOF
8708cat confdefs.h >>conftest.$ac_ext
8709cat >>conftest.$ac_ext <<_ACEOF
8710/* end confdefs.h. */
8711/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8712 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8713#define shl_load innocuous_shl_load
8714
8715/* System header to define __stub macros and hopefully few prototypes,
8716 which can conflict with char shl_load (); below.
8717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8718 <limits.h> exists even on freestanding compilers. */
8719
8720#ifdef __STDC__
8721# include <limits.h>
8722#else
8723# include <assert.h>
8724#endif
8725
8726#undef shl_load
8727
8728/* Override any gcc2 internal prototype to avoid an error. */
8729#ifdef __cplusplus
8730extern "C"
8731{
8732#endif
8733/* We use char because int might match the return type of a gcc2
8734 builtin and then its argument prototype would still apply. */
8735char shl_load ();
8736/* The GNU C library defines this for functions which it implements
8737 to always fail with ENOSYS. Some functions are actually named
8738 something starting with __ and the normal name is an alias. */
8739#if defined (__stub_shl_load) || defined (__stub___shl_load)
8740choke me
8741#else
8742char (*f) () = shl_load;
8743#endif
8744#ifdef __cplusplus
8745}
8746#endif
8747
8748int
8749main ()
8750{
8751return f != shl_load;
8752 ;
8753 return 0;
8754}
8755_ACEOF
8756rm -f conftest.$ac_objext conftest$ac_exeext
8757if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8758 (eval $ac_link) 2>conftest.er1
8759 ac_status=$?
8760 grep -v '^ *+' conftest.er1 >conftest.err
8761 rm -f conftest.er1
8762 cat conftest.err >&5
8763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764 (exit $ac_status); } &&
8765 { ac_try='test -z "$ac_c_werror_flag"
8766 || test ! -s conftest.err'
8767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8768 (eval $ac_try) 2>&5
8769 ac_status=$?
8770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771 (exit $ac_status); }; } &&
8772 { ac_try='test -s conftest$ac_exeext'
8773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8774 (eval $ac_try) 2>&5
8775 ac_status=$?
8776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777 (exit $ac_status); }; }; then
8778 ac_cv_func_shl_load=yes
8779else
8780 echo "$as_me: failed program was:" >&5
8781sed 's/^/| /' conftest.$ac_ext >&5
8782
8783ac_cv_func_shl_load=no
8784fi
8785rm -f conftest.err conftest.$ac_objext \
8786 conftest$ac_exeext conftest.$ac_ext
8787fi
8788echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8789echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8790if test $ac_cv_func_shl_load = yes; then
8791 lt_cv_dlopen="shl_load"
8792else
8793 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8794echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8795if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8796 echo $ECHO_N "(cached) $ECHO_C" >&6
8797else
8798 ac_check_lib_save_LIBS=$LIBS
8799LIBS="-ldld $LIBS"
8800cat >conftest.$ac_ext <<_ACEOF
8801/* confdefs.h. */
8802_ACEOF
8803cat confdefs.h >>conftest.$ac_ext
8804cat >>conftest.$ac_ext <<_ACEOF
8805/* end confdefs.h. */
8806
8807/* Override any gcc2 internal prototype to avoid an error. */
8808#ifdef __cplusplus
8809extern "C"
8810#endif
8811/* We use char because int might match the return type of a gcc2
8812 builtin and then its argument prototype would still apply. */
8813char shl_load ();
8814int
8815main ()
8816{
8817shl_load ();
8818 ;
8819 return 0;
8820}
8821_ACEOF
8822rm -f conftest.$ac_objext conftest$ac_exeext
8823if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8824 (eval $ac_link) 2>conftest.er1
8825 ac_status=$?
8826 grep -v '^ *+' conftest.er1 >conftest.err
8827 rm -f conftest.er1
8828 cat conftest.err >&5
8829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830 (exit $ac_status); } &&
8831 { ac_try='test -z "$ac_c_werror_flag"
8832 || test ! -s conftest.err'
8833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8834 (eval $ac_try) 2>&5
8835 ac_status=$?
8836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837 (exit $ac_status); }; } &&
8838 { ac_try='test -s conftest$ac_exeext'
8839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8840 (eval $ac_try) 2>&5
8841 ac_status=$?
8842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843 (exit $ac_status); }; }; then
8844 ac_cv_lib_dld_shl_load=yes
8845else
8846 echo "$as_me: failed program was:" >&5
8847sed 's/^/| /' conftest.$ac_ext >&5
8848
8849ac_cv_lib_dld_shl_load=no
8850fi
8851rm -f conftest.err conftest.$ac_objext \
8852 conftest$ac_exeext conftest.$ac_ext
8853LIBS=$ac_check_lib_save_LIBS
8854fi
8855echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8856echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8857if test $ac_cv_lib_dld_shl_load = yes; then
8858 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8859else
8860 echo "$as_me:$LINENO: checking for dlopen" >&5
8861echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8862if test "${ac_cv_func_dlopen+set}" = set; then
8863 echo $ECHO_N "(cached) $ECHO_C" >&6
8864else
8865 cat >conftest.$ac_ext <<_ACEOF
8866/* confdefs.h. */
8867_ACEOF
8868cat confdefs.h >>conftest.$ac_ext
8869cat >>conftest.$ac_ext <<_ACEOF
8870/* end confdefs.h. */
8871/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8872 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8873#define dlopen innocuous_dlopen
8874
8875/* System header to define __stub macros and hopefully few prototypes,
8876 which can conflict with char dlopen (); below.
8877 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8878 <limits.h> exists even on freestanding compilers. */
8879
8880#ifdef __STDC__
8881# include <limits.h>
8882#else
8883# include <assert.h>
8884#endif
8885
8886#undef dlopen
8887
8888/* Override any gcc2 internal prototype to avoid an error. */
8889#ifdef __cplusplus
8890extern "C"
8891{
8892#endif
8893/* We use char because int might match the return type of a gcc2
8894 builtin and then its argument prototype would still apply. */
8895char dlopen ();
8896/* The GNU C library defines this for functions which it implements
8897 to always fail with ENOSYS. Some functions are actually named
8898 something starting with __ and the normal name is an alias. */
8899#if defined (__stub_dlopen) || defined (__stub___dlopen)
8900choke me
8901#else
8902char (*f) () = dlopen;
8903#endif
8904#ifdef __cplusplus
8905}
8906#endif
8907
8908int
8909main ()
8910{
8911return f != dlopen;
8912 ;
8913 return 0;
8914}
8915_ACEOF
8916rm -f conftest.$ac_objext conftest$ac_exeext
8917if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8918 (eval $ac_link) 2>conftest.er1
8919 ac_status=$?
8920 grep -v '^ *+' conftest.er1 >conftest.err
8921 rm -f conftest.er1
8922 cat conftest.err >&5
8923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8924 (exit $ac_status); } &&
8925 { ac_try='test -z "$ac_c_werror_flag"
8926 || test ! -s conftest.err'
8927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8928 (eval $ac_try) 2>&5
8929 ac_status=$?
8930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931 (exit $ac_status); }; } &&
8932 { ac_try='test -s conftest$ac_exeext'
8933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8934 (eval $ac_try) 2>&5
8935 ac_status=$?
8936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8937 (exit $ac_status); }; }; then
8938 ac_cv_func_dlopen=yes
8939else
8940 echo "$as_me: failed program was:" >&5
8941sed 's/^/| /' conftest.$ac_ext >&5
8942
8943ac_cv_func_dlopen=no
8944fi
8945rm -f conftest.err conftest.$ac_objext \
8946 conftest$ac_exeext conftest.$ac_ext
8947fi
8948echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8949echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8950if test $ac_cv_func_dlopen = yes; then
8951 lt_cv_dlopen="dlopen"
8952else
8953 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8954echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8955if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8956 echo $ECHO_N "(cached) $ECHO_C" >&6
8957else
8958 ac_check_lib_save_LIBS=$LIBS
8959LIBS="-ldl $LIBS"
8960cat >conftest.$ac_ext <<_ACEOF
8961/* confdefs.h. */
8962_ACEOF
8963cat confdefs.h >>conftest.$ac_ext
8964cat >>conftest.$ac_ext <<_ACEOF
8965/* end confdefs.h. */
8966
8967/* Override any gcc2 internal prototype to avoid an error. */
8968#ifdef __cplusplus
8969extern "C"
8970#endif
8971/* We use char because int might match the return type of a gcc2
8972 builtin and then its argument prototype would still apply. */
8973char dlopen ();
8974int
8975main ()
8976{
8977dlopen ();
8978 ;
8979 return 0;
8980}
8981_ACEOF
8982rm -f conftest.$ac_objext conftest$ac_exeext
8983if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8984 (eval $ac_link) 2>conftest.er1
8985 ac_status=$?
8986 grep -v '^ *+' conftest.er1 >conftest.err
8987 rm -f conftest.er1
8988 cat conftest.err >&5
8989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990 (exit $ac_status); } &&
8991 { ac_try='test -z "$ac_c_werror_flag"
8992 || test ! -s conftest.err'
8993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8994 (eval $ac_try) 2>&5
8995 ac_status=$?
8996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997 (exit $ac_status); }; } &&
8998 { ac_try='test -s conftest$ac_exeext'
8999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9000 (eval $ac_try) 2>&5
9001 ac_status=$?
9002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003 (exit $ac_status); }; }; then
9004 ac_cv_lib_dl_dlopen=yes
9005else
9006 echo "$as_me: failed program was:" >&5
9007sed 's/^/| /' conftest.$ac_ext >&5
9008
9009ac_cv_lib_dl_dlopen=no
9010fi
9011rm -f conftest.err conftest.$ac_objext \
9012 conftest$ac_exeext conftest.$ac_ext
9013LIBS=$ac_check_lib_save_LIBS
9014fi
9015echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9016echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9017if test $ac_cv_lib_dl_dlopen = yes; then
9018 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9019else
9020 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9021echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9022if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9023 echo $ECHO_N "(cached) $ECHO_C" >&6
9024else
9025 ac_check_lib_save_LIBS=$LIBS
9026LIBS="-lsvld $LIBS"
9027cat >conftest.$ac_ext <<_ACEOF
9028/* confdefs.h. */
9029_ACEOF
9030cat confdefs.h >>conftest.$ac_ext
9031cat >>conftest.$ac_ext <<_ACEOF
9032/* end confdefs.h. */
9033
9034/* Override any gcc2 internal prototype to avoid an error. */
9035#ifdef __cplusplus
9036extern "C"
9037#endif
9038/* We use char because int might match the return type of a gcc2
9039 builtin and then its argument prototype would still apply. */
9040char dlopen ();
9041int
9042main ()
9043{
9044dlopen ();
9045 ;
9046 return 0;
9047}
9048_ACEOF
9049rm -f conftest.$ac_objext conftest$ac_exeext
9050if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9051 (eval $ac_link) 2>conftest.er1
9052 ac_status=$?
9053 grep -v '^ *+' conftest.er1 >conftest.err
9054 rm -f conftest.er1
9055 cat conftest.err >&5
9056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057 (exit $ac_status); } &&
9058 { ac_try='test -z "$ac_c_werror_flag"
9059 || test ! -s conftest.err'
9060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9061 (eval $ac_try) 2>&5
9062 ac_status=$?
9063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9064 (exit $ac_status); }; } &&
9065 { ac_try='test -s conftest$ac_exeext'
9066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9067 (eval $ac_try) 2>&5
9068 ac_status=$?
9069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070 (exit $ac_status); }; }; then
9071 ac_cv_lib_svld_dlopen=yes
9072else
9073 echo "$as_me: failed program was:" >&5
9074sed 's/^/| /' conftest.$ac_ext >&5
9075
9076ac_cv_lib_svld_dlopen=no
9077fi
9078rm -f conftest.err conftest.$ac_objext \
9079 conftest$ac_exeext conftest.$ac_ext
9080LIBS=$ac_check_lib_save_LIBS
9081fi
9082echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9083echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9084if test $ac_cv_lib_svld_dlopen = yes; then
9085 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9086else
9087 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9088echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9089if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9090 echo $ECHO_N "(cached) $ECHO_C" >&6
9091else
9092 ac_check_lib_save_LIBS=$LIBS
9093LIBS="-ldld $LIBS"
9094cat >conftest.$ac_ext <<_ACEOF
9095/* confdefs.h. */
9096_ACEOF
9097cat confdefs.h >>conftest.$ac_ext
9098cat >>conftest.$ac_ext <<_ACEOF
9099/* end confdefs.h. */
9100
9101/* Override any gcc2 internal prototype to avoid an error. */
9102#ifdef __cplusplus
9103extern "C"
9104#endif
9105/* We use char because int might match the return type of a gcc2
9106 builtin and then its argument prototype would still apply. */
9107char dld_link ();
9108int
9109main ()
9110{
9111dld_link ();
9112 ;
9113 return 0;
9114}
9115_ACEOF
9116rm -f conftest.$ac_objext conftest$ac_exeext
9117if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9118 (eval $ac_link) 2>conftest.er1
9119 ac_status=$?
9120 grep -v '^ *+' conftest.er1 >conftest.err
9121 rm -f conftest.er1
9122 cat conftest.err >&5
9123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124 (exit $ac_status); } &&
9125 { ac_try='test -z "$ac_c_werror_flag"
9126 || test ! -s conftest.err'
9127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9128 (eval $ac_try) 2>&5
9129 ac_status=$?
9130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131 (exit $ac_status); }; } &&
9132 { ac_try='test -s conftest$ac_exeext'
9133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9134 (eval $ac_try) 2>&5
9135 ac_status=$?
9136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9137 (exit $ac_status); }; }; then
9138 ac_cv_lib_dld_dld_link=yes
9139else
9140 echo "$as_me: failed program was:" >&5
9141sed 's/^/| /' conftest.$ac_ext >&5
9142
9143ac_cv_lib_dld_dld_link=no
9144fi
9145rm -f conftest.err conftest.$ac_objext \
9146 conftest$ac_exeext conftest.$ac_ext
9147LIBS=$ac_check_lib_save_LIBS
9148fi
9149echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9150echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9151if test $ac_cv_lib_dld_dld_link = yes; then
9152 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9153fi
9154
9155
9156fi
9157
9158
9159fi
9160
9161
9162fi
9163
9164
9165fi
9166
9167
9168fi
9169
9170 ;;
9171 esac
9172
9173 if test "x$lt_cv_dlopen" != xno; then
9174 enable_dlopen=yes
9175 else
9176 enable_dlopen=no
9177 fi
9178
9179 case $lt_cv_dlopen in
9180 dlopen)
9181 save_CPPFLAGS="$CPPFLAGS"
9182 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9183
9184 save_LDFLAGS="$LDFLAGS"
9185 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9186
9187 save_LIBS="$LIBS"
9188 LIBS="$lt_cv_dlopen_libs $LIBS"
9189
9190 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9191echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9192if test "${lt_cv_dlopen_self+set}" = set; then
9193 echo $ECHO_N "(cached) $ECHO_C" >&6
9194else
9195 if test "$cross_compiling" = yes; then :
9196 lt_cv_dlopen_self=cross
9197else
9198 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9199 lt_status=$lt_dlunknown
9200 cat > conftest.$ac_ext <<_LT_EOF
79887925 9201#line 9201 "configure"
d7040cdb
SE
9202#include "confdefs.h"
9203
9204#if HAVE_DLFCN_H
9205#include <dlfcn.h>
9206#endif
9207
9208#include <stdio.h>
9209
9210#ifdef RTLD_GLOBAL
9211# define LT_DLGLOBAL RTLD_GLOBAL
9212#else
9213# ifdef DL_GLOBAL
9214# define LT_DLGLOBAL DL_GLOBAL
9215# else
9216# define LT_DLGLOBAL 0
9217# endif
9218#endif
9219
9220/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9221 find out it does not work in some platform. */
9222#ifndef LT_DLLAZY_OR_NOW
9223# ifdef RTLD_LAZY
9224# define LT_DLLAZY_OR_NOW RTLD_LAZY
9225# else
9226# ifdef DL_LAZY
9227# define LT_DLLAZY_OR_NOW DL_LAZY
9228# else
9229# ifdef RTLD_NOW
9230# define LT_DLLAZY_OR_NOW RTLD_NOW
9231# else
9232# ifdef DL_NOW
9233# define LT_DLLAZY_OR_NOW DL_NOW
9234# else
9235# define LT_DLLAZY_OR_NOW 0
9236# endif
9237# endif
9238# endif
9239# endif
9240#endif
9241
9242#ifdef __cplusplus
9243extern "C" void exit (int);
9244#endif
9245
9246void fnord() { int i=42;}
9247int main ()
9248{
9249 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9250 int status = $lt_dlunknown;
9251
9252 if (self)
9253 {
9254 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9255 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9256 /* dlclose (self); */
9257 }
9258 else
9259 puts (dlerror ());
9260
9261 exit (status);
9262}
9263_LT_EOF
9264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9265 (eval $ac_link) 2>&5
9266 ac_status=$?
9267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9268 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9269 (./conftest; exit; ) >&5 2>/dev/null
9270 lt_status=$?
9271 case x$lt_status in
9272 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9273 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9274 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9275 esac
9276 else :
9277 # compilation failed
9278 lt_cv_dlopen_self=no
9279 fi
9280fi
9281rm -fr conftest*
9282
9283
9284fi
9285echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9286echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9287
9288 if test "x$lt_cv_dlopen_self" = xyes; then
9289 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9290 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9291echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9292if test "${lt_cv_dlopen_self_static+set}" = set; then
9293 echo $ECHO_N "(cached) $ECHO_C" >&6
9294else
9295 if test "$cross_compiling" = yes; then :
9296 lt_cv_dlopen_self_static=cross
9297else
9298 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9299 lt_status=$lt_dlunknown
9300 cat > conftest.$ac_ext <<_LT_EOF
79887925 9301#line 9301 "configure"
d7040cdb
SE
9302#include "confdefs.h"
9303
9304#if HAVE_DLFCN_H
9305#include <dlfcn.h>
9306#endif
9307
9308#include <stdio.h>
9309
9310#ifdef RTLD_GLOBAL
9311# define LT_DLGLOBAL RTLD_GLOBAL
9312#else
9313# ifdef DL_GLOBAL
9314# define LT_DLGLOBAL DL_GLOBAL
9315# else
9316# define LT_DLGLOBAL 0
9317# endif
9318#endif
9319
9320/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9321 find out it does not work in some platform. */
9322#ifndef LT_DLLAZY_OR_NOW
9323# ifdef RTLD_LAZY
9324# define LT_DLLAZY_OR_NOW RTLD_LAZY
9325# else
9326# ifdef DL_LAZY
9327# define LT_DLLAZY_OR_NOW DL_LAZY
9328# else
9329# ifdef RTLD_NOW
9330# define LT_DLLAZY_OR_NOW RTLD_NOW
9331# else
9332# ifdef DL_NOW
9333# define LT_DLLAZY_OR_NOW DL_NOW
9334# else
9335# define LT_DLLAZY_OR_NOW 0
9336# endif
9337# endif
9338# endif
9339# endif
9340#endif
9341
9342#ifdef __cplusplus
9343extern "C" void exit (int);
9344#endif
9345
9346void fnord() { int i=42;}
9347int main ()
9348{
9349 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9350 int status = $lt_dlunknown;
9351
9352 if (self)
9353 {
9354 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9355 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9356 /* dlclose (self); */
9357 }
9358 else
9359 puts (dlerror ());
9360
9361 exit (status);
9362}
9363_LT_EOF
9364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9365 (eval $ac_link) 2>&5
9366 ac_status=$?
9367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9368 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9369 (./conftest; exit; ) >&5 2>/dev/null
9370 lt_status=$?
9371 case x$lt_status in
9372 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9373 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9374 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9375 esac
9376 else :
9377 # compilation failed
9378 lt_cv_dlopen_self_static=no
9379 fi
9380fi
9381rm -fr conftest*
9382
9383
9384fi
9385echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9386echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9387 fi
9388
9389 CPPFLAGS="$save_CPPFLAGS"
9390 LDFLAGS="$save_LDFLAGS"
9391 LIBS="$save_LIBS"
9392 ;;
9393 esac
9394
9395 case $lt_cv_dlopen_self in
9396 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9397 *) enable_dlopen_self=unknown ;;
9398 esac
9399
9400 case $lt_cv_dlopen_self_static in
9401 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9402 *) enable_dlopen_self_static=unknown ;;
9403 esac
9404fi
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422striplib=
9423old_striplib=
9424echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9425echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9426if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9427 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9428 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9429 echo "$as_me:$LINENO: result: yes" >&5
9430echo "${ECHO_T}yes" >&6
9431else
9432# FIXME - insert some real tests, host_os isn't really good enough
9433 case $host_os in
9434 darwin*)
9435 if test -n "$STRIP" ; then
9436 striplib="$STRIP -x"
9437 old_striplib="$STRIP -S"
9438 echo "$as_me:$LINENO: result: yes" >&5
9439echo "${ECHO_T}yes" >&6
9440 else
9441 echo "$as_me:$LINENO: result: no" >&5
9442echo "${ECHO_T}no" >&6
9443 fi
9444 ;;
9445 *)
9446 echo "$as_me:$LINENO: result: no" >&5
9447echo "${ECHO_T}no" >&6
9448 ;;
9449 esac
9450fi
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463 # Report which library types will actually be built
9464 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9465echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9466 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9467echo "${ECHO_T}$can_build_shared" >&6
9468
9469 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9470echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9471 test "$can_build_shared" = "no" && enable_shared=no
9472
9473 # On AIX, shared libraries and static libraries use the same namespace, and
9474 # are all built from PIC.
9475 case $host_os in
9476 aix3*)
9477 test "$enable_shared" = yes && enable_static=no
9478 if test -n "$RANLIB"; then
9479 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9480 postinstall_cmds='$RANLIB $lib'
9481 fi
9482 ;;
9483
9484 aix4* | aix5*)
9485 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9486 test "$enable_shared" = yes && enable_static=no
9487 fi
9488 ;;
9489 esac
9490 echo "$as_me:$LINENO: result: $enable_shared" >&5
9491echo "${ECHO_T}$enable_shared" >&6
9492
9493 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9494echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9495 # Make sure either enable_shared or enable_static is yes.
9496 test "$enable_shared" = yes || enable_static=yes
9497 echo "$as_me:$LINENO: result: $enable_static" >&5
9498echo "${ECHO_T}$enable_static" >&6
9499
9500
9501
9502
9503fi
9504ac_ext=c
9505ac_cpp='$CPP $CPPFLAGS'
9506ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9507ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9508ac_compiler_gnu=$ac_cv_c_compiler_gnu
9509
9510CC="$lt_save_CC"
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524 ac_config_commands="$ac_config_commands libtool"
9525
9526
9527
9528
9529# Only expand once:
9530
9531
9532
9533# Check whether --enable-targets or --disable-targets was given.
9534if test "${enable_targets+set}" = set; then
9535 enableval="$enable_targets"
9536 case "${enableval}" in
9537 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
9538echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
9539 { (exit 1); exit 1; }; }
9540 ;;
9541 no) enable_targets= ;;
9542 *) enable_targets=$enableval ;;
9543esac
9544fi;
9545# Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
9546if test "${enable_commonbfdlib+set}" = set; then
9547 enableval="$enable_commonbfdlib"
9548 case "${enableval}" in
9549 yes) commonbfdlib=true ;;
9550 no) commonbfdlib=false ;;
9551 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
9552echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
9553 { (exit 1); exit 1; }; } ;;
9554esac
9555fi;
9556ac_checking=yes
9557if grep '^RELEASE=y' ${srcdir}/../bfd/Makefile.am >/dev/null 2>/dev/null ; then
9558 ac_checking=
9559fi
9560# Check whether --enable-checking or --disable-checking was given.
9561if test "${enable_checking+set}" = set; then
9562 enableval="$enable_checking"
9563 case "${enableval}" in
9564 no|none) ac_checking= ;;
9565 *) ac_checking=yes ;;
9566esac
9567fi; if test x$ac_checking != x ; then
9568
9569cat >>confdefs.h <<\_ACEOF
9570#define ENABLE_CHECKING 1
9571_ACEOF
9572
9573fi
9574
9575using_cgen=no
9576
9577
9578GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
9579
9580# Check whether --enable-werror or --disable-werror was given.
9581if test "${enable_werror+set}" = set; then
9582 enableval="$enable_werror"
9583 case "${enableval}" in
9584 yes | y) ERROR_ON_WARNING="yes" ;;
9585 no | n) ERROR_ON_WARNING="no" ;;
9586 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
9587echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
9588 { (exit 1); exit 1; }; } ;;
9589 esac
9590fi;
9591
9592# Enable -Werror by default when using gcc
9593if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
9594 ERROR_ON_WARNING=yes
9595fi
9596
9597NO_WERROR=
9598if test "${ERROR_ON_WARNING}" = yes ; then
9599 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
9600 NO_WERROR="-Wno-error"
9601fi
9602
9603if test "${GCC}" = yes ; then
9604 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
9605fi
9606
9607# Check whether --enable-build-warnings or --disable-build-warnings was given.
9608if test "${enable_build_warnings+set}" = set; then
9609 enableval="$enable_build_warnings"
9610 case "${enableval}" in
9611 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
9612 no) if test "${GCC}" = yes ; then
9613 WARN_CFLAGS="-w"
9614 fi;;
9615 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
9616 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
9617 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
9618 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
9619 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
9620esac
9621fi;
9622
9623if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
9624 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
9625fi
9626
9627
9628
9629
9630
9631# Generate a header file
9632 ac_config_headers="$ac_config_headers config.h:config.in"
9633
9634
9635# If we are on a DOS filesystem, we must use gdb.ini rather than
9636# .gdbinit.
9637case "${host}" in
9638 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-windows*)
9639 GDBINIT="gdb.ini"
9640 ac_config_files="$ac_config_files gdb.ini:gdbinit.in"
9641
9642 ;;
9643 *)
9644 GDBINIT=".gdbinit"
9645 ac_config_files="$ac_config_files .gdbinit:gdbinit.in"
9646
9647 ;;
9648esac
9649
9650
9651#We need this for the host. BOUT header is in host order.
9652echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
9653echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
9654if test "${ac_cv_c_bigendian+set}" = set; then
9655 echo $ECHO_N "(cached) $ECHO_C" >&6
9656else
9657 # See if sys/param.h defines the BYTE_ORDER macro.
9658cat >conftest.$ac_ext <<_ACEOF
9659/* confdefs.h. */
9660_ACEOF
9661cat confdefs.h >>conftest.$ac_ext
9662cat >>conftest.$ac_ext <<_ACEOF
9663/* end confdefs.h. */
9664#include <sys/types.h>
9665#include <sys/param.h>
9666
9667int
9668main ()
9669{
9670#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
9671 bogus endian macros
9672#endif
9673
9674 ;
9675 return 0;
9676}
9677_ACEOF
9678rm -f conftest.$ac_objext
9679if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9680 (eval $ac_compile) 2>conftest.er1
9681 ac_status=$?
9682 grep -v '^ *+' conftest.er1 >conftest.err
9683 rm -f conftest.er1
9684 cat conftest.err >&5
9685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686 (exit $ac_status); } &&
9687 { ac_try='test -z "$ac_c_werror_flag"
9688 || test ! -s conftest.err'
9689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9690 (eval $ac_try) 2>&5
9691 ac_status=$?
9692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9693 (exit $ac_status); }; } &&
9694 { ac_try='test -s conftest.$ac_objext'
9695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9696 (eval $ac_try) 2>&5
9697 ac_status=$?
9698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9699 (exit $ac_status); }; }; then
9700 # It does; now see whether it defined to BIG_ENDIAN or not.
9701cat >conftest.$ac_ext <<_ACEOF
9702/* confdefs.h. */
9703_ACEOF
9704cat confdefs.h >>conftest.$ac_ext
9705cat >>conftest.$ac_ext <<_ACEOF
9706/* end confdefs.h. */
9707#include <sys/types.h>
9708#include <sys/param.h>
9709
9710int
9711main ()
9712{
9713#if BYTE_ORDER != BIG_ENDIAN
9714 not big endian
9715#endif
9716
9717 ;
9718 return 0;
9719}
9720_ACEOF
9721rm -f conftest.$ac_objext
9722if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9723 (eval $ac_compile) 2>conftest.er1
9724 ac_status=$?
9725 grep -v '^ *+' conftest.er1 >conftest.err
9726 rm -f conftest.er1
9727 cat conftest.err >&5
9728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9729 (exit $ac_status); } &&
9730 { ac_try='test -z "$ac_c_werror_flag"
9731 || test ! -s conftest.err'
9732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9733 (eval $ac_try) 2>&5
9734 ac_status=$?
9735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9736 (exit $ac_status); }; } &&
9737 { ac_try='test -s conftest.$ac_objext'
9738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9739 (eval $ac_try) 2>&5
9740 ac_status=$?
9741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742 (exit $ac_status); }; }; then
9743 ac_cv_c_bigendian=yes
9744else
9745 echo "$as_me: failed program was:" >&5
9746sed 's/^/| /' conftest.$ac_ext >&5
9747
9748ac_cv_c_bigendian=no
9749fi
9750rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9751else
9752 echo "$as_me: failed program was:" >&5
9753sed 's/^/| /' conftest.$ac_ext >&5
9754
9755# It does not; compile a test program.
9756if test "$cross_compiling" = yes; then
9757 # try to guess the endianness by grepping values into an object file
9758 ac_cv_c_bigendian=unknown
9759 cat >conftest.$ac_ext <<_ACEOF
9760/* confdefs.h. */
9761_ACEOF
9762cat confdefs.h >>conftest.$ac_ext
9763cat >>conftest.$ac_ext <<_ACEOF
9764/* end confdefs.h. */
9765short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9766short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9767void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
9768short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9769short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9770void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
9771int
9772main ()
9773{
9774 _ascii (); _ebcdic ();
9775 ;
9776 return 0;
9777}
9778_ACEOF
9779rm -f conftest.$ac_objext
9780if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9781 (eval $ac_compile) 2>conftest.er1
9782 ac_status=$?
9783 grep -v '^ *+' conftest.er1 >conftest.err
9784 rm -f conftest.er1
9785 cat conftest.err >&5
9786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787 (exit $ac_status); } &&
9788 { ac_try='test -z "$ac_c_werror_flag"
9789 || test ! -s conftest.err'
9790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9791 (eval $ac_try) 2>&5
9792 ac_status=$?
9793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794 (exit $ac_status); }; } &&
9795 { ac_try='test -s conftest.$ac_objext'
9796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9797 (eval $ac_try) 2>&5
9798 ac_status=$?
9799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9800 (exit $ac_status); }; }; then
9801 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
9802 ac_cv_c_bigendian=yes
9803fi
9804if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9805 if test "$ac_cv_c_bigendian" = unknown; then
9806 ac_cv_c_bigendian=no
9807 else
9808 # finding both strings is unlikely to happen, but who knows?
9809 ac_cv_c_bigendian=unknown
9810 fi
9811fi
9812else
9813 echo "$as_me: failed program was:" >&5
9814sed 's/^/| /' conftest.$ac_ext >&5
9815
9816fi
9817rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9818else
9819 cat >conftest.$ac_ext <<_ACEOF
9820/* confdefs.h. */
9821_ACEOF
9822cat confdefs.h >>conftest.$ac_ext
9823cat >>conftest.$ac_ext <<_ACEOF
9824/* end confdefs.h. */
9825int
9826main ()
9827{
9828 /* Are we little or big endian? From Harbison&Steele. */
9829 union
9830 {
9831 long l;
9832 char c[sizeof (long)];
9833 } u;
9834 u.l = 1;
9835 exit (u.c[sizeof (long) - 1] == 1);
9836}
9837_ACEOF
9838rm -f conftest$ac_exeext
9839if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9840 (eval $ac_link) 2>&5
9841 ac_status=$?
9842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9845 (eval $ac_try) 2>&5
9846 ac_status=$?
9847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9848 (exit $ac_status); }; }; then
9849 ac_cv_c_bigendian=no
9850else
9851 echo "$as_me: program exited with status $ac_status" >&5
9852echo "$as_me: failed program was:" >&5
9853sed 's/^/| /' conftest.$ac_ext >&5
9854
9855( exit $ac_status )
9856ac_cv_c_bigendian=yes
9857fi
9858rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9859fi
9860fi
9861rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9862fi
9863echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
9864echo "${ECHO_T}$ac_cv_c_bigendian" >&6
9865case $ac_cv_c_bigendian in
9866 yes)
9867
9868cat >>confdefs.h <<\_ACEOF
9869#define WORDS_BIGENDIAN 1
9870_ACEOF
9871 ;;
9872 no)
9873 ;;
9874 *)
9875 { { echo "$as_me:$LINENO: error: unknown endianness
9876presetting ac_cv_c_bigendian=no (or yes) will help" >&5
9877echo "$as_me: error: unknown endianness
9878presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
9879 { (exit 1); exit 1; }; } ;;
9880esac
9881
9882
9883te_file=generic
9884
9885# Makefile target for installing gas in $(tooldir)/bin.
9886install_tooldir=install-exec-tooldir
9887
9888canon_targets=""
9889all_targets=no
9890if test -n "$enable_targets" ; then
9891 for t in `echo $enable_targets | sed 's/,/ /g'`; do
9892 if test $t = "all"; then
9893 all_targets=yes
9894 continue
9895 fi
9896 result=`$ac_config_sub $t 2>/dev/null`
9897 if test -n "$result" ; then
9898 canon_targets="$canon_targets $result"
9899# else
9900# # Permit "all", etc. We don't support it yet though.
9901# canon_targets="$canon_targets $t"
9902 fi
9903 done
9904 _gas_uniq_list="$canon_targets"
9905_gas_uniq_newlist=""
9906for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
9907 case $_gas_uniq_i in
9908 _gas_uniq_dummy) ;;
9909 *) case " $_gas_uniq_newlist " in
9910 *" $_gas_uniq_i "*) ;;
9911 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
9912 esac ;;
9913 esac
9914done
9915canon_targets=$_gas_uniq_newlist
9916
9917fi
9918
9919emulations=""
9920
9921for this_target in $target $canon_targets ; do
9922
9923 targ=${this_target}
9924 . ${srcdir}/configure.tgt
9925
9926 case ${target_cpu} in
9927 crisv32)
9928
9929cat >>confdefs.h <<_ACEOF
9930#define DEFAULT_CRIS_ARCH $arch
9931_ACEOF
9932
9933 ;;
9934 esac
9935
9936 if test ${this_target} = $target ; then
9937 target_cpu_type=${cpu_type}
9938 elif test ${target_cpu_type} != ${cpu_type} ; then
9939 continue
9940 fi
9941
9942 generic_target=${cpu_type}-${target_vendor}-${target_os}
9943 case ${generic_target} in
9944 i386-*-sco3.2v5*)
9945 if test ${this_target} = $target; then
9946
9947cat >>confdefs.h <<\_ACEOF
9948#define SCO_ELF 1
9949_ACEOF
9950
9951 fi
9952 ;;
9953
9954 i386-*-msdosdjgpp* \
9955 | i386-*-go32* \
9956 | i386-go32-rtems*)
9957
9958cat >>confdefs.h <<\_ACEOF
9959#define STRICTCOFF 1
9960_ACEOF
9961
9962 ;;
9963
9964 i860-*-*)
9965 { echo "$as_me:$LINENO: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&5
9966echo "$as_me: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&2;}
9967 ;;
9968
9969 mips-sony-bsd*)
9970 ;;
9971 mips-*-bsd*)
9972 { { echo "$as_me:$LINENO: error: Unknown vendor for mips-bsd configuration." >&5
9973echo "$as_me: error: Unknown vendor for mips-bsd configuration." >&2;}
9974 { (exit 1); exit 1; }; }
9975 ;;
9976
9977 ppc-*-aix5.*)
9978
9979cat >>confdefs.h <<\_ACEOF
9980#define AIX_WEAK_SUPPORT 1
9981_ACEOF
9982
9983 ;;
9984 ppc-*-linux-*)
9985 case "$endian" in
9986 big) ;;
9987 *) { { echo "$as_me:$LINENO: error: GNU/Linux must be configured big endian" >&5
9988echo "$as_me: error: GNU/Linux must be configured big endian" >&2;}
9989 { (exit 1); exit 1; }; } ;;
9990 esac
9991 ;;
9992 ppc-*-solaris*)
9993 if test ${this_target} = $target; then
9994
9995cat >>confdefs.h <<\_ACEOF
9996#define TARGET_SOLARIS_COMMENT 1
9997_ACEOF
9998
9999 fi
10000 if test x${endian} = xbig; then
10001 { { echo "$as_me:$LINENO: error: Solaris must be configured little endian" >&5
10002echo "$as_me: error: Solaris must be configured little endian" >&2;}
10003 { (exit 1); exit 1; }; }
10004 fi
10005 ;;
10006
10007 sh*-*-symbianelf*)
10008
10009cat >>confdefs.h <<\_ACEOF
10010#define TARGET_SYMBIAN 1
10011_ACEOF
10012
10013 ;;
10014 esac
10015
10016 if test ${this_target} = $target ; then
10017 endian_def=
10018 if test x${endian} = xbig; then
10019 endian_def=1
10020 elif test x${endian} = xlittle; then
10021 endian_def=0
10022 fi
10023 if test x${endian_def} != x; then
10024
10025cat >>confdefs.h <<_ACEOF
10026#define TARGET_BYTES_BIG_ENDIAN $endian_def
10027_ACEOF
10028
10029 fi
10030 fi
10031
10032# Other random stuff.
10033
10034 case ${cpu_type} in
10035 mips)
10036 # Set mips_cpu to the name of the default CPU.
10037 case ${target_cpu} in
10038 mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el)
10039 mips_cpu=from-abi
10040 ;;
10041 mipsisa32 | mipsisa32el)
10042 mips_cpu=mips32
10043 ;;
10044 mipsisa32r2 | mipsisa32r2el)
10045 mips_cpu=mips32r2
10046 ;;
10047 mipsisa64 | mipsisa64el)
10048 mips_cpu=mips64
10049 ;;
10050 mipsisa64r2 | mipsisa64r2el)
10051 mips_cpu=mips64r2
10052 ;;
10053 mipstx39 | mipstx39el)
10054 mips_cpu=r3900
10055 ;;
10056 mips64vr | mips64vrel)
10057 mips_cpu=vr4100
10058 ;;
10059 mipsisa32r2* | mipsisa64r2*)
10060 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'`
10061 ;;
10062 mips64* | mipsisa64* | mipsisa32*)
10063 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..//' -e 's/el$//'`
10064 ;;
10065 *)
10066 { { echo "$as_me:$LINENO: error: $target_cpu isn't a supported MIPS CPU name" >&5
10067echo "$as_me: error: $target_cpu isn't a supported MIPS CPU name" >&2;}
10068 { (exit 1); exit 1; }; }
10069 ;;
10070 esac
10071 # See whether it's appropriate to set E_MIPS_ABI_O32 for o32
10072 # binaries. It's a GNU extension that some OSes don't understand.
10073 # The value only matters on ELF targets.
10074 case ${target} in
10075 *-*-irix*)
10076 use_e_mips_abi_o32=0
10077 ;;
10078 *)
10079 use_e_mips_abi_o32=1
10080 ;;
10081 esac
10082 # Decide whether to generate 32-bit or 64-bit code by default.
10083 # Used to resolve -march=from-abi when an embedded ABI is selected.
10084 case ${target} in
10085 mips64*-*-* | mipsisa64*-*-*)
10086 mips_default_64bit=1
10087 ;;
10088 *)
10089 mips_default_64bit=0
10090 ;;
10091 esac
10092 # Decide which ABI to target by default.
10093 case ${target} in
10094 mips64*-linux* | mips-sgi-irix6*)
10095 mips_default_abi=N32_ABI
10096 ;;
10097 mips*-linux*)
10098 mips_default_abi=O32_ABI
10099 ;;
10100 mips64*-openbsd*)
10101 mips_default_abi=N64_ABI
10102 ;;
10103 *)
10104 mips_default_abi=NO_ABI
10105 ;;
10106 esac
10107
10108cat >>confdefs.h <<_ACEOF
10109#define MIPS_CPU_STRING_DEFAULT "$mips_cpu"
10110_ACEOF
10111
10112
10113cat >>confdefs.h <<_ACEOF
10114#define USE_E_MIPS_ABI_O32 $use_e_mips_abi_o32
10115_ACEOF
10116
10117
10118cat >>confdefs.h <<_ACEOF
10119#define MIPS_DEFAULT_64BIT $mips_default_64bit
10120_ACEOF
10121
10122
10123cat >>confdefs.h <<_ACEOF
10124#define MIPS_DEFAULT_ABI $mips_default_abi
10125_ACEOF
10126
10127 ;;
10128 esac
10129
10130 # Do we need the opcodes library?
10131 case ${cpu_type} in
10132 vax | tic30)
10133 ;;
10134
10135 *)
10136 need_opcodes=yes
10137
10138 case "${enable_shared}" in
10139 yes) shared_opcodes=true ;;
10140 *opcodes*) shared_opcodes=true ;;
10141 *) shared_opcodes=false ;;
10142 esac
10143 ;;
10144 esac
10145
10146 # Any other special object files needed ?
10147 case ${cpu_type} in
10148
10149 bfin)
10150 echo ${extra_objects} | grep -s "bfin-parse.o"
10151 if test $? -ne 0 ; then
10152 extra_objects="$extra_objects bfin-parse.o"
10153 fi
10154
10155 echo ${extra_objects} | grep -s "bfin-lex.o"
10156 if test $? -ne 0 ; then
10157 extra_objects="$extra_objects bfin-lex.o"
10158 fi
10159 ;;
10160
10161 fr30 | ip2k | iq2000 | m32r | openrisc)
10162 using_cgen=yes
10163 ;;
10164
10165 m32c)
10166 using_cgen=yes
10167 ;;
10168 frv)
10169 using_cgen=yes
10170 ;;
10171 m68k)
10172 case ${extra_objects} in
10173 *m68k-parse.o*) ;;
10174 *) extra_objects="$extra_objects m68k-parse.o" ;;
10175 esac
10176 ;;
10177
10178 mep)
10179 using_cgen=yes
10180 ;;
10181
10182 mips)
10183 echo ${extra_objects} | grep -s "itbl-parse.o"
10184 if test $? -ne 0 ; then
10185 extra_objects="$extra_objects itbl-parse.o"
10186 fi
10187
10188 echo ${extra_objects} | grep -s "itbl-lex.o"
10189 if test $? -ne 0 ; then
10190 extra_objects="$extra_objects itbl-lex.o"
10191 fi
10192
10193 echo ${extra_objects} | grep -s "itbl-ops.o"
10194 if test $? -ne 0 ; then
10195 extra_objects="$extra_objects itbl-ops.o"
10196 fi
10197 ;;
10198
10199 mt)
10200 using_cgen=yes
10201 ;;
10202
10203 i386 | s390 | sparc)
10204 if test $this_target = $target ; then
10205
10206cat >>confdefs.h <<_ACEOF
10207#define DEFAULT_ARCH "${arch}"
10208_ACEOF
10209
10210 fi
10211 ;;
10212
10213 xstormy16)
10214 using_cgen=yes
10215 ;;
10216
10217 xc16x)
10218 using_cgen=yes
10219 ;;
10220
10221 xtensa)
10222 echo ${extra_objects} | grep -s "xtensa-relax.o"
10223 if test $? -ne 0 ; then
10224 extra_objects="$extra_objects xtensa-relax.o"
10225 fi
10226 ;;
10227
10228 *)
10229 ;;
10230 esac
10231
10232 if test $using_cgen = yes ; then
10233 case "x${extra_objects}" in
10234 *cgen.o*) ;;
10235 *) extra_objects="$extra_objects cgen.o" ;;
10236 esac
10237 fi
10238
10239# See if we really can support this configuration with the emulation code.
10240
10241 if test $this_target = $target ; then
10242 obj_format=$fmt
10243 te_file=$em
10244 fi
10245
10246# From target name and format, produce a list of supported emulations.
10247
10248 case ${generic_target}-${fmt} in
10249 mips-*-irix5*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
10250 mips*-*-linux*-*) case "$endian" in
10251 big) emulation="mipsbelf mipslelf mipself" ;;
10252 *) emulation="mipslelf mipsbelf mipself" ;;
10253 esac ;;
10254 mips-*-lnews*-ecoff) ;;
10255 mips-*-*-ecoff) case "$endian" in
10256 big) emulation="mipsbecoff mipslecoff mipsecoff" ;;
10257 *) emulation="mipslecoff mipsbecoff mipsecoff" ;;
10258 esac ;;
10259 mips-*-*-elf) case "$endian" in
10260 big) emulation="mipsbelf mipslelf mipself" ;;
10261 *) emulation="mipslelf mipsbelf mipself" ;;
10262 esac ;;
10263 mips-*-sysv4*MP*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
10264 # i386-pc-pe-coff != i386-pc-coff.
10265 i386-*-pe-coff) ;;
10266 # Uncommenting the next line will turn on support for i386 AOUT
10267 # for the default linux configuration
10268 # i386-*-linux*-elf) emulation="i386elf i386aout" ;;
10269 #
10270 i386-*-aout) emulation="i386aout" ;;
10271 i386-*-coff) emulation="i386coff" ;;
10272 i386-*-elf) emulation="i386elf" ;;
10273
10274 # Always all formats. The first stated emulation becomes the default.
10275 cris-*-*aout*) emulation="crisaout criself" ;;
10276 cris-*-*) emulation="criself crisaout" ;;
10277 esac
10278
10279 emulations="$emulations $emulation"
10280
10281done
10282
10283# Turn on all targets if possible
10284if test ${all_targets} = "yes"; then
10285 case ${target_cpu_type} in
10286 i386)
10287 case ${obj_format} in
10288 aout)
10289 emulations="$emulations i386coff i386elf"
10290 ;;
10291 coff)
10292 emulations="$emulations i386aout i386elf"
10293 ;;
10294 elf)
10295 emulations="$emulations i386aout i386coff"
10296 ;;
10297 esac
10298 ;;
10299 x86_64)
10300 case ${obj_format} in
10301 aout)
10302 emulations="$emulations i386coff i386elf"
10303 ;;
10304 coff)
10305 emulations="$emulations i386aout i386elf"
10306 ;;
10307 elf)
10308 emulations="$emulations i386aout i386coff"
10309 ;;
10310 esac
10311 ;;
10312 esac
10313fi
10314
10315# Assign floating point type. Most processors with FP support
10316# IEEE FP. On those that don't support FP at all, usually IEEE
10317# is emulated.
10318case ${target_cpu} in
10319 vax | pdp11 ) atof=vax ;;
10320 *) atof=ieee ;;
10321esac
10322
10323case "${obj_format}" in
10324 "") { { echo "$as_me:$LINENO: error: GAS does not know what format to use for target ${target}" >&5
10325echo "$as_me: error: GAS does not know what format to use for target ${target}" >&2;}
10326 { (exit 1); exit 1; }; } ;;
10327esac
10328
10329# Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
10330cgen_cpu_prefix=""
10331if test $using_cgen = yes ; then
10332 case ${target_cpu} in
10333 *) cgen_cpu_prefix=${target_cpu} ;;
10334 esac
10335
10336
10337cat >>confdefs.h <<\_ACEOF
10338#define USING_CGEN 1
10339_ACEOF
10340
10341fi
10342
10343
10344if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then
10345 { { echo "$as_me:$LINENO: error: GAS does not support target CPU ${target_cpu_type}" >&5
10346echo "$as_me: error: GAS does not support target CPU ${target_cpu_type}" >&2;}
10347 { (exit 1); exit 1; }; }
10348fi
10349
10350if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
10351 { { echo "$as_me:$LINENO: error: GAS does not have support for object file format ${obj_format}" >&5
10352echo "$as_me: error: GAS does not have support for object file format ${obj_format}" >&2;}
10353 { (exit 1); exit 1; }; }
10354fi
10355
10356# Some COFF configurations want these random other flags set.
10357case ${obj_format} in
10358 coff)
10359 case ${target_cpu_type} in
10360 i386)
10361cat >>confdefs.h <<\_ACEOF
10362#define I386COFF 1
10363_ACEOF
10364 ;;
10365 m68k)
10366cat >>confdefs.h <<\_ACEOF
10367#define M68KCOFF 1
10368_ACEOF
10369 ;;
10370 m88k)
10371cat >>confdefs.h <<\_ACEOF
10372#define M88KCOFF 1
10373_ACEOF
10374 ;;
10375 x86_64)
10376cat >>confdefs.h <<\_ACEOF
10377#define I386COFF 1
10378_ACEOF
10379 ;;
10380 esac
10381 ;;
10382esac
10383
10384# Getting this done right is going to be a bitch. Each configuration specified
10385# with --enable-targets=... should be checked for environment, format, cpu
10386# setting.
10387#
10388# For each configuration, the necessary object file support code must be linked
10389# in. This might be only one, it might be up to four. The necessary emulation
10390# code needs to be provided, too.
10391#
10392# And then there's "--enable-targets=all"....
10393#
10394# For now, just always do it for MIPS ELF or ECOFF configurations. Sigh.
10395
10396formats="${obj_format}"
10397emfiles=""
10398EMULATIONS=""
10399_gas_uniq_list="$emulations"
10400_gas_uniq_newlist=""
10401for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
10402 case $_gas_uniq_i in
10403 _gas_uniq_dummy) ;;
10404 *) case " $_gas_uniq_newlist " in
10405 *" $_gas_uniq_i "*) ;;
10406 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
10407 esac ;;
10408 esac
10409done
10410emulations=$_gas_uniq_newlist
10411
10412for em in . $emulations ; do
10413 case $em in
10414 .) continue ;;
10415 mipsbelf | mipslelf | mipself)
10416 fmt=elf file=mipself ;;
10417 mipsbecoff | mipslecoff | mipsecoff)
10418 fmt=ecoff file=mipsecoff ;;
10419 *coff)
10420 fmt=coff file=$em ;;
10421 *aout)
10422 fmt=aout file=$em ;;
10423 *elf)
10424 fmt=elf file=$em ;;
10425 esac
10426 formats="$formats $fmt"
10427 emfiles="$emfiles e-$file.o"
10428 EMULATIONS="$EMULATIONS &$em,"
10429done
10430_gas_uniq_list="$formats"
10431_gas_uniq_newlist=""
10432for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
10433 case $_gas_uniq_i in
10434 _gas_uniq_dummy) ;;
10435 *) case " $_gas_uniq_newlist " in
10436 *" $_gas_uniq_i "*) ;;
10437 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
10438 esac ;;
10439 esac
10440done
10441formats=$_gas_uniq_newlist
10442
10443_gas_uniq_list="$emfiles"
10444_gas_uniq_newlist=""
10445for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
10446 case $_gas_uniq_i in
10447 _gas_uniq_dummy) ;;
10448 *) case " $_gas_uniq_newlist " in
10449 *" $_gas_uniq_i "*) ;;
10450 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
10451 esac ;;
10452 esac
10453done
10454emfiles=$_gas_uniq_newlist
10455
10456if test `set . $formats ; shift ; echo $#` -gt 1 ; then
10457 for fmt in $formats ; do
10458 case $fmt in
10459 aout)
10460cat >>confdefs.h <<\_ACEOF
10461#define OBJ_MAYBE_AOUT 1
10462_ACEOF
10463 ;;
10464 bout)
10465cat >>confdefs.h <<\_ACEOF
10466#define OBJ_MAYBE_BOUT 1
10467_ACEOF
10468 ;;
10469 coff)
10470cat >>confdefs.h <<\_ACEOF
10471#define OBJ_MAYBE_COFF 1
10472_ACEOF
10473 ;;
10474 ecoff)
10475cat >>confdefs.h <<\_ACEOF
10476#define OBJ_MAYBE_ECOFF 1
10477_ACEOF
10478 ;;
10479 elf)
10480cat >>confdefs.h <<\_ACEOF
10481#define OBJ_MAYBE_ELF 1
10482_ACEOF
10483 ;;
10484 generic)
10485cat >>confdefs.h <<\_ACEOF
10486#define OBJ_MAYBE_GENERIC 1
10487_ACEOF
10488 ;;
10489 som)
10490cat >>confdefs.h <<\_ACEOF
10491#define OBJ_MAYBE_SOM 1
10492_ACEOF
10493 ;;
10494 esac
10495 extra_objects="$extra_objects obj-$fmt.o"
10496 done
10497 obj_format=multi
10498fi
10499if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
10500 DEFAULT_EMULATION=`set . $emulations ; echo $2`
10501 # e-mips* has more than one emulation per file, e-i386* has just one at the
10502 # moment. If only one emulation is specified, then don't define
10503 # USE_EMULATIONS or include any of the e-files as they will only be bloat.
10504 case "${obj_format}${emfiles}" in
10505 multi* | *mips*)
10506 extra_objects="$extra_objects $emfiles"
10507
10508cat >>confdefs.h <<\_ACEOF
10509#define USE_EMULATIONS 1
10510_ACEOF
10511 ;;
10512 esac
10513fi
10514
10515
10516cat >>confdefs.h <<_ACEOF
10517#define EMULATIONS $EMULATIONS
10518_ACEOF
10519
10520
10521cat >>confdefs.h <<_ACEOF
10522#define DEFAULT_EMULATION "$DEFAULT_EMULATION"
10523_ACEOF
10524
10525
10526reject_dev_configs=yes
10527
10528case ${reject_dev_configs}-${dev} in
10529 yes-yes) # Oops.
10530 { { echo "$as_me:$LINENO: error: GAS does not support the ${generic_target} configuration." >&5
10531echo "$as_me: error: GAS does not support the ${generic_target} configuration." >&2;}
10532 { (exit 1); exit 1; }; }
10533 ;;
10534esac
10535
10536
10537
10538
10539
10540
10541
10542# do we need the opcodes library?
10543case "${need_opcodes}" in
10544yes)
10545 OPCODES_LIB=../opcodes/libopcodes.la
10546 ;;
10547esac
10548
10549
10550
10551
10552cat >>confdefs.h <<_ACEOF
10553#define TARGET_ALIAS "${target_alias}"
10554_ACEOF
10555
10556
10557cat >>confdefs.h <<_ACEOF
10558#define TARGET_CANONICAL "${target}"
10559_ACEOF
10560
10561
10562cat >>confdefs.h <<_ACEOF
10563#define TARGET_CPU "${target_cpu}"
10564_ACEOF
10565
10566
10567cat >>confdefs.h <<_ACEOF
10568#define TARGET_VENDOR "${target_vendor}"
10569_ACEOF
10570
10571
10572cat >>confdefs.h <<_ACEOF
10573#define TARGET_OS "${target_os}"
10574_ACEOF
10575
10576
10577ac_ext=c
10578ac_cpp='$CPP $CPPFLAGS'
10579ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10580ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10581ac_compiler_gnu=$ac_cv_c_compiler_gnu
10582if test -n "$ac_tool_prefix"; then
10583 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10584set dummy ${ac_tool_prefix}gcc; ac_word=$2
10585echo "$as_me:$LINENO: checking for $ac_word" >&5
10586echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10587if test "${ac_cv_prog_CC+set}" = set; then
10588 echo $ECHO_N "(cached) $ECHO_C" >&6
10589else
10590 if test -n "$CC"; then
10591 ac_cv_prog_CC="$CC" # Let the user override the test.
10592else
10593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10594for as_dir in $PATH
10595do
10596 IFS=$as_save_IFS
10597 test -z "$as_dir" && as_dir=.
10598 for ac_exec_ext in '' $ac_executable_extensions; do
10599 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10600 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10602 break 2
10603 fi
10604done
10605done
10606
10607fi
10608fi
10609CC=$ac_cv_prog_CC
10610if test -n "$CC"; then
10611 echo "$as_me:$LINENO: result: $CC" >&5
10612echo "${ECHO_T}$CC" >&6
10613else
10614 echo "$as_me:$LINENO: result: no" >&5
10615echo "${ECHO_T}no" >&6
10616fi
10617
10618fi
10619if test -z "$ac_cv_prog_CC"; then
10620 ac_ct_CC=$CC
10621 # Extract the first word of "gcc", so it can be a program name with args.
10622set dummy gcc; ac_word=$2
10623echo "$as_me:$LINENO: checking for $ac_word" >&5
10624echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10625if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10626 echo $ECHO_N "(cached) $ECHO_C" >&6
10627else
10628 if test -n "$ac_ct_CC"; then
10629 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10630else
10631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10632for as_dir in $PATH
10633do
10634 IFS=$as_save_IFS
10635 test -z "$as_dir" && as_dir=.
10636 for ac_exec_ext in '' $ac_executable_extensions; do
10637 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10638 ac_cv_prog_ac_ct_CC="gcc"
10639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10640 break 2
10641 fi
10642done
10643done
10644
10645fi
10646fi
10647ac_ct_CC=$ac_cv_prog_ac_ct_CC
10648if test -n "$ac_ct_CC"; then
10649 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10650echo "${ECHO_T}$ac_ct_CC" >&6
10651else
10652 echo "$as_me:$LINENO: result: no" >&5
10653echo "${ECHO_T}no" >&6
10654fi
10655
10656 CC=$ac_ct_CC
10657else
10658 CC="$ac_cv_prog_CC"
10659fi
10660
10661if test -z "$CC"; then
10662 if test -n "$ac_tool_prefix"; then
10663 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10664set dummy ${ac_tool_prefix}cc; ac_word=$2
10665echo "$as_me:$LINENO: checking for $ac_word" >&5
10666echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10667if test "${ac_cv_prog_CC+set}" = set; then
10668 echo $ECHO_N "(cached) $ECHO_C" >&6
10669else
10670 if test -n "$CC"; then
10671 ac_cv_prog_CC="$CC" # Let the user override the test.
13b2be9c 10672else
d7040cdb
SE
10673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10674for as_dir in $PATH
10675do
10676 IFS=$as_save_IFS
10677 test -z "$as_dir" && as_dir=.
10678 for ac_exec_ext in '' $ac_executable_extensions; do
10679 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10680 ac_cv_prog_CC="${ac_tool_prefix}cc"
10681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10682 break 2
10683 fi
10684done
10685done
13b2be9c 10686
13b2be9c 10687fi
d7040cdb
SE
10688fi
10689CC=$ac_cv_prog_CC
10690if test -n "$CC"; then
10691 echo "$as_me:$LINENO: result: $CC" >&5
10692echo "${ECHO_T}$CC" >&6
13b2be9c 10693else
d7040cdb
SE
10694 echo "$as_me:$LINENO: result: no" >&5
10695echo "${ECHO_T}no" >&6
10696fi
13b2be9c
DJ
10697
10698fi
d7040cdb
SE
10699if test -z "$ac_cv_prog_CC"; then
10700 ac_ct_CC=$CC
10701 # Extract the first word of "cc", so it can be a program name with args.
10702set dummy cc; ac_word=$2
10703echo "$as_me:$LINENO: checking for $ac_word" >&5
10704echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10705if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10706 echo $ECHO_N "(cached) $ECHO_C" >&6
10707else
10708 if test -n "$ac_ct_CC"; then
10709 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10710else
10711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10712for as_dir in $PATH
10713do
10714 IFS=$as_save_IFS
10715 test -z "$as_dir" && as_dir=.
10716 for ac_exec_ext in '' $ac_executable_extensions; do
10717 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10718 ac_cv_prog_ac_ct_CC="cc"
10719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10720 break 2
10721 fi
10722done
13b2be9c 10723done
13b2be9c 10724
d7040cdb
SE
10725fi
10726fi
10727ac_ct_CC=$ac_cv_prog_ac_ct_CC
10728if test -n "$ac_ct_CC"; then
10729 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10730echo "${ECHO_T}$ac_ct_CC" >&6
13b2be9c 10731else
d7040cdb
SE
10732 echo "$as_me:$LINENO: result: no" >&5
10733echo "${ECHO_T}no" >&6
13b2be9c 10734fi
c8615825 10735
d7040cdb
SE
10736 CC=$ac_ct_CC
10737else
10738 CC="$ac_cv_prog_CC"
10739fi
c8615825 10740
d7040cdb
SE
10741fi
10742if test -z "$CC"; then
10743 # Extract the first word of "cc", so it can be a program name with args.
10744set dummy cc; ac_word=$2
13b2be9c
DJ
10745echo "$as_me:$LINENO: checking for $ac_word" >&5
10746echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d7040cdb 10747if test "${ac_cv_prog_CC+set}" = set; then
13b2be9c 10748 echo $ECHO_N "(cached) $ECHO_C" >&6
c8615825 10749else
d7040cdb
SE
10750 if test -n "$CC"; then
10751 ac_cv_prog_CC="$CC" # Let the user override the test.
c8615825 10752else
d7040cdb 10753 ac_prog_rejected=no
13b2be9c
DJ
10754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10755for as_dir in $PATH
10756do
10757 IFS=$as_save_IFS
10758 test -z "$as_dir" && as_dir=.
10759 for ac_exec_ext in '' $ac_executable_extensions; do
10760 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb
SE
10761 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10762 ac_prog_rejected=yes
10763 continue
10764 fi
10765 ac_cv_prog_CC="cc"
13b2be9c
DJ
10766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10767 break 2
10768 fi
10769done
10770done
10771
d7040cdb
SE
10772if test $ac_prog_rejected = yes; then
10773 # We found a bogon in the path, so make sure we never use it.
10774 set dummy $ac_cv_prog_CC
10775 shift
10776 if test $# != 0; then
10777 # We chose a different compiler from the bogus one.
10778 # However, it has the same basename, so the bogon will be chosen
10779 # first if we set CC to just the basename; use the full file name.
10780 shift
10781 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10782 fi
c8615825
AM
10783fi
10784fi
d7040cdb
SE
10785fi
10786CC=$ac_cv_prog_CC
10787if test -n "$CC"; then
10788 echo "$as_me:$LINENO: result: $CC" >&5
10789echo "${ECHO_T}$CC" >&6
c8615825 10790else
13b2be9c
DJ
10791 echo "$as_me:$LINENO: result: no" >&5
10792echo "${ECHO_T}no" >&6
c8615825
AM
10793fi
10794
d7040cdb
SE
10795fi
10796if test -z "$CC"; then
10797 if test -n "$ac_tool_prefix"; then
10798 for ac_prog in cl
10799 do
10800 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10801set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10802echo "$as_me:$LINENO: checking for $ac_word" >&5
10803echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10804if test "${ac_cv_prog_CC+set}" = set; then
10805 echo $ECHO_N "(cached) $ECHO_C" >&6
10806else
10807 if test -n "$CC"; then
10808 ac_cv_prog_CC="$CC" # Let the user override the test.
10809else
10810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10811for as_dir in $PATH
10812do
10813 IFS=$as_save_IFS
10814 test -z "$as_dir" && as_dir=.
10815 for ac_exec_ext in '' $ac_executable_extensions; do
10816 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10817 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10819 break 2
10820 fi
10821done
c8615825 10822done
c8615825 10823
d7040cdb
SE
10824fi
10825fi
10826CC=$ac_cv_prog_CC
10827if test -n "$CC"; then
10828 echo "$as_me:$LINENO: result: $CC" >&5
10829echo "${ECHO_T}$CC" >&6
10830else
10831 echo "$as_me:$LINENO: result: no" >&5
10832echo "${ECHO_T}no" >&6
10833fi
10834
10835 test -n "$CC" && break
10836 done
10837fi
10838if test -z "$CC"; then
10839 ac_ct_CC=$CC
10840 for ac_prog in cl
13b2be9c
DJ
10841do
10842 # Extract the first word of "$ac_prog", so it can be a program name with args.
10843set dummy $ac_prog; ac_word=$2
10844echo "$as_me:$LINENO: checking for $ac_word" >&5
10845echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d7040cdb 10846if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
13b2be9c 10847 echo $ECHO_N "(cached) $ECHO_C" >&6
c8615825 10848else
d7040cdb
SE
10849 if test -n "$ac_ct_CC"; then
10850 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9b2b7d69 10851else
13b2be9c
DJ
10852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10853for as_dir in $PATH
10854do
10855 IFS=$as_save_IFS
10856 test -z "$as_dir" && as_dir=.
10857 for ac_exec_ext in '' $ac_executable_extensions; do
10858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 10859 ac_cv_prog_ac_ct_CC="$ac_prog"
13b2be9c
DJ
10860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10861 break 2
10862 fi
10863done
10864done
10865
10866fi
10867fi
d7040cdb
SE
10868ac_ct_CC=$ac_cv_prog_ac_ct_CC
10869if test -n "$ac_ct_CC"; then
10870 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10871echo "${ECHO_T}$ac_ct_CC" >&6
c8615825 10872else
13b2be9c
DJ
10873 echo "$as_me:$LINENO: result: no" >&5
10874echo "${ECHO_T}no" >&6
10875fi
10876
d7040cdb 10877 test -n "$ac_ct_CC" && break
13b2be9c 10878done
13b2be9c 10879
d7040cdb
SE
10880 CC=$ac_ct_CC
10881fi
10882
10883fi
10884
10885
10886test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10887See \`config.log' for more details." >&5
10888echo "$as_me: error: no acceptable C compiler found in \$PATH
10889See \`config.log' for more details." >&2;}
10890 { (exit 1); exit 1; }; }
10891
10892# Provide some information about the compiler.
10893echo "$as_me:$LINENO:" \
10894 "checking for C compiler version" >&5
10895ac_compiler=`set X $ac_compile; echo $2`
10896{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10897 (eval $ac_compiler --version </dev/null >&5) 2>&5
10898 ac_status=$?
10899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10900 (exit $ac_status); }
10901{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10902 (eval $ac_compiler -v </dev/null >&5) 2>&5
10903 ac_status=$?
10904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905 (exit $ac_status); }
10906{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10907 (eval $ac_compiler -V </dev/null >&5) 2>&5
10908 ac_status=$?
10909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910 (exit $ac_status); }
10911
10912echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10913echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10914if test "${ac_cv_c_compiler_gnu+set}" = set; then
13b2be9c
DJ
10915 echo $ECHO_N "(cached) $ECHO_C" >&6
10916else
d7040cdb 10917 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
10918/* confdefs.h. */
10919_ACEOF
10920cat confdefs.h >>conftest.$ac_ext
10921cat >>conftest.$ac_ext <<_ACEOF
10922/* end confdefs.h. */
10923
13b2be9c
DJ
10924int
10925main ()
10926{
d7040cdb
SE
10927#ifndef __GNUC__
10928 choke me
10929#endif
10930
13b2be9c
DJ
10931 ;
10932 return 0;
10933}
10934_ACEOF
d7040cdb
SE
10935rm -f conftest.$ac_objext
10936if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10937 (eval $ac_compile) 2>conftest.er1
13b2be9c 10938 ac_status=$?
ab509236
L
10939 grep -v '^ *+' conftest.er1 >conftest.err
10940 rm -f conftest.er1
10941 cat conftest.err >&5
13b2be9c
DJ
10942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10943 (exit $ac_status); } &&
1ad12f97
NC
10944 { ac_try='test -z "$ac_c_werror_flag"
10945 || test ! -s conftest.err'
ab509236
L
10946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10947 (eval $ac_try) 2>&5
10948 ac_status=$?
10949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950 (exit $ac_status); }; } &&
d7040cdb 10951 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
10952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10953 (eval $ac_try) 2>&5
10954 ac_status=$?
10955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10956 (exit $ac_status); }; }; then
d7040cdb 10957 ac_compiler_gnu=yes
13b2be9c
DJ
10958else
10959 echo "$as_me: failed program was:" >&5
10960sed 's/^/| /' conftest.$ac_ext >&5
10961
d7040cdb 10962ac_compiler_gnu=no
13b2be9c 10963fi
d7040cdb
SE
10964rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10965ac_cv_c_compiler_gnu=$ac_compiler_gnu
10966
13b2be9c 10967fi
d7040cdb
SE
10968echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10969echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
10970GCC=`test $ac_compiler_gnu = yes && echo yes`
10971ac_test_CFLAGS=${CFLAGS+set}
10972ac_save_CFLAGS=$CFLAGS
10973CFLAGS="-g"
10974echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10975echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
10976if test "${ac_cv_prog_cc_g+set}" = set; then
13b2be9c
DJ
10977 echo $ECHO_N "(cached) $ECHO_C" >&6
10978else
d7040cdb 10979 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
10980/* confdefs.h. */
10981_ACEOF
10982cat confdefs.h >>conftest.$ac_ext
10983cat >>conftest.$ac_ext <<_ACEOF
10984/* end confdefs.h. */
10985
13b2be9c
DJ
10986int
10987main ()
10988{
d7040cdb 10989
13b2be9c
DJ
10990 ;
10991 return 0;
10992}
10993_ACEOF
d7040cdb
SE
10994rm -f conftest.$ac_objext
10995if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10996 (eval $ac_compile) 2>conftest.er1
13b2be9c 10997 ac_status=$?
ab509236
L
10998 grep -v '^ *+' conftest.er1 >conftest.err
10999 rm -f conftest.er1
11000 cat conftest.err >&5
13b2be9c
DJ
11001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11002 (exit $ac_status); } &&
1ad12f97
NC
11003 { ac_try='test -z "$ac_c_werror_flag"
11004 || test ! -s conftest.err'
ab509236
L
11005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11006 (eval $ac_try) 2>&5
11007 ac_status=$?
11008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11009 (exit $ac_status); }; } &&
d7040cdb 11010 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
11011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11012 (eval $ac_try) 2>&5
11013 ac_status=$?
11014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11015 (exit $ac_status); }; }; then
d7040cdb 11016 ac_cv_prog_cc_g=yes
9b2b7d69 11017else
13b2be9c
DJ
11018 echo "$as_me: failed program was:" >&5
11019sed 's/^/| /' conftest.$ac_ext >&5
11020
d7040cdb 11021ac_cv_prog_cc_g=no
252b5132 11022fi
d7040cdb 11023rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c 11024fi
d7040cdb
SE
11025echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11026echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11027if test "$ac_test_CFLAGS" = set; then
11028 CFLAGS=$ac_save_CFLAGS
11029elif test $ac_cv_prog_cc_g = yes; then
11030 if test "$GCC" = yes; then
11031 CFLAGS="-g -O2"
11032 else
11033 CFLAGS="-g"
11034 fi
11035else
11036 if test "$GCC" = yes; then
11037 CFLAGS="-O2"
11038 else
11039 CFLAGS=
11040 fi
252b5132 11041fi
d7040cdb
SE
11042echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
11043echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11044if test "${ac_cv_prog_cc_stdc+set}" = set; then
13b2be9c
DJ
11045 echo $ECHO_N "(cached) $ECHO_C" >&6
11046else
d7040cdb
SE
11047 ac_cv_prog_cc_stdc=no
11048ac_save_CC=$CC
11049cat >conftest.$ac_ext <<_ACEOF
11050/* confdefs.h. */
13b2be9c 11051_ACEOF
d7040cdb
SE
11052cat confdefs.h >>conftest.$ac_ext
11053cat >>conftest.$ac_ext <<_ACEOF
11054/* end confdefs.h. */
11055#include <stdarg.h>
11056#include <stdio.h>
11057#include <sys/types.h>
11058#include <sys/stat.h>
11059/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11060struct buf { int x; };
11061FILE * (*rcsopen) (struct buf *, struct stat *, int);
11062static char *e (p, i)
11063 char **p;
11064 int i;
11065{
11066 return p[i];
11067}
11068static char *f (char * (*g) (char **, int), char **p, ...)
11069{
11070 char *s;
11071 va_list v;
11072 va_start (v,p);
11073 s = g (p, va_arg (v,int));
11074 va_end (v);
11075 return s;
11076}
11077
11078/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11079 function prototypes and stuff, but not '\xHH' hex character constants.
11080 These don't provoke an error unfortunately, instead are silently treated
11081 as 'x'. The following induces an error, until -std1 is added to get
11082 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11083 array size at least. It's necessary to write '\x00'==0 to get something
11084 that's true only with -std1. */
11085int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11086
11087int test (int i, double x);
11088struct s1 {int (*f) (int a);};
11089struct s2 {int (*f) (double a);};
11090int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11091int argc;
11092char **argv;
11093int
11094main ()
11095{
11096return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11097 ;
11098 return 0;
11099}
11100_ACEOF
11101# Don't try gcc -ansi; that turns off useful extensions and
11102# breaks some systems' header files.
11103# AIX -qlanglvl=ansi
11104# Ultrix and OSF/1 -std1
11105# HP-UX 10.20 and later -Ae
11106# HP-UX older versions -Aa -D_HPUX_SOURCE
11107# SVR4 -Xc -D__EXTENSIONS__
11108for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11109do
11110 CC="$ac_save_CC $ac_arg"
11111 rm -f conftest.$ac_objext
11112if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11113 (eval $ac_compile) 2>conftest.er1
13b2be9c 11114 ac_status=$?
d7040cdb
SE
11115 grep -v '^ *+' conftest.er1 >conftest.err
11116 rm -f conftest.er1
11117 cat conftest.err >&5
13b2be9c 11118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
11119 (exit $ac_status); } &&
11120 { ac_try='test -z "$ac_c_werror_flag"
11121 || test ! -s conftest.err'
11122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11123 (eval $ac_try) 2>&5
11124 ac_status=$?
11125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11126 (exit $ac_status); }; } &&
11127 { ac_try='test -s conftest.$ac_objext'
11128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11129 (eval $ac_try) 2>&5
11130 ac_status=$?
11131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11132 (exit $ac_status); }; }; then
11133 ac_cv_prog_cc_stdc=$ac_arg
11134break
252b5132 11135else
d7040cdb
SE
11136 echo "$as_me: failed program was:" >&5
11137sed 's/^/| /' conftest.$ac_ext >&5
11138
252b5132 11139fi
d7040cdb
SE
11140rm -f conftest.err conftest.$ac_objext
11141done
11142rm -f conftest.$ac_ext conftest.$ac_objext
11143CC=$ac_save_CC
11144
13b2be9c 11145fi
252b5132 11146
d7040cdb
SE
11147case "x$ac_cv_prog_cc_stdc" in
11148 x|xno)
11149 echo "$as_me:$LINENO: result: none needed" >&5
11150echo "${ECHO_T}none needed" >&6 ;;
11151 *)
11152 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
11153echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11154 CC="$CC $ac_cv_prog_cc_stdc" ;;
11155esac
11156
11157# Some people use a C++ compiler to compile C. Since we use `exit',
11158# in C++ we need to declare it. In case someone uses the same compiler
11159# for both compiling C and C++ we need to have the C++ compiler decide
11160# the declaration of exit, since it's the most demanding environment.
13b2be9c 11161cat >conftest.$ac_ext <<_ACEOF
d7040cdb
SE
11162#ifndef __cplusplus
11163 choke me
11164#endif
13b2be9c 11165_ACEOF
d7040cdb
SE
11166rm -f conftest.$ac_objext
11167if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11168 (eval $ac_compile) 2>conftest.er1
13b2be9c 11169 ac_status=$?
ab509236
L
11170 grep -v '^ *+' conftest.er1 >conftest.err
11171 rm -f conftest.er1
11172 cat conftest.err >&5
13b2be9c
DJ
11173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11174 (exit $ac_status); } &&
1ad12f97
NC
11175 { ac_try='test -z "$ac_c_werror_flag"
11176 || test ! -s conftest.err'
ab509236
L
11177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11178 (eval $ac_try) 2>&5
11179 ac_status=$?
11180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11181 (exit $ac_status); }; } &&
d7040cdb 11182 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
11183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11184 (eval $ac_try) 2>&5
11185 ac_status=$?
11186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11187 (exit $ac_status); }; }; then
d7040cdb
SE
11188 for ac_declaration in \
11189 '' \
11190 'extern "C" void std::exit (int) throw (); using std::exit;' \
11191 'extern "C" void std::exit (int); using std::exit;' \
11192 'extern "C" void exit (int) throw ();' \
11193 'extern "C" void exit (int);' \
11194 'void exit (int);'
11195do
11196 cat >conftest.$ac_ext <<_ACEOF
11197/* confdefs.h. */
13b2be9c 11198_ACEOF
d7040cdb
SE
11199cat confdefs.h >>conftest.$ac_ext
11200cat >>conftest.$ac_ext <<_ACEOF
11201/* end confdefs.h. */
11202$ac_declaration
11203#include <stdlib.h>
11204int
11205main ()
11206{
11207exit (42);
11208 ;
11209 return 0;
11210}
20e95c23 11211_ACEOF
d7040cdb
SE
11212rm -f conftest.$ac_objext
11213if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11214 (eval $ac_compile) 2>conftest.er1
11215 ac_status=$?
11216 grep -v '^ *+' conftest.er1 >conftest.err
11217 rm -f conftest.er1
11218 cat conftest.err >&5
11219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11220 (exit $ac_status); } &&
11221 { ac_try='test -z "$ac_c_werror_flag"
11222 || test ! -s conftest.err'
11223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11224 (eval $ac_try) 2>&5
11225 ac_status=$?
11226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11227 (exit $ac_status); }; } &&
11228 { ac_try='test -s conftest.$ac_objext'
11229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11230 (eval $ac_try) 2>&5
11231 ac_status=$?
11232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11233 (exit $ac_status); }; }; then
11234 :
20e95c23 11235else
d7040cdb
SE
11236 echo "$as_me: failed program was:" >&5
11237sed 's/^/| /' conftest.$ac_ext >&5
13b2be9c 11238
d7040cdb 11239continue
13b2be9c 11240fi
d7040cdb
SE
11241rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11242 cat >conftest.$ac_ext <<_ACEOF
11243/* confdefs.h. */
11244_ACEOF
11245cat confdefs.h >>conftest.$ac_ext
11246cat >>conftest.$ac_ext <<_ACEOF
11247/* end confdefs.h. */
11248$ac_declaration
11249int
11250main ()
11251{
11252exit (42);
11253 ;
11254 return 0;
11255}
11256_ACEOF
11257rm -f conftest.$ac_objext
11258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11259 (eval $ac_compile) 2>conftest.er1
11260 ac_status=$?
11261 grep -v '^ *+' conftest.er1 >conftest.err
11262 rm -f conftest.er1
11263 cat conftest.err >&5
11264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265 (exit $ac_status); } &&
11266 { ac_try='test -z "$ac_c_werror_flag"
11267 || test ! -s conftest.err'
11268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11269 (eval $ac_try) 2>&5
11270 ac_status=$?
11271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11272 (exit $ac_status); }; } &&
11273 { ac_try='test -s conftest.$ac_objext'
11274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11275 (eval $ac_try) 2>&5
11276 ac_status=$?
11277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11278 (exit $ac_status); }; }; then
11279 break
252b5132 11280else
d7040cdb
SE
11281 echo "$as_me: failed program was:" >&5
11282sed 's/^/| /' conftest.$ac_ext >&5
20e95c23 11283
20e95c23 11284fi
d7040cdb
SE
11285rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11286done
11287rm -f conftest*
11288if test -n "$ac_declaration"; then
11289 echo '#ifdef __cplusplus' >>confdefs.h
11290 echo $ac_declaration >>confdefs.h
11291 echo '#endif' >>confdefs.h
13b2be9c 11292fi
20e95c23 11293
13b2be9c 11294else
d7040cdb
SE
11295 echo "$as_me: failed program was:" >&5
11296sed 's/^/| /' conftest.$ac_ext >&5
20e95c23 11297
20e95c23 11298fi
d7040cdb
SE
11299rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11300ac_ext=c
11301ac_cpp='$CPP $CPPFLAGS'
11302ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11303ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11304ac_compiler_gnu=$ac_cv_c_compiler_gnu
d6d788bd 11305
20e95c23 11306
d7040cdb
SE
11307for ac_prog in 'bison -y' byacc
11308do
11309 # Extract the first word of "$ac_prog", so it can be a program name with args.
11310set dummy $ac_prog; ac_word=$2
20e95c23
DJ
11311echo "$as_me:$LINENO: checking for $ac_word" >&5
11312echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d7040cdb 11313if test "${ac_cv_prog_YACC+set}" = set; then
20e95c23
DJ
11314 echo $ECHO_N "(cached) $ECHO_C" >&6
11315else
d7040cdb
SE
11316 if test -n "$YACC"; then
11317 ac_cv_prog_YACC="$YACC" # Let the user override the test.
d6d788bd 11318else
d7040cdb
SE
11319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11320for as_dir in $PATH
11321do
11322 IFS=$as_save_IFS
11323 test -z "$as_dir" && as_dir=.
11324 for ac_exec_ext in '' $ac_executable_extensions; do
11325 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11326 ac_cv_prog_YACC="$ac_prog"
11327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11328 break 2
20e95c23 11329 fi
d7040cdb
SE
11330done
11331done
20e95c23 11332
d7040cdb
SE
11333fi
11334fi
11335YACC=$ac_cv_prog_YACC
11336if test -n "$YACC"; then
11337 echo "$as_me:$LINENO: result: $YACC" >&5
11338echo "${ECHO_T}$YACC" >&6
11339else
11340 echo "$as_me:$LINENO: result: no" >&5
11341echo "${ECHO_T}no" >&6
11342fi
20e95c23 11343
d7040cdb
SE
11344 test -n "$YACC" && break
11345done
11346test -n "$YACC" || YACC="yacc"
20e95c23 11347
d7040cdb
SE
11348for ac_prog in flex lex
11349do
11350 # Extract the first word of "$ac_prog", so it can be a program name with args.
11351set dummy $ac_prog; ac_word=$2
11352echo "$as_me:$LINENO: checking for $ac_word" >&5
11353echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11354if test "${ac_cv_prog_LEX+set}" = set; then
11355 echo $ECHO_N "(cached) $ECHO_C" >&6
d6d788bd 11356else
d7040cdb
SE
11357 if test -n "$LEX"; then
11358 ac_cv_prog_LEX="$LEX" # Let the user override the test.
11359else
11360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11361for as_dir in $PATH
11362do
11363 IFS=$as_save_IFS
11364 test -z "$as_dir" && as_dir=.
11365 for ac_exec_ext in '' $ac_executable_extensions; do
11366 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11367 ac_cv_prog_LEX="$ac_prog"
11368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11369 break 2
11370 fi
11371done
11372done
20e95c23 11373
d7040cdb
SE
11374fi
11375fi
11376LEX=$ac_cv_prog_LEX
11377if test -n "$LEX"; then
11378 echo "$as_me:$LINENO: result: $LEX" >&5
11379echo "${ECHO_T}$LEX" >&6
20e95c23 11380else
d7040cdb
SE
11381 echo "$as_me:$LINENO: result: no" >&5
11382echo "${ECHO_T}no" >&6
13b2be9c
DJ
11383fi
11384
d7040cdb
SE
11385 test -n "$LEX" && break
11386done
11387test -n "$LEX" || LEX=":"
20e95c23 11388
d7040cdb
SE
11389if test -z "$LEXLIB"
11390then
11391 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
11392echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
11393if test "${ac_cv_lib_fl_yywrap+set}" = set; then
11394 echo $ECHO_N "(cached) $ECHO_C" >&6
d5fbea21 11395else
d7040cdb
SE
11396 ac_check_lib_save_LIBS=$LIBS
11397LIBS="-lfl $LIBS"
11398cat >conftest.$ac_ext <<_ACEOF
11399/* confdefs.h. */
11400_ACEOF
11401cat confdefs.h >>conftest.$ac_ext
11402cat >>conftest.$ac_ext <<_ACEOF
11403/* end confdefs.h. */
d5fbea21 11404
d7040cdb
SE
11405/* Override any gcc2 internal prototype to avoid an error. */
11406#ifdef __cplusplus
11407extern "C"
11408#endif
11409/* We use char because int might match the return type of a gcc2
11410 builtin and then its argument prototype would still apply. */
11411char yywrap ();
11412int
11413main ()
11414{
11415yywrap ();
11416 ;
11417 return 0;
11418}
11419_ACEOF
11420rm -f conftest.$ac_objext conftest$ac_exeext
11421if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11422 (eval $ac_link) 2>conftest.er1
11423 ac_status=$?
11424 grep -v '^ *+' conftest.er1 >conftest.err
11425 rm -f conftest.er1
11426 cat conftest.err >&5
11427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11428 (exit $ac_status); } &&
11429 { ac_try='test -z "$ac_c_werror_flag"
11430 || test ! -s conftest.err'
11431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11432 (eval $ac_try) 2>&5
11433 ac_status=$?
11434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11435 (exit $ac_status); }; } &&
11436 { ac_try='test -s conftest$ac_exeext'
11437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11438 (eval $ac_try) 2>&5
11439 ac_status=$?
11440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11441 (exit $ac_status); }; }; then
11442 ac_cv_lib_fl_yywrap=yes
11443else
11444 echo "$as_me: failed program was:" >&5
11445sed 's/^/| /' conftest.$ac_ext >&5
d5fbea21 11446
d7040cdb 11447ac_cv_lib_fl_yywrap=no
d6d788bd 11448fi
d7040cdb
SE
11449rm -f conftest.err conftest.$ac_objext \
11450 conftest$ac_exeext conftest.$ac_ext
11451LIBS=$ac_check_lib_save_LIBS
11452fi
11453echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
11454echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
11455if test $ac_cv_lib_fl_yywrap = yes; then
11456 LEXLIB="-lfl"
11457else
11458 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
11459echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
11460if test "${ac_cv_lib_l_yywrap+set}" = set; then
13b2be9c
DJ
11461 echo $ECHO_N "(cached) $ECHO_C" >&6
11462else
d7040cdb
SE
11463 ac_check_lib_save_LIBS=$LIBS
11464LIBS="-ll $LIBS"
11465cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
11466/* confdefs.h. */
11467_ACEOF
11468cat confdefs.h >>conftest.$ac_ext
11469cat >>conftest.$ac_ext <<_ACEOF
11470/* end confdefs.h. */
d7040cdb
SE
11471
11472/* Override any gcc2 internal prototype to avoid an error. */
11473#ifdef __cplusplus
11474extern "C"
13b2be9c 11475#endif
d7040cdb
SE
11476/* We use char because int might match the return type of a gcc2
11477 builtin and then its argument prototype would still apply. */
11478char yywrap ();
11479int
11480main ()
11481{
11482yywrap ();
11483 ;
11484 return 0;
11485}
11486_ACEOF
11487rm -f conftest.$ac_objext conftest$ac_exeext
11488if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11489 (eval $ac_link) 2>conftest.er1
11490 ac_status=$?
11491 grep -v '^ *+' conftest.er1 >conftest.err
11492 rm -f conftest.er1
11493 cat conftest.err >&5
11494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495 (exit $ac_status); } &&
11496 { ac_try='test -z "$ac_c_werror_flag"
11497 || test ! -s conftest.err'
11498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11499 (eval $ac_try) 2>&5
11500 ac_status=$?
11501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11502 (exit $ac_status); }; } &&
11503 { ac_try='test -s conftest$ac_exeext'
11504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11505 (eval $ac_try) 2>&5
11506 ac_status=$?
11507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11508 (exit $ac_status); }; }; then
11509 ac_cv_lib_l_yywrap=yes
11510else
11511 echo "$as_me: failed program was:" >&5
11512sed 's/^/| /' conftest.$ac_ext >&5
11513
11514ac_cv_lib_l_yywrap=no
11515fi
11516rm -f conftest.err conftest.$ac_objext \
11517 conftest$ac_exeext conftest.$ac_ext
11518LIBS=$ac_check_lib_save_LIBS
11519fi
11520echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
11521echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
11522if test $ac_cv_lib_l_yywrap = yes; then
11523 LEXLIB="-ll"
11524fi
11525
11526fi
11527
11528fi
11529
11530if test "x$LEX" != "x:"; then
11531 echo "$as_me:$LINENO: checking lex output file root" >&5
11532echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
11533if test "${ac_cv_prog_lex_root+set}" = set; then
11534 echo $ECHO_N "(cached) $ECHO_C" >&6
11535else
11536 # The minimal lex program is just a single line: %%. But some broken lexes
11537# (Solaris, I think it was) want two %% lines, so accommodate them.
11538cat >conftest.l <<_ACEOF
11539%%
11540%%
13b2be9c 11541_ACEOF
d7040cdb
SE
11542{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
11543 (eval $LEX conftest.l) 2>&5
13b2be9c 11544 ac_status=$?
13b2be9c 11545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
11546 (exit $ac_status); }
11547if test -f lex.yy.c; then
11548 ac_cv_prog_lex_root=lex.yy
11549elif test -f lexyy.c; then
11550 ac_cv_prog_lex_root=lexyy
13b2be9c 11551else
d7040cdb
SE
11552 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
11553echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
11554 { (exit 1); exit 1; }; }
d6d788bd 11555fi
13b2be9c 11556fi
d7040cdb
SE
11557echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
11558echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
11559rm -f conftest.l
11560LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
13b2be9c 11561
d7040cdb
SE
11562echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
11563echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
11564if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
11565 echo $ECHO_N "(cached) $ECHO_C" >&6
11566else
11567 # POSIX says lex can declare yytext either as a pointer or an array; the
11568# default is implementation-dependent. Figure out which it is, since
11569# not all implementations provide the %pointer and %array declarations.
11570ac_cv_prog_lex_yytext_pointer=no
11571echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
11572ac_save_LIBS=$LIBS
11573LIBS="$LIBS $LEXLIB"
11574cat >conftest.$ac_ext <<_ACEOF
11575`cat $LEX_OUTPUT_ROOT.c`
13b2be9c 11576_ACEOF
d7040cdb
SE
11577rm -f conftest.$ac_objext conftest$ac_exeext
11578if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11579 (eval $ac_link) 2>conftest.er1
13b2be9c
DJ
11580 ac_status=$?
11581 grep -v '^ *+' conftest.er1 >conftest.err
11582 rm -f conftest.er1
11583 cat conftest.err >&5
11584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
11585 (exit $ac_status); } &&
11586 { ac_try='test -z "$ac_c_werror_flag"
11587 || test ! -s conftest.err'
11588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11589 (eval $ac_try) 2>&5
11590 ac_status=$?
11591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11592 (exit $ac_status); }; } &&
11593 { ac_try='test -s conftest$ac_exeext'
11594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11595 (eval $ac_try) 2>&5
11596 ac_status=$?
11597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11598 (exit $ac_status); }; }; then
11599 ac_cv_prog_lex_yytext_pointer=yes
13b2be9c
DJ
11600else
11601 echo "$as_me: failed program was:" >&5
11602sed 's/^/| /' conftest.$ac_ext >&5
6840198f 11603
13b2be9c 11604fi
d7040cdb
SE
11605rm -f conftest.err conftest.$ac_objext \
11606 conftest$ac_exeext conftest.$ac_ext
11607LIBS=$ac_save_LIBS
11608rm -f "${LEX_OUTPUT_ROOT}.c"
252b5132 11609
9b2b7d69 11610fi
d7040cdb
SE
11611echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
11612echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
11613if test $ac_cv_prog_lex_yytext_pointer = yes; then
13b2be9c 11614
d7040cdb
SE
11615cat >>confdefs.h <<\_ACEOF
11616#define YYTEXT_POINTER 1
11617_ACEOF
9b2b7d69 11618
d6d788bd 11619fi
d7040cdb 11620
c8615825 11621fi
d7040cdb
SE
11622if test "$LEX" = :; then
11623 LEX=${am_missing_run}flex
11624fi
11625
11626ALL_LINGUAS="fr tr es rw"
11627# If we haven't got the data from the intl directory,
11628# assume NLS is disabled.
11629USE_NLS=no
11630LIBINTL=
11631LIBINTL_DEP=
11632INCINTL=
11633XGETTEXT=
11634GMSGFMT=
11635POSUB=
11636
11637if test -f ../intl/config.intl; then
11638 . ../intl/config.intl
11639fi
11640echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11641echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
11642if test x"$USE_NLS" != xyes; then
11643 echo "$as_me:$LINENO: result: no" >&5
11644echo "${ECHO_T}no" >&6
11645else
11646 echo "$as_me:$LINENO: result: yes" >&5
11647echo "${ECHO_T}yes" >&6
11648
11649cat >>confdefs.h <<\_ACEOF
11650#define ENABLE_NLS 1
13b2be9c 11651_ACEOF
d7040cdb
SE
11652
11653
11654 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
11655echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
11656 # Look for .po and .gmo files in the source directory.
11657 CATALOGS=
11658 XLINGUAS=
11659 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11660 # If there aren't any .gmo files the shell will give us the
11661 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11662 # weeded out.
11663 case "$cat" in *\**)
11664 continue;;
11665 esac
11666 # The quadruple backslash is collapsed to a double backslash
11667 # by the backticks, then collapsed again by the double quotes,
11668 # leaving us with one backslash in the sed expression (right
11669 # before the dot that mustn't act as a wildcard).
11670 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11671 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11672 # The user is allowed to set LINGUAS to a list of languages to
11673 # install catalogs for. If it's empty that means "all of them."
11674 if test "x$LINGUAS" = x; then
11675 CATALOGS="$CATALOGS $cat"
11676 XLINGUAS="$XLINGUAS $lang"
11677 else
11678 case "$LINGUAS" in *$lang*)
11679 CATALOGS="$CATALOGS $cat"
11680 XLINGUAS="$XLINGUAS $lang"
11681 ;;
11682 esac
11683 fi
11684 done
11685 LINGUAS="$XLINGUAS"
11686 echo "$as_me:$LINENO: result: $LINGUAS" >&5
11687echo "${ECHO_T}$LINGUAS" >&6
11688
11689
11690 DATADIRNAME=share
11691
11692 INSTOBJEXT=.mo
11693
11694 GENCAT=gencat
11695
11696 CATOBJEXT=.gmo
11697
11698fi
11699
11700 MKINSTALLDIRS=
11701 if test -n "$ac_aux_dir"; then
11702 case "$ac_aux_dir" in
11703 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
11704 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
11705 esac
11706 fi
11707 if test -z "$MKINSTALLDIRS"; then
11708 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
11709 fi
11710
11711
11712
11713 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11714echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
11715 # Check whether --enable-nls or --disable-nls was given.
11716if test "${enable_nls+set}" = set; then
11717 enableval="$enable_nls"
11718 USE_NLS=$enableval
11719else
11720 USE_NLS=yes
11721fi;
11722 echo "$as_me:$LINENO: result: $USE_NLS" >&5
11723echo "${ECHO_T}$USE_NLS" >&6
11724
11725
11726
11727
11728
11729
11730# Prepare PATH_SEPARATOR.
11731# The user is always right.
11732if test "${PATH_SEPARATOR+set}" != set; then
11733 echo "#! /bin/sh" >conf$$.sh
11734 echo "exit 0" >>conf$$.sh
11735 chmod +x conf$$.sh
11736 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11737 PATH_SEPARATOR=';'
13b2be9c 11738 else
d7040cdb 11739 PATH_SEPARATOR=:
13b2be9c 11740 fi
d7040cdb 11741 rm -f conf$$.sh
252b5132 11742fi
13b2be9c 11743
d7040cdb
SE
11744# Find out how to test for executable files. Don't use a zero-byte file,
11745# as systems may use methods other than mode bits to determine executability.
11746cat >conf$$.file <<_ASEOF
11747#! /bin/sh
11748exit 0
11749_ASEOF
11750chmod +x conf$$.file
11751if test -x conf$$.file >/dev/null 2>&1; then
11752 ac_executable_p="test -x"
11753else
11754 ac_executable_p="test -f"
13b2be9c 11755fi
d7040cdb 11756rm -f conf$$.file
13b2be9c 11757
d7040cdb
SE
11758# Extract the first word of "msgfmt", so it can be a program name with args.
11759set dummy msgfmt; ac_word=$2
11760echo "$as_me:$LINENO: checking for $ac_word" >&5
11761echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11762if test "${ac_cv_path_MSGFMT+set}" = set; then
11763 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11764else
d7040cdb
SE
11765 case "$MSGFMT" in
11766 [\\/]* | ?:[\\/]*)
11767 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11768 ;;
11769 *)
11770 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11771 for ac_dir in $PATH; do
11772 IFS="$ac_save_IFS"
11773 test -z "$ac_dir" && ac_dir=.
11774 for ac_exec_ext in '' $ac_executable_extensions; do
11775 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11776 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
11777 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11778 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
11779 break 2
11780 fi
11781 fi
11782 done
11783 done
11784 IFS="$ac_save_IFS"
11785 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11786 ;;
11787esac
252b5132 11788fi
d7040cdb
SE
11789MSGFMT="$ac_cv_path_MSGFMT"
11790if test "$MSGFMT" != ":"; then
11791 echo "$as_me:$LINENO: result: $MSGFMT" >&5
11792echo "${ECHO_T}$MSGFMT" >&6
252b5132 11793else
d7040cdb
SE
11794 echo "$as_me:$LINENO: result: no" >&5
11795echo "${ECHO_T}no" >&6
252b5132 11796fi
252b5132 11797
d7040cdb
SE
11798 # Extract the first word of "gmsgfmt", so it can be a program name with args.
11799set dummy gmsgfmt; ac_word=$2
11800echo "$as_me:$LINENO: checking for $ac_word" >&5
11801echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11802if test "${ac_cv_path_GMSGFMT+set}" = set; then
11803 echo $ECHO_N "(cached) $ECHO_C" >&6
13b2be9c 11804else
d7040cdb
SE
11805 case $GMSGFMT in
11806 [\\/]* | ?:[\\/]*)
11807 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11808 ;;
11809 *)
11810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11811for as_dir in $PATH
11812do
11813 IFS=$as_save_IFS
11814 test -z "$as_dir" && as_dir=.
11815 for ac_exec_ext in '' $ac_executable_extensions; do
11816 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11817 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
11818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11819 break 2
11820 fi
11821done
11822done
252b5132 11823
d7040cdb
SE
11824 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11825 ;;
11826esac
11827fi
11828GMSGFMT=$ac_cv_path_GMSGFMT
252b5132 11829
d7040cdb
SE
11830if test -n "$GMSGFMT"; then
11831 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
11832echo "${ECHO_T}$GMSGFMT" >&6
ac48eca1 11833else
d7040cdb
SE
11834 echo "$as_me:$LINENO: result: no" >&5
11835echo "${ECHO_T}no" >&6
6840198f 11836fi
6840198f 11837
13b2be9c 11838
20e95c23 11839
d7040cdb
SE
11840# Prepare PATH_SEPARATOR.
11841# The user is always right.
11842if test "${PATH_SEPARATOR+set}" != set; then
11843 echo "#! /bin/sh" >conf$$.sh
11844 echo "exit 0" >>conf$$.sh
11845 chmod +x conf$$.sh
11846 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11847 PATH_SEPARATOR=';'
11848 else
11849 PATH_SEPARATOR=:
11850 fi
11851 rm -f conf$$.sh
11852fi
20e95c23 11853
d7040cdb
SE
11854# Find out how to test for executable files. Don't use a zero-byte file,
11855# as systems may use methods other than mode bits to determine executability.
11856cat >conf$$.file <<_ASEOF
11857#! /bin/sh
11858exit 0
11859_ASEOF
11860chmod +x conf$$.file
11861if test -x conf$$.file >/dev/null 2>&1; then
11862 ac_executable_p="test -x"
13b2be9c 11863else
d7040cdb 11864 ac_executable_p="test -f"
13b2be9c 11865fi
d7040cdb 11866rm -f conf$$.file
20e95c23 11867
d7040cdb
SE
11868# Extract the first word of "xgettext", so it can be a program name with args.
11869set dummy xgettext; ac_word=$2
11870echo "$as_me:$LINENO: checking for $ac_word" >&5
11871echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11872if test "${ac_cv_path_XGETTEXT+set}" = set; then
11873 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11874else
d7040cdb
SE
11875 case "$XGETTEXT" in
11876 [\\/]* | ?:[\\/]*)
11877 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11878 ;;
11879 *)
11880 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11881 for ac_dir in $PATH; do
11882 IFS="$ac_save_IFS"
11883 test -z "$ac_dir" && ac_dir=.
11884 for ac_exec_ext in '' $ac_executable_extensions; do
11885 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11886 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11887 (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
11888 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
11889 break 2
11890 fi
11891 fi
11892 done
11893 done
11894 IFS="$ac_save_IFS"
11895 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11896 ;;
11897esac
13b2be9c 11898fi
d7040cdb
SE
11899XGETTEXT="$ac_cv_path_XGETTEXT"
11900if test "$XGETTEXT" != ":"; then
11901 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
11902echo "${ECHO_T}$XGETTEXT" >&6
11903else
11904 echo "$as_me:$LINENO: result: no" >&5
11905echo "${ECHO_T}no" >&6
13b2be9c 11906fi
13b2be9c 11907
d7040cdb 11908 rm -f messages.po
20e95c23 11909
13b2be9c 11910
d7040cdb
SE
11911# Prepare PATH_SEPARATOR.
11912# The user is always right.
11913if test "${PATH_SEPARATOR+set}" != set; then
11914 echo "#! /bin/sh" >conf$$.sh
11915 echo "exit 0" >>conf$$.sh
11916 chmod +x conf$$.sh
11917 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11918 PATH_SEPARATOR=';'
11919 else
11920 PATH_SEPARATOR=:
11921 fi
11922 rm -f conf$$.sh
252b5132 11923fi
20e95c23 11924
d7040cdb
SE
11925# Find out how to test for executable files. Don't use a zero-byte file,
11926# as systems may use methods other than mode bits to determine executability.
11927cat >conf$$.file <<_ASEOF
11928#! /bin/sh
11929exit 0
11930_ASEOF
11931chmod +x conf$$.file
11932if test -x conf$$.file >/dev/null 2>&1; then
11933 ac_executable_p="test -x"
252b5132 11934else
d7040cdb
SE
11935 ac_executable_p="test -f"
11936fi
11937rm -f conf$$.file
20e95c23 11938
d7040cdb
SE
11939# Extract the first word of "msgmerge", so it can be a program name with args.
11940set dummy msgmerge; ac_word=$2
11941echo "$as_me:$LINENO: checking for $ac_word" >&5
11942echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11943if test "${ac_cv_path_MSGMERGE+set}" = set; then
11944 echo $ECHO_N "(cached) $ECHO_C" >&6
20e95c23 11945else
d7040cdb
SE
11946 case "$MSGMERGE" in
11947 [\\/]* | ?:[\\/]*)
11948 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11949 ;;
11950 *)
11951 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11952 for ac_dir in $PATH; do
11953 IFS="$ac_save_IFS"
11954 test -z "$ac_dir" && ac_dir=.
11955 for ac_exec_ext in '' $ac_executable_extensions; do
11956 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11957 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
11958 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11959 break 2
11960 fi
11961 fi
11962 done
11963 done
11964 IFS="$ac_save_IFS"
11965 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11966 ;;
11967esac
20e95c23 11968fi
d7040cdb
SE
11969MSGMERGE="$ac_cv_path_MSGMERGE"
11970if test "$MSGMERGE" != ":"; then
11971 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
11972echo "${ECHO_T}$MSGMERGE" >&6
11973else
11974 echo "$as_me:$LINENO: result: no" >&5
11975echo "${ECHO_T}no" >&6
20e95c23 11976fi
252b5132 11977
252b5132 11978
d7040cdb
SE
11979 if test "$GMSGFMT" != ":"; then
11980 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
11981 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11982 : ;
11983 else
11984 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
11985 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
11986echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
11987 GMSGFMT=":"
11988 fi
11989 fi
13b2be9c 11990
d7040cdb
SE
11991 if test "$XGETTEXT" != ":"; then
11992 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11993 (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
11994 : ;
11995 else
11996 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
11997echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
11998 XGETTEXT=":"
11999 fi
12000 rm -f messages.po
12001 fi
252b5132 12002
d7040cdb 12003 ac_config_commands="$ac_config_commands default-1"
252b5132 12004
13b2be9c 12005
252b5132 12006
d7040cdb
SE
12007echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12008echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
12009 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
12010if test "${enable_maintainer_mode+set}" = set; then
12011 enableval="$enable_maintainer_mode"
12012 USE_MAINTAINER_MODE=$enableval
c8615825 12013else
d7040cdb
SE
12014 USE_MAINTAINER_MODE=no
12015fi;
12016 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
12017echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
13b2be9c 12018
d7040cdb
SE
12019
12020if test $USE_MAINTAINER_MODE = yes; then
12021 MAINTAINER_MODE_TRUE=
12022 MAINTAINER_MODE_FALSE='#'
12023else
12024 MAINTAINER_MODE_TRUE='#'
12025 MAINTAINER_MODE_FALSE=
20e95c23 12026fi
9b2b7d69 12027
d7040cdb
SE
12028 MAINT=$MAINTAINER_MODE_TRUE
12029
12030
12031
12032
12033if false; then
12034 GENINSRC_NEVER_TRUE=
12035 GENINSRC_NEVER_FALSE='#'
12036else
12037 GENINSRC_NEVER_TRUE='#'
12038 GENINSRC_NEVER_FALSE=
20e95c23 12039fi
9b2b7d69
MM
12040
12041
12042
12043
12044
13b2be9c
DJ
12045
12046
12047
12048
12049
12050
12051
12052for ac_header in string.h stdlib.h memory.h strings.h unistd.h stdarg.h varargs.h errno.h sys/types.h
d6d788bd 12053do
13b2be9c
DJ
12054as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12055if eval "test \"\${$as_ac_Header+set}\" = set"; then
12056 echo "$as_me:$LINENO: checking for $ac_header" >&5
12057echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12058if eval "test \"\${$as_ac_Header+set}\" = set"; then
12059 echo $ECHO_N "(cached) $ECHO_C" >&6
12060fi
12061echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12062echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12063else
12064 # Is the header compilable?
12065echo "$as_me:$LINENO: checking $ac_header usability" >&5
12066echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12067cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
12068/* confdefs.h. */
12069_ACEOF
12070cat confdefs.h >>conftest.$ac_ext
12071cat >>conftest.$ac_ext <<_ACEOF
12072/* end confdefs.h. */
12073$ac_includes_default
12074#include <$ac_header>
12075_ACEOF
12076rm -f conftest.$ac_objext
12077if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 12078 (eval $ac_compile) 2>conftest.er1
13b2be9c 12079 ac_status=$?
ab509236
L
12080 grep -v '^ *+' conftest.er1 >conftest.err
12081 rm -f conftest.er1
12082 cat conftest.err >&5
13b2be9c
DJ
12083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12084 (exit $ac_status); } &&
1ad12f97
NC
12085 { ac_try='test -z "$ac_c_werror_flag"
12086 || test ! -s conftest.err'
ab509236
L
12087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12088 (eval $ac_try) 2>&5
12089 ac_status=$?
12090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12091 (exit $ac_status); }; } &&
12092 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
12093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12094 (eval $ac_try) 2>&5
12095 ac_status=$?
12096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12097 (exit $ac_status); }; }; then
12098 ac_header_compiler=yes
12099else
12100 echo "$as_me: failed program was:" >&5
12101sed 's/^/| /' conftest.$ac_ext >&5
12102
12103ac_header_compiler=no
12104fi
ab509236 12105rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
12106echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12107echo "${ECHO_T}$ac_header_compiler" >&6
12108
12109# Is the header present?
12110echo "$as_me:$LINENO: checking $ac_header presence" >&5
12111echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12112cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
12113/* confdefs.h. */
12114_ACEOF
12115cat confdefs.h >>conftest.$ac_ext
12116cat >>conftest.$ac_ext <<_ACEOF
12117/* end confdefs.h. */
12118#include <$ac_header>
12119_ACEOF
12120if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12121 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12122 ac_status=$?
12123 grep -v '^ *+' conftest.er1 >conftest.err
12124 rm -f conftest.er1
12125 cat conftest.err >&5
12126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127 (exit $ac_status); } >/dev/null; then
12128 if test -s conftest.err; then
12129 ac_cpp_err=$ac_c_preproc_warn_flag
ab509236 12130 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13b2be9c
DJ
12131 else
12132 ac_cpp_err=
12133 fi
9b2b7d69 12134else
13b2be9c
DJ
12135 ac_cpp_err=yes
12136fi
12137if test -z "$ac_cpp_err"; then
12138 ac_header_preproc=yes
12139else
12140 echo "$as_me: failed program was:" >&5
12141sed 's/^/| /' conftest.$ac_ext >&5
12142
12143 ac_header_preproc=no
12144fi
12145rm -f conftest.err conftest.$ac_ext
12146echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12147echo "${ECHO_T}$ac_header_preproc" >&6
12148
12149# So? What about this header?
ab509236
L
12150case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12151 yes:no: )
13b2be9c
DJ
12152 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12153echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ab509236
L
12154 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12155echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12156 ac_header_preproc=yes
13b2be9c 12157 ;;
ab509236 12158 no:yes:* )
13b2be9c
DJ
12159 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12160echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ab509236
L
12161 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12162echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12163 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12164echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12165 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12166echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13b2be9c
DJ
12167 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12168echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ab509236
L
12169 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12170echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13b2be9c
DJ
12171 (
12172 cat <<\_ASBOX
ab509236
L
12173## ------------------------------------------ ##
12174## Report this to the AC_PACKAGE_NAME lists. ##
12175## ------------------------------------------ ##
13b2be9c
DJ
12176_ASBOX
12177 ) |
12178 sed "s/^/$as_me: WARNING: /" >&2
12179 ;;
12180esac
12181echo "$as_me:$LINENO: checking for $ac_header" >&5
12182echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12183if eval "test \"\${$as_ac_Header+set}\" = set"; then
12184 echo $ECHO_N "(cached) $ECHO_C" >&6
12185else
ab509236 12186 eval "$as_ac_Header=\$ac_header_preproc"
252b5132 12187fi
13b2be9c
DJ
12188echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12189echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12190
252b5132 12191fi
13b2be9c
DJ
12192if test `eval echo '${'$as_ac_Header'}'` = yes; then
12193 cat >>confdefs.h <<_ACEOF
12194#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12195_ACEOF
12196
252b5132 12197fi
13b2be9c 12198
252b5132
RH
12199done
12200
d6d788bd 12201
252b5132
RH
12202# Put this here so that autoconf's "cross-compiling" message doesn't confuse
12203# people who are not cross-compiling but are compiling cross-assemblers.
13b2be9c
DJ
12204echo "$as_me:$LINENO: checking whether compiling a cross-assembler" >&5
12205echo $ECHO_N "checking whether compiling a cross-assembler... $ECHO_C" >&6
252b5132
RH
12206if test "${host}" = "${target}"; then
12207 cross_gas=no
12208else
12209 cross_gas=yes
13b2be9c
DJ
12210
12211cat >>confdefs.h <<\_ACEOF
252b5132 12212#define CROSS_COMPILE 1
13b2be9c 12213_ACEOF
252b5132
RH
12214
12215fi
13b2be9c
DJ
12216echo "$as_me:$LINENO: result: $cross_gas" >&5
12217echo "${ECHO_T}$cross_gas" >&6
252b5132
RH
12218
12219# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12220# for constant arguments. Useless!
13b2be9c
DJ
12221echo "$as_me:$LINENO: checking for working alloca.h" >&5
12222echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
12223if test "${ac_cv_working_alloca_h+set}" = set; then
12224 echo $ECHO_N "(cached) $ECHO_C" >&6
12225else
12226 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
12227/* confdefs.h. */
12228_ACEOF
12229cat confdefs.h >>conftest.$ac_ext
12230cat >>conftest.$ac_ext <<_ACEOF
12231/* end confdefs.h. */
252b5132 12232#include <alloca.h>
13b2be9c
DJ
12233int
12234main ()
12235{
12236char *p = (char *) alloca (2 * sizeof (int));
12237 ;
12238 return 0;
12239}
12240_ACEOF
12241rm -f conftest.$ac_objext conftest$ac_exeext
12242if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 12243 (eval $ac_link) 2>conftest.er1
13b2be9c 12244 ac_status=$?
ab509236
L
12245 grep -v '^ *+' conftest.er1 >conftest.err
12246 rm -f conftest.er1
12247 cat conftest.err >&5
13b2be9c
DJ
12248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12249 (exit $ac_status); } &&
1ad12f97
NC
12250 { ac_try='test -z "$ac_c_werror_flag"
12251 || test ! -s conftest.err'
ab509236
L
12252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12253 (eval $ac_try) 2>&5
12254 ac_status=$?
12255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256 (exit $ac_status); }; } &&
12257 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
12258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12259 (eval $ac_try) 2>&5
12260 ac_status=$?
12261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262 (exit $ac_status); }; }; then
12263 ac_cv_working_alloca_h=yes
12264else
12265 echo "$as_me: failed program was:" >&5
12266sed 's/^/| /' conftest.$ac_ext >&5
12267
12268ac_cv_working_alloca_h=no
12269fi
ab509236
L
12270rm -f conftest.err conftest.$ac_objext \
12271 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
12272fi
12273echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12274echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
12275if test $ac_cv_working_alloca_h = yes; then
12276
12277cat >>confdefs.h <<\_ACEOF
252b5132 12278#define HAVE_ALLOCA_H 1
13b2be9c 12279_ACEOF
252b5132
RH
12280
12281fi
12282
13b2be9c
DJ
12283echo "$as_me:$LINENO: checking for alloca" >&5
12284echo $ECHO_N "checking for alloca... $ECHO_C" >&6
12285if test "${ac_cv_func_alloca_works+set}" = set; then
12286 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12287else
13b2be9c 12288 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
12289/* confdefs.h. */
12290_ACEOF
12291cat confdefs.h >>conftest.$ac_ext
12292cat >>conftest.$ac_ext <<_ACEOF
12293/* end confdefs.h. */
252b5132
RH
12294#ifdef __GNUC__
12295# define alloca __builtin_alloca
12296#else
12297# ifdef _MSC_VER
12298# include <malloc.h>
12299# define alloca _alloca
12300# else
12301# if HAVE_ALLOCA_H
12302# include <alloca.h>
12303# else
12304# ifdef _AIX
12305 #pragma alloca
12306# else
12307# ifndef alloca /* predefined by HP cc +Olibcalls */
12308char *alloca ();
12309# endif
12310# endif
12311# endif
12312# endif
12313#endif
12314
13b2be9c
DJ
12315int
12316main ()
12317{
12318char *p = (char *) alloca (1);
12319 ;
12320 return 0;
12321}
12322_ACEOF
12323rm -f conftest.$ac_objext conftest$ac_exeext
12324if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 12325 (eval $ac_link) 2>conftest.er1
13b2be9c 12326 ac_status=$?
ab509236
L
12327 grep -v '^ *+' conftest.er1 >conftest.err
12328 rm -f conftest.er1
12329 cat conftest.err >&5
13b2be9c
DJ
12330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331 (exit $ac_status); } &&
1ad12f97
NC
12332 { ac_try='test -z "$ac_c_werror_flag"
12333 || test ! -s conftest.err'
ab509236
L
12334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12335 (eval $ac_try) 2>&5
12336 ac_status=$?
12337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12338 (exit $ac_status); }; } &&
12339 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
12340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12341 (eval $ac_try) 2>&5
12342 ac_status=$?
12343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344 (exit $ac_status); }; }; then
252b5132
RH
12345 ac_cv_func_alloca_works=yes
12346else
13b2be9c
DJ
12347 echo "$as_me: failed program was:" >&5
12348sed 's/^/| /' conftest.$ac_ext >&5
12349
12350ac_cv_func_alloca_works=no
252b5132 12351fi
ab509236
L
12352rm -f conftest.err conftest.$ac_objext \
12353 conftest$ac_exeext conftest.$ac_ext
252b5132 12354fi
13b2be9c
DJ
12355echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12356echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
252b5132 12357
252b5132 12358if test $ac_cv_func_alloca_works = yes; then
9b2b7d69 12359
13b2be9c
DJ
12360cat >>confdefs.h <<\_ACEOF
12361#define HAVE_ALLOCA 1
12362_ACEOF
9b2b7d69 12363
13b2be9c 12364else
c8615825 12365 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13b2be9c
DJ
12366# that cause trouble. Some versions do not even contain alloca or
12367# contain a buggy version. If you still want to use their alloca,
12368# use ar to extract alloca.o from them instead of compiling alloca.c.
12369
12370ALLOCA=alloca.$ac_objext
12371
12372cat >>confdefs.h <<\_ACEOF
252b5132 12373#define C_ALLOCA 1
13b2be9c 12374_ACEOF
252b5132 12375
d6d788bd 12376
13b2be9c
DJ
12377echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12378echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
12379if test "${ac_cv_os_cray+set}" = set; then
12380 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12381else
13b2be9c 12382 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
12383/* confdefs.h. */
12384_ACEOF
12385cat confdefs.h >>conftest.$ac_ext
12386cat >>conftest.$ac_ext <<_ACEOF
12387/* end confdefs.h. */
252b5132
RH
12388#if defined(CRAY) && ! defined(CRAY2)
12389webecray
12390#else
12391wenotbecray
12392#endif
12393
13b2be9c 12394_ACEOF
252b5132 12395if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13b2be9c 12396 $EGREP "webecray" >/dev/null 2>&1; then
252b5132
RH
12397 ac_cv_os_cray=yes
12398else
252b5132
RH
12399 ac_cv_os_cray=no
12400fi
12401rm -f conftest*
12402
12403fi
13b2be9c
DJ
12404echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12405echo "${ECHO_T}$ac_cv_os_cray" >&6
252b5132 12406if test $ac_cv_os_cray = yes; then
13b2be9c
DJ
12407 for ac_func in _getb67 GETB67 getb67; do
12408 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12409echo "$as_me:$LINENO: checking for $ac_func" >&5
12410echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12411if eval "test \"\${$as_ac_var+set}\" = set"; then
12412 echo $ECHO_N "(cached) $ECHO_C" >&6
12413else
12414 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
12415/* confdefs.h. */
12416_ACEOF
12417cat confdefs.h >>conftest.$ac_ext
12418cat >>conftest.$ac_ext <<_ACEOF
12419/* end confdefs.h. */
ab509236
L
12420/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12421 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12422#define $ac_func innocuous_$ac_func
12423
252b5132 12424/* System header to define __stub macros and hopefully few prototypes,
13b2be9c
DJ
12425 which can conflict with char $ac_func (); below.
12426 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12427 <limits.h> exists even on freestanding compilers. */
ab509236 12428
13b2be9c
DJ
12429#ifdef __STDC__
12430# include <limits.h>
12431#else
12432# include <assert.h>
12433#endif
ab509236
L
12434
12435#undef $ac_func
12436
252b5132 12437/* Override any gcc2 internal prototype to avoid an error. */
13b2be9c
DJ
12438#ifdef __cplusplus
12439extern "C"
12440{
12441#endif
252b5132 12442/* We use char because int might match the return type of a gcc2
13b2be9c
DJ
12443 builtin and then its argument prototype would still apply. */
12444char $ac_func ();
252b5132
RH
12445/* The GNU C library defines this for functions which it implements
12446 to always fail with ENOSYS. Some functions are actually named
12447 something starting with __ and the normal name is an alias. */
12448#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12449choke me
12450#else
13b2be9c
DJ
12451char (*f) () = $ac_func;
12452#endif
12453#ifdef __cplusplus
12454}
252b5132
RH
12455#endif
12456
13b2be9c
DJ
12457int
12458main ()
12459{
12460return f != $ac_func;
12461 ;
12462 return 0;
12463}
12464_ACEOF
12465rm -f conftest.$ac_objext conftest$ac_exeext
12466if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 12467 (eval $ac_link) 2>conftest.er1
13b2be9c 12468 ac_status=$?
ab509236
L
12469 grep -v '^ *+' conftest.er1 >conftest.err
12470 rm -f conftest.er1
12471 cat conftest.err >&5
13b2be9c
DJ
12472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12473 (exit $ac_status); } &&
1ad12f97
NC
12474 { ac_try='test -z "$ac_c_werror_flag"
12475 || test ! -s conftest.err'
ab509236
L
12476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12477 (eval $ac_try) 2>&5
12478 ac_status=$?
12479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12480 (exit $ac_status); }; } &&
12481 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
12482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12483 (eval $ac_try) 2>&5
12484 ac_status=$?
12485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12486 (exit $ac_status); }; }; then
12487 eval "$as_ac_var=yes"
12488else
12489 echo "$as_me: failed program was:" >&5
12490sed 's/^/| /' conftest.$ac_ext >&5
12491
12492eval "$as_ac_var=no"
12493fi
ab509236
L
12494rm -f conftest.err conftest.$ac_objext \
12495 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
12496fi
12497echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12498echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12499if test `eval echo '${'$as_ac_var'}'` = yes; then
12500
12501cat >>confdefs.h <<_ACEOF
252b5132 12502#define CRAY_STACKSEG_END $ac_func
13b2be9c 12503_ACEOF
252b5132 12504
13b2be9c 12505 break
252b5132
RH
12506fi
12507
13b2be9c 12508 done
252b5132
RH
12509fi
12510
13b2be9c
DJ
12511echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
12512echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
12513if test "${ac_cv_c_stack_direction+set}" = set; then
12514 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
12515else
12516 if test "$cross_compiling" = yes; then
12517 ac_cv_c_stack_direction=0
12518else
13b2be9c 12519 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
12520/* confdefs.h. */
12521_ACEOF
12522cat confdefs.h >>conftest.$ac_ext
12523cat >>conftest.$ac_ext <<_ACEOF
12524/* end confdefs.h. */
12525int
252b5132
RH
12526find_stack_direction ()
12527{
12528 static char *addr = 0;
12529 auto char dummy;
12530 if (addr == 0)
12531 {
12532 addr = &dummy;
12533 return find_stack_direction ();
12534 }
12535 else
12536 return (&dummy > addr) ? 1 : -1;
12537}
13b2be9c
DJ
12538
12539int
252b5132
RH
12540main ()
12541{
13b2be9c 12542 exit (find_stack_direction () < 0);
252b5132 12543}
13b2be9c
DJ
12544_ACEOF
12545rm -f conftest$ac_exeext
12546if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12547 (eval $ac_link) 2>&5
12548 ac_status=$?
12549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12552 (eval $ac_try) 2>&5
12553 ac_status=$?
12554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555 (exit $ac_status); }; }; then
252b5132
RH
12556 ac_cv_c_stack_direction=1
12557else
13b2be9c
DJ
12558 echo "$as_me: program exited with status $ac_status" >&5
12559echo "$as_me: failed program was:" >&5
12560sed 's/^/| /' conftest.$ac_ext >&5
12561
12562( exit $ac_status )
12563ac_cv_c_stack_direction=-1
252b5132 12564fi
ab509236 12565rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 12566fi
252b5132 12567fi
13b2be9c
DJ
12568echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
12569echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
252b5132 12570
13b2be9c 12571cat >>confdefs.h <<_ACEOF
252b5132 12572#define STACK_DIRECTION $ac_cv_c_stack_direction
13b2be9c
DJ
12573_ACEOF
12574
252b5132
RH
12575
12576fi
12577
13b2be9c
DJ
12578echo "$as_me:$LINENO: checking for inline" >&5
12579echo $ECHO_N "checking for inline... $ECHO_C" >&6
12580if test "${ac_cv_c_inline+set}" = set; then
12581 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
12582else
12583 ac_cv_c_inline=no
12584for ac_kw in inline __inline__ __inline; do
13b2be9c 12585 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
12586/* confdefs.h. */
12587_ACEOF
12588cat confdefs.h >>conftest.$ac_ext
12589cat >>conftest.$ac_ext <<_ACEOF
12590/* end confdefs.h. */
12591#ifndef __cplusplus
12592typedef int foo_t;
12593static $ac_kw foo_t static_foo () {return 0; }
12594$ac_kw foo_t foo () {return 0; }
12595#endif
252b5132 12596
13b2be9c
DJ
12597_ACEOF
12598rm -f conftest.$ac_objext
12599if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 12600 (eval $ac_compile) 2>conftest.er1
13b2be9c 12601 ac_status=$?
ab509236
L
12602 grep -v '^ *+' conftest.er1 >conftest.err
12603 rm -f conftest.er1
12604 cat conftest.err >&5
13b2be9c
DJ
12605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12606 (exit $ac_status); } &&
1ad12f97
NC
12607 { ac_try='test -z "$ac_c_werror_flag"
12608 || test ! -s conftest.err'
ab509236
L
12609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12610 (eval $ac_try) 2>&5
12611 ac_status=$?
12612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613 (exit $ac_status); }; } &&
12614 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
12615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12616 (eval $ac_try) 2>&5
12617 ac_status=$?
12618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619 (exit $ac_status); }; }; then
252b5132
RH
12620 ac_cv_c_inline=$ac_kw; break
12621else
13b2be9c
DJ
12622 echo "$as_me: failed program was:" >&5
12623sed 's/^/| /' conftest.$ac_ext >&5
12624
252b5132 12625fi
ab509236 12626rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
12627done
12628
12629fi
13b2be9c
DJ
12630echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
12631echo "${ECHO_T}$ac_cv_c_inline" >&6
ab509236
L
12632
12633
13b2be9c 12634case $ac_cv_c_inline in
252b5132 12635 inline | yes) ;;
ab509236
L
12636 *)
12637 case $ac_cv_c_inline in
12638 no) ac_val=;;
12639 *) ac_val=$ac_cv_c_inline;;
12640 esac
12641 cat >>confdefs.h <<_ACEOF
12642#ifndef __cplusplus
12643#define inline $ac_val
12644#endif
13b2be9c 12645_ACEOF
ab509236 12646 ;;
252b5132
RH
12647esac
12648
6840198f 12649
d6d788bd 12650# VMS doesn't have unlink.
13b2be9c
DJ
12651
12652
252b5132
RH
12653for ac_func in unlink remove
12654do
13b2be9c
DJ
12655as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12656echo "$as_me:$LINENO: checking for $ac_func" >&5
12657echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12658if eval "test \"\${$as_ac_var+set}\" = set"; then
12659 echo $ECHO_N "(cached) $ECHO_C" >&6
12660else
12661 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
12662/* confdefs.h. */
12663_ACEOF
12664cat confdefs.h >>conftest.$ac_ext
12665cat >>conftest.$ac_ext <<_ACEOF
12666/* end confdefs.h. */
ab509236
L
12667/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12668 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12669#define $ac_func innocuous_$ac_func
12670
252b5132 12671/* System header to define __stub macros and hopefully few prototypes,
13b2be9c
DJ
12672 which can conflict with char $ac_func (); below.
12673 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12674 <limits.h> exists even on freestanding compilers. */
ab509236 12675
13b2be9c
DJ
12676#ifdef __STDC__
12677# include <limits.h>
12678#else
12679# include <assert.h>
12680#endif
ab509236
L
12681
12682#undef $ac_func
12683
252b5132 12684/* Override any gcc2 internal prototype to avoid an error. */
13b2be9c
DJ
12685#ifdef __cplusplus
12686extern "C"
12687{
12688#endif
252b5132 12689/* We use char because int might match the return type of a gcc2
13b2be9c
DJ
12690 builtin and then its argument prototype would still apply. */
12691char $ac_func ();
252b5132
RH
12692/* The GNU C library defines this for functions which it implements
12693 to always fail with ENOSYS. Some functions are actually named
12694 something starting with __ and the normal name is an alias. */
12695#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12696choke me
12697#else
13b2be9c
DJ
12698char (*f) () = $ac_func;
12699#endif
12700#ifdef __cplusplus
12701}
252b5132
RH
12702#endif
12703
13b2be9c
DJ
12704int
12705main ()
12706{
12707return f != $ac_func;
12708 ;
12709 return 0;
12710}
12711_ACEOF
12712rm -f conftest.$ac_objext conftest$ac_exeext
12713if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 12714 (eval $ac_link) 2>conftest.er1
13b2be9c 12715 ac_status=$?
ab509236
L
12716 grep -v '^ *+' conftest.er1 >conftest.err
12717 rm -f conftest.er1
12718 cat conftest.err >&5
13b2be9c
DJ
12719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720 (exit $ac_status); } &&
1ad12f97
NC
12721 { ac_try='test -z "$ac_c_werror_flag"
12722 || test ! -s conftest.err'
ab509236
L
12723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12724 (eval $ac_try) 2>&5
12725 ac_status=$?
12726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12727 (exit $ac_status); }; } &&
12728 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
12729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12730 (eval $ac_try) 2>&5
12731 ac_status=$?
12732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12733 (exit $ac_status); }; }; then
12734 eval "$as_ac_var=yes"
12735else
12736 echo "$as_me: failed program was:" >&5
12737sed 's/^/| /' conftest.$ac_ext >&5
12738
12739eval "$as_ac_var=no"
12740fi
ab509236
L
12741rm -f conftest.err conftest.$ac_objext \
12742 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
12743fi
12744echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12745echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12746if test `eval echo '${'$as_ac_var'}'` = yes; then
12747 cat >>confdefs.h <<_ACEOF
12748#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12749_ACEOF
252b5132 12750 break
252b5132
RH
12751fi
12752done
12753
6840198f 12754
d6d788bd 12755# Some systems don't have sbrk().
13b2be9c 12756
252b5132
RH
12757for ac_func in sbrk
12758do
13b2be9c
DJ
12759as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12760echo "$as_me:$LINENO: checking for $ac_func" >&5
12761echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12762if eval "test \"\${$as_ac_var+set}\" = set"; then
12763 echo $ECHO_N "(cached) $ECHO_C" >&6
12764else
12765 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
12766/* confdefs.h. */
12767_ACEOF
12768cat confdefs.h >>conftest.$ac_ext
12769cat >>conftest.$ac_ext <<_ACEOF
12770/* end confdefs.h. */
ab509236
L
12771/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12773#define $ac_func innocuous_$ac_func
12774
252b5132 12775/* System header to define __stub macros and hopefully few prototypes,
13b2be9c
DJ
12776 which can conflict with char $ac_func (); below.
12777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12778 <limits.h> exists even on freestanding compilers. */
ab509236 12779
13b2be9c
DJ
12780#ifdef __STDC__
12781# include <limits.h>
12782#else
12783# include <assert.h>
12784#endif
ab509236
L
12785
12786#undef $ac_func
12787
252b5132 12788/* Override any gcc2 internal prototype to avoid an error. */
13b2be9c
DJ
12789#ifdef __cplusplus
12790extern "C"
12791{
12792#endif
252b5132 12793/* We use char because int might match the return type of a gcc2
13b2be9c
DJ
12794 builtin and then its argument prototype would still apply. */
12795char $ac_func ();
252b5132
RH
12796/* The GNU C library defines this for functions which it implements
12797 to always fail with ENOSYS. Some functions are actually named
12798 something starting with __ and the normal name is an alias. */
12799#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12800choke me
12801#else
13b2be9c
DJ
12802char (*f) () = $ac_func;
12803#endif
12804#ifdef __cplusplus
12805}
252b5132
RH
12806#endif
12807
13b2be9c
DJ
12808int
12809main ()
12810{
12811return f != $ac_func;
12812 ;
12813 return 0;
12814}
12815_ACEOF
12816rm -f conftest.$ac_objext conftest$ac_exeext
12817if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 12818 (eval $ac_link) 2>conftest.er1
13b2be9c 12819 ac_status=$?
ab509236
L
12820 grep -v '^ *+' conftest.er1 >conftest.err
12821 rm -f conftest.er1
12822 cat conftest.err >&5
13b2be9c
DJ
12823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12824 (exit $ac_status); } &&
1ad12f97
NC
12825 { ac_try='test -z "$ac_c_werror_flag"
12826 || test ! -s conftest.err'
ab509236
L
12827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12828 (eval $ac_try) 2>&5
12829 ac_status=$?
12830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12831 (exit $ac_status); }; } &&
12832 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
12833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12834 (eval $ac_try) 2>&5
12835 ac_status=$?
12836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12837 (exit $ac_status); }; }; then
12838 eval "$as_ac_var=yes"
12839else
12840 echo "$as_me: failed program was:" >&5
12841sed 's/^/| /' conftest.$ac_ext >&5
12842
12843eval "$as_ac_var=no"
12844fi
ab509236
L
12845rm -f conftest.err conftest.$ac_objext \
12846 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
12847fi
12848echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12849echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12850if test `eval echo '${'$as_ac_var'}'` = yes; then
12851 cat >>confdefs.h <<_ACEOF
12852#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12853_ACEOF
252b5132 12854
252b5132
RH
12855fi
12856done
12857
d6d788bd 12858
39bec121
TW
12859# do we need the math library?
12860case "${need_libm}" in
13b2be9c 12861yes)
39bec121 12862 LIBM=
f9c19112 12863case $host in
d70c5fc7 12864*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
d7040cdb 12865 # These system don't have libm, or don't need it
39bec121
TW
12866 ;;
12867*-ncr-sysv4.3*)
13b2be9c
DJ
12868 echo "$as_me:$LINENO: checking for _mwvalidcheckl in -lmw" >&5
12869echo $ECHO_N "checking for _mwvalidcheckl in -lmw... $ECHO_C" >&6
12870if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then
12871 echo $ECHO_N "(cached) $ECHO_C" >&6
39bec121 12872else
13b2be9c 12873 ac_check_lib_save_LIBS=$LIBS
39bec121 12874LIBS="-lmw $LIBS"
13b2be9c 12875cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
12876/* confdefs.h. */
12877_ACEOF
12878cat confdefs.h >>conftest.$ac_ext
12879cat >>conftest.$ac_ext <<_ACEOF
12880/* end confdefs.h. */
12881
39bec121 12882/* Override any gcc2 internal prototype to avoid an error. */
13b2be9c
DJ
12883#ifdef __cplusplus
12884extern "C"
12885#endif
39bec121 12886/* We use char because int might match the return type of a gcc2
13b2be9c
DJ
12887 builtin and then its argument prototype would still apply. */
12888char _mwvalidcheckl ();
12889int
12890main ()
12891{
12892_mwvalidcheckl ();
12893 ;
12894 return 0;
12895}
12896_ACEOF
12897rm -f conftest.$ac_objext conftest$ac_exeext
12898if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 12899 (eval $ac_link) 2>conftest.er1
13b2be9c 12900 ac_status=$?
ab509236
L
12901 grep -v '^ *+' conftest.er1 >conftest.err
12902 rm -f conftest.er1
12903 cat conftest.err >&5
13b2be9c
DJ
12904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905 (exit $ac_status); } &&
1ad12f97
NC
12906 { ac_try='test -z "$ac_c_werror_flag"
12907 || test ! -s conftest.err'
ab509236
L
12908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12909 (eval $ac_try) 2>&5
12910 ac_status=$?
12911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912 (exit $ac_status); }; } &&
12913 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
12914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12915 (eval $ac_try) 2>&5
12916 ac_status=$?
12917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918 (exit $ac_status); }; }; then
12919 ac_cv_lib_mw__mwvalidcheckl=yes
12920else
12921 echo "$as_me: failed program was:" >&5
12922sed 's/^/| /' conftest.$ac_ext >&5
12923
12924ac_cv_lib_mw__mwvalidcheckl=no
12925fi
ab509236
L
12926rm -f conftest.err conftest.$ac_objext \
12927 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
12928LIBS=$ac_check_lib_save_LIBS
12929fi
12930echo "$as_me:$LINENO: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
12931echo "${ECHO_T}$ac_cv_lib_mw__mwvalidcheckl" >&6
12932if test $ac_cv_lib_mw__mwvalidcheckl = yes; then
39bec121 12933 LIBM="-lmw"
39bec121
TW
12934fi
12935
d7040cdb
SE
12936 echo "$as_me:$LINENO: checking for cos in -lm" >&5
12937echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6
12938if test "${ac_cv_lib_m_cos+set}" = set; then
13b2be9c 12939 echo $ECHO_N "(cached) $ECHO_C" >&6
39bec121 12940else
13b2be9c 12941 ac_check_lib_save_LIBS=$LIBS
39bec121 12942LIBS="-lm $LIBS"
13b2be9c 12943cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
12944/* confdefs.h. */
12945_ACEOF
12946cat confdefs.h >>conftest.$ac_ext
12947cat >>conftest.$ac_ext <<_ACEOF
12948/* end confdefs.h. */
39bec121 12949
d7040cdb
SE
12950/* Override any gcc2 internal prototype to avoid an error. */
12951#ifdef __cplusplus
12952extern "C"
12953#endif
12954/* We use char because int might match the return type of a gcc2
12955 builtin and then its argument prototype would still apply. */
12956char cos ();
13b2be9c
DJ
12957int
12958main ()
12959{
d7040cdb 12960cos ();
13b2be9c
DJ
12961 ;
12962 return 0;
12963}
12964_ACEOF
12965rm -f conftest.$ac_objext conftest$ac_exeext
12966if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 12967 (eval $ac_link) 2>conftest.er1
13b2be9c 12968 ac_status=$?
ab509236
L
12969 grep -v '^ *+' conftest.er1 >conftest.err
12970 rm -f conftest.er1
12971 cat conftest.err >&5
13b2be9c
DJ
12972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12973 (exit $ac_status); } &&
1ad12f97
NC
12974 { ac_try='test -z "$ac_c_werror_flag"
12975 || test ! -s conftest.err'
ab509236
L
12976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12977 (eval $ac_try) 2>&5
12978 ac_status=$?
12979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12980 (exit $ac_status); }; } &&
12981 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
12982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12983 (eval $ac_try) 2>&5
12984 ac_status=$?
12985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12986 (exit $ac_status); }; }; then
d7040cdb 12987 ac_cv_lib_m_cos=yes
13b2be9c
DJ
12988else
12989 echo "$as_me: failed program was:" >&5
12990sed 's/^/| /' conftest.$ac_ext >&5
12991
d7040cdb 12992ac_cv_lib_m_cos=no
13b2be9c 12993fi
ab509236
L
12994rm -f conftest.err conftest.$ac_objext \
12995 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
12996LIBS=$ac_check_lib_save_LIBS
12997fi
d7040cdb
SE
12998echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
12999echo "${ECHO_T}$ac_cv_lib_m_cos" >&6
13000if test $ac_cv_lib_m_cos = yes; then
39bec121 13001 LIBM="$LIBM -lm"
39bec121
TW
13002fi
13003
13004 ;;
13005*)
d7040cdb
SE
13006 echo "$as_me:$LINENO: checking for cos in -lm" >&5
13007echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6
13008if test "${ac_cv_lib_m_cos+set}" = set; then
13b2be9c 13009 echo $ECHO_N "(cached) $ECHO_C" >&6
39bec121 13010else
13b2be9c 13011 ac_check_lib_save_LIBS=$LIBS
39bec121 13012LIBS="-lm $LIBS"
13b2be9c 13013cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
13014/* confdefs.h. */
13015_ACEOF
13016cat confdefs.h >>conftest.$ac_ext
13017cat >>conftest.$ac_ext <<_ACEOF
13018/* end confdefs.h. */
39bec121 13019
d7040cdb
SE
13020/* Override any gcc2 internal prototype to avoid an error. */
13021#ifdef __cplusplus
13022extern "C"
13023#endif
13024/* We use char because int might match the return type of a gcc2
13025 builtin and then its argument prototype would still apply. */
13026char cos ();
13b2be9c
DJ
13027int
13028main ()
13029{
d7040cdb 13030cos ();
13b2be9c
DJ
13031 ;
13032 return 0;
13033}
13034_ACEOF
13035rm -f conftest.$ac_objext conftest$ac_exeext
13036if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 13037 (eval $ac_link) 2>conftest.er1
13b2be9c 13038 ac_status=$?
ab509236
L
13039 grep -v '^ *+' conftest.er1 >conftest.err
13040 rm -f conftest.er1
13041 cat conftest.err >&5
13b2be9c
DJ
13042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13043 (exit $ac_status); } &&
1ad12f97
NC
13044 { ac_try='test -z "$ac_c_werror_flag"
13045 || test ! -s conftest.err'
ab509236
L
13046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13047 (eval $ac_try) 2>&5
13048 ac_status=$?
13049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13050 (exit $ac_status); }; } &&
13051 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
13052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13053 (eval $ac_try) 2>&5
13054 ac_status=$?
13055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13056 (exit $ac_status); }; }; then
d7040cdb 13057 ac_cv_lib_m_cos=yes
13b2be9c
DJ
13058else
13059 echo "$as_me: failed program was:" >&5
13060sed 's/^/| /' conftest.$ac_ext >&5
13061
d7040cdb 13062ac_cv_lib_m_cos=no
13b2be9c 13063fi
ab509236
L
13064rm -f conftest.err conftest.$ac_objext \
13065 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
13066LIBS=$ac_check_lib_save_LIBS
13067fi
d7040cdb
SE
13068echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
13069echo "${ECHO_T}$ac_cv_lib_m_cos" >&6
13070if test $ac_cv_lib_m_cos = yes; then
39bec121 13071 LIBM="-lm"
39bec121
TW
13072fi
13073
13074 ;;
13075esac
13076
13b2be9c 13077
d7040cdb 13078
39bec121
TW
13079 ;;
13080esac
13081
252b5132
RH
13082# Some non-ANSI preprocessors botch requoting inside strings. That's bad
13083# enough, but on some of those systems, the assert macro relies on requoting
13084# working properly!
13b2be9c
DJ
13085echo "$as_me:$LINENO: checking for working assert macro" >&5
13086echo $ECHO_N "checking for working assert macro... $ECHO_C" >&6
13087if test "${gas_cv_assert_ok+set}" = set; then
13088 echo $ECHO_N "(cached) $ECHO_C" >&6
13089else
13090 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
13091/* confdefs.h. */
13092_ACEOF
13093cat confdefs.h >>conftest.$ac_ext
13094cat >>conftest.$ac_ext <<_ACEOF
13095/* end confdefs.h. */
252b5132
RH
13096#include <assert.h>
13097#include <stdio.h>
13b2be9c
DJ
13098int
13099main ()
13100{
252b5132
RH
13101
13102/* check for requoting problems */
13103static int a, b, c, d;
13104static char *s;
13105assert (!strcmp(s, "foo bar baz quux"));
13106/* check for newline handling */
13107assert (a == b
13108 || c == d);
13109
13b2be9c
DJ
13110 ;
13111 return 0;
13112}
13113_ACEOF
13114rm -f conftest.$ac_objext conftest$ac_exeext
13115if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 13116 (eval $ac_link) 2>conftest.er1
13b2be9c 13117 ac_status=$?
ab509236
L
13118 grep -v '^ *+' conftest.er1 >conftest.err
13119 rm -f conftest.er1
13120 cat conftest.err >&5
13b2be9c
DJ
13121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13122 (exit $ac_status); } &&
1ad12f97
NC
13123 { ac_try='test -z "$ac_c_werror_flag"
13124 || test ! -s conftest.err'
ab509236
L
13125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13126 (eval $ac_try) 2>&5
13127 ac_status=$?
13128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129 (exit $ac_status); }; } &&
13130 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
13131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13132 (eval $ac_try) 2>&5
13133 ac_status=$?
13134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135 (exit $ac_status); }; }; then
252b5132
RH
13136 gas_cv_assert_ok=yes
13137else
13b2be9c
DJ
13138 echo "$as_me: failed program was:" >&5
13139sed 's/^/| /' conftest.$ac_ext >&5
13140
13141gas_cv_assert_ok=no
252b5132 13142fi
ab509236
L
13143rm -f conftest.err conftest.$ac_objext \
13144 conftest$ac_exeext conftest.$ac_ext
252b5132 13145fi
13b2be9c
DJ
13146echo "$as_me:$LINENO: result: $gas_cv_assert_ok" >&5
13147echo "${ECHO_T}$gas_cv_assert_ok" >&6
13148test $gas_cv_assert_ok = yes ||
13149cat >>confdefs.h <<\_ACEOF
252b5132 13150#define BROKEN_ASSERT 1
13b2be9c 13151_ACEOF
252b5132 13152
d6d788bd
L
13153
13154
252b5132
RH
13155# On some systems, the system header files may not declare malloc, realloc,
13156# and free. There are places where gas needs these functions to have been
13157# declared -- such as when taking their addresses.
13158gas_test_headers="
13159#ifdef HAVE_MEMORY_H
13160#include <memory.h>
13161#endif
13162#ifdef HAVE_STRING_H
13163#include <string.h>
13164#else
13165#ifdef HAVE_STRINGS_H
13166#include <strings.h>
13167#endif
13168#endif
13169#ifdef HAVE_STDLIB_H
13170#include <stdlib.h>
13171#endif
13172#ifdef HAVE_UNISTD_H
13173#include <unistd.h>
13174#endif
13175"
13176
e8a38df5
AL
13177# Does errno.h declare errno, or do we have to add a separate declaration
13178# for it?
13179
13180echo "$as_me:$LINENO: checking whether declaration is required for errno" >&5
13181echo $ECHO_N "checking whether declaration is required for errno... $ECHO_C" >&6
13182if test "${gas_cv_decl_needed_errno+set}" = set; then
13183 echo $ECHO_N "(cached) $ECHO_C" >&6
13184else
13185 cat >conftest.$ac_ext <<_ACEOF
13186/* confdefs.h. */
13187_ACEOF
13188cat confdefs.h >>conftest.$ac_ext
13189cat >>conftest.$ac_ext <<_ACEOF
13190/* end confdefs.h. */
13191
13192#ifdef HAVE_ERRNO_H
13193#include <errno.h>
13194#endif
13195
13196int
13197main ()
13198{
13199
13200typedef int f;
13201f x;
13202x = (f) errno;
13203
13204 ;
13205 return 0;
13206}
13207_ACEOF
13208rm -f conftest.$ac_objext conftest$ac_exeext
13209if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13210 (eval $ac_link) 2>conftest.er1
13211 ac_status=$?
13212 grep -v '^ *+' conftest.er1 >conftest.err
13213 rm -f conftest.er1
13214 cat conftest.err >&5
13215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216 (exit $ac_status); } &&
13217 { ac_try='test -z "$ac_c_werror_flag"
13218 || test ! -s conftest.err'
13219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13220 (eval $ac_try) 2>&5
13221 ac_status=$?
13222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13223 (exit $ac_status); }; } &&
13224 { ac_try='test -s conftest$ac_exeext'
13225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13226 (eval $ac_try) 2>&5
13227 ac_status=$?
13228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13229 (exit $ac_status); }; }; then
13230 gas_cv_decl_needed_errno=no
13231else
13232 echo "$as_me: failed program was:" >&5
13233sed 's/^/| /' conftest.$ac_ext >&5
13234
13235gas_cv_decl_needed_errno=yes
13236fi
13237rm -f conftest.err conftest.$ac_objext \
13238 conftest$ac_exeext conftest.$ac_ext
13239fi
13240echo "$as_me:$LINENO: result: $gas_cv_decl_needed_errno" >&5
13241echo "${ECHO_T}$gas_cv_decl_needed_errno" >&6
13242if test $gas_cv_decl_needed_errno = yes; then
13243
13244cat >>confdefs.h <<\_ACEOF
13245#define NEED_DECLARATION_ERRNO 1
13246_ACEOF
13247
13248fi
13249
13250
56f36663
NC
13251echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
13252echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
13253if test "${gas_cv_decl_getopt_unistd_h+set}" = set; then
13254 echo $ECHO_N "(cached) $ECHO_C" >&6
13255else
13256 cat >conftest.$ac_ext <<_ACEOF
13257/* confdefs.h. */
13258_ACEOF
13259cat confdefs.h >>conftest.$ac_ext
13260cat >>conftest.$ac_ext <<_ACEOF
13261/* end confdefs.h. */
13262#include <unistd.h>
13263int
13264main ()
13265{
13266extern int getopt (int, char *const*, const char *);
13267 ;
13268 return 0;
13269}
13270_ACEOF
13271rm -f conftest.$ac_objext
13272if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13273 (eval $ac_compile) 2>conftest.er1
13274 ac_status=$?
13275 grep -v '^ *+' conftest.er1 >conftest.err
13276 rm -f conftest.er1
13277 cat conftest.err >&5
13278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13279 (exit $ac_status); } &&
13280 { ac_try='test -z "$ac_c_werror_flag"
13281 || test ! -s conftest.err'
13282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13283 (eval $ac_try) 2>&5
13284 ac_status=$?
13285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13286 (exit $ac_status); }; } &&
13287 { ac_try='test -s conftest.$ac_objext'
13288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13289 (eval $ac_try) 2>&5
13290 ac_status=$?
13291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13292 (exit $ac_status); }; }; then
13293 gas_cv_decl_getopt_unistd_h=yes
13294else
13295 echo "$as_me: failed program was:" >&5
13296sed 's/^/| /' conftest.$ac_ext >&5
13297
13298gas_cv_decl_getopt_unistd_h=no
13299fi
13300rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13301fi
13302
13303echo "$as_me:$LINENO: result: $gas_cv_decl_getopt_unistd_h" >&5
13304echo "${ECHO_T}$gas_cv_decl_getopt_unistd_h" >&6
13305if test $gas_cv_decl_getopt_unistd_h = yes; then
13306
13307cat >>confdefs.h <<\_ACEOF
13308#define HAVE_DECL_GETOPT 1
13309_ACEOF
13310
13311fi
13312
e8a38df5
AL
13313
13314echo "$as_me:$LINENO: checking whether declaration is required for environ" >&5
13315echo $ECHO_N "checking whether declaration is required for environ... $ECHO_C" >&6
13316if test "${gas_cv_decl_needed_environ+set}" = set; then
13b2be9c
DJ
13317 echo $ECHO_N "(cached) $ECHO_C" >&6
13318else
13319 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
13320/* confdefs.h. */
13321_ACEOF
13322cat confdefs.h >>conftest.$ac_ext
13323cat >>conftest.$ac_ext <<_ACEOF
13324/* end confdefs.h. */
252b5132 13325$gas_test_headers
13b2be9c
DJ
13326int
13327main ()
13328{
252b5132 13329
e8a38df5 13330typedef char **f;
252b5132 13331f x;
e8a38df5 13332x = (f) environ;
252b5132 13333
13b2be9c
DJ
13334 ;
13335 return 0;
13336}
13337_ACEOF
13338rm -f conftest.$ac_objext conftest$ac_exeext
13339if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 13340 (eval $ac_link) 2>conftest.er1
13b2be9c 13341 ac_status=$?
ab509236
L
13342 grep -v '^ *+' conftest.er1 >conftest.err
13343 rm -f conftest.er1
13344 cat conftest.err >&5
13b2be9c
DJ
13345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13346 (exit $ac_status); } &&
1ad12f97
NC
13347 { ac_try='test -z "$ac_c_werror_flag"
13348 || test ! -s conftest.err'
ab509236
L
13349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13350 (eval $ac_try) 2>&5
13351 ac_status=$?
13352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13353 (exit $ac_status); }; } &&
13354 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
13355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13356 (eval $ac_try) 2>&5
13357 ac_status=$?
13358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13359 (exit $ac_status); }; }; then
e8a38df5 13360 gas_cv_decl_needed_environ=no
252b5132 13361else
13b2be9c
DJ
13362 echo "$as_me: failed program was:" >&5
13363sed 's/^/| /' conftest.$ac_ext >&5
13364
e8a38df5 13365gas_cv_decl_needed_environ=yes
252b5132 13366fi
ab509236
L
13367rm -f conftest.err conftest.$ac_objext \
13368 conftest$ac_exeext conftest.$ac_ext
252b5132 13369fi
e8a38df5
AL
13370echo "$as_me:$LINENO: result: $gas_cv_decl_needed_environ" >&5
13371echo "${ECHO_T}$gas_cv_decl_needed_environ" >&6
13372if test $gas_cv_decl_needed_environ = yes; then
13b2be9c
DJ
13373
13374cat >>confdefs.h <<\_ACEOF
e8a38df5 13375#define NEED_DECLARATION_ENVIRON 1
13b2be9c
DJ
13376_ACEOF
13377
13378fi
13379
13380
e8a38df5
AL
13381echo "$as_me:$LINENO: checking whether declaration is required for ffs" >&5
13382echo $ECHO_N "checking whether declaration is required for ffs... $ECHO_C" >&6
13383if test "${gas_cv_decl_needed_ffs+set}" = set; then
13b2be9c
DJ
13384 echo $ECHO_N "(cached) $ECHO_C" >&6
13385else
13386 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
13387/* confdefs.h. */
13388_ACEOF
13389cat confdefs.h >>conftest.$ac_ext
13390cat >>conftest.$ac_ext <<_ACEOF
13391/* end confdefs.h. */
13392$gas_test_headers
13393int
13394main ()
13395{
13396
e8a38df5 13397typedef int (*f)(int);
13b2be9c 13398f x;
e8a38df5 13399x = (f) ffs;
13b2be9c
DJ
13400
13401 ;
13402 return 0;
13403}
13404_ACEOF
13405rm -f conftest.$ac_objext conftest$ac_exeext
13406if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 13407 (eval $ac_link) 2>conftest.er1
13b2be9c 13408 ac_status=$?
ab509236
L
13409 grep -v '^ *+' conftest.er1 >conftest.err
13410 rm -f conftest.er1
13411 cat conftest.err >&5
13b2be9c
DJ
13412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13413 (exit $ac_status); } &&
1ad12f97
NC
13414 { ac_try='test -z "$ac_c_werror_flag"
13415 || test ! -s conftest.err'
ab509236
L
13416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13417 (eval $ac_try) 2>&5
13418 ac_status=$?
13419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13420 (exit $ac_status); }; } &&
13421 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
13422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13423 (eval $ac_try) 2>&5
13424 ac_status=$?
13425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426 (exit $ac_status); }; }; then
e8a38df5 13427 gas_cv_decl_needed_ffs=no
13b2be9c
DJ
13428else
13429 echo "$as_me: failed program was:" >&5
13430sed 's/^/| /' conftest.$ac_ext >&5
13431
e8a38df5 13432gas_cv_decl_needed_ffs=yes
13b2be9c 13433fi
ab509236
L
13434rm -f conftest.err conftest.$ac_objext \
13435 conftest$ac_exeext conftest.$ac_ext
13b2be9c 13436fi
e8a38df5
AL
13437echo "$as_me:$LINENO: result: $gas_cv_decl_needed_ffs" >&5
13438echo "${ECHO_T}$gas_cv_decl_needed_ffs" >&6
13439if test $gas_cv_decl_needed_ffs = yes; then
13b2be9c
DJ
13440
13441cat >>confdefs.h <<\_ACEOF
e8a38df5 13442#define NEED_DECLARATION_FFS 1
13b2be9c
DJ
13443_ACEOF
13444
13445fi
13446
13447
13448echo "$as_me:$LINENO: checking whether declaration is required for free" >&5
13449echo $ECHO_N "checking whether declaration is required for free... $ECHO_C" >&6
13450if test "${gas_cv_decl_needed_free+set}" = set; then
13451 echo $ECHO_N "(cached) $ECHO_C" >&6
13452else
13453 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
13454/* confdefs.h. */
13455_ACEOF
13456cat confdefs.h >>conftest.$ac_ext
13457cat >>conftest.$ac_ext <<_ACEOF
13458/* end confdefs.h. */
13459$gas_test_headers
13460int
13461main ()
13462{
13463
13464typedef void (*f)();
13465f x;
13466x = (f) free;
13467
13468 ;
13469 return 0;
13470}
13471_ACEOF
13472rm -f conftest.$ac_objext conftest$ac_exeext
13473if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 13474 (eval $ac_link) 2>conftest.er1
13b2be9c 13475 ac_status=$?
ab509236
L
13476 grep -v '^ *+' conftest.er1 >conftest.err
13477 rm -f conftest.er1
13478 cat conftest.err >&5
13b2be9c
DJ
13479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13480 (exit $ac_status); } &&
1ad12f97
NC
13481 { ac_try='test -z "$ac_c_werror_flag"
13482 || test ! -s conftest.err'
ab509236
L
13483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13484 (eval $ac_try) 2>&5
13485 ac_status=$?
13486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13487 (exit $ac_status); }; } &&
13488 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
13489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13490 (eval $ac_try) 2>&5
13491 ac_status=$?
13492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13493 (exit $ac_status); }; }; then
13494 gas_cv_decl_needed_free=no
13495else
13496 echo "$as_me: failed program was:" >&5
13497sed 's/^/| /' conftest.$ac_ext >&5
13498
13499gas_cv_decl_needed_free=yes
13500fi
ab509236
L
13501rm -f conftest.err conftest.$ac_objext \
13502 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
13503fi
13504echo "$as_me:$LINENO: result: $gas_cv_decl_needed_free" >&5
13505echo "${ECHO_T}$gas_cv_decl_needed_free" >&6
13506if test $gas_cv_decl_needed_free = yes; then
13507
13508cat >>confdefs.h <<\_ACEOF
13509#define NEED_DECLARATION_FREE 1
13510_ACEOF
13511
13512fi
13513
13514
e8a38df5
AL
13515echo "$as_me:$LINENO: checking whether declaration is required for malloc" >&5
13516echo $ECHO_N "checking whether declaration is required for malloc... $ECHO_C" >&6
13517if test "${gas_cv_decl_needed_malloc+set}" = set; then
13b2be9c
DJ
13518 echo $ECHO_N "(cached) $ECHO_C" >&6
13519else
13520 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
13521/* confdefs.h. */
13522_ACEOF
13523cat confdefs.h >>conftest.$ac_ext
13524cat >>conftest.$ac_ext <<_ACEOF
13525/* end confdefs.h. */
13526$gas_test_headers
13527int
13528main ()
13529{
13530
13531typedef char *(*f)();
13532f x;
e8a38df5 13533x = (f) malloc;
13b2be9c
DJ
13534
13535 ;
13536 return 0;
13537}
13538_ACEOF
13539rm -f conftest.$ac_objext conftest$ac_exeext
13540if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 13541 (eval $ac_link) 2>conftest.er1
13b2be9c 13542 ac_status=$?
ab509236
L
13543 grep -v '^ *+' conftest.er1 >conftest.err
13544 rm -f conftest.er1
13545 cat conftest.err >&5
13b2be9c
DJ
13546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547 (exit $ac_status); } &&
1ad12f97
NC
13548 { ac_try='test -z "$ac_c_werror_flag"
13549 || test ! -s conftest.err'
ab509236
L
13550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13551 (eval $ac_try) 2>&5
13552 ac_status=$?
13553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13554 (exit $ac_status); }; } &&
13555 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
13556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13557 (eval $ac_try) 2>&5
13558 ac_status=$?
13559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560 (exit $ac_status); }; }; then
e8a38df5 13561 gas_cv_decl_needed_malloc=no
13b2be9c
DJ
13562else
13563 echo "$as_me: failed program was:" >&5
13564sed 's/^/| /' conftest.$ac_ext >&5
13565
e8a38df5 13566gas_cv_decl_needed_malloc=yes
13b2be9c 13567fi
ab509236
L
13568rm -f conftest.err conftest.$ac_objext \
13569 conftest$ac_exeext conftest.$ac_ext
13b2be9c 13570fi
e8a38df5
AL
13571echo "$as_me:$LINENO: result: $gas_cv_decl_needed_malloc" >&5
13572echo "${ECHO_T}$gas_cv_decl_needed_malloc" >&6
13573if test $gas_cv_decl_needed_malloc = yes; then
13b2be9c
DJ
13574
13575cat >>confdefs.h <<\_ACEOF
e8a38df5 13576#define NEED_DECLARATION_MALLOC 1
13b2be9c
DJ
13577_ACEOF
13578
13579fi
13580
13581
e8a38df5
AL
13582echo "$as_me:$LINENO: checking whether declaration is required for sbrk" >&5
13583echo $ECHO_N "checking whether declaration is required for sbrk... $ECHO_C" >&6
13584if test "${gas_cv_decl_needed_sbrk+set}" = set; then
13b2be9c
DJ
13585 echo $ECHO_N "(cached) $ECHO_C" >&6
13586else
13587 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
13588/* confdefs.h. */
13589_ACEOF
13590cat confdefs.h >>conftest.$ac_ext
13591cat >>conftest.$ac_ext <<_ACEOF
13592/* end confdefs.h. */
13593$gas_test_headers
13594int
13595main ()
13596{
13597
e8a38df5 13598typedef char *(*f)();
13b2be9c 13599f x;
e8a38df5 13600x = (f) sbrk;
13b2be9c
DJ
13601
13602 ;
13603 return 0;
13604}
13605_ACEOF
13606rm -f conftest.$ac_objext conftest$ac_exeext
13607if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 13608 (eval $ac_link) 2>conftest.er1
13b2be9c 13609 ac_status=$?
ab509236
L
13610 grep -v '^ *+' conftest.er1 >conftest.err
13611 rm -f conftest.er1
13612 cat conftest.err >&5
13b2be9c
DJ
13613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13614 (exit $ac_status); } &&
1ad12f97
NC
13615 { ac_try='test -z "$ac_c_werror_flag"
13616 || test ! -s conftest.err'
ab509236
L
13617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13618 (eval $ac_try) 2>&5
13619 ac_status=$?
13620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13621 (exit $ac_status); }; } &&
13622 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
13623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13624 (eval $ac_try) 2>&5
13625 ac_status=$?
13626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627 (exit $ac_status); }; }; then
e8a38df5 13628 gas_cv_decl_needed_sbrk=no
13b2be9c
DJ
13629else
13630 echo "$as_me: failed program was:" >&5
13631sed 's/^/| /' conftest.$ac_ext >&5
13632
e8a38df5 13633gas_cv_decl_needed_sbrk=yes
13b2be9c 13634fi
ab509236
L
13635rm -f conftest.err conftest.$ac_objext \
13636 conftest$ac_exeext conftest.$ac_ext
13b2be9c 13637fi
e8a38df5
AL
13638echo "$as_me:$LINENO: result: $gas_cv_decl_needed_sbrk" >&5
13639echo "${ECHO_T}$gas_cv_decl_needed_sbrk" >&6
13640if test $gas_cv_decl_needed_sbrk = yes; then
13b2be9c
DJ
13641
13642cat >>confdefs.h <<\_ACEOF
e8a38df5 13643#define NEED_DECLARATION_SBRK 1
13b2be9c
DJ
13644_ACEOF
13645
13646fi
13647
13648
e8a38df5
AL
13649echo "$as_me:$LINENO: checking whether declaration is required for strstr" >&5
13650echo $ECHO_N "checking whether declaration is required for strstr... $ECHO_C" >&6
13651if test "${gas_cv_decl_needed_strstr+set}" = set; then
13b2be9c
DJ
13652 echo $ECHO_N "(cached) $ECHO_C" >&6
13653else
13654 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
13655/* confdefs.h. */
13656_ACEOF
13657cat confdefs.h >>conftest.$ac_ext
13658cat >>conftest.$ac_ext <<_ACEOF
13659/* end confdefs.h. */
e8a38df5 13660$gas_test_headers
13b2be9c
DJ
13661int
13662main ()
13663{
13664
e8a38df5 13665typedef char *(*f)();
13b2be9c 13666f x;
e8a38df5 13667x = (f) strstr;
13b2be9c
DJ
13668
13669 ;
13670 return 0;
13671}
13672_ACEOF
13673rm -f conftest.$ac_objext conftest$ac_exeext
13674if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 13675 (eval $ac_link) 2>conftest.er1
13b2be9c 13676 ac_status=$?
ab509236
L
13677 grep -v '^ *+' conftest.er1 >conftest.err
13678 rm -f conftest.er1
13679 cat conftest.err >&5
13b2be9c
DJ
13680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13681 (exit $ac_status); } &&
1ad12f97
NC
13682 { ac_try='test -z "$ac_c_werror_flag"
13683 || test ! -s conftest.err'
ab509236
L
13684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13685 (eval $ac_try) 2>&5
13686 ac_status=$?
13687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13688 (exit $ac_status); }; } &&
13689 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
13690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13691 (eval $ac_try) 2>&5
13692 ac_status=$?
13693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13694 (exit $ac_status); }; }; then
e8a38df5 13695 gas_cv_decl_needed_strstr=no
13b2be9c
DJ
13696else
13697 echo "$as_me: failed program was:" >&5
13698sed 's/^/| /' conftest.$ac_ext >&5
13699
e8a38df5 13700gas_cv_decl_needed_strstr=yes
13b2be9c 13701fi
ab509236
L
13702rm -f conftest.err conftest.$ac_objext \
13703 conftest$ac_exeext conftest.$ac_ext
13b2be9c 13704fi
e8a38df5
AL
13705echo "$as_me:$LINENO: result: $gas_cv_decl_needed_strstr" >&5
13706echo "${ECHO_T}$gas_cv_decl_needed_strstr" >&6
13707if test $gas_cv_decl_needed_strstr = yes; then
13b2be9c
DJ
13708
13709cat >>confdefs.h <<\_ACEOF
e8a38df5 13710#define NEED_DECLARATION_STRSTR 1
13b2be9c
DJ
13711_ACEOF
13712
13713fi
13714
13715
6d74f28b
EB
13716echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
13717echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
13718if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
13719 echo $ECHO_N "(cached) $ECHO_C" >&6
13720else
13721 cat >conftest.$ac_ext <<_ACEOF
13722/* confdefs.h. */
13723_ACEOF
13724cat confdefs.h >>conftest.$ac_ext
13725cat >>conftest.$ac_ext <<_ACEOF
13726/* end confdefs.h. */
13727$ac_includes_default
13728int
13729main ()
13730{
13731#ifndef vsnprintf
13732 char *p = (char *) vsnprintf;
13733#endif
13734
13735 ;
13736 return 0;
13737}
13738_ACEOF
13739rm -f conftest.$ac_objext
13740if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13741 (eval $ac_compile) 2>conftest.er1
13742 ac_status=$?
13743 grep -v '^ *+' conftest.er1 >conftest.err
13744 rm -f conftest.er1
13745 cat conftest.err >&5
13746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13747 (exit $ac_status); } &&
13748 { ac_try='test -z "$ac_c_werror_flag"
13749 || test ! -s conftest.err'
13750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13751 (eval $ac_try) 2>&5
13752 ac_status=$?
13753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13754 (exit $ac_status); }; } &&
13755 { ac_try='test -s conftest.$ac_objext'
13756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13757 (eval $ac_try) 2>&5
13758 ac_status=$?
13759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13760 (exit $ac_status); }; }; then
13761 ac_cv_have_decl_vsnprintf=yes
13762else
13763 echo "$as_me: failed program was:" >&5
13764sed 's/^/| /' conftest.$ac_ext >&5
13765
13766ac_cv_have_decl_vsnprintf=no
13767fi
13768rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13769fi
13770echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
13771echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
13772if test $ac_cv_have_decl_vsnprintf = yes; then
13773
13774cat >>confdefs.h <<_ACEOF
13775#define HAVE_DECL_VSNPRINTF 1
13776_ACEOF
13777
13778
13779else
13780 cat >>confdefs.h <<_ACEOF
13781#define HAVE_DECL_VSNPRINTF 0
13782_ACEOF
13783
13784
13785fi
13786
13787
13788
13b2be9c 13789
c973bc5c
NC
13790case "${host}" in
13791*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
13792
13793cat >>confdefs.h <<\_ACEOF
13794#define USE_BINARY_FOPEN 1
13795_ACEOF
13796 ;;
13797esac
13798
13799
13b2be9c 13800
108a6f8e
CD
13801
13802
13803
13804
13b2be9c
DJ
13805 ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
13806
13807 ac_config_commands="$ac_config_commands default"
13808
13809
13810cat >confcache <<\_ACEOF
13811# This file is a shell script that caches the results of configure
13812# tests run on this system so they can be shared between configure
13813# scripts and configure runs, see configure's option --config-cache.
13814# It is not useful on other systems. If it contains results you don't
13815# want to keep, you may remove or edit it.
13816#
13817# config.status only pays attention to the cache file if you give it
13818# the --recheck option to rerun configure.
13819#
13820# `ac_cv_env_foo' variables (set or unset) will be overridden when
13821# loading this file, other *unset* `ac_cv_foo' will be assigned the
13822# following values.
13823
13824_ACEOF
13825
13826# The following way of writing the cache mishandles newlines in values,
13827# but we know of no workaround that is simple, portable, and efficient.
13828# So, don't put newlines in cache variables' values.
13829# Ultrix sh set writes to stderr and can't be redirected directly,
13830# and sets the high bit in the cache file unless we assign to the vars.
13831{
13832 (set) 2>&1 |
13833 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13834 *ac_space=\ *)
13835 # `set' does not quote correctly, so add quotes (double-quote
13836 # substitution turns \\\\ into \\, and sed turns \\ into \).
13837 sed -n \
ab509236
L
13838 "s/'/'\\\\''/g;
13839 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13b2be9c
DJ
13840 ;;
13841 *)
13842 # `set' quotes correctly as required by POSIX, so do not add quotes.
13843 sed -n \
ab509236 13844 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13b2be9c
DJ
13845 ;;
13846 esac;
13847} |
13848 sed '
13849 t clear
13850 : clear
13851 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13852 t end
13853 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13854 : end' >>confcache
13855if diff $cache_file confcache >/dev/null 2>&1; then :; else
13856 if test -w $cache_file; then
13857 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
13858 cat confcache >$cache_file
13859 else
13860 echo "not updating unwritable cache $cache_file"
13861 fi
13862fi
13863rm -f confcache
13864
13865test "x$prefix" = xNONE && prefix=$ac_default_prefix
13866# Let make expand exec_prefix.
13867test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13868
13869# VPATH may cause trouble with some makes, so we remove $(srcdir),
13870# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13871# trailing colons and then remove the whole line if VPATH becomes empty
13872# (actually we leave an empty line to preserve line numbers).
13873if test "x$srcdir" = x.; then
ab509236 13874 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13b2be9c
DJ
13875s/:*\$(srcdir):*/:/;
13876s/:*\${srcdir}:*/:/;
13877s/:*@srcdir@:*/:/;
ab509236 13878s/^\([^=]*=[ ]*\):*/\1/;
13b2be9c 13879s/:*$//;
ab509236 13880s/^[^=]*=[ ]*$//;
13b2be9c
DJ
13881}'
13882fi
13883
13884DEFS=-DHAVE_CONFIG_H
13885
13886ac_libobjs=
13887ac_ltlibobjs=
13888for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13889 # 1. Remove the extension, and $U if already installed.
13890 ac_i=`echo "$ac_i" |
ab509236 13891 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
13b2be9c
DJ
13892 # 2. Add them.
13893 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
13894 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
13895done
13896LIBOBJS=$ac_libobjs
13897
13898LTLIBOBJS=$ac_ltlibobjs
13899
13900
13901if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13902 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13903Usually this means the macro was only invoked conditionally." >&5
13904echo "$as_me: error: conditional \"AMDEP\" was never defined.
13905Usually this means the macro was only invoked conditionally." >&2;}
13906 { (exit 1); exit 1; }; }
13907fi
13908if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13909 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13910Usually this means the macro was only invoked conditionally." >&5
13911echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13912Usually this means the macro was only invoked conditionally." >&2;}
13913 { (exit 1); exit 1; }; }
13914fi
13915if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13916 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
13917Usually this means the macro was only invoked conditionally." >&5
13918echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
13919Usually this means the macro was only invoked conditionally." >&2;}
13920 { (exit 1); exit 1; }; }
13921fi
d5fbea21
DJ
13922if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
13923 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
13924Usually this means the macro was only invoked conditionally." >&5
13925echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
13926Usually this means the macro was only invoked conditionally." >&2;}
13927 { (exit 1); exit 1; }; }
13928fi
13b2be9c
DJ
13929
13930: ${CONFIG_STATUS=./config.status}
13931ac_clean_files_save=$ac_clean_files
13932ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13933{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13934echo "$as_me: creating $CONFIG_STATUS" >&6;}
13935cat >$CONFIG_STATUS <<_ACEOF
13936#! $SHELL
13937# Generated by $as_me.
13938# Run this file to recreate the current configuration.
13939# Compiler output produced by configure, useful for debugging
13940# configure, is in config.log if it exists.
13941
13942debug=false
13943ac_cs_recheck=false
13944ac_cs_silent=false
13945SHELL=\${CONFIG_SHELL-$SHELL}
13946_ACEOF
13947
13948cat >>$CONFIG_STATUS <<\_ACEOF
13949## --------------------- ##
13950## M4sh Initialization. ##
13951## --------------------- ##
13952
13953# Be Bourne compatible
13954if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13955 emulate sh
13956 NULLCMD=:
13957 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13958 # is contrary to our usage. Disable this feature.
13959 alias -g '${1+"$@"}'='"$@"'
13960elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13961 set -o posix
13962fi
ab509236 13963DUALCASE=1; export DUALCASE # for MKS sh
13b2be9c
DJ
13964
13965# Support unset when possible.
ab509236 13966if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13b2be9c
DJ
13967 as_unset=unset
13968else
13969 as_unset=false
13970fi
13971
13972
13973# Work around bugs in pre-3.0 UWIN ksh.
13974$as_unset ENV MAIL MAILPATH
13975PS1='$ '
13976PS2='> '
13977PS4='+ '
13978
13979# NLS nuisances.
13980for as_var in \
13981 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13982 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13983 LC_TELEPHONE LC_TIME
13984do
ab509236 13985 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13b2be9c
DJ
13986 eval $as_var=C; export $as_var
13987 else
13988 $as_unset $as_var
13989 fi
13990done
13991
13992# Required to use basename.
13993if expr a : '\(a\)' >/dev/null 2>&1; then
13994 as_expr=expr
13995else
13996 as_expr=false
13997fi
13998
13999if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
14000 as_basename=basename
14001else
14002 as_basename=false
14003fi
14004
14005
14006# Name of the executable.
14007as_me=`$as_basename "$0" ||
14008$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14009 X"$0" : 'X\(//\)$' \| \
14010 X"$0" : 'X\(/\)$' \| \
14011 . : '\(.\)' 2>/dev/null ||
14012echo X/"$0" |
14013 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14014 /^X\/\(\/\/\)$/{ s//\1/; q; }
14015 /^X\/\(\/\).*/{ s//\1/; q; }
14016 s/.*/./; q'`
14017
14018
14019# PATH needs CR, and LINENO needs CR and PATH.
14020# Avoid depending upon Character Ranges.
14021as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14022as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14023as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14024as_cr_digits='0123456789'
14025as_cr_alnum=$as_cr_Letters$as_cr_digits
14026
14027# The user is always right.
14028if test "${PATH_SEPARATOR+set}" != set; then
14029 echo "#! /bin/sh" >conf$$.sh
14030 echo "exit 0" >>conf$$.sh
14031 chmod +x conf$$.sh
14032 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14033 PATH_SEPARATOR=';'
14034 else
14035 PATH_SEPARATOR=:
14036 fi
14037 rm -f conf$$.sh
14038fi
14039
14040
14041 as_lineno_1=$LINENO
14042 as_lineno_2=$LINENO
14043 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14044 test "x$as_lineno_1" != "x$as_lineno_2" &&
14045 test "x$as_lineno_3" = "x$as_lineno_2" || {
14046 # Find who we are. Look in the path if we contain no path at all
14047 # relative or not.
14048 case $0 in
14049 *[\\/]* ) as_myself=$0 ;;
14050 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14051for as_dir in $PATH
14052do
14053 IFS=$as_save_IFS
14054 test -z "$as_dir" && as_dir=.
14055 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14056done
252b5132 14057
13b2be9c
DJ
14058 ;;
14059 esac
14060 # We did not find ourselves, most probably we were run as `sh COMMAND'
14061 # in which case we are not to be found in the path.
14062 if test "x$as_myself" = x; then
14063 as_myself=$0
14064 fi
14065 if test ! -f "$as_myself"; then
14066 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
14067echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
14068 { (exit 1); exit 1; }; }
14069 fi
14070 case $CONFIG_SHELL in
14071 '')
14072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14073for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
14074do
14075 IFS=$as_save_IFS
14076 test -z "$as_dir" && as_dir=.
14077 for as_base in sh bash ksh sh5; do
14078 case $as_dir in
14079 /*)
14080 if ("$as_dir/$as_base" -c '
14081 as_lineno_1=$LINENO
14082 as_lineno_2=$LINENO
14083 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14084 test "x$as_lineno_1" != "x$as_lineno_2" &&
14085 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
14086 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
14087 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
14088 CONFIG_SHELL=$as_dir/$as_base
14089 export CONFIG_SHELL
14090 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
14091 fi;;
14092 esac
14093 done
14094done
14095;;
14096 esac
252b5132 14097
13b2be9c
DJ
14098 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14099 # uniformly replaced by the line number. The first 'sed' inserts a
14100 # line-number line before each line; the second 'sed' does the real
14101 # work. The second script uses 'N' to pair each line-number line
14102 # with the numbered line, and appends trailing '-' during
14103 # substitution so that $LINENO is not a special case at line end.
14104 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14105 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
14106 sed '=' <$as_myself |
14107 sed '
14108 N
14109 s,$,-,
14110 : loop
14111 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
14112 t loop
14113 s,-$,,
14114 s,^['$as_cr_digits']*\n,,
14115 ' >$as_me.lineno &&
14116 chmod +x $as_me.lineno ||
14117 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
14118echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
14119 { (exit 1); exit 1; }; }
14120
14121 # Don't try to exec as it changes $[0], causing all sort of problems
14122 # (the dirname of $[0] is not the place where we might find the
14123 # original and so on. Autoconf is especially sensible to this).
14124 . ./$as_me.lineno
14125 # Exit status is that of the last command.
14126 exit
14127}
d6d788bd 14128
252b5132 14129
13b2be9c
DJ
14130case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
14131 *c*,-n*) ECHO_N= ECHO_C='
14132' ECHO_T=' ' ;;
14133 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
14134 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
14135esac
252b5132 14136
13b2be9c
DJ
14137if expr a : '\(a\)' >/dev/null 2>&1; then
14138 as_expr=expr
252b5132 14139else
13b2be9c 14140 as_expr=false
252b5132 14141fi
252b5132 14142
13b2be9c
DJ
14143rm -f conf$$ conf$$.exe conf$$.file
14144echo >conf$$.file
14145if ln -s conf$$.file conf$$ 2>/dev/null; then
14146 # We could just check for DJGPP; but this test a) works b) is more generic
14147 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
14148 if test -f conf$$.exe; then
14149 # Don't use ln at all; we don't have any links
14150 as_ln_s='cp -p'
14151 else
14152 as_ln_s='ln -s'
14153 fi
14154elif ln conf$$.file conf$$ 2>/dev/null; then
14155 as_ln_s=ln
14156else
14157 as_ln_s='cp -p'
252b5132 14158fi
13b2be9c 14159rm -f conf$$ conf$$.exe conf$$.file
252b5132 14160
13b2be9c
DJ
14161if mkdir -p . 2>/dev/null; then
14162 as_mkdir_p=:
252b5132 14163else
ab509236 14164 test -d ./-p && rmdir ./-p
13b2be9c
DJ
14165 as_mkdir_p=false
14166fi
252b5132 14167
13b2be9c 14168as_executable_p="test -f"
252b5132 14169
13b2be9c 14170# Sed expression to map a string onto a valid CPP name.
ab509236 14171as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
252b5132 14172
13b2be9c 14173# Sed expression to map a string onto a valid variable name.
ab509236 14174as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
252b5132 14175
d6d788bd 14176
13b2be9c
DJ
14177# IFS
14178# We need space, tab and new line, in precisely that order.
14179as_nl='
14180'
14181IFS=" $as_nl"
252b5132 14182
13b2be9c
DJ
14183# CDPATH.
14184$as_unset CDPATH
252b5132 14185
13b2be9c 14186exec 6>&1
252b5132 14187
13b2be9c
DJ
14188# Open the log real soon, to keep \$[0] and so on meaningful, and to
14189# report actual input values of CONFIG_FILES etc. instead of their
14190# values after options handling. Logging --version etc. is OK.
14191exec 5>>config.log
14192{
14193 echo
14194 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14195## Running $as_me. ##
14196_ASBOX
14197} >&5
14198cat >&5 <<_CSEOF
252b5132 14199
13b2be9c 14200This file was extended by $as_me, which was
ab509236 14201generated by GNU Autoconf 2.59. Invocation command line was
d6d788bd 14202
13b2be9c
DJ
14203 CONFIG_FILES = $CONFIG_FILES
14204 CONFIG_HEADERS = $CONFIG_HEADERS
14205 CONFIG_LINKS = $CONFIG_LINKS
14206 CONFIG_COMMANDS = $CONFIG_COMMANDS
14207 $ $0 $@
252b5132 14208
13b2be9c
DJ
14209_CSEOF
14210echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
14211echo >&5
14212_ACEOF
252b5132 14213
13b2be9c
DJ
14214# Files that config.status was made for.
14215if test -n "$ac_config_files"; then
14216 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
252b5132 14217fi
13b2be9c
DJ
14218
14219if test -n "$ac_config_headers"; then
14220 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
252b5132 14221fi
252b5132 14222
13b2be9c
DJ
14223if test -n "$ac_config_links"; then
14224 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
252b5132
RH
14225fi
14226
13b2be9c
DJ
14227if test -n "$ac_config_commands"; then
14228 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14229fi
d6d788bd 14230
13b2be9c 14231cat >>$CONFIG_STATUS <<\_ACEOF
252b5132 14232
13b2be9c
DJ
14233ac_cs_usage="\
14234\`$as_me' instantiates files from templates according to the
14235current configuration.
252b5132 14236
13b2be9c 14237Usage: $0 [OPTIONS] [FILE]...
252b5132 14238
13b2be9c
DJ
14239 -h, --help print this help, then exit
14240 -V, --version print version number, then exit
14241 -q, --quiet do not print progress messages
14242 -d, --debug don't remove temporary files
14243 --recheck update $as_me by reconfiguring in the same conditions
14244 --file=FILE[:TEMPLATE]
ab509236 14245 instantiate the configuration file FILE
13b2be9c 14246 --header=FILE[:TEMPLATE]
ab509236 14247 instantiate the configuration header FILE
252b5132 14248
13b2be9c
DJ
14249Configuration files:
14250$config_files
252b5132 14251
13b2be9c
DJ
14252Configuration headers:
14253$config_headers
252b5132 14254
13b2be9c
DJ
14255Configuration commands:
14256$config_commands
252b5132 14257
13b2be9c
DJ
14258Report bugs to <bug-autoconf@gnu.org>."
14259_ACEOF
d6d788bd 14260
13b2be9c
DJ
14261cat >>$CONFIG_STATUS <<_ACEOF
14262ac_cs_version="\\
14263config.status
ab509236 14264configured by $0, generated by GNU Autoconf 2.59,
13b2be9c 14265 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
d6d788bd 14266
ab509236 14267Copyright (C) 2003 Free Software Foundation, Inc.
13b2be9c
DJ
14268This config.status script is free software; the Free Software Foundation
14269gives unlimited permission to copy, distribute and modify it."
14270srcdir=$srcdir
14271INSTALL="$INSTALL"
14272_ACEOF
d6d788bd 14273
13b2be9c
DJ
14274cat >>$CONFIG_STATUS <<\_ACEOF
14275# If no file are specified by the user, then we need to provide default
14276# value. By we need to know if files were specified by the user.
14277ac_need_defaults=:
14278while test $# != 0
14279do
14280 case $1 in
14281 --*=*)
14282 ac_option=`expr "x$1" : 'x\([^=]*\)='`
14283 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
14284 ac_shift=:
c8615825 14285 ;;
13b2be9c
DJ
14286 -*)
14287 ac_option=$1
14288 ac_optarg=$2
14289 ac_shift=shift
c8615825 14290 ;;
13b2be9c
DJ
14291 *) # This is not an option, so the user has probably given explicit
14292 # arguments.
14293 ac_option=$1
14294 ac_need_defaults=false;;
14295 esac
252b5132 14296
13b2be9c
DJ
14297 case $ac_option in
14298 # Handling of the options.
14299_ACEOF
14300cat >>$CONFIG_STATUS <<\_ACEOF
14301 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14302 ac_cs_recheck=: ;;
14303 --version | --vers* | -V )
14304 echo "$ac_cs_version"; exit 0 ;;
14305 --he | --h)
14306 # Conflict between --help and --header
14307 { { echo "$as_me:$LINENO: error: ambiguous option: $1
14308Try \`$0 --help' for more information." >&5
14309echo "$as_me: error: ambiguous option: $1
14310Try \`$0 --help' for more information." >&2;}
14311 { (exit 1); exit 1; }; };;
14312 --help | --hel | -h )
14313 echo "$ac_cs_usage"; exit 0 ;;
14314 --debug | --d* | -d )
14315 debug=: ;;
14316 --file | --fil | --fi | --f )
14317 $ac_shift
14318 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14319 ac_need_defaults=false;;
14320 --header | --heade | --head | --hea )
14321 $ac_shift
14322 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14323 ac_need_defaults=false;;
14324 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14325 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14326 ac_cs_silent=: ;;
c8615825 14327
13b2be9c
DJ
14328 # This is an error.
14329 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
14330Try \`$0 --help' for more information." >&5
14331echo "$as_me: error: unrecognized option: $1
14332Try \`$0 --help' for more information." >&2;}
14333 { (exit 1); exit 1; }; } ;;
252b5132 14334
13b2be9c 14335 *) ac_config_targets="$ac_config_targets $1" ;;
252b5132 14336
13b2be9c
DJ
14337 esac
14338 shift
14339done
252b5132 14340
13b2be9c 14341ac_configure_extra_args=
d6d788bd 14342
13b2be9c
DJ
14343if $ac_cs_silent; then
14344 exec 6>/dev/null
14345 ac_configure_extra_args="$ac_configure_extra_args --silent"
14346fi
9b2b7d69 14347
13b2be9c
DJ
14348_ACEOF
14349cat >>$CONFIG_STATUS <<_ACEOF
14350if \$ac_cs_recheck; then
14351 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14352 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14353fi
14354
14355_ACEOF
14356
14357cat >>$CONFIG_STATUS <<_ACEOF
9b2b7d69 14358#
13b2be9c 14359# INIT-COMMANDS section.
9b2b7d69
MM
14360#
14361
13b2be9c 14362AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
14363
14364
14365# The HP-UX ksh and POSIX shell print the target directory to stdout
14366# if CDPATH is set.
14367(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14368
14369sed_quote_subst='$sed_quote_subst'
14370double_quote_subst='$double_quote_subst'
14371delay_variable_subst='$delay_variable_subst'
14372macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14373macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14374enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14375enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14376pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14377enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14378host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14379host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14380host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14381build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14382build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14383build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14384SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14385Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14386GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14387EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14388FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14389LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14390NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14391LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14392max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14393ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14394exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14395lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14396lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14397lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14398reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14399reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14400deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14401file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14402AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14403AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14404STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14405RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14406old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14407old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14408old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14409CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14410CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14411compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14412GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14413lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14414lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14415lt_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"`'
14416objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14417SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14418ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14419MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14420lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14421lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14422lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14423lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14424lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14425need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14426libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14427shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14428extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14429archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14430enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14431export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14432whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14433compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14434old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14435old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14436archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14437archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14438module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14439module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14440with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14441allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14442no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14443hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14444hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14445hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14446hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14447hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14448hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14449hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14450hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14451inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14452link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14453fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14454always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14455export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14456exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14457include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14458prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14459file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14460variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14461need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14462need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14463version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14464runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14465shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14466shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14467libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14468library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14469soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14470postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14471postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14472finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14473finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14474hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14475sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14476sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14477hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14478enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14479enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14480enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14481old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14482striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14483
14484LTCC='$LTCC'
14485LTCFLAGS='$LTCFLAGS'
14486compiler='$compiler_DEFAULT'
14487
14488# Quote evaled strings.
14489for var in SED \
14490GREP \
14491EGREP \
14492FGREP \
14493LD \
14494NM \
14495LN_S \
14496lt_SP2NL \
14497lt_NL2SP \
14498reload_flag \
14499deplibs_check_method \
14500file_magic_cmd \
14501AR \
14502AR_FLAGS \
14503STRIP \
14504RANLIB \
14505CC \
14506CFLAGS \
14507compiler \
14508lt_cv_sys_global_symbol_pipe \
14509lt_cv_sys_global_symbol_to_cdecl \
14510lt_cv_sys_global_symbol_to_c_name_address \
14511SHELL \
14512ECHO \
14513lt_prog_compiler_no_builtin_flag \
14514lt_prog_compiler_wl \
14515lt_prog_compiler_pic \
14516lt_prog_compiler_static \
14517lt_cv_prog_compiler_c_o \
14518need_locks \
14519shrext_cmds \
14520export_dynamic_flag_spec \
14521whole_archive_flag_spec \
14522compiler_needs_object \
14523with_gnu_ld \
14524allow_undefined_flag \
14525no_undefined_flag \
14526hardcode_libdir_flag_spec \
14527hardcode_libdir_flag_spec_ld \
14528hardcode_libdir_separator \
14529fix_srcfile_path \
14530exclude_expsyms \
14531include_expsyms \
14532file_list_spec \
14533variables_saved_for_relink \
14534libname_spec \
14535library_names_spec \
14536soname_spec \
14537finish_eval \
14538old_striplib \
14539striplib; do
14540 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14541 *[\\\\\\\`\\"\\\$]*)
14542 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14543 ;;
14544 *)
14545 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14546 ;;
14547 esac
14548done
14549
14550# Double-quote double-evaled strings.
14551for var in reload_cmds \
14552old_postinstall_cmds \
14553old_postuninstall_cmds \
14554old_archive_cmds \
14555extract_expsyms_cmds \
14556old_archive_from_new_cmds \
14557old_archive_from_expsyms_cmds \
14558archive_cmds \
14559archive_expsym_cmds \
14560module_cmds \
14561module_expsym_cmds \
14562export_symbols_cmds \
14563prelink_cmds \
14564postinstall_cmds \
14565postuninstall_cmds \
14566finish_cmds \
14567sys_lib_search_path_spec \
14568sys_lib_dlsearch_path_spec; do
14569 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14570 *[\\\\\\\`\\"\\\$]*)
14571 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14572 ;;
14573 *)
14574 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14575 ;;
14576 esac
14577done
14578
14579# Fix-up fallback echo if it was mangled by the above quoting rules.
14580case \$lt_ECHO in
14581*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14582 ;;
14583esac
14584
14585ac_aux_dir='$ac_aux_dir'
14586xsi_shell='$xsi_shell'
14587lt_shell_append='$lt_shell_append'
14588
14589# See if we are running on zsh, and set the options which allow our
14590# commands through without removal of \ escapes INIT.
14591if test -n "\${ZSH_VERSION+set}" ; then
14592 setopt NO_GLOB_SUBST
14593fi
14594
14595
14596 PACKAGE='$PACKAGE'
14597 VERSION='$VERSION'
14598 TIMESTAMP='$TIMESTAMP'
14599 RM='$RM'
14600 ofile='$ofile'
14601
14602
14603
20e95c23
DJ
14604# Capture the value of obsolete ALL_LINGUAS because we need it to compute
14605 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
14606 # from automake.
14607 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14608 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14609 LINGUAS="${LINGUAS-%UNSET%}"
14610
13b2be9c
DJ
14611target_cpu_type=${target_cpu_type}
14612 cgen_cpu_prefix=${cgen_cpu_prefix}
14613 obj_format=${obj_format}
14614 te_file=${te_file}
14615
14616_ACEOF
14617
14618
14619
14620cat >>$CONFIG_STATUS <<\_ACEOF
14621for ac_config_target in $ac_config_targets
9b2b7d69 14622do
13b2be9c
DJ
14623 case "$ac_config_target" in
14624 # Handling of arguments.
14625 "gdb.ini" ) CONFIG_FILES="$CONFIG_FILES gdb.ini:gdbinit.in" ;;
14626 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
14627 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14628 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14629 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
14630 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
d7040cdb 14631 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20e95c23 14632 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13b2be9c
DJ
14633 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
14634 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
14635 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14636echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14637 { (exit 1); exit 1; }; };;
9b2b7d69
MM
14638 esac
14639done
14640
13b2be9c
DJ
14641# If the user did not use the arguments to specify the items to instantiate,
14642# then the envvar interface is used. Set only those that are not.
14643# We use the long form for the default assignment because of an extremely
14644# bizarre bug on SunOS 4.1.3.
14645if $ac_need_defaults; then
14646 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14647 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14648 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14649fi
14650
14651# Have a temporary directory for convenience. Make it in the build tree
14652# simply because there is no reason to put it here, and in addition,
14653# creating and moving files from /tmp can sometimes cause problems.
14654# Create a temporary directory, and hook for its removal unless debugging.
14655$debug ||
14656{
14657 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14658 trap '{ (exit 1); exit 1; }' 1 2 13 15
14659}
9b2b7d69 14660
13b2be9c 14661# Create a (secure) tmp directory for tmp files.
9b2b7d69 14662
13b2be9c
DJ
14663{
14664 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
14665 test -n "$tmp" && test -d "$tmp"
14666} ||
14667{
14668 tmp=./confstat$$-$RANDOM
14669 (umask 077 && mkdir $tmp)
14670} ||
14671{
14672 echo "$me: cannot create a temporary directory in ." >&2
14673 { (exit 1); exit 1; }
14674}
9b2b7d69 14675
13b2be9c
DJ
14676_ACEOF
14677
14678cat >>$CONFIG_STATUS <<_ACEOF
14679
14680#
14681# CONFIG_FILES section.
14682#
14683
14684# No need to generate the scripts if there are no CONFIG_FILES.
14685# This happens for instance when ./config.status config.h
14686if test -n "\$CONFIG_FILES"; then
14687 # Protect against being on the right side of a sed subst in config.status.
14688 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
14689 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
14690s,@SHELL@,$SHELL,;t t
14691s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14692s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14693s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14694s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14695s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14696s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
14697s,@exec_prefix@,$exec_prefix,;t t
14698s,@prefix@,$prefix,;t t
14699s,@program_transform_name@,$program_transform_name,;t t
14700s,@bindir@,$bindir,;t t
14701s,@sbindir@,$sbindir,;t t
14702s,@libexecdir@,$libexecdir,;t t
14703s,@datadir@,$datadir,;t t
14704s,@sysconfdir@,$sysconfdir,;t t
14705s,@sharedstatedir@,$sharedstatedir,;t t
14706s,@localstatedir@,$localstatedir,;t t
14707s,@libdir@,$libdir,;t t
14708s,@includedir@,$includedir,;t t
14709s,@oldincludedir@,$oldincludedir,;t t
14710s,@infodir@,$infodir,;t t
14711s,@mandir@,$mandir,;t t
14712s,@build_alias@,$build_alias,;t t
14713s,@host_alias@,$host_alias,;t t
14714s,@target_alias@,$target_alias,;t t
14715s,@DEFS@,$DEFS,;t t
14716s,@ECHO_C@,$ECHO_C,;t t
14717s,@ECHO_N@,$ECHO_N,;t t
14718s,@ECHO_T@,$ECHO_T,;t t
14719s,@LIBS@,$LIBS,;t t
14720s,@build@,$build,;t t
14721s,@build_cpu@,$build_cpu,;t t
14722s,@build_vendor@,$build_vendor,;t t
14723s,@build_os@,$build_os,;t t
14724s,@host@,$host,;t t
14725s,@host_cpu@,$host_cpu,;t t
14726s,@host_vendor@,$host_vendor,;t t
14727s,@host_os@,$host_os,;t t
14728s,@target@,$target,;t t
14729s,@target_cpu@,$target_cpu,;t t
14730s,@target_vendor@,$target_vendor,;t t
14731s,@target_os@,$target_os,;t t
14732s,@CC@,$CC,;t t
14733s,@CFLAGS@,$CFLAGS,;t t
14734s,@LDFLAGS@,$LDFLAGS,;t t
14735s,@CPPFLAGS@,$CPPFLAGS,;t t
14736s,@ac_ct_CC@,$ac_ct_CC,;t t
14737s,@EXEEXT@,$EXEEXT,;t t
14738s,@OBJEXT@,$OBJEXT,;t t
14739s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
14740s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
14741s,@INSTALL_DATA@,$INSTALL_DATA,;t t
14742s,@CYGPATH_W@,$CYGPATH_W,;t t
14743s,@PACKAGE@,$PACKAGE,;t t
14744s,@VERSION@,$VERSION,;t t
14745s,@ACLOCAL@,$ACLOCAL,;t t
14746s,@AUTOCONF@,$AUTOCONF,;t t
14747s,@AUTOMAKE@,$AUTOMAKE,;t t
14748s,@AUTOHEADER@,$AUTOHEADER,;t t
14749s,@MAKEINFO@,$MAKEINFO,;t t
13b2be9c
DJ
14750s,@install_sh@,$install_sh,;t t
14751s,@STRIP@,$STRIP,;t t
14752s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
14753s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
ab509236 14754s,@mkdir_p@,$mkdir_p,;t t
13b2be9c
DJ
14755s,@AWK@,$AWK,;t t
14756s,@SET_MAKE@,$SET_MAKE,;t t
14757s,@am__leading_dot@,$am__leading_dot,;t t
8ea2b00f
AM
14758s,@AMTAR@,$AMTAR,;t t
14759s,@am__tar@,$am__tar,;t t
14760s,@am__untar@,$am__untar,;t t
13b2be9c
DJ
14761s,@DEPDIR@,$DEPDIR,;t t
14762s,@am__include@,$am__include,;t t
14763s,@am__quote@,$am__quote,;t t
14764s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
14765s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
14766s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
14767s,@CCDEPMODE@,$CCDEPMODE,;t t
14768s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
14769s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
d7040cdb
SE
14770s,@LIBTOOL@,$LIBTOOL,;t t
14771s,@SED@,$SED,;t t
14772s,@EGREP@,$EGREP,;t t
14773s,@FGREP@,$FGREP,;t t
14774s,@GREP@,$GREP,;t t
14775s,@LD@,$LD,;t t
14776s,@DUMPBIN@,$DUMPBIN,;t t
14777s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
14778s,@NM@,$NM,;t t
13b2be9c 14779s,@LN_S@,$LN_S,;t t
d7040cdb
SE
14780s,@AR@,$AR,;t t
14781s,@ac_ct_AR@,$ac_ct_AR,;t t
13b2be9c
DJ
14782s,@RANLIB@,$RANLIB,;t t
14783s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
d7040cdb
SE
14784s,@lt_ECHO@,$lt_ECHO,;t t
14785s,@CPP@,$CPP,;t t
13b2be9c 14786s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
9e9b66a9 14787s,@NO_WERROR@,$NO_WERROR,;t t
13b2be9c
DJ
14788s,@GDBINIT@,$GDBINIT,;t t
14789s,@cgen_cpu_prefix@,$cgen_cpu_prefix,;t t
14790s,@extra_objects@,$extra_objects,;t t
14791s,@target_cpu_type@,$target_cpu_type,;t t
14792s,@obj_format@,$obj_format,;t t
14793s,@te_file@,$te_file,;t t
14794s,@install_tooldir@,$install_tooldir,;t t
14795s,@atof@,$atof,;t t
13b2be9c 14796s,@OPCODES_LIB@,$OPCODES_LIB,;t t
13b2be9c
DJ
14797s,@YACC@,$YACC,;t t
14798s,@LEX@,$LEX,;t t
14799s,@LEXLIB@,$LEXLIB,;t t
14800s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
13b2be9c 14801s,@USE_NLS@,$USE_NLS,;t t
20e95c23
DJ
14802s,@LIBINTL@,$LIBINTL,;t t
14803s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
14804s,@INCINTL@,$INCINTL,;t t
13b2be9c 14805s,@XGETTEXT@,$XGETTEXT,;t t
20e95c23
DJ
14806s,@GMSGFMT@,$GMSGFMT,;t t
14807s,@POSUB@,$POSUB,;t t
13b2be9c 14808s,@CATALOGS@,$CATALOGS,;t t
13b2be9c 14809s,@DATADIRNAME@,$DATADIRNAME,;t t
13b2be9c 14810s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20e95c23
DJ
14811s,@GENCAT@,$GENCAT,;t t
14812s,@CATOBJEXT@,$CATOBJEXT,;t t
13b2be9c 14813s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
20e95c23
DJ
14814s,@MSGFMT@,$MSGFMT,;t t
14815s,@MSGMERGE@,$MSGMERGE,;t t
13b2be9c
DJ
14816s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
14817s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
14818s,@MAINT@,$MAINT,;t t
d5fbea21
DJ
14819s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
14820s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
20e95c23 14821s,@ALLOCA@,$ALLOCA,;t t
13b2be9c 14822s,@LIBM@,$LIBM,;t t
108a6f8e
CD
14823s,@datarootdir@,$datarootdir,;t t
14824s,@docdir@,$docdir,;t t
14825s,@htmldir@,$htmldir,;t t
13b2be9c
DJ
14826s,@LIBOBJS@,$LIBOBJS,;t t
14827s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9b2b7d69
MM
14828CEOF
14829
13b2be9c
DJ
14830_ACEOF
14831
14832 cat >>$CONFIG_STATUS <<\_ACEOF
14833 # Split the substitutions into bite-sized pieces for seds with
14834 # small command number limits, like on Digital OSF/1 and HP-UX.
14835 ac_max_sed_lines=48
14836 ac_sed_frag=1 # Number of current file.
14837 ac_beg=1 # First line for current file.
14838 ac_end=$ac_max_sed_lines # Line after last line for current file.
14839 ac_more_lines=:
14840 ac_sed_cmds=
14841 while $ac_more_lines; do
14842 if test $ac_beg -gt 1; then
14843 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14844 else
14845 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14846 fi
14847 if test ! -s $tmp/subs.frag; then
14848 ac_more_lines=false
9b2b7d69 14849 else
13b2be9c
DJ
14850 # The purpose of the label and of the branching condition is to
14851 # speed up the sed processing (if there are no `@' at all, there
14852 # is no need to browse any of the substitutions).
14853 # These are the two extra sed commands mentioned above.
14854 (echo ':t
14855 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
14856 if test -z "$ac_sed_cmds"; then
ab509236 14857 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13b2be9c 14858 else
ab509236 14859 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13b2be9c
DJ
14860 fi
14861 ac_sed_frag=`expr $ac_sed_frag + 1`
14862 ac_beg=$ac_end
14863 ac_end=`expr $ac_end + $ac_max_sed_lines`
9b2b7d69 14864 fi
13b2be9c
DJ
14865 done
14866 if test -z "$ac_sed_cmds"; then
14867 ac_sed_cmds=cat
252b5132 14868 fi
13b2be9c 14869fi # test -n "$CONFIG_FILES"
252b5132 14870
13b2be9c
DJ
14871_ACEOF
14872cat >>$CONFIG_STATUS <<\_ACEOF
14873for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
c8615825 14874 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13b2be9c
DJ
14875 case $ac_file in
14876 - | *:- | *:-:* ) # input from stdin
ab509236
L
14877 cat >$tmp/stdin
14878 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14879 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13b2be9c 14880 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ab509236 14881 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13b2be9c 14882 * ) ac_file_in=$ac_file.in ;;
252b5132 14883 esac
9b2b7d69 14884
13b2be9c
DJ
14885 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
14886 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14887$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
14888 X"$ac_file" : 'X\(//\)[^/]' \| \
14889 X"$ac_file" : 'X\(//\)$' \| \
14890 X"$ac_file" : 'X\(/\)' \| \
14891 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
14892echo X"$ac_file" |
14893 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14894 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14895 /^X\(\/\/\)$/{ s//\1/; q; }
14896 /^X\(\/\).*/{ s//\1/; q; }
14897 s/.*/./; q'`
14898 { if $as_mkdir_p; then
14899 mkdir -p "$ac_dir"
c8615825 14900 else
13b2be9c
DJ
14901 as_dir="$ac_dir"
14902 as_dirs=
14903 while test ! -d "$as_dir"; do
14904 as_dirs="$as_dir $as_dirs"
14905 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14906$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
14907 X"$as_dir" : 'X\(//\)[^/]' \| \
14908 X"$as_dir" : 'X\(//\)$' \| \
14909 X"$as_dir" : 'X\(/\)' \| \
14910 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
14911echo X"$as_dir" |
14912 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14913 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14914 /^X\(\/\/\)$/{ s//\1/; q; }
14915 /^X\(\/\).*/{ s//\1/; q; }
14916 s/.*/./; q'`
14917 done
14918 test ! -n "$as_dirs" || mkdir $as_dirs
14919 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14920echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14921 { (exit 1); exit 1; }; }; }
14922
14923 ac_builddir=.
14924
14925if test "$ac_dir" != .; then
14926 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14927 # A "../" for each directory in $ac_dir_suffix.
14928 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14929else
14930 ac_dir_suffix= ac_top_builddir=
14931fi
9b2b7d69 14932
13b2be9c
DJ
14933case $srcdir in
14934 .) # No --srcdir option. We are building in place.
14935 ac_srcdir=.
14936 if test -z "$ac_top_builddir"; then
14937 ac_top_srcdir=.
14938 else
14939 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14940 fi ;;
14941 [\\/]* | ?:[\\/]* ) # Absolute path.
14942 ac_srcdir=$srcdir$ac_dir_suffix;
14943 ac_top_srcdir=$srcdir ;;
9b2b7d69 14944 *) # Relative path.
13b2be9c
DJ
14945 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14946 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14947esac
ab509236
L
14948
14949# Do not use `cd foo && pwd` to compute absolute paths, because
14950# the directories may not exist.
14951case `pwd` in
14952.) ac_abs_builddir="$ac_dir";;
14953*)
14954 case "$ac_dir" in
14955 .) ac_abs_builddir=`pwd`;;
14956 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14957 *) ac_abs_builddir=`pwd`/"$ac_dir";;
14958 esac;;
14959esac
14960case $ac_abs_builddir in
14961.) ac_abs_top_builddir=${ac_top_builddir}.;;
14962*)
14963 case ${ac_top_builddir}. in
14964 .) ac_abs_top_builddir=$ac_abs_builddir;;
14965 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14966 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14967 esac;;
14968esac
14969case $ac_abs_builddir in
14970.) ac_abs_srcdir=$ac_srcdir;;
14971*)
14972 case $ac_srcdir in
14973 .) ac_abs_srcdir=$ac_abs_builddir;;
14974 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14975 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14976 esac;;
14977esac
14978case $ac_abs_builddir in
14979.) ac_abs_top_srcdir=$ac_top_srcdir;;
14980*)
14981 case $ac_top_srcdir in
14982 .) ac_abs_top_srcdir=$ac_abs_builddir;;
14983 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14984 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14985 esac;;
14986esac
252b5132 14987
9b2b7d69 14988
13b2be9c
DJ
14989 case $INSTALL in
14990 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14991 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
c8615825 14992 esac
9b2b7d69 14993
1ad12f97
NC
14994 if test x"$ac_file" != x-; then
14995 { echo "$as_me:$LINENO: creating $ac_file" >&5
14996echo "$as_me: creating $ac_file" >&6;}
14997 rm -f "$ac_file"
14998 fi
13b2be9c
DJ
14999 # Let's still pretend it is `configure' which instantiates (i.e., don't
15000 # use $as_me), people would be surprised to read:
15001 # /* config.h. Generated by config.status. */
15002 if test x"$ac_file" = x-; then
15003 configure_input=
15004 else
15005 configure_input="$ac_file. "
15006 fi
15007 configure_input=$configure_input"Generated from `echo $ac_file_in |
ab509236 15008 sed 's,.*/,,'` by configure."
13b2be9c
DJ
15009
15010 # First look for the input files in the build tree, otherwise in the
15011 # src tree.
15012 ac_file_inputs=`IFS=:
15013 for f in $ac_file_in; do
15014 case $f in
15015 -) echo $tmp/stdin ;;
15016 [\\/$]*)
ab509236
L
15017 # Absolute (can't be DOS-style, as IFS=:)
15018 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13b2be9c
DJ
15019echo "$as_me: error: cannot find input file: $f" >&2;}
15020 { (exit 1); exit 1; }; }
ab509236 15021 echo "$f";;
13b2be9c 15022 *) # Relative
ab509236
L
15023 if test -f "$f"; then
15024 # Build tree
15025 echo "$f"
15026 elif test -f "$srcdir/$f"; then
15027 # Source tree
15028 echo "$srcdir/$f"
15029 else
15030 # /dev/null tree
15031 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13b2be9c
DJ
15032echo "$as_me: error: cannot find input file: $f" >&2;}
15033 { (exit 1); exit 1; }; }
ab509236 15034 fi;;
13b2be9c
DJ
15035 esac
15036 done` || { (exit 1); exit 1; }
15037_ACEOF
15038cat >>$CONFIG_STATUS <<_ACEOF
15039 sed "$ac_vpsub
15040$extrasub
15041_ACEOF
15042cat >>$CONFIG_STATUS <<\_ACEOF
15043:t
15044/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15045s,@configure_input@,$configure_input,;t t
15046s,@srcdir@,$ac_srcdir,;t t
15047s,@abs_srcdir@,$ac_abs_srcdir,;t t
15048s,@top_srcdir@,$ac_top_srcdir,;t t
15049s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
15050s,@builddir@,$ac_builddir,;t t
15051s,@abs_builddir@,$ac_abs_builddir,;t t
15052s,@top_builddir@,$ac_top_builddir,;t t
15053s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
15054s,@INSTALL@,$ac_INSTALL,;t t
15055" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
15056 rm -f $tmp/stdin
15057 if test x"$ac_file" != x-; then
15058 mv $tmp/out $ac_file
15059 else
15060 cat $tmp/out
15061 rm -f $tmp/out
15062 fi
15063
15064done
15065_ACEOF
15066cat >>$CONFIG_STATUS <<\_ACEOF
15067
15068#
15069# CONFIG_HEADER section.
15070#
252b5132
RH
15071
15072# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15073# NAME is the cpp macro being defined and VALUE is the value it is being given.
15074#
15075# ac_d sets the value in "#define NAME VALUE" lines.
ab509236
L
15076ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
15077ac_dB='[ ].*$,\1#\2'
13b2be9c
DJ
15078ac_dC=' '
15079ac_dD=',;t'
15080# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ab509236 15081ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13b2be9c 15082ac_uB='$,\1#\2define\3'
252b5132 15083ac_uC=' '
13b2be9c
DJ
15084ac_uD=',;t'
15085
15086for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
252b5132 15087 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13b2be9c
DJ
15088 case $ac_file in
15089 - | *:- | *:-:* ) # input from stdin
ab509236
L
15090 cat >$tmp/stdin
15091 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15092 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13b2be9c 15093 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ab509236 15094 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13b2be9c 15095 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
15096 esac
15097
13b2be9c
DJ
15098 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
15099echo "$as_me: creating $ac_file" >&6;}
15100
15101 # First look for the input files in the build tree, otherwise in the
15102 # src tree.
15103 ac_file_inputs=`IFS=:
15104 for f in $ac_file_in; do
15105 case $f in
15106 -) echo $tmp/stdin ;;
15107 [\\/$]*)
ab509236
L
15108 # Absolute (can't be DOS-style, as IFS=:)
15109 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13b2be9c
DJ
15110echo "$as_me: error: cannot find input file: $f" >&2;}
15111 { (exit 1); exit 1; }; }
ab509236
L
15112 # Do quote $f, to prevent DOS paths from being IFS'd.
15113 echo "$f";;
13b2be9c 15114 *) # Relative
ab509236
L
15115 if test -f "$f"; then
15116 # Build tree
15117 echo "$f"
15118 elif test -f "$srcdir/$f"; then
15119 # Source tree
15120 echo "$srcdir/$f"
15121 else
15122 # /dev/null tree
15123 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13b2be9c
DJ
15124echo "$as_me: error: cannot find input file: $f" >&2;}
15125 { (exit 1); exit 1; }; }
ab509236 15126 fi;;
13b2be9c
DJ
15127 esac
15128 done` || { (exit 1); exit 1; }
15129 # Remove the trailing spaces.
ab509236 15130 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13b2be9c
DJ
15131
15132_ACEOF
15133
15134# Transform confdefs.h into two sed scripts, `conftest.defines' and
15135# `conftest.undefs', that substitutes the proper values into
15136# config.h.in to produce config.h. The first handles `#define'
15137# templates, and the second `#undef' templates.
15138# And first: Protect against being on the right side of a sed subst in
15139# config.status. Protect against being in an unquoted here document
15140# in config.status.
15141rm -f conftest.defines conftest.undefs
15142# Using a here document instead of a string reduces the quoting nightmare.
15143# Putting comments in sed scripts is not portable.
15144#
15145# `end' is used to avoid that the second main sed command (meant for
15146# 0-ary CPP macros) applies to n-ary macro definitions.
15147# See the Autoconf documentation for `clear'.
15148cat >confdef2sed.sed <<\_ACEOF
15149s/[\\&,]/\\&/g
15150s,[\\$`],\\&,g
15151t clear
15152: clear
ab509236 15153s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13b2be9c 15154t end
ab509236 15155s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13b2be9c
DJ
15156: end
15157_ACEOF
15158# If some macros were called several times there might be several times
15159# the same #defines, which is useless. Nevertheless, we may not want to
15160# sort them, since we want the *last* AC-DEFINE to be honored.
15161uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
15162sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
15163rm -f confdef2sed.sed
252b5132
RH
15164
15165# This sed command replaces #undef with comments. This is necessary, for
15166# example, in the case of _POSIX_SOURCE, which is predefined and required
15167# on some systems where configure will not decide to define it.
13b2be9c 15168cat >>conftest.undefs <<\_ACEOF
ab509236 15169s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13b2be9c
DJ
15170_ACEOF
15171
15172# Break up conftest.defines because some shells have a limit on the size
15173# of here documents, and old seds have small limits too (100 cmds).
15174echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ab509236 15175echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13b2be9c
DJ
15176echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
15177echo ' :' >>$CONFIG_STATUS
15178rm -f conftest.tail
15179while grep . conftest.defines >/dev/null
15180do
15181 # Write a limited-size here document to $tmp/defines.sed.
15182 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
15183 # Speed up: don't consider the non `#define' lines.
ab509236 15184 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13b2be9c
DJ
15185 # Work around the forget-to-reset-the-flag bug.
15186 echo 't clr' >>$CONFIG_STATUS
15187 echo ': clr' >>$CONFIG_STATUS
15188 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
15189 echo 'CEOF
15190 sed -f $tmp/defines.sed $tmp/in >$tmp/out
15191 rm -f $tmp/in
15192 mv $tmp/out $tmp/in
15193' >>$CONFIG_STATUS
15194 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
15195 rm -f conftest.defines
15196 mv conftest.tail conftest.defines
15197done
15198rm -f conftest.defines
15199echo ' fi # grep' >>$CONFIG_STATUS
15200echo >>$CONFIG_STATUS
252b5132 15201
13b2be9c
DJ
15202# Break up conftest.undefs because some shells have a limit on the size
15203# of here documents, and old seds have small limits too (100 cmds).
15204echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
252b5132 15205rm -f conftest.tail
13b2be9c 15206while grep . conftest.undefs >/dev/null
252b5132 15207do
13b2be9c
DJ
15208 # Write a limited-size here document to $tmp/undefs.sed.
15209 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
15210 # Speed up: don't consider the non `#undef'
ab509236 15211 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13b2be9c
DJ
15212 # Work around the forget-to-reset-the-flag bug.
15213 echo 't clr' >>$CONFIG_STATUS
15214 echo ': clr' >>$CONFIG_STATUS
15215 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
252b5132 15216 echo 'CEOF
13b2be9c
DJ
15217 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
15218 rm -f $tmp/in
15219 mv $tmp/out $tmp/in
15220' >>$CONFIG_STATUS
15221 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
15222 rm -f conftest.undefs
15223 mv conftest.tail conftest.undefs
252b5132 15224done
13b2be9c
DJ
15225rm -f conftest.undefs
15226
15227cat >>$CONFIG_STATUS <<\_ACEOF
15228 # Let's still pretend it is `configure' which instantiates (i.e., don't
15229 # use $as_me), people would be surprised to read:
15230 # /* config.h. Generated by config.status. */
15231 if test x"$ac_file" = x-; then
15232 echo "/* Generated by configure. */" >$tmp/config.h
252b5132 15233 else
13b2be9c
DJ
15234 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
15235 fi
15236 cat $tmp/in >>$tmp/config.h
15237 rm -f $tmp/in
15238 if test x"$ac_file" != x-; then
15239 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
15240 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15241echo "$as_me: $ac_file is unchanged" >&6;}
15242 else
15243 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15244$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
15245 X"$ac_file" : 'X\(//\)[^/]' \| \
15246 X"$ac_file" : 'X\(//\)$' \| \
15247 X"$ac_file" : 'X\(/\)' \| \
15248 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
15249echo X"$ac_file" |
15250 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15251 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15252 /^X\(\/\/\)$/{ s//\1/; q; }
15253 /^X\(\/\).*/{ s//\1/; q; }
15254 s/.*/./; q'`
15255 { if $as_mkdir_p; then
15256 mkdir -p "$ac_dir"
15257 else
15258 as_dir="$ac_dir"
15259 as_dirs=
15260 while test ! -d "$as_dir"; do
15261 as_dirs="$as_dir $as_dirs"
15262 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15263$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
15264 X"$as_dir" : 'X\(//\)[^/]' \| \
15265 X"$as_dir" : 'X\(//\)$' \| \
15266 X"$as_dir" : 'X\(/\)' \| \
15267 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
15268echo X"$as_dir" |
15269 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15270 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15271 /^X\(\/\/\)$/{ s//\1/; q; }
15272 /^X\(\/\).*/{ s//\1/; q; }
15273 s/.*/./; q'`
15274 done
15275 test ! -n "$as_dirs" || mkdir $as_dirs
15276 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15277echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15278 { (exit 1); exit 1; }; }; }
15279
15280 rm -f $ac_file
15281 mv $tmp/config.h $ac_file
9b2b7d69 15282 fi
13b2be9c
DJ
15283 else
15284 cat $tmp/config.h
15285 rm -f $tmp/config.h
9b2b7d69 15286 fi
13b2be9c
DJ
15287# Compute $ac_file's index in $config_headers.
15288_am_stamp_count=1
15289for _am_header in $config_headers :; do
15290 case $_am_header in
15291 $ac_file | $ac_file:* )
15292 break ;;
15293 * )
15294 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15295 esac
15296done
15297echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
15298$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
15299 X$ac_file : 'X\(//\)[^/]' \| \
15300 X$ac_file : 'X\(//\)$' \| \
15301 X$ac_file : 'X\(/\)' \| \
15302 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
15303echo X$ac_file |
15304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15305 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15306 /^X\(\/\/\)$/{ s//\1/; q; }
15307 /^X\(\/\).*/{ s//\1/; q; }
15308 s/.*/./; q'`/stamp-h$_am_stamp_count
15309done
15310_ACEOF
15311cat >>$CONFIG_STATUS <<\_ACEOF
6840198f 15312
13b2be9c
DJ
15313#
15314# CONFIG_COMMANDS section.
15315#
15316for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
15317 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
15318 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
15319 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
15320$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
15321 X"$ac_dest" : 'X\(//\)[^/]' \| \
15322 X"$ac_dest" : 'X\(//\)$' \| \
15323 X"$ac_dest" : 'X\(/\)' \| \
15324 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
15325echo X"$ac_dest" |
15326 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15327 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15328 /^X\(\/\/\)$/{ s//\1/; q; }
15329 /^X\(\/\).*/{ s//\1/; q; }
15330 s/.*/./; q'`
ab509236
L
15331 { if $as_mkdir_p; then
15332 mkdir -p "$ac_dir"
15333 else
15334 as_dir="$ac_dir"
15335 as_dirs=
15336 while test ! -d "$as_dir"; do
15337 as_dirs="$as_dir $as_dirs"
15338 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15339$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15340 X"$as_dir" : 'X\(//\)[^/]' \| \
15341 X"$as_dir" : 'X\(//\)$' \| \
15342 X"$as_dir" : 'X\(/\)' \| \
15343 . : '\(.\)' 2>/dev/null ||
15344echo X"$as_dir" |
15345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15346 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15347 /^X\(\/\/\)$/{ s//\1/; q; }
15348 /^X\(\/\).*/{ s//\1/; q; }
15349 s/.*/./; q'`
15350 done
15351 test ! -n "$as_dirs" || mkdir $as_dirs
15352 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15353echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15354 { (exit 1); exit 1; }; }; }
15355
13b2be9c
DJ
15356 ac_builddir=.
15357
15358if test "$ac_dir" != .; then
15359 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15360 # A "../" for each directory in $ac_dir_suffix.
15361 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15362else
15363 ac_dir_suffix= ac_top_builddir=
15364fi
15365
15366case $srcdir in
15367 .) # No --srcdir option. We are building in place.
15368 ac_srcdir=.
15369 if test -z "$ac_top_builddir"; then
15370 ac_top_srcdir=.
15371 else
15372 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15373 fi ;;
15374 [\\/]* | ?:[\\/]* ) # Absolute path.
15375 ac_srcdir=$srcdir$ac_dir_suffix;
15376 ac_top_srcdir=$srcdir ;;
15377 *) # Relative path.
15378 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15379 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15380esac
ab509236
L
15381
15382# Do not use `cd foo && pwd` to compute absolute paths, because
15383# the directories may not exist.
15384case `pwd` in
15385.) ac_abs_builddir="$ac_dir";;
15386*)
15387 case "$ac_dir" in
15388 .) ac_abs_builddir=`pwd`;;
15389 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15390 *) ac_abs_builddir=`pwd`/"$ac_dir";;
15391 esac;;
15392esac
15393case $ac_abs_builddir in
15394.) ac_abs_top_builddir=${ac_top_builddir}.;;
15395*)
15396 case ${ac_top_builddir}. in
15397 .) ac_abs_top_builddir=$ac_abs_builddir;;
15398 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15399 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15400 esac;;
15401esac
15402case $ac_abs_builddir in
15403.) ac_abs_srcdir=$ac_srcdir;;
15404*)
15405 case $ac_srcdir in
15406 .) ac_abs_srcdir=$ac_abs_builddir;;
15407 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15408 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15409 esac;;
15410esac
15411case $ac_abs_builddir in
15412.) ac_abs_top_srcdir=$ac_top_srcdir;;
15413*)
15414 case $ac_top_srcdir in
15415 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15416 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15417 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15418 esac;;
15419esac
13b2be9c
DJ
15420
15421
15422 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
15423echo "$as_me: executing $ac_dest commands" >&6;}
15424 case $ac_dest in
15425 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
15426 # Strip MF so we end up with the name of the file.
15427 mf=`echo "$mf" | sed -e 's/:.*$//'`
15428 # Check whether this is an Automake generated Makefile or not.
15429 # We used to match only the files named `Makefile.in', but
15430 # some people rename them; so instead we look at the file content.
15431 # Grep'ing the first line is not enough: some people post-process
15432 # each Makefile.in and add a new line on top of each file to say so.
15433 # So let's grep whole file.
15434 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
15435 dirpart=`(dirname "$mf") 2>/dev/null ||
15436$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
15437 X"$mf" : 'X\(//\)[^/]' \| \
15438 X"$mf" : 'X\(//\)$' \| \
15439 X"$mf" : 'X\(/\)' \| \
15440 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
15441echo X"$mf" |
15442 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15443 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15444 /^X\(\/\/\)$/{ s//\1/; q; }
15445 /^X\(\/\).*/{ s//\1/; q; }
15446 s/.*/./; q'`
15447 else
15448 continue
15449 fi
8ea2b00f
AM
15450 # Extract the definition of DEPDIR, am__include, and am__quote
15451 # from the Makefile without running `make'.
4b363073 15452 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13b2be9c 15453 test -z "$DEPDIR" && continue
8ea2b00f
AM
15454 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15455 test -z "am__include" && continue
15456 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13b2be9c 15457 # When using ansi2knr, U may be empty or an underscore; expand it
4b363073 15458 U=`sed -n 's/^U = //p' < "$mf"`
8ea2b00f
AM
15459 # Find all dependency output files, they are included files with
15460 # $(DEPDIR) in their names. We invoke sed twice because it is the
15461 # simplest approach to changing $(DEPDIR) to its actual value in the
15462 # expansion.
15463 for file in `sed -n "
15464 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13b2be9c
DJ
15465 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15466 # Make sure the directory exists.
15467 test -f "$dirpart/$file" && continue
15468 fdir=`(dirname "$file") 2>/dev/null ||
15469$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
15470 X"$file" : 'X\(//\)[^/]' \| \
15471 X"$file" : 'X\(//\)$' \| \
15472 X"$file" : 'X\(/\)' \| \
15473 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
15474echo X"$file" |
15475 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15476 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15477 /^X\(\/\/\)$/{ s//\1/; q; }
15478 /^X\(\/\).*/{ s//\1/; q; }
15479 s/.*/./; q'`
15480 { if $as_mkdir_p; then
15481 mkdir -p $dirpart/$fdir
15482 else
15483 as_dir=$dirpart/$fdir
15484 as_dirs=
15485 while test ! -d "$as_dir"; do
15486 as_dirs="$as_dir $as_dirs"
15487 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15488$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
15489 X"$as_dir" : 'X\(//\)[^/]' \| \
15490 X"$as_dir" : 'X\(//\)$' \| \
15491 X"$as_dir" : 'X\(/\)' \| \
15492 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
15493echo X"$as_dir" |
15494 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15495 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15496 /^X\(\/\/\)$/{ s//\1/; q; }
15497 /^X\(\/\).*/{ s//\1/; q; }
15498 s/.*/./; q'`
15499 done
15500 test ! -n "$as_dirs" || mkdir $as_dirs
15501 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
15502echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
15503 { (exit 1); exit 1; }; }; }
c8615825 15504
13b2be9c
DJ
15505 # echo "creating $dirpart/$file"
15506 echo '# dummy' > "$dirpart/$file"
15507 done
15508done
d7040cdb
SE
15509 ;;
15510 libtool )
15511
15512 # See if we are running on zsh, and set the options which allow our
15513 # commands through without removal of \ escapes.
15514 if test -n "${ZSH_VERSION+set}" ; then
15515 setopt NO_GLOB_SUBST
15516 fi
15517
15518 cfgfile="${ofile}T"
15519 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15520 $RM "$cfgfile"
15521
15522 cat <<_LT_EOF >> "$cfgfile"
15523#! $SHELL
15524
15525# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15526# Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
15527# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15528# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15529#
15530# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15531# 2006, 2007 Free Software Foundation, Inc.
15532#
15533# This file is part of GNU Libtool:
15534# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
15535#
15536# This program is free software; you can redistribute it and/or modify
15537# it under the terms of the GNU General Public License as published by
15538# the Free Software Foundation; either version 2 of the License, or
15539# (at your option) any later version.
15540#
15541# This program is distributed in the hope that it will be useful, but
15542# WITHOUT ANY WARRANTY; without even the implied warranty of
15543# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15544# General Public License for more details.
15545#
15546# You should have received a copy of the GNU General Public License
15547# along with this program; if not, a copy can be downloaded from
15548# http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
15549# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
15550# MA 02110-1301, USA.
15551#
15552# As a special exception to the GNU General Public License, if you
15553# distribute this file as part of a program that contains a
15554# configuration script generated by Autoconf, you may include it under
15555# the same distribution terms that you use for the rest of that program.
15556
15557
15558# The names of the tagged configurations supported by this script.
15559available_tags=""
15560
15561# ### BEGIN LIBTOOL CONFIG
15562
15563# Which release of libtool.m4 was used?
15564macro_version=$macro_version
15565macro_revision=$macro_revision
15566
15567# Whether or not to build shared libraries.
15568build_libtool_libs=$enable_shared
15569
15570# Whether or not to build static libraries.
15571build_old_libs=$enable_static
15572
15573# What type of objects to build.
15574pic_mode=$pic_mode
15575
15576# Whether or not to optimize for fast installation.
15577fast_install=$enable_fast_install
15578
15579# The host system.
15580host_alias=$host_alias
15581host=$host
15582host_os=$host_os
15583
15584# The build system.
15585build_alias=$build_alias
15586build=$build
15587build_os=$build_os
15588
15589# A sed program that does not truncate output.
15590SED=$lt_SED
15591
15592# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15593Xsed="\$SED -e 1s/^X//"
15594
15595# A grep program that handles long lines.
15596GREP=$lt_GREP
15597
15598# An ERE matcher.
15599EGREP=$lt_EGREP
15600
15601# A literal string matcher.
15602FGREP=$lt_FGREP
15603
15604# A BSD- or MS-compatible name lister.
15605NM=$lt_NM
15606
15607# Whether we need soft or hard links.
15608LN_S=$lt_LN_S
15609
15610# What is the maximum length of a command?
15611max_cmd_len=$max_cmd_len
15612
15613# Object file suffix (normally "o").
15614objext=$ac_objext
15615
15616# Executable file suffix (normally "").
15617exeext=$exeext
15618
15619# whether the shell understands "unset".
15620lt_unset=$lt_unset
15621
15622# turn spaces into newlines.
15623SP2NL=$lt_lt_SP2NL
15624
15625# turn newlines into spaces.
15626NL2SP=$lt_lt_NL2SP
15627
15628# How to create reloadable object files.
15629reload_flag=$lt_reload_flag
15630reload_cmds=$lt_reload_cmds
15631
15632# Method to check whether dependent libraries are shared objects.
15633deplibs_check_method=$lt_deplibs_check_method
15634
15635# Command to use when deplibs_check_method == "file_magic".
15636file_magic_cmd=$lt_file_magic_cmd
15637
15638# The archiver.
15639AR=$lt_AR
15640AR_FLAGS=$lt_AR_FLAGS
15641
15642# A symbol stripping program.
15643STRIP=$lt_STRIP
15644
15645# Commands used to install an old-style archive.
15646RANLIB=$lt_RANLIB
15647old_postinstall_cmds=$lt_old_postinstall_cmds
15648old_postuninstall_cmds=$lt_old_postuninstall_cmds
15649
15650# A C compiler.
15651LTCC=$lt_CC
15652
15653# LTCC compiler flags.
15654LTCFLAGS=$lt_CFLAGS
15655
15656# Take the output of nm and produce a listing of raw symbols and C names.
15657global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15658
15659# Transform the output of nm in a proper C declaration.
15660global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15661
15662# Transform the output of nm in a C name address pair.
15663global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15664
15665# The name of the directory that contains temporary libtool files.
15666objdir=$objdir
15667
15668# Shell to use when invoking shell scripts.
15669SHELL=$lt_SHELL
15670
15671# An echo program that does not interpret backslashes.
15672ECHO=$lt_ECHO
15673
15674# Used to examine libraries when file_magic_cmd begins with "file".
15675MAGIC_CMD=$MAGIC_CMD
15676
15677# Must we lock files when doing compilation?
15678need_locks=$lt_need_locks
15679
15680# Old archive suffix (normally "a").
15681libext=$libext
15682
15683# Shared library suffix (normally ".so").
15684shrext_cmds=$lt_shrext_cmds
15685
15686# The commands to extract the exported symbol list from a shared archive.
15687extract_expsyms_cmds=$lt_extract_expsyms_cmds
15688
15689# Variables whose values should be saved in libtool wrapper scripts and
15690# restored at link time.
15691variables_saved_for_relink=$lt_variables_saved_for_relink
15692
15693# Do we need the "lib" prefix for modules?
15694need_lib_prefix=$need_lib_prefix
15695
15696# Do we need a version for libraries?
15697need_version=$need_version
15698
15699# Library versioning type.
15700version_type=$version_type
15701
15702# Shared library runtime path variable.
15703runpath_var=$runpath_var
15704
15705# Shared library path variable.
15706shlibpath_var=$shlibpath_var
15707
15708# Is shlibpath searched before the hard-coded library search path?
15709shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15710
15711# Format of library name prefix.
15712libname_spec=$lt_libname_spec
15713
15714# List of archive names. First name is the real one, the rest are links.
15715# The last name is the one that the linker finds with -lNAME
15716library_names_spec=$lt_library_names_spec
15717
15718# The coded name of the library, if different from the real name.
15719soname_spec=$lt_soname_spec
15720
15721# Command to use after installation of a shared archive.
15722postinstall_cmds=$lt_postinstall_cmds
15723
15724# Command to use after uninstallation of a shared archive.
15725postuninstall_cmds=$lt_postuninstall_cmds
15726
15727# Commands used to finish a libtool library installation in a directory.
15728finish_cmds=$lt_finish_cmds
15729
15730# As "finish_cmds", except a single script fragment to be evaled but
15731# not shown.
15732finish_eval=$lt_finish_eval
15733
15734# Whether we should hardcode library paths into libraries.
15735hardcode_into_libs=$hardcode_into_libs
15736
15737# Compile-time system search path for libraries.
15738sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15739
15740# Run-time system search path for libraries.
15741sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15742
15743# Whether dlopen is supported.
15744dlopen_support=$enable_dlopen
15745
15746# Whether dlopen of programs is supported.
15747dlopen_self=$enable_dlopen_self
15748
15749# Whether dlopen of statically linked programs is supported.
15750dlopen_self_static=$enable_dlopen_self_static
15751
15752# Commands to strip libraries.
15753old_striplib=$lt_old_striplib
15754striplib=$lt_striplib
15755
15756
15757# The linker used to build libraries.
15758LD=$lt_LD
15759
15760# Commands used to build an old-style archive.
15761old_archive_cmds=$lt_old_archive_cmds
15762
15763# A language specific compiler.
15764CC=$lt_compiler
15765
15766# Is the compiler the GNU compiler?
15767with_gcc=$GCC
15768
15769# Compiler flag to turn off builtin functions.
15770no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15771
15772# How to pass a linker flag through the compiler.
15773wl=$lt_lt_prog_compiler_wl
15774
15775# Additional compiler flags for building library objects.
15776pic_flag=$lt_lt_prog_compiler_pic
15777
15778# Compiler flag to prevent dynamic linking.
15779link_static_flag=$lt_lt_prog_compiler_static
15780
15781# Does compiler simultaneously support -c and -o options?
15782compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15783
15784# Whether or not to add -lc for building shared libraries.
15785build_libtool_need_lc=$archive_cmds_need_lc
15786
15787# Whether or not to disallow shared libs when runtime libs are static.
15788allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15789
15790# Compiler flag to allow reflexive dlopens.
15791export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15792
15793# Compiler flag to generate shared objects directly from archives.
15794whole_archive_flag_spec=$lt_whole_archive_flag_spec
15795
15796# Whether the compiler copes with passing no objects directly.
15797compiler_needs_object=$lt_compiler_needs_object
15798
15799# Create an old-style archive from a shared archive.
15800old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15801
15802# Create a temporary old-style archive to link instead of a shared archive.
15803old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15804
15805# Commands used to build a shared archive.
15806archive_cmds=$lt_archive_cmds
15807archive_expsym_cmds=$lt_archive_expsym_cmds
15808
15809# Commands used to build a loadable module if different from building
15810# a shared archive.
15811module_cmds=$lt_module_cmds
15812module_expsym_cmds=$lt_module_expsym_cmds
15813
15814# Whether we are building with GNU ld or not.
15815with_gnu_ld=$lt_with_gnu_ld
15816
15817# Flag that allows shared libraries with undefined symbols to be built.
15818allow_undefined_flag=$lt_allow_undefined_flag
15819
15820# Flag that enforces no undefined symbols.
15821no_undefined_flag=$lt_no_undefined_flag
15822
15823# Flag to hardcode \$libdir into a binary during linking.
15824# This must work even if \$libdir does not exist
15825hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15826
15827# If ld is used when linking, flag to hardcode \$libdir into a binary
15828# during linking. This must work even if \$libdir does not exist.
15829hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15830
15831# Whether we need a single "-rpath" flag with a separated argument.
15832hardcode_libdir_separator=$lt_hardcode_libdir_separator
15833
15834# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15835# DIR into the resulting binary.
15836hardcode_direct=$hardcode_direct
15837
15838# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15839# DIR into the resulting binary and the resulting library dependency is
15840# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15841# library is relocated.
15842hardcode_direct_absolute=$hardcode_direct_absolute
15843
15844# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15845# into the resulting binary.
15846hardcode_minus_L=$hardcode_minus_L
15847
15848# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15849# into the resulting binary.
15850hardcode_shlibpath_var=$hardcode_shlibpath_var
15851
15852# Set to "yes" if building a shared library automatically hardcodes DIR
15853# into the library and all subsequent libraries and executables linked
15854# against it.
15855hardcode_automatic=$hardcode_automatic
15856
15857# Set to yes if linker adds runtime paths of dependent libraries
15858# to runtime path list.
15859inherit_rpath=$inherit_rpath
15860
15861# Whether libtool must link a program against all its dependency libraries.
15862link_all_deplibs=$link_all_deplibs
15863
15864# Fix the shell variable \$srcfile for the compiler.
15865fix_srcfile_path=$lt_fix_srcfile_path
15866
15867# Set to "yes" if exported symbols are required.
15868always_export_symbols=$always_export_symbols
15869
15870# The commands to list exported symbols.
15871export_symbols_cmds=$lt_export_symbols_cmds
15872
15873# Symbols that should not be listed in the preloaded symbols.
15874exclude_expsyms=$lt_exclude_expsyms
15875
15876# Symbols that must always be exported.
15877include_expsyms=$lt_include_expsyms
15878
15879# Commands necessary for linking programs (against libraries) with templates.
15880prelink_cmds=$lt_prelink_cmds
15881
15882# Specify filename containing input files.
15883file_list_spec=$lt_file_list_spec
15884
15885# How to hardcode a shared library path into an executable.
15886hardcode_action=$hardcode_action
15887
15888# ### END LIBTOOL CONFIG
15889
15890_LT_EOF
15891
15892 case $host_os in
15893 aix3*)
15894 cat <<\_LT_EOF >> "$cfgfile"
15895# AIX sometimes has problems with the GCC collect2 program. For some
15896# reason, if we set the COLLECT_NAMES environment variable, the problems
15897# vanish in a puff of smoke.
15898if test "X${COLLECT_NAMES+set}" != Xset; then
15899 COLLECT_NAMES=
15900 export COLLECT_NAMES
15901fi
15902_LT_EOF
15903 ;;
15904 esac
15905
15906
15907ltmain="$ac_aux_dir/ltmain.sh"
15908
15909
15910 # We use sed instead of cat because bash on DJGPP gets confused if
15911 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15912 # text mode, it properly converts lines to CR/LF. This bash problem
15913 # is reportedly fixed, but why not run on old versions too?
15914 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15915 || (rm -f "$cfgfile"; exit 1)
15916
15917 case $xsi_shell in
15918 yes)
15919 cat << \_LT_EOF >> "$cfgfile"
15920# func_dirname file append nondir_replacement
15921# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15922# otherwise set result to NONDIR_REPLACEMENT.
15923func_dirname ()
15924{
15925 case ${1} in
15926 */*) func_dirname_result="${1%/*}${2}" ;;
15927 * ) func_dirname_result="${3}" ;;
15928 esac
15929}
15930
15931# func_basename file
15932func_basename ()
15933{
15934 func_basename_result="${1##*/}"
15935}
15936
15937# func_stripname prefix suffix name
15938# strip PREFIX and SUFFIX off of NAME.
15939# PREFIX and SUFFIX must not contain globbing or regex special
15940# characters, hashes, percent signs, but SUFFIX may contain a leading
15941# dot (in which case that matches only a dot).
15942func_stripname ()
15943{
15944 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15945 # positional parameters, so assign one to ordinary parameter first.
15946 func_stripname_result=${3}
15947 func_stripname_result=${func_stripname_result#"${1}"}
15948 func_stripname_result=${func_stripname_result%"${2}"}
15949}
15950
15951# func_opt_split
15952func_opt_split ()
15953{
15954 func_opt_split_opt=${1%%=*}
15955 func_opt_split_arg=${1#*=}
15956}
15957
15958# func_lo2o object
15959func_lo2o ()
15960{
15961 case ${1} in
15962 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15963 *) func_lo2o_result=${1} ;;
15964 esac
15965}
15966_LT_EOF
15967 ;;
15968 *) # Bourne compatible functions.
15969 cat << \_LT_EOF >> "$cfgfile"
15970# func_dirname file append nondir_replacement
15971# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15972# otherwise set result to NONDIR_REPLACEMENT.
15973func_dirname ()
15974{
15975 # Extract subdirectory from the argument.
15976 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15977 if test "X$func_dirname_result" = "X${1}"; then
15978 func_dirname_result="${3}"
15979 else
15980 func_dirname_result="$func_dirname_result${2}"
15981 fi
15982}
15983
15984# func_basename file
15985func_basename ()
15986{
15987 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15988}
15989
15990# func_stripname prefix suffix name
15991# strip PREFIX and SUFFIX off of NAME.
15992# PREFIX and SUFFIX must not contain globbing or regex special
15993# characters, hashes, percent signs, but SUFFIX may contain a leading
15994# dot (in which case that matches only a dot).
15995# func_strip_suffix prefix name
15996func_stripname ()
15997{
15998 case ${2} in
15999 .*) func_stripname_result=`$ECHO "X${3}" \
16000 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
16001 *) func_stripname_result=`$ECHO "X${3}" \
16002 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
16003 esac
16004}
16005
16006# sed scripts:
16007my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16008my_sed_long_arg='1s/^-[^=]*=//'
16009
16010# func_opt_split
16011func_opt_split ()
16012{
16013 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
16014 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
16015}
16016
16017# func_lo2o object
16018func_lo2o ()
16019{
16020 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
16021}
16022_LT_EOF
16023esac
16024
16025case $lt_shell_append in
16026 yes)
16027 cat << \_LT_EOF >> "$cfgfile"
16028
16029# func_append var value
16030# Append VALUE to the end of shell variable VAR.
16031func_append ()
16032{
16033 eval "$1+=\$2"
16034}
16035_LT_EOF
16036 ;;
16037 *)
16038 cat << \_LT_EOF >> "$cfgfile"
16039
16040# func_append var value
16041# Append VALUE to the end of shell variable VAR.
16042func_append ()
16043{
16044 eval "$1=\$$1\$2"
16045}
16046_LT_EOF
16047 ;;
16048 esac
16049
16050
16051 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16052 || (rm -f "$cfgfile"; exit 1)
16053
16054 mv -f "$cfgfile" "$ofile" ||
16055 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16056 chmod +x "$ofile"
16057
13b2be9c 16058 ;;
20e95c23
DJ
16059 default-1 )
16060 for ac_file in $CONFIG_FILES; do
16061 # Support "outfile[:infile[:infile...]]"
16062 case "$ac_file" in
16063 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16064 esac
16065 # PO directories have a Makefile.in generated from Makefile.in.in.
16066 case "$ac_file" in */Makefile.in)
16067 # Adjust a relative srcdir.
16068 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16069 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16070 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16071 # In autoconf-2.13 it is called $ac_given_srcdir.
16072 # In autoconf-2.50 it is called $srcdir.
16073 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16074 case "$ac_given_srcdir" in
16075 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16076 /*) top_srcdir="$ac_given_srcdir" ;;
16077 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16078 esac
16079 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16080 rm -f "$ac_dir/POTFILES"
16081 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16082 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16083 POMAKEFILEDEPS="POTFILES.in"
16084 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
16085 # on $ac_dir but don't depend on user-specified configuration
16086 # parameters.
16087 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16088 # The LINGUAS file contains the set of available languages.
16089 if test -n "$OBSOLETE_ALL_LINGUAS"; then
16090 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16091 fi
16092 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16093 # Hide the ALL_LINGUAS assigment from automake.
16094 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16095 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16096 else
16097 # The set of available languages was given in configure.in.
16098 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16099 fi
16100 case "$ac_given_srcdir" in
16101 .) srcdirpre= ;;
16102 *) srcdirpre='$(srcdir)/' ;;
16103 esac
16104 POFILES=
16105 GMOFILES=
16106 UPDATEPOFILES=
16107 DUMMYPOFILES=
16108 for lang in $ALL_LINGUAS; do
16109 POFILES="$POFILES $srcdirpre$lang.po"
16110 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16111 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16112 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16113 done
16114 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16115 # environment variable.
16116 INST_LINGUAS=
16117 if test -n "$ALL_LINGUAS"; then
16118 for presentlang in $ALL_LINGUAS; do
16119 useit=no
16120 if test "%UNSET%" != "$LINGUAS"; then
16121 desiredlanguages="$LINGUAS"
16122 else
16123 desiredlanguages="$ALL_LINGUAS"
16124 fi
16125 for desiredlang in $desiredlanguages; do
16126 # Use the presentlang catalog if desiredlang is
16127 # a. equal to presentlang, or
16128 # b. a variant of presentlang (because in this case,
16129 # presentlang can be used as a fallback for messages
16130 # which are not translated in the desiredlang catalog).
16131 case "$desiredlang" in
16132 "$presentlang"*) useit=yes;;
16133 esac
16134 done
16135 if test $useit = yes; then
16136 INST_LINGUAS="$INST_LINGUAS $presentlang"
16137 fi
16138 done
16139 fi
16140 CATALOGS=
16141 if test -n "$INST_LINGUAS"; then
16142 for lang in $INST_LINGUAS; do
16143 CATALOGS="$CATALOGS $lang.gmo"
16144 done
16145 fi
16146 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16147 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"
16148 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16149 if test -f "$f"; then
16150 case "$f" in
16151 *.orig | *.bak | *~) ;;
16152 *) cat "$f" >> "$ac_dir/Makefile" ;;
16153 esac
16154 fi
16155 done
16156 fi
16157 ;;
16158 esac
16159 done ;;
13b2be9c 16160 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
16161 echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
16162 echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
16163 echo '#include "te-'"${te_file}"'.h"' > targ-env.h
16164 echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
16165 if test "x$cgen_cpu_prefix" != x ; then
16166 echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h
20e95c23 16167 fi ;;
13b2be9c
DJ
16168 esac
16169done
16170_ACEOF
16171
16172cat >>$CONFIG_STATUS <<\_ACEOF
16173
16174{ (exit 0); exit 0; }
16175_ACEOF
252b5132 16176chmod +x $CONFIG_STATUS
13b2be9c
DJ
16177ac_clean_files=$ac_clean_files_save
16178
16179
16180# configure is writing to config.log, and then calls config.status.
16181# config.status does its own redirection, appending to config.log.
16182# Unfortunately, on DOS this fails, as config.log is still kept open
16183# by configure, so config.status won't be able to write to it; its
16184# output is simply discarded. So we exec the FD to /dev/null,
16185# effectively closing config.log, so it can be properly (re)opened and
16186# appended to by config.status. When coming back to configure, we
16187# need to make the FD available again.
16188if test "$no_create" != yes; then
16189 ac_cs_success=:
16190 ac_config_status_args=
16191 test "$silent" = yes &&
16192 ac_config_status_args="$ac_config_status_args --quiet"
16193 exec 5>/dev/null
16194 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16195 exec 5>>config.log
16196 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16197 # would make configure fail if this is the last instruction.
16198 $ac_cs_success || { (exit 1); exit 1; }
16199fi
252b5132 16200
This page took 1.341612 seconds and 4 git commands to generate.