* remote.c: Include "gdb_stat.h".
[deliverable/binutils-gdb.git] / binutils / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
42ecbf5e 3# Generated by GNU Autoconf 2.59.
252b5132 4#
42ecbf5e 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.
42ecbf5e
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
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
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
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
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
221 test -d ./-p && rmdir ./-p
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.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
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
42ecbf5e
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
42ecbf5e
DJ
398exec 6>&1
399
400#
401# Initializations.
402#
252b5132 403ac_default_prefix=/usr/local
42ecbf5e
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="ar.c"
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
7357c5b6 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 CPP EGREP LIBTOOL SED FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO WARN_CFLAGS NO_WERROR 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 HDEFINES CC_FOR_BUILD EXEEXT_FOR_BUILD DEMANGLER_NAME ALLOCA LIBICONV LTLIBICONV NLMCONV_DEFS BUILD_NLMCONV BUILD_SRCONV BUILD_DLLTOOL DLLTOOL_DEFS BUILD_WINDRES BUILD_WINDMC BUILD_DLLWRAP BUILD_MISC BUILD_INSTALL_MISC OBJDUMP_DEFS EMULATION EMULATION_VECTOR datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
42ecbf5e 462ac_subst_files=''
7a283e07 463ac_pwd=`pwd`
252b5132
RH
464
465# Initialize some variables set by options.
42ecbf5e
DJ
466ac_init_help=
467ac_init_version=false
252b5132
RH
468# The variables have the same names as the options, with
469# dashes changed to underlines.
42ecbf5e 470cache_file=/dev/null
252b5132 471exec_prefix=NONE
252b5132 472no_create=
252b5132
RH
473no_recursion=
474prefix=NONE
475program_prefix=NONE
476program_suffix=NONE
477program_transform_name=s,x,x,
478silent=
479site=
480srcdir=
252b5132
RH
481verbose=
482x_includes=NONE
483x_libraries=NONE
42ecbf5e
DJ
484
485# Installation directory options.
486# These are left unexpanded so users can "make install exec_prefix=/foo"
487# and all the variables that are supposed to be based on exec_prefix
488# by default will actually change.
489# Use braces instead of parens because sh, perl, etc. also accept them.
252b5132
RH
490bindir='${exec_prefix}/bin'
491sbindir='${exec_prefix}/sbin'
492libexecdir='${exec_prefix}/libexec'
493datadir='${prefix}/share'
494sysconfdir='${prefix}/etc'
495sharedstatedir='${prefix}/com'
496localstatedir='${prefix}/var'
497libdir='${exec_prefix}/lib'
498includedir='${prefix}/include'
499oldincludedir='/usr/include'
500infodir='${prefix}/info'
501mandir='${prefix}/man'
502
252b5132
RH
503ac_prev=
504for ac_option
505do
252b5132
RH
506 # If the previous option needs an argument, assign it.
507 if test -n "$ac_prev"; then
508 eval "$ac_prev=\$ac_option"
509 ac_prev=
510 continue
511 fi
512
42ecbf5e 513 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
252b5132
RH
514
515 # Accept the important Cygnus configure options, so we can diagnose typos.
516
42ecbf5e 517 case $ac_option in
252b5132
RH
518
519 -bindir | --bindir | --bindi | --bind | --bin | --bi)
520 ac_prev=bindir ;;
521 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
42ecbf5e 522 bindir=$ac_optarg ;;
252b5132
RH
523
524 -build | --build | --buil | --bui | --bu)
42ecbf5e 525 ac_prev=build_alias ;;
252b5132 526 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
42ecbf5e 527 build_alias=$ac_optarg ;;
252b5132
RH
528
529 -cache-file | --cache-file | --cache-fil | --cache-fi \
530 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
531 ac_prev=cache_file ;;
532 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
533 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
42ecbf5e
DJ
534 cache_file=$ac_optarg ;;
535
536 --config-cache | -C)
537 cache_file=config.cache ;;
252b5132
RH
538
539 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
540 ac_prev=datadir ;;
541 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
542 | --da=*)
42ecbf5e 543 datadir=$ac_optarg ;;
252b5132
RH
544
545 -disable-* | --disable-*)
42ecbf5e 546 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 547 # Reject names that are not valid shell variable names.
42ecbf5e
DJ
548 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
549 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
550 { (exit 1); exit 1; }; }
551 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
552 eval "enable_$ac_feature=no" ;;
252b5132
RH
553
554 -enable-* | --enable-*)
42ecbf5e 555 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 556 # Reject names that are not valid shell variable names.
42ecbf5e
DJ
557 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559 { (exit 1); exit 1; }; }
560 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561 case $ac_option in
562 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252b5132
RH
563 *) ac_optarg=yes ;;
564 esac
42ecbf5e 565 eval "enable_$ac_feature='$ac_optarg'" ;;
252b5132
RH
566
567 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
568 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
569 | --exec | --exe | --ex)
570 ac_prev=exec_prefix ;;
571 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
572 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
573 | --exec=* | --exe=* | --ex=*)
42ecbf5e 574 exec_prefix=$ac_optarg ;;
252b5132
RH
575
576 -gas | --gas | --ga | --g)
577 # Obsolete; use --with-gas.
578 with_gas=yes ;;
579
42ecbf5e
DJ
580 -help | --help | --hel | --he | -h)
581 ac_init_help=long ;;
582 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
583 ac_init_help=recursive ;;
584 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
585 ac_init_help=short ;;
252b5132
RH
586
587 -host | --host | --hos | --ho)
42ecbf5e 588 ac_prev=host_alias ;;
252b5132 589 -host=* | --host=* | --hos=* | --ho=*)
42ecbf5e 590 host_alias=$ac_optarg ;;
252b5132
RH
591
592 -includedir | --includedir | --includedi | --included | --include \
593 | --includ | --inclu | --incl | --inc)
594 ac_prev=includedir ;;
595 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
596 | --includ=* | --inclu=* | --incl=* | --inc=*)
42ecbf5e 597 includedir=$ac_optarg ;;
252b5132
RH
598
599 -infodir | --infodir | --infodi | --infod | --info | --inf)
600 ac_prev=infodir ;;
601 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
42ecbf5e 602 infodir=$ac_optarg ;;
252b5132
RH
603
604 -libdir | --libdir | --libdi | --libd)
605 ac_prev=libdir ;;
606 -libdir=* | --libdir=* | --libdi=* | --libd=*)
42ecbf5e 607 libdir=$ac_optarg ;;
252b5132
RH
608
609 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
610 | --libexe | --libex | --libe)
611 ac_prev=libexecdir ;;
612 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
613 | --libexe=* | --libex=* | --libe=*)
42ecbf5e 614 libexecdir=$ac_optarg ;;
252b5132
RH
615
616 -localstatedir | --localstatedir | --localstatedi | --localstated \
617 | --localstate | --localstat | --localsta | --localst \
618 | --locals | --local | --loca | --loc | --lo)
619 ac_prev=localstatedir ;;
620 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
621 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
622 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
42ecbf5e 623 localstatedir=$ac_optarg ;;
252b5132
RH
624
625 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
626 ac_prev=mandir ;;
627 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
42ecbf5e 628 mandir=$ac_optarg ;;
252b5132
RH
629
630 -nfp | --nfp | --nf)
631 # Obsolete; use --without-fp.
632 with_fp=no ;;
633
634 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
42ecbf5e 635 | --no-cr | --no-c | -n)
252b5132
RH
636 no_create=yes ;;
637
638 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
639 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
640 no_recursion=yes ;;
641
642 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
643 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
644 | --oldin | --oldi | --old | --ol | --o)
645 ac_prev=oldincludedir ;;
646 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
647 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
648 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
42ecbf5e 649 oldincludedir=$ac_optarg ;;
252b5132
RH
650
651 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
652 ac_prev=prefix ;;
653 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
42ecbf5e 654 prefix=$ac_optarg ;;
252b5132
RH
655
656 -program-prefix | --program-prefix | --program-prefi | --program-pref \
657 | --program-pre | --program-pr | --program-p)
658 ac_prev=program_prefix ;;
659 -program-prefix=* | --program-prefix=* | --program-prefi=* \
660 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
42ecbf5e 661 program_prefix=$ac_optarg ;;
252b5132
RH
662
663 -program-suffix | --program-suffix | --program-suffi | --program-suff \
664 | --program-suf | --program-su | --program-s)
665 ac_prev=program_suffix ;;
666 -program-suffix=* | --program-suffix=* | --program-suffi=* \
667 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
42ecbf5e 668 program_suffix=$ac_optarg ;;
252b5132
RH
669
670 -program-transform-name | --program-transform-name \
671 | --program-transform-nam | --program-transform-na \
672 | --program-transform-n | --program-transform- \
673 | --program-transform | --program-transfor \
674 | --program-transfo | --program-transf \
675 | --program-trans | --program-tran \
676 | --progr-tra | --program-tr | --program-t)
677 ac_prev=program_transform_name ;;
678 -program-transform-name=* | --program-transform-name=* \
679 | --program-transform-nam=* | --program-transform-na=* \
680 | --program-transform-n=* | --program-transform-=* \
681 | --program-transform=* | --program-transfor=* \
682 | --program-transfo=* | --program-transf=* \
683 | --program-trans=* | --program-tran=* \
684 | --progr-tra=* | --program-tr=* | --program-t=*)
42ecbf5e 685 program_transform_name=$ac_optarg ;;
252b5132
RH
686
687 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
688 | -silent | --silent | --silen | --sile | --sil)
689 silent=yes ;;
690
691 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
692 ac_prev=sbindir ;;
693 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
694 | --sbi=* | --sb=*)
42ecbf5e 695 sbindir=$ac_optarg ;;
252b5132
RH
696
697 -sharedstatedir | --sharedstatedir | --sharedstatedi \
698 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
699 | --sharedst | --shareds | --shared | --share | --shar \
700 | --sha | --sh)
701 ac_prev=sharedstatedir ;;
702 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
703 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
704 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
705 | --sha=* | --sh=*)
42ecbf5e 706 sharedstatedir=$ac_optarg ;;
252b5132
RH
707
708 -site | --site | --sit)
709 ac_prev=site ;;
710 -site=* | --site=* | --sit=*)
42ecbf5e 711 site=$ac_optarg ;;
252b5132
RH
712
713 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
714 ac_prev=srcdir ;;
715 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
42ecbf5e 716 srcdir=$ac_optarg ;;
252b5132
RH
717
718 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
719 | --syscon | --sysco | --sysc | --sys | --sy)
720 ac_prev=sysconfdir ;;
721 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
722 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
42ecbf5e 723 sysconfdir=$ac_optarg ;;
252b5132
RH
724
725 -target | --target | --targe | --targ | --tar | --ta | --t)
42ecbf5e 726 ac_prev=target_alias ;;
252b5132 727 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
42ecbf5e 728 target_alias=$ac_optarg ;;
252b5132
RH
729
730 -v | -verbose | --verbose | --verbos | --verbo | --verb)
731 verbose=yes ;;
732
42ecbf5e
DJ
733 -version | --version | --versio | --versi | --vers | -V)
734 ac_init_version=: ;;
252b5132
RH
735
736 -with-* | --with-*)
42ecbf5e 737 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 738 # Reject names that are not valid shell variable names.
42ecbf5e
DJ
739 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
740 { echo "$as_me: error: invalid package name: $ac_package" >&2
741 { (exit 1); exit 1; }; }
252b5132 742 ac_package=`echo $ac_package| sed 's/-/_/g'`
42ecbf5e
DJ
743 case $ac_option in
744 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252b5132
RH
745 *) ac_optarg=yes ;;
746 esac
42ecbf5e 747 eval "with_$ac_package='$ac_optarg'" ;;
252b5132
RH
748
749 -without-* | --without-*)
42ecbf5e 750 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 751 # Reject names that are not valid shell variable names.
42ecbf5e
DJ
752 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753 { echo "$as_me: error: invalid package name: $ac_package" >&2
754 { (exit 1); exit 1; }; }
755 ac_package=`echo $ac_package | sed 's/-/_/g'`
756 eval "with_$ac_package=no" ;;
252b5132
RH
757
758 --x)
759 # Obsolete; use --with-x.
760 with_x=yes ;;
761
762 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
763 | --x-incl | --x-inc | --x-in | --x-i)
764 ac_prev=x_includes ;;
765 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
766 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
42ecbf5e 767 x_includes=$ac_optarg ;;
252b5132
RH
768
769 -x-libraries | --x-libraries | --x-librarie | --x-librari \
770 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
771 ac_prev=x_libraries ;;
772 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
773 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
42ecbf5e 774 x_libraries=$ac_optarg ;;
252b5132 775
42ecbf5e
DJ
776 -*) { echo "$as_me: error: unrecognized option: $ac_option
777Try \`$0 --help' for more information." >&2
778 { (exit 1); exit 1; }; }
252b5132
RH
779 ;;
780
42ecbf5e
DJ
781 *=*)
782 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
783 # Reject names that are not valid shell variable names.
784 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
785 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
786 { (exit 1); exit 1; }; }
787 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
788 eval "$ac_envvar='$ac_optarg'"
789 export $ac_envvar ;;
790
252b5132 791 *)
42ecbf5e
DJ
792 # FIXME: should be removed in autoconf 3.0.
793 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
794 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
795 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
796 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
252b5132
RH
797 ;;
798
799 esac
800done
801
802if test -n "$ac_prev"; then
42ecbf5e
DJ
803 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
804 { echo "$as_me: error: missing argument to $ac_option" >&2
805 { (exit 1); exit 1; }; }
252b5132
RH
806fi
807
42ecbf5e
DJ
808# Be sure to have absolute paths.
809for ac_var in exec_prefix prefix
810do
811 eval ac_val=$`echo $ac_var`
812 case $ac_val in
813 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
814 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
815 { (exit 1); exit 1; }; };;
816 esac
817done
252b5132 818
42ecbf5e
DJ
819# Be sure to have absolute paths.
820for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
821 localstatedir libdir includedir oldincludedir infodir mandir
252b5132 822do
42ecbf5e
DJ
823 eval ac_val=$`echo $ac_var`
824 case $ac_val in
825 [\\/$]* | ?:[\\/]* ) ;;
826 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
827 { (exit 1); exit 1; }; };;
252b5132
RH
828 esac
829done
830
42ecbf5e
DJ
831# There might be people who depend on the old broken behavior: `$host'
832# used to hold the argument of --host etc.
833# FIXME: To remove some day.
834build=$build_alias
835host=$host_alias
836target=$target_alias
837
838# FIXME: To remove some day.
839if test "x$host_alias" != x; then
840 if test "x$build_alias" = x; then
841 cross_compiling=maybe
842 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
843 If a cross compiler is detected then cross compile mode will be used." >&2
844 elif test "x$build_alias" != "x$host_alias"; then
845 cross_compiling=yes
846 fi
847fi
e5a52504 848
42ecbf5e
DJ
849ac_tool_prefix=
850test -n "$host_alias" && ac_tool_prefix=$host_alias-
851
852test "$silent" = yes && exec 6>/dev/null
252b5132 853
252b5132
RH
854
855# Find the source files, if location was not specified.
856if test -z "$srcdir"; then
857 ac_srcdir_defaulted=yes
858 # Try the directory containing this script, then its parent.
42ecbf5e
DJ
859 ac_confdir=`(dirname "$0") 2>/dev/null ||
860$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
861 X"$0" : 'X\(//\)[^/]' \| \
862 X"$0" : 'X\(//\)$' \| \
863 X"$0" : 'X\(/\)' \| \
864 . : '\(.\)' 2>/dev/null ||
865echo X"$0" |
866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
867 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
868 /^X\(\/\/\)$/{ s//\1/; q; }
869 /^X\(\/\).*/{ s//\1/; q; }
870 s/.*/./; q'`
252b5132
RH
871 srcdir=$ac_confdir
872 if test ! -r $srcdir/$ac_unique_file; then
873 srcdir=..
874 fi
875else
876 ac_srcdir_defaulted=no
877fi
878if test ! -r $srcdir/$ac_unique_file; then
879 if test "$ac_srcdir_defaulted" = yes; then
42ecbf5e
DJ
880 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
881 { (exit 1); exit 1; }; }
252b5132 882 else
42ecbf5e
DJ
883 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
884 { (exit 1); exit 1; }; }
252b5132
RH
885 fi
886fi
42ecbf5e
DJ
887(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
888 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
889 { (exit 1); exit 1; }; }
890srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
891ac_env_build_alias_set=${build_alias+set}
892ac_env_build_alias_value=$build_alias
893ac_cv_env_build_alias_set=${build_alias+set}
894ac_cv_env_build_alias_value=$build_alias
895ac_env_host_alias_set=${host_alias+set}
896ac_env_host_alias_value=$host_alias
897ac_cv_env_host_alias_set=${host_alias+set}
898ac_cv_env_host_alias_value=$host_alias
899ac_env_target_alias_set=${target_alias+set}
900ac_env_target_alias_value=$target_alias
901ac_cv_env_target_alias_set=${target_alias+set}
902ac_cv_env_target_alias_value=$target_alias
903ac_env_CC_set=${CC+set}
904ac_env_CC_value=$CC
905ac_cv_env_CC_set=${CC+set}
906ac_cv_env_CC_value=$CC
907ac_env_CFLAGS_set=${CFLAGS+set}
908ac_env_CFLAGS_value=$CFLAGS
909ac_cv_env_CFLAGS_set=${CFLAGS+set}
910ac_cv_env_CFLAGS_value=$CFLAGS
911ac_env_LDFLAGS_set=${LDFLAGS+set}
912ac_env_LDFLAGS_value=$LDFLAGS
913ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
914ac_cv_env_LDFLAGS_value=$LDFLAGS
915ac_env_CPPFLAGS_set=${CPPFLAGS+set}
916ac_env_CPPFLAGS_value=$CPPFLAGS
917ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
918ac_cv_env_CPPFLAGS_value=$CPPFLAGS
919ac_env_CPP_set=${CPP+set}
920ac_env_CPP_value=$CPP
921ac_cv_env_CPP_set=${CPP+set}
922ac_cv_env_CPP_value=$CPP
252b5132 923
42ecbf5e
DJ
924#
925# Report the --help message.
926#
927if test "$ac_init_help" = "long"; then
928 # Omit some internal or obsolete options to make the list less imposing.
929 # This message is too long to be a string in the A/UX 3.1 sh.
930 cat <<_ACEOF
931\`configure' configures this package to adapt to many kinds of systems.
252b5132 932
42ecbf5e 933Usage: $0 [OPTION]... [VAR=VALUE]...
252b5132 934
42ecbf5e
DJ
935To assign environment variables (e.g., CC, CFLAGS...), specify them as
936VAR=VALUE. See below for descriptions of some of the useful variables.
252b5132 937
42ecbf5e 938Defaults for the options are specified in brackets.
ac48eca1 939
42ecbf5e
DJ
940Configuration:
941 -h, --help display this help and exit
942 --help=short display options specific to this package
943 --help=recursive display the short help of all the included packages
944 -V, --version display version information and exit
945 -q, --quiet, --silent do not print \`checking...' messages
946 --cache-file=FILE cache test results in FILE [disabled]
947 -C, --config-cache alias for \`--cache-file=config.cache'
948 -n, --no-create do not create output files
949 --srcdir=DIR find the sources in DIR [configure dir or \`..']
950
951_ACEOF
952
953 cat <<_ACEOF
954Installation directories:
955 --prefix=PREFIX install architecture-independent files in PREFIX
956 [$ac_default_prefix]
957 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
958 [PREFIX]
ac48eca1 959
42ecbf5e
DJ
960By default, \`make install' will install all the files in
961\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
962an installation prefix other than \`$ac_default_prefix' using \`--prefix',
963for instance \`--prefix=\$HOME'.
ac48eca1 964
42ecbf5e 965For better control, use the options below.
ac48eca1 966
42ecbf5e
DJ
967Fine tuning of the installation directories:
968 --bindir=DIR user executables [EPREFIX/bin]
969 --sbindir=DIR system admin executables [EPREFIX/sbin]
970 --libexecdir=DIR program executables [EPREFIX/libexec]
971 --datadir=DIR read-only architecture-independent data [PREFIX/share]
972 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
973 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
974 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
975 --libdir=DIR object code libraries [EPREFIX/lib]
976 --includedir=DIR C header files [PREFIX/include]
977 --oldincludedir=DIR C header files for non-gcc [/usr/include]
978 --infodir=DIR info documentation [PREFIX/info]
979 --mandir=DIR man documentation [PREFIX/man]
980_ACEOF
ac48eca1 981
42ecbf5e 982 cat <<\_ACEOF
252b5132 983
42ecbf5e
DJ
984Program names:
985 --program-prefix=PREFIX prepend PREFIX to installed program names
986 --program-suffix=SUFFIX append SUFFIX to installed program names
987 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
252b5132 988
42ecbf5e
DJ
989System types:
990 --build=BUILD configure for building on BUILD [guessed]
991 --host=HOST cross-compile to build programs to run on HOST [BUILD]
992 --target=TARGET configure for building compilers for TARGET [HOST]
993_ACEOF
252b5132 994fi
252b5132 995
42ecbf5e 996if test -n "$ac_init_help"; then
252b5132 997
42ecbf5e 998 cat <<\_ACEOF
252b5132 999
42ecbf5e
DJ
1000Optional Features:
1001 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1002 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1003 --disable-dependency-tracking speeds up one-time build
1004 --enable-dependency-tracking do not reject slow dependency extractors
d7040cdb
SE
1005 --enable-shared[=PKGS]
1006 build shared libraries [default=yes]
1007 --enable-static[=PKGS]
1008 build static libraries [default=yes]
1009 --enable-fast-install[=PKGS]
1010 optimize for fast installation [default=yes]
42ecbf5e
DJ
1011 --disable-libtool-lock avoid locking (might break parallel builds)
1012 --enable-targets alternative target configurations
1013 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
241a6c40
AM
1014 --enable-werror treat compile warnings as errors
1015 --enable-build-warnings enable build-time compiler warnings
42ecbf5e
DJ
1016 --disable-nls do not use Native Language Support
1017 --enable-maintainer-mode enable make rules and dependencies not useful
1018 (and sometimes confusing) to the casual installer
5ba684e2 1019 --disable-rpath do not hardcode runtime library paths
42ecbf5e
DJ
1020
1021Optional Packages:
1022 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1023 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d7040cdb
SE
1024 --with-pic try to use only PIC/non-PIC objects [default=use
1025 both]
1026 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
5ba684e2
NC
1027 --with-gnu-ld assume the C compiler uses GNU ld default=no
1028 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1029 --without-libiconv-prefix don't search for libiconv in includedir and libdir
252b5132 1030
42ecbf5e
DJ
1031Some influential environment variables:
1032 CC C compiler command
1033 CFLAGS C compiler flags
1034 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1035 nonstandard directory <lib dir>
1036 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1037 headers in a nonstandard directory <include dir>
1038 CPP C preprocessor
e5a52504 1039
42ecbf5e
DJ
1040Use these variables to override the choices made by `configure' or to help
1041it to find libraries and programs with nonstandard names/locations.
1042
1043_ACEOF
252b5132
RH
1044fi
1045
42ecbf5e
DJ
1046if test "$ac_init_help" = "recursive"; then
1047 # If there are subdirs, report their specific --help.
1048 ac_popdir=`pwd`
1049 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1050 test -d $ac_dir || continue
1051 ac_builddir=.
1052
1053if test "$ac_dir" != .; then
1054 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1055 # A "../" for each directory in $ac_dir_suffix.
1056 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1057else
1058 ac_dir_suffix= ac_top_builddir=
1059fi
252b5132 1060
42ecbf5e
DJ
1061case $srcdir in
1062 .) # No --srcdir option. We are building in place.
1063 ac_srcdir=.
1064 if test -z "$ac_top_builddir"; then
1065 ac_top_srcdir=.
1066 else
1067 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
252b5132 1068 fi ;;
42ecbf5e
DJ
1069 [\\/]* | ?:[\\/]* ) # Absolute path.
1070 ac_srcdir=$srcdir$ac_dir_suffix;
1071 ac_top_srcdir=$srcdir ;;
1072 *) # Relative path.
1073 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1074 ac_top_srcdir=$ac_top_builddir$srcdir ;;
252b5132
RH
1075esac
1076
42ecbf5e
DJ
1077# Do not use `cd foo && pwd` to compute absolute paths, because
1078# the directories may not exist.
1079case `pwd` in
1080.) ac_abs_builddir="$ac_dir";;
1081*)
1082 case "$ac_dir" in
1083 .) ac_abs_builddir=`pwd`;;
1084 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1085 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1086 esac;;
252b5132 1087esac
42ecbf5e
DJ
1088case $ac_abs_builddir in
1089.) ac_abs_top_builddir=${ac_top_builddir}.;;
1090*)
1091 case ${ac_top_builddir}. in
1092 .) ac_abs_top_builddir=$ac_abs_builddir;;
1093 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1094 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1095 esac;;
1096esac
1097case $ac_abs_builddir in
1098.) ac_abs_srcdir=$ac_srcdir;;
1099*)
1100 case $ac_srcdir in
1101 .) ac_abs_srcdir=$ac_abs_builddir;;
1102 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1103 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1104 esac;;
1105esac
1106case $ac_abs_builddir in
1107.) ac_abs_top_srcdir=$ac_top_srcdir;;
1108*)
1109 case $ac_top_srcdir in
1110 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1111 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1112 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1113 esac;;
d15b04bd 1114esac
5d64ca4e 1115
42ecbf5e
DJ
1116 cd $ac_dir
1117 # Check for guested configure; otherwise get Cygnus style configure.
1118 if test -f $ac_srcdir/configure.gnu; then
1119 echo
1120 $SHELL $ac_srcdir/configure.gnu --help=recursive
1121 elif test -f $ac_srcdir/configure; then
1122 echo
1123 $SHELL $ac_srcdir/configure --help=recursive
1124 elif test -f $ac_srcdir/configure.ac ||
1125 test -f $ac_srcdir/configure.in; then
1126 echo
1127 $ac_configure --help
1128 else
1129 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1130 fi
7357c5b6 1131 cd $ac_popdir
42ecbf5e
DJ
1132 done
1133fi
5d64ca4e 1134
42ecbf5e
DJ
1135test -n "$ac_init_help" && exit 0
1136if $ac_init_version; then
1137 cat <<\_ACEOF
5d64ca4e 1138
42ecbf5e
DJ
1139Copyright (C) 2003 Free Software Foundation, Inc.
1140This configure script is free software; the Free Software Foundation
1141gives unlimited permission to copy, distribute and modify it.
1142_ACEOF
1143 exit 0
1144fi
1145exec 5>config.log
1146cat >&5 <<_ACEOF
1147This file contains any messages produced by compilers while
1148running configure, to aid debugging if configure makes a mistake.
429cc0ae 1149
42ecbf5e
DJ
1150It was created by $as_me, which was
1151generated by GNU Autoconf 2.59. Invocation command line was
252b5132 1152
42ecbf5e 1153 $ $0 $@
e5a52504 1154
42ecbf5e
DJ
1155_ACEOF
1156{
1157cat <<_ASUNAME
1158## --------- ##
1159## Platform. ##
1160## --------- ##
1161
1162hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1163uname -m = `(uname -m) 2>/dev/null || echo unknown`
1164uname -r = `(uname -r) 2>/dev/null || echo unknown`
1165uname -s = `(uname -s) 2>/dev/null || echo unknown`
1166uname -v = `(uname -v) 2>/dev/null || echo unknown`
1167
1168/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1169/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1170
1171/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1172/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1173/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1174hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1175/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1176/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1177/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1178
1179_ASUNAME
1180
1181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1182for as_dir in $PATH
1183do
1184 IFS=$as_save_IFS
1185 test -z "$as_dir" && as_dir=.
1186 echo "PATH: $as_dir"
1187done
e5a52504 1188
42ecbf5e 1189} >&5
ceae3e33 1190
42ecbf5e 1191cat >&5 <<_ACEOF
e5a52504 1192
42ecbf5e
DJ
1193
1194## ----------- ##
1195## Core tests. ##
1196## ----------- ##
1197
1198_ACEOF
1199
1200
1201# Keep a trace of the command line.
1202# Strip out --no-create and --no-recursion so they do not pile up.
1203# Strip out --silent because we don't want to record it for future runs.
1204# Also quote any args containing shell meta-characters.
1205# Make two passes to allow for proper duplicate-argument suppression.
1206ac_configure_args=
1207ac_configure_args0=
1208ac_configure_args1=
1209ac_sep=
1210ac_must_keep_next=false
1211for ac_pass in 1 2
1212do
1213 for ac_arg
1214 do
1215 case $ac_arg in
1216 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1217 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1218 | -silent | --silent | --silen | --sile | --sil)
1219 continue ;;
1220 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1221 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1222 esac
1223 case $ac_pass in
1224 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1225 2)
1226 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1227 if test $ac_must_keep_next = true; then
1228 ac_must_keep_next=false # Got value, back to normal.
1229 else
1230 case $ac_arg in
1231 *=* | --config-cache | -C | -disable-* | --disable-* \
1232 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1233 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1234 | -with-* | --with-* | -without-* | --without-* | --x)
1235 case "$ac_configure_args0 " in
1236 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1237 esac
1238 ;;
1239 -* ) ac_must_keep_next=true ;;
1240 esac
1241 fi
1242 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1243 # Get rid of the leading space.
1244 ac_sep=" "
1245 ;;
1246 esac
1247 done
1248done
1249$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1250$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1251
1252# When interrupted or exit'd, cleanup temporary files, and complete
1253# config.log. We remove comments because anyway the quotes in there
1254# would cause problems or look ugly.
1255# WARNING: Be sure not to use single quotes in there, as some shells,
1256# such as our DU 5.0 friend, will then `close' the trap.
1257trap 'exit_status=$?
1258 # Save into config.log some information that might help in debugging.
1259 {
1260 echo
1261
1262 cat <<\_ASBOX
1263## ---------------- ##
1264## Cache variables. ##
1265## ---------------- ##
1266_ASBOX
1267 echo
1268 # The following way of writing the cache mishandles newlines in values,
1269{
1270 (set) 2>&1 |
1271 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1272 *ac_space=\ *)
1273 sed -n \
1274 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1275 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1276 ;;
1277 *)
1278 sed -n \
1279 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1280 ;;
1281 esac;
1282}
1283 echo
1284
1285 cat <<\_ASBOX
1286## ----------------- ##
1287## Output variables. ##
1288## ----------------- ##
1289_ASBOX
1290 echo
1291 for ac_var in $ac_subst_vars
1292 do
1293 eval ac_val=$`echo $ac_var`
1294 echo "$ac_var='"'"'$ac_val'"'"'"
1295 done | sort
1296 echo
1297
1298 if test -n "$ac_subst_files"; then
1299 cat <<\_ASBOX
1300## ------------- ##
1301## Output files. ##
1302## ------------- ##
1303_ASBOX
1304 echo
1305 for ac_var in $ac_subst_files
1306 do
1307 eval ac_val=$`echo $ac_var`
1308 echo "$ac_var='"'"'$ac_val'"'"'"
1309 done | sort
1310 echo
1311 fi
1312
1313 if test -s confdefs.h; then
1314 cat <<\_ASBOX
1315## ----------- ##
1316## confdefs.h. ##
1317## ----------- ##
1318_ASBOX
1319 echo
1320 sed "/^$/d" confdefs.h | sort
1321 echo
1322 fi
1323 test "$ac_signal" != 0 &&
1324 echo "$as_me: caught signal $ac_signal"
1325 echo "$as_me: exit $exit_status"
1326 } >&5
1327 rm -f core *.core &&
1328 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1329 exit $exit_status
1330 ' 0
1331for ac_signal in 1 2 13 15; do
1332 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1333done
1334ac_signal=0
1335
1336# confdefs.h avoids OS command line length limits that DEFS can exceed.
1337rm -rf conftest* confdefs.h
1338# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1339echo >confdefs.h
1340
1341# Predefined preprocessor variables.
1342
1343cat >>confdefs.h <<_ACEOF
1344#define PACKAGE_NAME "$PACKAGE_NAME"
1345_ACEOF
1346
1347
1348cat >>confdefs.h <<_ACEOF
1349#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1350_ACEOF
1351
1352
1353cat >>confdefs.h <<_ACEOF
1354#define PACKAGE_VERSION "$PACKAGE_VERSION"
1355_ACEOF
1356
1357
1358cat >>confdefs.h <<_ACEOF
1359#define PACKAGE_STRING "$PACKAGE_STRING"
1360_ACEOF
1361
1362
1363cat >>confdefs.h <<_ACEOF
1364#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1365_ACEOF
1366
1367
1368# Let the site file select an alternate cache file if it wants to.
1369# Prefer explicitly selected file to automatically selected ones.
1370if test -z "$CONFIG_SITE"; then
1371 if test "x$prefix" != xNONE; then
1372 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1373 else
1374 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1375 fi
1376fi
1377for ac_site_file in $CONFIG_SITE; do
1378 if test -r "$ac_site_file"; then
1379 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1380echo "$as_me: loading site script $ac_site_file" >&6;}
1381 sed 's/^/| /' "$ac_site_file" >&5
1382 . "$ac_site_file"
1383 fi
1384done
1385
1386if test -r "$cache_file"; then
1387 # Some versions of bash will fail to source /dev/null (special
1388 # files actually), so we avoid doing that.
1389 if test -f "$cache_file"; then
1390 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1391echo "$as_me: loading cache $cache_file" >&6;}
1392 case $cache_file in
1393 [\\/]* | ?:[\\/]* ) . $cache_file;;
1394 *) . ./$cache_file;;
1395 esac
1396 fi
1397else
1398 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1399echo "$as_me: creating cache $cache_file" >&6;}
1400 >$cache_file
1401fi
1402
1403# Check that the precious variables saved in the cache have kept the same
1404# value.
1405ac_cache_corrupted=false
1406for ac_var in `(set) 2>&1 |
1407 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1408 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1409 eval ac_new_set=\$ac_env_${ac_var}_set
1410 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1411 eval ac_new_val="\$ac_env_${ac_var}_value"
1412 case $ac_old_set,$ac_new_set in
1413 set,)
1414 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1415echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1416 ac_cache_corrupted=: ;;
1417 ,set)
1418 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1419echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1420 ac_cache_corrupted=: ;;
1421 ,);;
1422 *)
1423 if test "x$ac_old_val" != "x$ac_new_val"; then
6194aaab
L
1424 # differences in whitespace do not lead to failure.
1425 ac_old_val_w=`echo x $ac_old_val`
1426 ac_new_val_w=`echo x $ac_new_val`
1427 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1428 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
42ecbf5e 1429echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
6194aaab
L
1430 ac_cache_corrupted=:
1431 else
1432 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1433echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1434 eval $ac_var=\$ac_old_val
1435 fi
1436 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1437echo "$as_me: former value: \`$ac_old_val'" >&2;}
1438 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1439echo "$as_me: current value: \`$ac_new_val'" >&2;}
42ecbf5e
DJ
1440 fi;;
1441 esac
1442 # Pass precious variables to config.status.
1443 if test "$ac_new_set" = set; then
1444 case $ac_new_val in
1445 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1446 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1447 *) ac_arg=$ac_var=$ac_new_val ;;
1448 esac
1449 case " $ac_configure_args " in
1450 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1451 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1452 esac
1453 fi
1454done
1455if $ac_cache_corrupted; then
7a283e07
RW
1456 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1457echo "$as_me: error: in \`$ac_pwd':" >&2;}
42ecbf5e
DJ
1458 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1459echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1460 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1461echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1462 { (exit 1); exit 1; }; }
1463fi
1464
1465ac_ext=c
1466ac_cpp='$CPP $CPPFLAGS'
1467ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1468ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1469ac_compiler_gnu=$ac_cv_c_compiler_gnu
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
7a283e07
RW
1487
1488
1489
42ecbf5e 1490
da594c4a 1491
42ecbf5e
DJ
1492
1493
1494ac_aux_dir=
1495for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1496 if test -f $ac_dir/install-sh; then
1497 ac_aux_dir=$ac_dir
1498 ac_install_sh="$ac_aux_dir/install-sh -c"
1499 break
1500 elif test -f $ac_dir/install.sh; then
1501 ac_aux_dir=$ac_dir
1502 ac_install_sh="$ac_aux_dir/install.sh -c"
1503 break
1504 elif test -f $ac_dir/shtool; then
1505 ac_aux_dir=$ac_dir
1506 ac_install_sh="$ac_aux_dir/shtool install -c"
1507 break
1508 fi
1509done
1510if test -z "$ac_aux_dir"; then
1511 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1512echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1513 { (exit 1); exit 1; }; }
1514fi
1515ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1516ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1517ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1518
1519# Make sure we can run config.sub.
1520$ac_config_sub sun4 >/dev/null 2>&1 ||
1521 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1522echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1523 { (exit 1); exit 1; }; }
1524
1525echo "$as_me:$LINENO: checking build system type" >&5
1526echo $ECHO_N "checking build system type... $ECHO_C" >&6
1527if test "${ac_cv_build+set}" = set; then
1528 echo $ECHO_N "(cached) $ECHO_C" >&6
1529else
1530 ac_cv_build_alias=$build_alias
1531test -z "$ac_cv_build_alias" &&
1532 ac_cv_build_alias=`$ac_config_guess`
1533test -z "$ac_cv_build_alias" &&
1534 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1535echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1536 { (exit 1); exit 1; }; }
1537ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1538 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1539echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1540 { (exit 1); exit 1; }; }
1541
1542fi
1543echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1544echo "${ECHO_T}$ac_cv_build" >&6
1545build=$ac_cv_build
1546build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1547build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1548build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1549
1550
1551echo "$as_me:$LINENO: checking host system type" >&5
1552echo $ECHO_N "checking host system type... $ECHO_C" >&6
1553if test "${ac_cv_host+set}" = set; then
1554 echo $ECHO_N "(cached) $ECHO_C" >&6
1555else
1556 ac_cv_host_alias=$host_alias
1557test -z "$ac_cv_host_alias" &&
1558 ac_cv_host_alias=$ac_cv_build_alias
1559ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1560 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1561echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1562 { (exit 1); exit 1; }; }
1563
1564fi
1565echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1566echo "${ECHO_T}$ac_cv_host" >&6
1567host=$ac_cv_host
1568host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1569host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1570host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1571
1572
1573echo "$as_me:$LINENO: checking target system type" >&5
1574echo $ECHO_N "checking target system type... $ECHO_C" >&6
1575if test "${ac_cv_target+set}" = set; then
1576 echo $ECHO_N "(cached) $ECHO_C" >&6
1577else
1578 ac_cv_target_alias=$target_alias
1579test "x$ac_cv_target_alias" = "x" &&
1580 ac_cv_target_alias=$ac_cv_host_alias
1581ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1582 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1583echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1584 { (exit 1); exit 1; }; }
1585
1586fi
1587echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1588echo "${ECHO_T}$ac_cv_target" >&6
1589target=$ac_cv_target
1590target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1591target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1592target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1593
1594
1595# The aliases save the names the user supplied, while $host etc.
1596# will get canonicalized.
1597test -n "$target_alias" &&
1598 test "$program_prefix$program_suffix$program_transform_name" = \
1599 NONENONEs,x,x, &&
1600 program_prefix=${target_alias}-
1601ac_ext=c
1602ac_cpp='$CPP $CPPFLAGS'
1603ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1604ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1605ac_compiler_gnu=$ac_cv_c_compiler_gnu
1606if test -n "$ac_tool_prefix"; then
1607 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1608set dummy ${ac_tool_prefix}gcc; ac_word=$2
1609echo "$as_me:$LINENO: checking for $ac_word" >&5
1610echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1611if test "${ac_cv_prog_CC+set}" = set; then
1612 echo $ECHO_N "(cached) $ECHO_C" >&6
1613else
1614 if test -n "$CC"; then
1615 ac_cv_prog_CC="$CC" # Let the user override the test.
1616else
1617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1618for as_dir in $PATH
1619do
1620 IFS=$as_save_IFS
1621 test -z "$as_dir" && as_dir=.
1622 for ac_exec_ext in '' $ac_executable_extensions; do
1623 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1624 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1626 break 2
1627 fi
1628done
1629done
1630
1631fi
1632fi
1633CC=$ac_cv_prog_CC
1634if test -n "$CC"; then
1635 echo "$as_me:$LINENO: result: $CC" >&5
1636echo "${ECHO_T}$CC" >&6
1637else
1638 echo "$as_me:$LINENO: result: no" >&5
1639echo "${ECHO_T}no" >&6
1640fi
1641
1642fi
1643if test -z "$ac_cv_prog_CC"; then
1644 ac_ct_CC=$CC
1645 # Extract the first word of "gcc", so it can be a program name with args.
1646set dummy gcc; ac_word=$2
1647echo "$as_me:$LINENO: checking for $ac_word" >&5
1648echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1649if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1650 echo $ECHO_N "(cached) $ECHO_C" >&6
1651else
1652 if test -n "$ac_ct_CC"; then
1653 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1654else
1655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1656for as_dir in $PATH
1657do
1658 IFS=$as_save_IFS
1659 test -z "$as_dir" && as_dir=.
1660 for ac_exec_ext in '' $ac_executable_extensions; do
1661 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1662 ac_cv_prog_ac_ct_CC="gcc"
1663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1664 break 2
1665 fi
1666done
1667done
1668
1669fi
1670fi
1671ac_ct_CC=$ac_cv_prog_ac_ct_CC
1672if test -n "$ac_ct_CC"; then
1673 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1674echo "${ECHO_T}$ac_ct_CC" >&6
1675else
1676 echo "$as_me:$LINENO: result: no" >&5
1677echo "${ECHO_T}no" >&6
1678fi
1679
1680 CC=$ac_ct_CC
1681else
1682 CC="$ac_cv_prog_CC"
1683fi
1684
1685if test -z "$CC"; then
1686 if test -n "$ac_tool_prefix"; then
1687 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1688set dummy ${ac_tool_prefix}cc; ac_word=$2
1689echo "$as_me:$LINENO: checking for $ac_word" >&5
1690echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1691if test "${ac_cv_prog_CC+set}" = set; then
1692 echo $ECHO_N "(cached) $ECHO_C" >&6
1693else
1694 if test -n "$CC"; then
1695 ac_cv_prog_CC="$CC" # Let the user override the test.
1696else
1697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1698for as_dir in $PATH
1699do
1700 IFS=$as_save_IFS
1701 test -z "$as_dir" && as_dir=.
1702 for ac_exec_ext in '' $ac_executable_extensions; do
1703 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1704 ac_cv_prog_CC="${ac_tool_prefix}cc"
1705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1706 break 2
1707 fi
1708done
1709done
1710
1711fi
1712fi
1713CC=$ac_cv_prog_CC
1714if test -n "$CC"; then
1715 echo "$as_me:$LINENO: result: $CC" >&5
1716echo "${ECHO_T}$CC" >&6
1717else
1718 echo "$as_me:$LINENO: result: no" >&5
1719echo "${ECHO_T}no" >&6
1720fi
1721
1722fi
1723if test -z "$ac_cv_prog_CC"; then
1724 ac_ct_CC=$CC
1725 # Extract the first word of "cc", so it can be a program name with args.
1726set dummy cc; ac_word=$2
1727echo "$as_me:$LINENO: checking for $ac_word" >&5
1728echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1729if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1730 echo $ECHO_N "(cached) $ECHO_C" >&6
1731else
1732 if test -n "$ac_ct_CC"; then
1733 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1734else
1735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1736for as_dir in $PATH
1737do
1738 IFS=$as_save_IFS
1739 test -z "$as_dir" && as_dir=.
1740 for ac_exec_ext in '' $ac_executable_extensions; do
1741 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1742 ac_cv_prog_ac_ct_CC="cc"
1743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1744 break 2
1745 fi
1746done
1747done
1748
1749fi
1750fi
1751ac_ct_CC=$ac_cv_prog_ac_ct_CC
1752if test -n "$ac_ct_CC"; then
1753 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1754echo "${ECHO_T}$ac_ct_CC" >&6
1755else
1756 echo "$as_me:$LINENO: result: no" >&5
1757echo "${ECHO_T}no" >&6
1758fi
1759
1760 CC=$ac_ct_CC
1761else
1762 CC="$ac_cv_prog_CC"
1763fi
1764
1765fi
1766if test -z "$CC"; then
1767 # Extract the first word of "cc", so it can be a program name with args.
1768set dummy cc; ac_word=$2
1769echo "$as_me:$LINENO: checking for $ac_word" >&5
1770echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1771if test "${ac_cv_prog_CC+set}" = set; then
1772 echo $ECHO_N "(cached) $ECHO_C" >&6
1773else
1774 if test -n "$CC"; then
1775 ac_cv_prog_CC="$CC" # Let the user override the test.
1776else
1777 ac_prog_rejected=no
1778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1779for as_dir in $PATH
1780do
1781 IFS=$as_save_IFS
1782 test -z "$as_dir" && as_dir=.
1783 for ac_exec_ext in '' $ac_executable_extensions; do
1784 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1785 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1786 ac_prog_rejected=yes
1787 continue
1788 fi
1789 ac_cv_prog_CC="cc"
1790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1791 break 2
1792 fi
1793done
1794done
1795
1796if test $ac_prog_rejected = yes; then
1797 # We found a bogon in the path, so make sure we never use it.
1798 set dummy $ac_cv_prog_CC
1799 shift
1800 if test $# != 0; then
1801 # We chose a different compiler from the bogus one.
1802 # However, it has the same basename, so the bogon will be chosen
1803 # first if we set CC to just the basename; use the full file name.
1804 shift
1805 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1806 fi
1807fi
1808fi
1809fi
1810CC=$ac_cv_prog_CC
1811if test -n "$CC"; then
1812 echo "$as_me:$LINENO: result: $CC" >&5
1813echo "${ECHO_T}$CC" >&6
1814else
1815 echo "$as_me:$LINENO: result: no" >&5
1816echo "${ECHO_T}no" >&6
1817fi
1818
1819fi
1820if test -z "$CC"; then
1821 if test -n "$ac_tool_prefix"; then
1822 for ac_prog in cl
1823 do
1824 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1825set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1826echo "$as_me:$LINENO: checking for $ac_word" >&5
1827echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1828if test "${ac_cv_prog_CC+set}" = set; then
1829 echo $ECHO_N "(cached) $ECHO_C" >&6
1830else
1831 if test -n "$CC"; then
1832 ac_cv_prog_CC="$CC" # Let the user override the test.
1833else
1834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1835for as_dir in $PATH
1836do
1837 IFS=$as_save_IFS
1838 test -z "$as_dir" && as_dir=.
1839 for ac_exec_ext in '' $ac_executable_extensions; do
1840 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1841 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1843 break 2
1844 fi
1845done
1846done
1847
1848fi
1849fi
1850CC=$ac_cv_prog_CC
1851if test -n "$CC"; then
1852 echo "$as_me:$LINENO: result: $CC" >&5
1853echo "${ECHO_T}$CC" >&6
1854else
1855 echo "$as_me:$LINENO: result: no" >&5
1856echo "${ECHO_T}no" >&6
1857fi
1858
1859 test -n "$CC" && break
1860 done
1861fi
1862if test -z "$CC"; then
1863 ac_ct_CC=$CC
1864 for ac_prog in cl
1865do
1866 # Extract the first word of "$ac_prog", so it can be a program name with args.
1867set dummy $ac_prog; ac_word=$2
1868echo "$as_me:$LINENO: checking for $ac_word" >&5
1869echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1870if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1871 echo $ECHO_N "(cached) $ECHO_C" >&6
1872else
1873 if test -n "$ac_ct_CC"; then
1874 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1875else
1876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1877for as_dir in $PATH
1878do
1879 IFS=$as_save_IFS
1880 test -z "$as_dir" && as_dir=.
1881 for ac_exec_ext in '' $ac_executable_extensions; do
1882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1883 ac_cv_prog_ac_ct_CC="$ac_prog"
1884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1885 break 2
1886 fi
1887done
1888done
1889
1890fi
1891fi
1892ac_ct_CC=$ac_cv_prog_ac_ct_CC
1893if test -n "$ac_ct_CC"; then
1894 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1895echo "${ECHO_T}$ac_ct_CC" >&6
1896else
1897 echo "$as_me:$LINENO: result: no" >&5
1898echo "${ECHO_T}no" >&6
1899fi
1900
1901 test -n "$ac_ct_CC" && break
1902done
1903
1904 CC=$ac_ct_CC
1905fi
1906
1907fi
1908
1909
7a283e07
RW
1910test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1911echo "$as_me: error: in \`$ac_pwd':" >&2;}
1912{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
42ecbf5e
DJ
1913See \`config.log' for more details." >&5
1914echo "$as_me: error: no acceptable C compiler found in \$PATH
1915See \`config.log' for more details." >&2;}
7a283e07 1916 { (exit 1); exit 1; }; }; }
42ecbf5e
DJ
1917
1918# Provide some information about the compiler.
1919echo "$as_me:$LINENO:" \
1920 "checking for C compiler version" >&5
1921ac_compiler=`set X $ac_compile; echo $2`
1922{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1923 (eval $ac_compiler --version </dev/null >&5) 2>&5
1924 ac_status=$?
1925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1926 (exit $ac_status); }
1927{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1928 (eval $ac_compiler -v </dev/null >&5) 2>&5
1929 ac_status=$?
1930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1931 (exit $ac_status); }
1932{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1933 (eval $ac_compiler -V </dev/null >&5) 2>&5
1934 ac_status=$?
1935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1936 (exit $ac_status); }
1937
1938cat >conftest.$ac_ext <<_ACEOF
1939/* confdefs.h. */
1940_ACEOF
1941cat confdefs.h >>conftest.$ac_ext
1942cat >>conftest.$ac_ext <<_ACEOF
1943/* end confdefs.h. */
1944
1945int
1946main ()
1947{
1948
1949 ;
1950 return 0;
1951}
1952_ACEOF
1953ac_clean_files_save=$ac_clean_files
1954ac_clean_files="$ac_clean_files a.out a.exe b.out"
1955# Try to create an executable without -o first, disregard a.out.
1956# It will help us diagnose broken compilers, and finding out an intuition
1957# of exeext.
1958echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1959echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1960ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1961if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1962 (eval $ac_link_default) 2>&5
1963 ac_status=$?
1964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1965 (exit $ac_status); }; then
1966 # Find the output, starting from the most likely. This scheme is
1967# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1968# resort.
1969
1970# Be careful to initialize this variable, since it used to be cached.
1971# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1972ac_cv_exeext=
1973# b.out is created by i960 compilers.
1974for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1975do
1976 test -f "$ac_file" || continue
1977 case $ac_file in
1978 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1979 ;;
1980 conftest.$ac_ext )
1981 # This is the source file.
1982 ;;
1983 [ab].out )
1984 # We found the default executable, but exeext='' is most
1985 # certainly right.
1986 break;;
1987 *.* )
1988 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1989 # FIXME: I believe we export ac_cv_exeext for Libtool,
1990 # but it would be cool to find out if it's true. Does anybody
1991 # maintain Libtool? --akim.
1992 export ac_cv_exeext
1993 break;;
1994 * )
1995 break;;
1996 esac
1997done
1998else
1999 echo "$as_me: failed program was:" >&5
2000sed 's/^/| /' conftest.$ac_ext >&5
2001
7a283e07
RW
2002{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2003echo "$as_me: error: in \`$ac_pwd':" >&2;}
42ecbf5e
DJ
2004{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2005See \`config.log' for more details." >&5
2006echo "$as_me: error: C compiler cannot create executables
2007See \`config.log' for more details." >&2;}
7a283e07 2008 { (exit 77); exit 77; }; }; }
42ecbf5e
DJ
2009fi
2010
2011ac_exeext=$ac_cv_exeext
2012echo "$as_me:$LINENO: result: $ac_file" >&5
2013echo "${ECHO_T}$ac_file" >&6
2014
2015# Check the compiler produces executables we can run. If not, either
2016# the compiler is broken, or we cross compile.
2017echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2018echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2019# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2020# If not cross compiling, check that we can run a simple program.
2021if test "$cross_compiling" != yes; then
2022 if { ac_try='./$ac_file'
2023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2024 (eval $ac_try) 2>&5
2025 ac_status=$?
2026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2027 (exit $ac_status); }; }; then
2028 cross_compiling=no
2029 else
2030 if test "$cross_compiling" = maybe; then
2031 cross_compiling=yes
2032 else
7a283e07
RW
2033 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2034echo "$as_me: error: in \`$ac_pwd':" >&2;}
2035{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
42ecbf5e
DJ
2036If you meant to cross compile, use \`--host'.
2037See \`config.log' for more details." >&5
2038echo "$as_me: error: cannot run C compiled programs.
2039If you meant to cross compile, use \`--host'.
2040See \`config.log' for more details." >&2;}
7a283e07 2041 { (exit 1); exit 1; }; }; }
42ecbf5e
DJ
2042 fi
2043 fi
2044fi
2045echo "$as_me:$LINENO: result: yes" >&5
2046echo "${ECHO_T}yes" >&6
2047
2048rm -f a.out a.exe conftest$ac_cv_exeext b.out
2049ac_clean_files=$ac_clean_files_save
2050# Check the compiler produces executables we can run. If not, either
2051# the compiler is broken, or we cross compile.
2052echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2053echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2054echo "$as_me:$LINENO: result: $cross_compiling" >&5
2055echo "${ECHO_T}$cross_compiling" >&6
2056
2057echo "$as_me:$LINENO: checking for suffix of executables" >&5
2058echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2059if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2060 (eval $ac_link) 2>&5
2061 ac_status=$?
2062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2063 (exit $ac_status); }; then
2064 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2065# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2066# work properly (i.e., refer to `conftest.exe'), while it won't with
2067# `rm'.
2068for ac_file in conftest.exe conftest conftest.*; do
2069 test -f "$ac_file" || continue
2070 case $ac_file in
2071 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2072 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2073 export ac_cv_exeext
2074 break;;
2075 * ) break;;
2076 esac
2077done
2078else
7a283e07
RW
2079 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2080echo "$as_me: error: in \`$ac_pwd':" >&2;}
2081{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
42ecbf5e
DJ
2082See \`config.log' for more details." >&5
2083echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2084See \`config.log' for more details." >&2;}
7a283e07 2085 { (exit 1); exit 1; }; }; }
42ecbf5e
DJ
2086fi
2087
2088rm -f conftest$ac_cv_exeext
2089echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2090echo "${ECHO_T}$ac_cv_exeext" >&6
2091
2092rm -f conftest.$ac_ext
2093EXEEXT=$ac_cv_exeext
2094ac_exeext=$EXEEXT
2095echo "$as_me:$LINENO: checking for suffix of object files" >&5
2096echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2097if test "${ac_cv_objext+set}" = set; then
2098 echo $ECHO_N "(cached) $ECHO_C" >&6
2099else
2100 cat >conftest.$ac_ext <<_ACEOF
2101/* confdefs.h. */
2102_ACEOF
2103cat confdefs.h >>conftest.$ac_ext
2104cat >>conftest.$ac_ext <<_ACEOF
2105/* end confdefs.h. */
2106
2107int
2108main ()
2109{
2110
2111 ;
2112 return 0;
2113}
2114_ACEOF
2115rm -f conftest.o conftest.obj
2116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2117 (eval $ac_compile) 2>&5
2118 ac_status=$?
2119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2120 (exit $ac_status); }; then
2121 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2122 case $ac_file in
2123 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2124 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2125 break;;
2126 esac
2127done
2128else
2129 echo "$as_me: failed program was:" >&5
2130sed 's/^/| /' conftest.$ac_ext >&5
2131
7a283e07
RW
2132{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2133echo "$as_me: error: in \`$ac_pwd':" >&2;}
42ecbf5e
DJ
2134{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2135See \`config.log' for more details." >&5
2136echo "$as_me: error: cannot compute suffix of object files: cannot compile
2137See \`config.log' for more details." >&2;}
7a283e07 2138 { (exit 1); exit 1; }; }; }
42ecbf5e
DJ
2139fi
2140
2141rm -f conftest.$ac_cv_objext conftest.$ac_ext
2142fi
2143echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2144echo "${ECHO_T}$ac_cv_objext" >&6
2145OBJEXT=$ac_cv_objext
2146ac_objext=$OBJEXT
2147echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2148echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2149if test "${ac_cv_c_compiler_gnu+set}" = set; then
2150 echo $ECHO_N "(cached) $ECHO_C" >&6
2151else
2152 cat >conftest.$ac_ext <<_ACEOF
2153/* confdefs.h. */
2154_ACEOF
2155cat confdefs.h >>conftest.$ac_ext
2156cat >>conftest.$ac_ext <<_ACEOF
2157/* end confdefs.h. */
2158
2159int
2160main ()
2161{
2162#ifndef __GNUC__
2163 choke me
2164#endif
2165
2166 ;
2167 return 0;
2168}
2169_ACEOF
2170rm -f conftest.$ac_objext
2171if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2172 (eval $ac_compile) 2>conftest.er1
2173 ac_status=$?
2174 grep -v '^ *+' conftest.er1 >conftest.err
2175 rm -f conftest.er1
2176 cat conftest.err >&5
2177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178 (exit $ac_status); } &&
7357c5b6
AM
2179 { ac_try='test -z "$ac_c_werror_flag"
2180 || test ! -s conftest.err'
42ecbf5e
DJ
2181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2182 (eval $ac_try) 2>&5
2183 ac_status=$?
2184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185 (exit $ac_status); }; } &&
2186 { ac_try='test -s conftest.$ac_objext'
2187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2188 (eval $ac_try) 2>&5
2189 ac_status=$?
2190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191 (exit $ac_status); }; }; then
2192 ac_compiler_gnu=yes
2193else
2194 echo "$as_me: failed program was:" >&5
2195sed 's/^/| /' conftest.$ac_ext >&5
2196
2197ac_compiler_gnu=no
2198fi
2199rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2200ac_cv_c_compiler_gnu=$ac_compiler_gnu
2201
2202fi
2203echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2204echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2205GCC=`test $ac_compiler_gnu = yes && echo yes`
2206ac_test_CFLAGS=${CFLAGS+set}
2207ac_save_CFLAGS=$CFLAGS
2208CFLAGS="-g"
2209echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2210echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2211if test "${ac_cv_prog_cc_g+set}" = set; then
2212 echo $ECHO_N "(cached) $ECHO_C" >&6
2213else
2214 cat >conftest.$ac_ext <<_ACEOF
2215/* confdefs.h. */
2216_ACEOF
2217cat confdefs.h >>conftest.$ac_ext
2218cat >>conftest.$ac_ext <<_ACEOF
2219/* end confdefs.h. */
2220
2221int
2222main ()
2223{
2224
2225 ;
2226 return 0;
2227}
2228_ACEOF
2229rm -f conftest.$ac_objext
2230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2231 (eval $ac_compile) 2>conftest.er1
2232 ac_status=$?
2233 grep -v '^ *+' conftest.er1 >conftest.err
2234 rm -f conftest.er1
2235 cat conftest.err >&5
2236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2237 (exit $ac_status); } &&
7357c5b6
AM
2238 { ac_try='test -z "$ac_c_werror_flag"
2239 || test ! -s conftest.err'
42ecbf5e
DJ
2240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2241 (eval $ac_try) 2>&5
2242 ac_status=$?
2243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244 (exit $ac_status); }; } &&
2245 { ac_try='test -s conftest.$ac_objext'
2246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2247 (eval $ac_try) 2>&5
2248 ac_status=$?
2249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2250 (exit $ac_status); }; }; then
2251 ac_cv_prog_cc_g=yes
2252else
2253 echo "$as_me: failed program was:" >&5
2254sed 's/^/| /' conftest.$ac_ext >&5
2255
2256ac_cv_prog_cc_g=no
2257fi
2258rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2259fi
2260echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2261echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2262if test "$ac_test_CFLAGS" = set; then
2263 CFLAGS=$ac_save_CFLAGS
2264elif test $ac_cv_prog_cc_g = yes; then
2265 if test "$GCC" = yes; then
2266 CFLAGS="-g -O2"
2267 else
2268 CFLAGS="-g"
2269 fi
2270else
2271 if test "$GCC" = yes; then
2272 CFLAGS="-O2"
2273 else
2274 CFLAGS=
2275 fi
2276fi
2277echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2278echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2279if test "${ac_cv_prog_cc_stdc+set}" = set; then
2280 echo $ECHO_N "(cached) $ECHO_C" >&6
2281else
2282 ac_cv_prog_cc_stdc=no
2283ac_save_CC=$CC
2284cat >conftest.$ac_ext <<_ACEOF
2285/* confdefs.h. */
2286_ACEOF
2287cat confdefs.h >>conftest.$ac_ext
2288cat >>conftest.$ac_ext <<_ACEOF
2289/* end confdefs.h. */
2290#include <stdarg.h>
2291#include <stdio.h>
2292#include <sys/types.h>
2293#include <sys/stat.h>
2294/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2295struct buf { int x; };
2296FILE * (*rcsopen) (struct buf *, struct stat *, int);
2297static char *e (p, i)
2298 char **p;
2299 int i;
2300{
2301 return p[i];
2302}
2303static char *f (char * (*g) (char **, int), char **p, ...)
2304{
2305 char *s;
2306 va_list v;
2307 va_start (v,p);
2308 s = g (p, va_arg (v,int));
2309 va_end (v);
2310 return s;
2311}
2312
2313/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2314 function prototypes and stuff, but not '\xHH' hex character constants.
2315 These don't provoke an error unfortunately, instead are silently treated
2316 as 'x'. The following induces an error, until -std1 is added to get
2317 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2318 array size at least. It's necessary to write '\x00'==0 to get something
2319 that's true only with -std1. */
2320int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2321
2322int test (int i, double x);
2323struct s1 {int (*f) (int a);};
2324struct s2 {int (*f) (double a);};
2325int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2326int argc;
2327char **argv;
2328int
2329main ()
2330{
2331return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2332 ;
2333 return 0;
2334}
2335_ACEOF
2336# Don't try gcc -ansi; that turns off useful extensions and
2337# breaks some systems' header files.
2338# AIX -qlanglvl=ansi
2339# Ultrix and OSF/1 -std1
2340# HP-UX 10.20 and later -Ae
2341# HP-UX older versions -Aa -D_HPUX_SOURCE
2342# SVR4 -Xc -D__EXTENSIONS__
2343for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2344do
2345 CC="$ac_save_CC $ac_arg"
2346 rm -f conftest.$ac_objext
2347if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2348 (eval $ac_compile) 2>conftest.er1
2349 ac_status=$?
2350 grep -v '^ *+' conftest.er1 >conftest.err
2351 rm -f conftest.er1
2352 cat conftest.err >&5
2353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354 (exit $ac_status); } &&
7357c5b6
AM
2355 { ac_try='test -z "$ac_c_werror_flag"
2356 || test ! -s conftest.err'
42ecbf5e
DJ
2357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2358 (eval $ac_try) 2>&5
2359 ac_status=$?
2360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361 (exit $ac_status); }; } &&
2362 { ac_try='test -s conftest.$ac_objext'
2363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2364 (eval $ac_try) 2>&5
2365 ac_status=$?
2366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367 (exit $ac_status); }; }; then
2368 ac_cv_prog_cc_stdc=$ac_arg
2369break
2370else
2371 echo "$as_me: failed program was:" >&5
2372sed 's/^/| /' conftest.$ac_ext >&5
2373
2374fi
2375rm -f conftest.err conftest.$ac_objext
2376done
2377rm -f conftest.$ac_ext conftest.$ac_objext
2378CC=$ac_save_CC
2379
2380fi
2381
2382case "x$ac_cv_prog_cc_stdc" in
2383 x|xno)
2384 echo "$as_me:$LINENO: result: none needed" >&5
2385echo "${ECHO_T}none needed" >&6 ;;
2386 *)
2387 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2388echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2389 CC="$CC $ac_cv_prog_cc_stdc" ;;
2390esac
2391
2392# Some people use a C++ compiler to compile C. Since we use `exit',
2393# in C++ we need to declare it. In case someone uses the same compiler
2394# for both compiling C and C++ we need to have the C++ compiler decide
2395# the declaration of exit, since it's the most demanding environment.
2396cat >conftest.$ac_ext <<_ACEOF
2397#ifndef __cplusplus
2398 choke me
2399#endif
2400_ACEOF
2401rm -f conftest.$ac_objext
2402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2403 (eval $ac_compile) 2>conftest.er1
2404 ac_status=$?
2405 grep -v '^ *+' conftest.er1 >conftest.err
2406 rm -f conftest.er1
2407 cat conftest.err >&5
2408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409 (exit $ac_status); } &&
7357c5b6
AM
2410 { ac_try='test -z "$ac_c_werror_flag"
2411 || test ! -s conftest.err'
42ecbf5e
DJ
2412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2413 (eval $ac_try) 2>&5
2414 ac_status=$?
2415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416 (exit $ac_status); }; } &&
2417 { ac_try='test -s conftest.$ac_objext'
2418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2419 (eval $ac_try) 2>&5
2420 ac_status=$?
2421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422 (exit $ac_status); }; }; then
2423 for ac_declaration in \
2424 '' \
2425 'extern "C" void std::exit (int) throw (); using std::exit;' \
2426 'extern "C" void std::exit (int); using std::exit;' \
2427 'extern "C" void exit (int) throw ();' \
2428 'extern "C" void exit (int);' \
2429 'void exit (int);'
2430do
2431 cat >conftest.$ac_ext <<_ACEOF
2432/* confdefs.h. */
2433_ACEOF
2434cat confdefs.h >>conftest.$ac_ext
2435cat >>conftest.$ac_ext <<_ACEOF
2436/* end confdefs.h. */
2437$ac_declaration
2438#include <stdlib.h>
2439int
2440main ()
2441{
2442exit (42);
2443 ;
2444 return 0;
2445}
2446_ACEOF
2447rm -f conftest.$ac_objext
2448if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2449 (eval $ac_compile) 2>conftest.er1
2450 ac_status=$?
2451 grep -v '^ *+' conftest.er1 >conftest.err
2452 rm -f conftest.er1
2453 cat conftest.err >&5
2454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455 (exit $ac_status); } &&
7357c5b6
AM
2456 { ac_try='test -z "$ac_c_werror_flag"
2457 || test ! -s conftest.err'
42ecbf5e
DJ
2458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2459 (eval $ac_try) 2>&5
2460 ac_status=$?
2461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462 (exit $ac_status); }; } &&
2463 { ac_try='test -s conftest.$ac_objext'
2464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2465 (eval $ac_try) 2>&5
2466 ac_status=$?
2467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468 (exit $ac_status); }; }; then
2469 :
2470else
2471 echo "$as_me: failed program was:" >&5
2472sed 's/^/| /' conftest.$ac_ext >&5
2473
2474continue
2475fi
2476rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2477 cat >conftest.$ac_ext <<_ACEOF
2478/* confdefs.h. */
2479_ACEOF
2480cat confdefs.h >>conftest.$ac_ext
2481cat >>conftest.$ac_ext <<_ACEOF
2482/* end confdefs.h. */
2483$ac_declaration
2484int
2485main ()
2486{
2487exit (42);
2488 ;
2489 return 0;
2490}
2491_ACEOF
2492rm -f conftest.$ac_objext
2493if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2494 (eval $ac_compile) 2>conftest.er1
2495 ac_status=$?
2496 grep -v '^ *+' conftest.er1 >conftest.err
2497 rm -f conftest.er1
2498 cat conftest.err >&5
2499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500 (exit $ac_status); } &&
7357c5b6
AM
2501 { ac_try='test -z "$ac_c_werror_flag"
2502 || test ! -s conftest.err'
42ecbf5e
DJ
2503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2504 (eval $ac_try) 2>&5
2505 ac_status=$?
2506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507 (exit $ac_status); }; } &&
2508 { ac_try='test -s conftest.$ac_objext'
2509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2510 (eval $ac_try) 2>&5
2511 ac_status=$?
2512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513 (exit $ac_status); }; }; then
2514 break
2515else
2516 echo "$as_me: failed program was:" >&5
2517sed 's/^/| /' conftest.$ac_ext >&5
2518
2519fi
2520rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2521done
2522rm -f conftest*
2523if test -n "$ac_declaration"; then
2524 echo '#ifdef __cplusplus' >>confdefs.h
2525 echo $ac_declaration >>confdefs.h
2526 echo '#endif' >>confdefs.h
2527fi
2528
2529else
2530 echo "$as_me: failed program was:" >&5
2531sed 's/^/| /' conftest.$ac_ext >&5
2532
2533fi
2534rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2535ac_ext=c
2536ac_cpp='$CPP $CPPFLAGS'
2537ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2538ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2539ac_compiler_gnu=$ac_cv_c_compiler_gnu
2540
2541
2542echo "$as_me:$LINENO: checking for library containing strerror" >&5
2543echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2544if test "${ac_cv_search_strerror+set}" = set; then
2545 echo $ECHO_N "(cached) $ECHO_C" >&6
2546else
2547 ac_func_search_save_LIBS=$LIBS
2548ac_cv_search_strerror=no
2549cat >conftest.$ac_ext <<_ACEOF
2550/* confdefs.h. */
2551_ACEOF
2552cat confdefs.h >>conftest.$ac_ext
2553cat >>conftest.$ac_ext <<_ACEOF
2554/* end confdefs.h. */
2555
2556/* Override any gcc2 internal prototype to avoid an error. */
2557#ifdef __cplusplus
2558extern "C"
2559#endif
2560/* We use char because int might match the return type of a gcc2
2561 builtin and then its argument prototype would still apply. */
2562char strerror ();
2563int
2564main ()
2565{
2566strerror ();
2567 ;
2568 return 0;
2569}
2570_ACEOF
2571rm -f conftest.$ac_objext conftest$ac_exeext
2572if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2573 (eval $ac_link) 2>conftest.er1
2574 ac_status=$?
2575 grep -v '^ *+' conftest.er1 >conftest.err
2576 rm -f conftest.er1
2577 cat conftest.err >&5
2578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579 (exit $ac_status); } &&
7357c5b6
AM
2580 { ac_try='test -z "$ac_c_werror_flag"
2581 || test ! -s conftest.err'
42ecbf5e
DJ
2582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2583 (eval $ac_try) 2>&5
2584 ac_status=$?
2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 (exit $ac_status); }; } &&
2587 { ac_try='test -s conftest$ac_exeext'
2588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2589 (eval $ac_try) 2>&5
2590 ac_status=$?
2591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592 (exit $ac_status); }; }; then
2593 ac_cv_search_strerror="none required"
2594else
2595 echo "$as_me: failed program was:" >&5
2596sed 's/^/| /' conftest.$ac_ext >&5
2597
2598fi
2599rm -f conftest.err conftest.$ac_objext \
2600 conftest$ac_exeext conftest.$ac_ext
2601if test "$ac_cv_search_strerror" = no; then
2602 for ac_lib in cposix; do
2603 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2604 cat >conftest.$ac_ext <<_ACEOF
2605/* confdefs.h. */
2606_ACEOF
2607cat confdefs.h >>conftest.$ac_ext
2608cat >>conftest.$ac_ext <<_ACEOF
2609/* end confdefs.h. */
2610
2611/* Override any gcc2 internal prototype to avoid an error. */
2612#ifdef __cplusplus
2613extern "C"
2614#endif
2615/* We use char because int might match the return type of a gcc2
2616 builtin and then its argument prototype would still apply. */
2617char strerror ();
2618int
2619main ()
2620{
2621strerror ();
2622 ;
2623 return 0;
2624}
2625_ACEOF
2626rm -f conftest.$ac_objext conftest$ac_exeext
2627if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2628 (eval $ac_link) 2>conftest.er1
2629 ac_status=$?
2630 grep -v '^ *+' conftest.er1 >conftest.err
2631 rm -f conftest.er1
2632 cat conftest.err >&5
2633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634 (exit $ac_status); } &&
7357c5b6
AM
2635 { ac_try='test -z "$ac_c_werror_flag"
2636 || test ! -s conftest.err'
42ecbf5e
DJ
2637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2638 (eval $ac_try) 2>&5
2639 ac_status=$?
2640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641 (exit $ac_status); }; } &&
2642 { ac_try='test -s conftest$ac_exeext'
2643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2644 (eval $ac_try) 2>&5
2645 ac_status=$?
2646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647 (exit $ac_status); }; }; then
2648 ac_cv_search_strerror="-l$ac_lib"
2649break
2650else
2651 echo "$as_me: failed program was:" >&5
2652sed 's/^/| /' conftest.$ac_ext >&5
2653
2654fi
2655rm -f conftest.err conftest.$ac_objext \
2656 conftest$ac_exeext conftest.$ac_ext
2657 done
2658fi
2659LIBS=$ac_func_search_save_LIBS
2660fi
2661echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2662echo "${ECHO_T}$ac_cv_search_strerror" >&6
2663if test "$ac_cv_search_strerror" != no; then
2664 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2665
2666fi
2667
2668
2669BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2670am__api_version="1.9"
2671# Find a good install program. We prefer a C program (faster),
2672# so one script is as good as another. But avoid the broken or
2673# incompatible versions:
2674# SysV /etc/install, /usr/sbin/install
2675# SunOS /usr/etc/install
2676# IRIX /sbin/install
2677# AIX /bin/install
2678# AmigaOS /C/install, which installs bootblocks on floppy discs
2679# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2680# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2681# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2682# OS/2's system install, which has a completely different semantic
2683# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 2684# Reject install programs that cannot install multiple files.
42ecbf5e
DJ
2685echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2686echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2687if test -z "$INSTALL"; then
2688if test "${ac_cv_path_install+set}" = set; then
2689 echo $ECHO_N "(cached) $ECHO_C" >&6
2690else
2691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2692for as_dir in $PATH
2693do
2694 IFS=$as_save_IFS
2695 test -z "$as_dir" && as_dir=.
2696 # Account for people who put trailing slashes in PATH elements.
2697case $as_dir/ in
2698 ./ | .// | /cC/* | \
2699 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2700 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2701 /usr/ucb/* ) ;;
2702 *)
2703 # OSF1 and SCO ODT 3.0 have their own names for install.
2704 # Don't use installbsd from OSF since it installs stuff as root
2705 # by default.
2706 for ac_prog in ginstall scoinst install; do
2707 for ac_exec_ext in '' $ac_executable_extensions; do
2708 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2709 if test $ac_prog = install &&
2710 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
2711 # AIX install. It has an incompatible calling convention.
2712 :
42ecbf5e
DJ
2713 elif test $ac_prog = install &&
2714 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2715 # program-specific install script used by HP pwplus--don't use.
2716 :
252b5132 2717 else
58c85be7
RW
2718 rm -rf conftest.one conftest.two conftest.dir
2719 echo one > conftest.one
2720 echo two > conftest.two
2721 mkdir conftest.dir
2722 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2723 test -s conftest.one && test -s conftest.two &&
2724 test -s conftest.dir/conftest.one &&
2725 test -s conftest.dir/conftest.two
2726 then
2727 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2728 break 3
2729 fi
252b5132
RH
2730 fi
2731 fi
d15b04bd 2732 done
42ecbf5e
DJ
2733 done
2734 ;;
2735esac
2736done
2737
58c85be7 2738rm -rf conftest.one conftest.two conftest.dir
252b5132
RH
2739
2740fi
2741 if test "${ac_cv_path_install+set}" = set; then
42ecbf5e 2742 INSTALL=$ac_cv_path_install
252b5132 2743 else
58c85be7
RW
2744 # As a last resort, use the slow shell script. Don't cache a
2745 # value for INSTALL within a source directory, because that will
252b5132 2746 # break other packages using the cache if that directory is
58c85be7 2747 # removed, or if the value is a relative name.
42ecbf5e 2748 INSTALL=$ac_install_sh
252b5132
RH
2749 fi
2750fi
42ecbf5e
DJ
2751echo "$as_me:$LINENO: result: $INSTALL" >&5
2752echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
2753
2754# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2755# It thinks the first close brace ends the variable substitution.
2756test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2757
42ecbf5e 2758test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
2759
2760test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2761
42ecbf5e
DJ
2762echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2763echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
252b5132
RH
2764# Just in case
2765sleep 1
42ecbf5e 2766echo timestamp > conftest.file
252b5132
RH
2767# Do `set' in a subshell so we don't clobber the current shell's
2768# arguments. Must try -L first in case configure is actually a
2769# symlink; some systems play weird games with the mod time of symlinks
2770# (eg FreeBSD returns the mod time of the symlink's containing
2771# directory).
2772if (
42ecbf5e 2773 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
252b5132
RH
2774 if test "$*" = "X"; then
2775 # -L didn't work.
42ecbf5e 2776 set X `ls -t $srcdir/configure conftest.file`
252b5132 2777 fi
42ecbf5e
DJ
2778 rm -f conftest.file
2779 if test "$*" != "X $srcdir/configure conftest.file" \
2780 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
2781
2782 # If neither matched, then we have a broken ls. This can happen
2783 # if, for instance, CONFIG_SHELL is bash and it inherits a
2784 # broken ls alias from the environment. This has actually
2785 # happened. Such a system could not be considered "sane".
42ecbf5e
DJ
2786 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2787alias in your environment" >&5
2788echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2789alias in your environment" >&2;}
2790 { (exit 1); exit 1; }; }
252b5132
RH
2791 fi
2792
42ecbf5e 2793 test "$2" = conftest.file
252b5132
RH
2794 )
2795then
2796 # Ok.
2797 :
2798else
42ecbf5e
DJ
2799 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2800Check your system clock" >&5
2801echo "$as_me: error: newly created file is older than distributed files!
2802Check your system clock" >&2;}
2803 { (exit 1); exit 1; }; }
2804fi
2805echo "$as_me:$LINENO: result: yes" >&5
2806echo "${ECHO_T}yes" >&6
2807test "$program_prefix" != NONE &&
2808 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2809# Use a double $ so make ignores it.
2810test "$program_suffix" != NONE &&
2811 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2812# Double any \ or $. echo might interpret backslashes.
2813# By default was `s,x,x', remove it if useless.
2814cat <<\_ACEOF >conftest.sed
2815s/[\\$]/&&/g;s/;s,x,x,$//
2816_ACEOF
2817program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2818rm conftest.sed
2819
2820# expand $ac_aux_dir to an absolute path
2821am_aux_dir=`cd $ac_aux_dir && pwd`
2822
2823test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2824# Use eval to expand $SHELL
2825if eval "$MISSING --run true"; then
2826 am_missing_run="$MISSING --run "
2827else
2828 am_missing_run=
2829 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2830echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2831fi
2832
2833if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2834 # We used to keeping the `.' as first argument, in order to
2835 # allow $(mkdir_p) to be used without argument. As in
2836 # $(mkdir_p) $(somedir)
2837 # where $(somedir) is conditionally defined. However this is wrong
2838 # for two reasons:
2839 # 1. if the package is installed by a user who cannot write `.'
2840 # make install will fail,
2841 # 2. the above comment should most certainly read
2842 # $(mkdir_p) $(DESTDIR)$(somedir)
2843 # so it does not work when $(somedir) is undefined and
2844 # $(DESTDIR) is not.
2845 # To support the latter case, we have to write
2846 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2847 # so the `.' trick is pointless.
2848 mkdir_p='mkdir -p --'
2849else
2850 # On NextStep and OpenStep, the `mkdir' command does not
2851 # recognize any option. It will interpret all options as
2852 # directories to create, and then abort because `.' already
2853 # exists.
2854 for d in ./-p ./--version;
2855 do
2856 test -d $d && rmdir $d
2857 done
2858 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2859 if test -f "$ac_aux_dir/mkinstalldirs"; then
2860 mkdir_p='$(mkinstalldirs)'
2861 else
2862 mkdir_p='$(install_sh) -d'
2863 fi
2864fi
2865
2866for ac_prog in gawk mawk nawk awk
2867do
2868 # Extract the first word of "$ac_prog", so it can be a program name with args.
2869set dummy $ac_prog; ac_word=$2
2870echo "$as_me:$LINENO: checking for $ac_word" >&5
2871echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2872if test "${ac_cv_prog_AWK+set}" = set; then
2873 echo $ECHO_N "(cached) $ECHO_C" >&6
2874else
2875 if test -n "$AWK"; then
2876 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2877else
2878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2879for as_dir in $PATH
2880do
2881 IFS=$as_save_IFS
2882 test -z "$as_dir" && as_dir=.
2883 for ac_exec_ext in '' $ac_executable_extensions; do
2884 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2885 ac_cv_prog_AWK="$ac_prog"
2886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2887 break 2
2888 fi
2889done
2890done
2891
2892fi
2893fi
2894AWK=$ac_cv_prog_AWK
2895if test -n "$AWK"; then
2896 echo "$as_me:$LINENO: result: $AWK" >&5
2897echo "${ECHO_T}$AWK" >&6
2898else
2899 echo "$as_me:$LINENO: result: no" >&5
2900echo "${ECHO_T}no" >&6
2901fi
2902
2903 test -n "$AWK" && break
2904done
2905
2906echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2907echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2908set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2909if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2910 echo $ECHO_N "(cached) $ECHO_C" >&6
2911else
2912 cat >conftest.make <<\_ACEOF
2913all:
2914 @echo 'ac_maketemp="$(MAKE)"'
2915_ACEOF
2916# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2917eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2918if test -n "$ac_maketemp"; then
2919 eval ac_cv_prog_make_${ac_make}_set=yes
2920else
2921 eval ac_cv_prog_make_${ac_make}_set=no
2922fi
2923rm -f conftest.make
2924fi
2925if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2926 echo "$as_me:$LINENO: result: yes" >&5
2927echo "${ECHO_T}yes" >&6
2928 SET_MAKE=
2929else
2930 echo "$as_me:$LINENO: result: no" >&5
2931echo "${ECHO_T}no" >&6
2932 SET_MAKE="MAKE=${MAKE-make}"
2933fi
2934
2935rm -rf .tst 2>/dev/null
2936mkdir .tst 2>/dev/null
2937if test -d .tst; then
2938 am__leading_dot=.
2939else
2940 am__leading_dot=_
2941fi
2942rmdir .tst 2>/dev/null
2943
2944DEPDIR="${am__leading_dot}deps"
2945
2946 ac_config_commands="$ac_config_commands depfiles"
2947
2948
2949am_make=${MAKE-make}
2950cat > confinc << 'END'
2951am__doit:
2952 @echo done
2953.PHONY: am__doit
2954END
2955# If we don't find an include directive, just comment out the code.
2956echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2957echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2958am__include="#"
2959am__quote=
2960_am_result=none
2961# First try GNU make style include.
2962echo "include confinc" > confmf
2963# We grep out `Entering directory' and `Leaving directory'
2964# messages which can occur if `w' ends up in MAKEFLAGS.
2965# In particular we don't look at `^make:' because GNU make might
2966# be invoked under some other name (usually "gmake"), in which
2967# case it prints its new name instead of `make'.
2968if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2969 am__include=include
2970 am__quote=
2971 _am_result=GNU
2972fi
2973# Now try BSD make style include.
2974if test "$am__include" = "#"; then
2975 echo '.include "confinc"' > confmf
2976 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2977 am__include=.include
2978 am__quote="\""
2979 _am_result=BSD
2980 fi
2981fi
2982
2983
2984echo "$as_me:$LINENO: result: $_am_result" >&5
2985echo "${ECHO_T}$_am_result" >&6
2986rm -f confinc confmf
2987
2988# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2989if test "${enable_dependency_tracking+set}" = set; then
2990 enableval="$enable_dependency_tracking"
2991
2992fi;
2993if test "x$enable_dependency_tracking" != xno; then
2994 am_depcomp="$ac_aux_dir/depcomp"
2995 AMDEPBACKSLASH='\'
2996fi
2997
2998
2999if test "x$enable_dependency_tracking" != xno; then
3000 AMDEP_TRUE=
3001 AMDEP_FALSE='#'
3002else
3003 AMDEP_TRUE='#'
3004 AMDEP_FALSE=
3005fi
3006
3007
3008
3009# test to see if srcdir already configured
3010if test "`cd $srcdir && pwd`" != "`pwd`" &&
3011 test -f $srcdir/config.status; then
3012 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3013echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3014 { (exit 1); exit 1; }; }
3015fi
3016
3017# test whether we have cygpath
3018if test -z "$CYGPATH_W"; then
3019 if (cygpath --version) >/dev/null 2>/dev/null; then
3020 CYGPATH_W='cygpath -w'
3021 else
3022 CYGPATH_W=echo
3023 fi
3024fi
3025
3026
3027# Define the identity of the package.
3028 PACKAGE=binutils
3029 VERSION=${BFD_VERSION}
3030
3031
3032cat >>confdefs.h <<_ACEOF
3033#define PACKAGE "$PACKAGE"
3034_ACEOF
3035
3036
3037cat >>confdefs.h <<_ACEOF
3038#define VERSION "$VERSION"
3039_ACEOF
3040
3041# Some tools Automake needs.
3042
3043ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3044
3045
3046AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3047
3048
3049AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3050
3051
3052AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3053
3054
3055MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3056
3057install_sh=${install_sh-"$am_aux_dir/install-sh"}
3058
3059# Installed binaries are usually stripped using `strip' when the user
3060# run `make install-strip'. However `strip' might not be the right
3061# tool to use in cross-compilation environments, therefore Automake
3062# will honor the `STRIP' environment variable to overrule this program.
3063if test "$cross_compiling" != no; then
3064 if test -n "$ac_tool_prefix"; then
3065 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3066set dummy ${ac_tool_prefix}strip; ac_word=$2
3067echo "$as_me:$LINENO: checking for $ac_word" >&5
3068echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3069if test "${ac_cv_prog_STRIP+set}" = set; then
3070 echo $ECHO_N "(cached) $ECHO_C" >&6
3071else
3072 if test -n "$STRIP"; then
3073 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3074else
3075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3076for as_dir in $PATH
3077do
3078 IFS=$as_save_IFS
3079 test -z "$as_dir" && as_dir=.
3080 for ac_exec_ext in '' $ac_executable_extensions; do
3081 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3082 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3084 break 2
3085 fi
3086done
3087done
3088
252b5132 3089fi
42ecbf5e
DJ
3090fi
3091STRIP=$ac_cv_prog_STRIP
3092if test -n "$STRIP"; then
3093 echo "$as_me:$LINENO: result: $STRIP" >&5
3094echo "${ECHO_T}$STRIP" >&6
d15b04bd 3095else
42ecbf5e
DJ
3096 echo "$as_me:$LINENO: result: no" >&5
3097echo "${ECHO_T}no" >&6
d15b04bd 3098fi
d15b04bd 3099
42ecbf5e
DJ
3100fi
3101if test -z "$ac_cv_prog_STRIP"; then
3102 ac_ct_STRIP=$STRIP
3103 # Extract the first word of "strip", so it can be a program name with args.
3104set dummy strip; ac_word=$2
3105echo "$as_me:$LINENO: checking for $ac_word" >&5
3106echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3107if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3108 echo $ECHO_N "(cached) $ECHO_C" >&6
d15b04bd 3109else
42ecbf5e
DJ
3110 if test -n "$ac_ct_STRIP"; then
3111 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
252b5132 3112else
42ecbf5e
DJ
3113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3114for as_dir in $PATH
3115do
3116 IFS=$as_save_IFS
3117 test -z "$as_dir" && as_dir=.
3118 for ac_exec_ext in '' $ac_executable_extensions; do
3119 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3120 ac_cv_prog_ac_ct_STRIP="strip"
3121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3122 break 2
3123 fi
3124done
3125done
3126
3127 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
252b5132 3128fi
252b5132 3129fi
42ecbf5e
DJ
3130ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3131if test -n "$ac_ct_STRIP"; then
3132 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3133echo "${ECHO_T}$ac_ct_STRIP" >&6
252b5132 3134else
42ecbf5e
DJ
3135 echo "$as_me:$LINENO: result: no" >&5
3136echo "${ECHO_T}no" >&6
252b5132
RH
3137fi
3138
42ecbf5e
DJ
3139 STRIP=$ac_ct_STRIP
3140else
3141 STRIP="$ac_cv_prog_STRIP"
3142fi
252b5132 3143
42ecbf5e
DJ
3144fi
3145INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
252b5132 3146
42ecbf5e
DJ
3147# We need awk for the "check" target. The system "awk" is bad on
3148# some platforms.
3149# Always define AMTAR for backward compatibility.
252b5132 3150
42ecbf5e 3151AMTAR=${AMTAR-"${am_missing_run}tar"}
252b5132 3152
42ecbf5e 3153am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
252b5132
RH
3154
3155
3156
252b5132 3157
42ecbf5e
DJ
3158depcc="$CC" am_compiler_list=
3159
3160echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3161echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3162if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3163 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3164else
42ecbf5e
DJ
3165 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3166 # We make a subdir and do the tests there. Otherwise we can end up
3167 # making bogus files that we don't know about and never remove. For
3168 # instance it was reported that on HP-UX the gcc test will end up
3169 # making a dummy file named `D' -- because `-MD' means `put the output
3170 # in D'.
3171 mkdir conftest.dir
3172 # Copy depcomp to subdir because otherwise we won't find it if we're
3173 # using a relative directory.
3174 cp "$am_depcomp" conftest.dir
3175 cd conftest.dir
3176 # We will build objects and dependencies in a subdirectory because
3177 # it helps to detect inapplicable dependency modes. For instance
3178 # both Tru64's cc and ICC support -MD to output dependencies as a
3179 # side effect of compilation, but ICC will put the dependencies in
3180 # the current directory while Tru64 will put them in the object
3181 # directory.
3182 mkdir sub
252b5132 3183
42ecbf5e
DJ
3184 am_cv_CC_dependencies_compiler_type=none
3185 if test "$am_compiler_list" = ""; then
3186 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3187 fi
3188 for depmode in $am_compiler_list; do
3189 # Setup a source with many dependencies, because some compilers
3190 # like to wrap large dependency lists on column 80 (with \), and
3191 # we should not choose a depcomp mode which is confused by this.
3192 #
3193 # We need to recreate these files for each test, as the compiler may
3194 # overwrite some of them when testing with obscure command lines.
3195 # This happens at least with the AIX C compiler.
3196 : > sub/conftest.c
3197 for i in 1 2 3 4 5 6; do
3198 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3199 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3200 # Solaris 8's {/usr,}/bin/sh.
3201 touch sub/conftst$i.h
3202 done
3203 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3204
3205 case $depmode in
3206 nosideeffect)
3207 # after this tag, mechanisms are not by side-effect, so they'll
3208 # only be used when explicitly requested
3209 if test "x$enable_dependency_tracking" = xyes; then
3210 continue
3211 else
3212 break
3213 fi
3214 ;;
3215 none) break ;;
3216 esac
3217 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3218 # mode. It turns out that the SunPro C++ compiler does not properly
3219 # handle `-M -o', and we need to detect this.
3220 if depmode=$depmode \
3221 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3222 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3223 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3224 >/dev/null 2>conftest.err &&
3225 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3226 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3227 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3228 # icc doesn't choke on unknown options, it will just issue warnings
3229 # or remarks (even with -Werror). So we grep stderr for any message
3230 # that says an option was ignored or not supported.
3231 # When given -MP, icc 7.0 and 7.1 complain thusly:
3232 # icc: Command line warning: ignoring option '-M'; no argument required
3233 # The diagnosis changed in icc 8.0:
3234 # icc: Command line remark: option '-MP' not supported
3235 if (grep 'ignoring option' conftest.err ||
3236 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3237 am_cv_CC_dependencies_compiler_type=$depmode
3238 break
3239 fi
3240 fi
3241 done
3242
3243 cd ..
3244 rm -rf conftest.dir
252b5132 3245else
42ecbf5e 3246 am_cv_CC_dependencies_compiler_type=none
252b5132
RH
3247fi
3248
252b5132 3249fi
42ecbf5e
DJ
3250echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3251echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3252CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3253
3254
252b5132 3255
42ecbf5e
DJ
3256if
3257 test "x$enable_dependency_tracking" != xno \
3258 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3259 am__fastdepCC_TRUE=
3260 am__fastdepCC_FALSE='#'
252b5132 3261else
42ecbf5e
DJ
3262 am__fastdepCC_TRUE='#'
3263 am__fastdepCC_FALSE=
252b5132
RH
3264fi
3265
3266
3267
42ecbf5e 3268
d45dc31f
SE
3269ac_ext=c
3270ac_cpp='$CPP $CPPFLAGS'
3271ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3272ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3273ac_compiler_gnu=$ac_cv_c_compiler_gnu
3274if test -n "$ac_tool_prefix"; then
3275 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3276set dummy ${ac_tool_prefix}gcc; ac_word=$2
3277echo "$as_me:$LINENO: checking for $ac_word" >&5
3278echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3279if test "${ac_cv_prog_CC+set}" = set; then
3280 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3281else
d45dc31f
SE
3282 if test -n "$CC"; then
3283 ac_cv_prog_CC="$CC" # Let the user override the test.
1a09a22c 3284else
d45dc31f
SE
3285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3286for as_dir in $PATH
3287do
3288 IFS=$as_save_IFS
3289 test -z "$as_dir" && as_dir=.
3290 for ac_exec_ext in '' $ac_executable_extensions; do
3291 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3292 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3294 break 2
3295 fi
3296done
3297done
ceae3e33 3298
d45dc31f
SE
3299fi
3300fi
3301CC=$ac_cv_prog_CC
3302if test -n "$CC"; then
3303 echo "$as_me:$LINENO: result: $CC" >&5
3304echo "${ECHO_T}$CC" >&6
252b5132 3305else
d45dc31f
SE
3306 echo "$as_me:$LINENO: result: no" >&5
3307echo "${ECHO_T}no" >&6
252b5132 3308fi
d45dc31f
SE
3309
3310fi
3311if test -z "$ac_cv_prog_CC"; then
3312 ac_ct_CC=$CC
3313 # Extract the first word of "gcc", so it can be a program name with args.
3314set dummy gcc; ac_word=$2
3315echo "$as_me:$LINENO: checking for $ac_word" >&5
3316echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3317if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
42ecbf5e 3318 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3319else
d45dc31f
SE
3320 if test -n "$ac_ct_CC"; then
3321 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
252b5132 3322else
d45dc31f
SE
3323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3324for as_dir in $PATH
3325do
3326 IFS=$as_save_IFS
3327 test -z "$as_dir" && as_dir=.
3328 for ac_exec_ext in '' $ac_executable_extensions; do
3329 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3330 ac_cv_prog_ac_ct_CC="gcc"
3331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3332 break 2
3333 fi
3334done
3335done
3336
252b5132
RH
3337fi
3338fi
d45dc31f
SE
3339ac_ct_CC=$ac_cv_prog_ac_ct_CC
3340if test -n "$ac_ct_CC"; then
3341 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3342echo "${ECHO_T}$ac_ct_CC" >&6
252b5132 3343else
42ecbf5e
DJ
3344 echo "$as_me:$LINENO: result: no" >&5
3345echo "${ECHO_T}no" >&6
252b5132 3346fi
d45dc31f
SE
3347
3348 CC=$ac_ct_CC
3349else
3350 CC="$ac_cv_prog_CC"
3351fi
3352
3353if test -z "$CC"; then
3354 if test -n "$ac_tool_prefix"; then
3355 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3356set dummy ${ac_tool_prefix}cc; ac_word=$2
3357echo "$as_me:$LINENO: checking for $ac_word" >&5
3358echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3359if test "${ac_cv_prog_CC+set}" = set; then
42ecbf5e 3360 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3361else
d45dc31f
SE
3362 if test -n "$CC"; then
3363 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 3364else
d45dc31f
SE
3365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3366for as_dir in $PATH
3367do
3368 IFS=$as_save_IFS
3369 test -z "$as_dir" && as_dir=.
3370 for ac_exec_ext in '' $ac_executable_extensions; do
3371 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3372 ac_cv_prog_CC="${ac_tool_prefix}cc"
3373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3374 break 2
3375 fi
3376done
3377done
3378
252b5132
RH
3379fi
3380fi
d45dc31f
SE
3381CC=$ac_cv_prog_CC
3382if test -n "$CC"; then
3383 echo "$as_me:$LINENO: result: $CC" >&5
3384echo "${ECHO_T}$CC" >&6
ac48eca1 3385else
d45dc31f
SE
3386 echo "$as_me:$LINENO: result: no" >&5
3387echo "${ECHO_T}no" >&6
ac48eca1 3388fi
ac48eca1 3389
d45dc31f
SE
3390fi
3391if test -z "$ac_cv_prog_CC"; then
3392 ac_ct_CC=$CC
3393 # Extract the first word of "cc", so it can be a program name with args.
3394set dummy cc; ac_word=$2
3395echo "$as_me:$LINENO: checking for $ac_word" >&5
3396echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3397if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
42ecbf5e 3398 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3399else
d45dc31f
SE
3400 if test -n "$ac_ct_CC"; then
3401 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
252b5132 3402else
d45dc31f
SE
3403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3404for as_dir in $PATH
3405do
3406 IFS=$as_save_IFS
3407 test -z "$as_dir" && as_dir=.
3408 for ac_exec_ext in '' $ac_executable_extensions; do
3409 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3410 ac_cv_prog_ac_ct_CC="cc"
3411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3412 break 2
3413 fi
3414done
3415done
3416
252b5132 3417fi
d45dc31f
SE
3418fi
3419ac_ct_CC=$ac_cv_prog_ac_ct_CC
3420if test -n "$ac_ct_CC"; then
3421 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3422echo "${ECHO_T}$ac_ct_CC" >&6
3423else
3424 echo "$as_me:$LINENO: result: no" >&5
3425echo "${ECHO_T}no" >&6
252b5132
RH
3426fi
3427
d45dc31f
SE
3428 CC=$ac_ct_CC
3429else
3430 CC="$ac_cv_prog_CC"
3431fi
252b5132 3432
d45dc31f
SE
3433fi
3434if test -z "$CC"; then
3435 # Extract the first word of "cc", so it can be a program name with args.
3436set dummy cc; ac_word=$2
3437echo "$as_me:$LINENO: checking for $ac_word" >&5
3438echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3439if test "${ac_cv_prog_CC+set}" = set; then
3440 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3441else
d45dc31f
SE
3442 if test -n "$CC"; then
3443 ac_cv_prog_CC="$CC" # Let the user override the test.
3444else
3445 ac_prog_rejected=no
3446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3447for as_dir in $PATH
3448do
3449 IFS=$as_save_IFS
3450 test -z "$as_dir" && as_dir=.
3451 for ac_exec_ext in '' $ac_executable_extensions; do
3452 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3453 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3454 ac_prog_rejected=yes
3455 continue
3456 fi
3457 ac_cv_prog_CC="cc"
3458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3459 break 2
3460 fi
3461done
3462done
3463
3464if test $ac_prog_rejected = yes; then
3465 # We found a bogon in the path, so make sure we never use it.
3466 set dummy $ac_cv_prog_CC
3467 shift
3468 if test $# != 0; then
3469 # We chose a different compiler from the bogus one.
3470 # However, it has the same basename, so the bogon will be chosen
3471 # first if we set CC to just the basename; use the full file name.
3472 shift
3473 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3474 fi
3475fi
3476fi
3477fi
3478CC=$ac_cv_prog_CC
3479if test -n "$CC"; then
3480 echo "$as_me:$LINENO: result: $CC" >&5
3481echo "${ECHO_T}$CC" >&6
3482else
3483 echo "$as_me:$LINENO: result: no" >&5
3484echo "${ECHO_T}no" >&6
252b5132
RH
3485fi
3486
d45dc31f
SE
3487fi
3488if test -z "$CC"; then
3489 if test -n "$ac_tool_prefix"; then
3490 for ac_prog in cl
3491 do
3492 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3493set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3494echo "$as_me:$LINENO: checking for $ac_word" >&5
3495echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3496if test "${ac_cv_prog_CC+set}" = set; then
42ecbf5e 3497 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3498else
d45dc31f
SE
3499 if test -n "$CC"; then
3500 ac_cv_prog_CC="$CC" # Let the user override the test.
3501else
3502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3503for as_dir in $PATH
3504do
3505 IFS=$as_save_IFS
3506 test -z "$as_dir" && as_dir=.
3507 for ac_exec_ext in '' $ac_executable_extensions; do
3508 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3509 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3511 break 2
3512 fi
3513done
3514done
ac48eca1 3515
d45dc31f
SE
3516fi
3517fi
3518CC=$ac_cv_prog_CC
3519if test -n "$CC"; then
3520 echo "$as_me:$LINENO: result: $CC" >&5
3521echo "${ECHO_T}$CC" >&6
3522else
3523 echo "$as_me:$LINENO: result: no" >&5
3524echo "${ECHO_T}no" >&6
3525fi
ac48eca1 3526
d45dc31f
SE
3527 test -n "$CC" && break
3528 done
3529fi
3530if test -z "$CC"; then
3531 ac_ct_CC=$CC
3532 for ac_prog in cl
3533do
3534 # Extract the first word of "$ac_prog", so it can be a program name with args.
3535set dummy $ac_prog; ac_word=$2
3536echo "$as_me:$LINENO: checking for $ac_word" >&5
3537echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3538if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3539 echo $ECHO_N "(cached) $ECHO_C" >&6
3540else
3541 if test -n "$ac_ct_CC"; then
3542 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3543else
3544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3545for as_dir in $PATH
3546do
3547 IFS=$as_save_IFS
3548 test -z "$as_dir" && as_dir=.
3549 for ac_exec_ext in '' $ac_executable_extensions; do
3550 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3551 ac_cv_prog_ac_ct_CC="$ac_prog"
3552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3553 break 2
3554 fi
3555done
3556done
ac48eca1 3557
d45dc31f
SE
3558fi
3559fi
3560ac_ct_CC=$ac_cv_prog_ac_ct_CC
3561if test -n "$ac_ct_CC"; then
3562 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3563echo "${ECHO_T}$ac_ct_CC" >&6
3564else
3565 echo "$as_me:$LINENO: result: no" >&5
3566echo "${ECHO_T}no" >&6
3567fi
ac48eca1 3568
d45dc31f
SE
3569 test -n "$ac_ct_CC" && break
3570done
ac48eca1 3571
d45dc31f
SE
3572 CC=$ac_ct_CC
3573fi
ac48eca1
AO
3574
3575fi
ac48eca1 3576
ac48eca1 3577
7a283e07
RW
3578test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3579echo "$as_me: error: in \`$ac_pwd':" >&2;}
3580{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
d45dc31f
SE
3581See \`config.log' for more details." >&5
3582echo "$as_me: error: no acceptable C compiler found in \$PATH
3583See \`config.log' for more details." >&2;}
7a283e07 3584 { (exit 1); exit 1; }; }; }
ac48eca1 3585
d45dc31f
SE
3586# Provide some information about the compiler.
3587echo "$as_me:$LINENO:" \
3588 "checking for C compiler version" >&5
3589ac_compiler=`set X $ac_compile; echo $2`
3590{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3591 (eval $ac_compiler --version </dev/null >&5) 2>&5
3592 ac_status=$?
3593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594 (exit $ac_status); }
3595{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3596 (eval $ac_compiler -v </dev/null >&5) 2>&5
3597 ac_status=$?
3598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599 (exit $ac_status); }
3600{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3601 (eval $ac_compiler -V </dev/null >&5) 2>&5
3602 ac_status=$?
3603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604 (exit $ac_status); }
ac48eca1 3605
d45dc31f
SE
3606echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3607echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3608if test "${ac_cv_c_compiler_gnu+set}" = set; then
bdcfeba5
NC
3609 echo $ECHO_N "(cached) $ECHO_C" >&6
3610else
d45dc31f
SE
3611 cat >conftest.$ac_ext <<_ACEOF
3612/* confdefs.h. */
3613_ACEOF
3614cat confdefs.h >>conftest.$ac_ext
3615cat >>conftest.$ac_ext <<_ACEOF
3616/* end confdefs.h. */
bdcfeba5 3617
d45dc31f
SE
3618int
3619main ()
3620{
3621#ifndef __GNUC__
3622 choke me
3623#endif
bdcfeba5 3624
d45dc31f
SE
3625 ;
3626 return 0;
3627}
3628_ACEOF
3629rm -f conftest.$ac_objext
3630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3631 (eval $ac_compile) 2>conftest.er1
3632 ac_status=$?
3633 grep -v '^ *+' conftest.er1 >conftest.err
3634 rm -f conftest.er1
3635 cat conftest.err >&5
3636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3637 (exit $ac_status); } &&
7357c5b6
AM
3638 { ac_try='test -z "$ac_c_werror_flag"
3639 || test ! -s conftest.err'
d45dc31f
SE
3640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3641 (eval $ac_try) 2>&5
3642 ac_status=$?
3643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3644 (exit $ac_status); }; } &&
3645 { ac_try='test -s conftest.$ac_objext'
3646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3647 (eval $ac_try) 2>&5
3648 ac_status=$?
3649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650 (exit $ac_status); }; }; then
3651 ac_compiler_gnu=yes
3652else
3653 echo "$as_me: failed program was:" >&5
3654sed 's/^/| /' conftest.$ac_ext >&5
bdcfeba5 3655
d45dc31f 3656ac_compiler_gnu=no
bdcfeba5 3657fi
d45dc31f
SE
3658rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3659ac_cv_c_compiler_gnu=$ac_compiler_gnu
bdcfeba5 3660
bdcfeba5 3661fi
d45dc31f
SE
3662echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3663echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3664GCC=`test $ac_compiler_gnu = yes && echo yes`
3665ac_test_CFLAGS=${CFLAGS+set}
3666ac_save_CFLAGS=$CFLAGS
3667CFLAGS="-g"
3668echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3669echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3670if test "${ac_cv_prog_cc_g+set}" = set; then
42ecbf5e 3671 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3672else
d45dc31f
SE
3673 cat >conftest.$ac_ext <<_ACEOF
3674/* confdefs.h. */
3675_ACEOF
3676cat confdefs.h >>conftest.$ac_ext
3677cat >>conftest.$ac_ext <<_ACEOF
3678/* end confdefs.h. */
ac48eca1 3679
d45dc31f
SE
3680int
3681main ()
3682{
ac48eca1 3683
d45dc31f
SE
3684 ;
3685 return 0;
3686}
3687_ACEOF
3688rm -f conftest.$ac_objext
3689if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3690 (eval $ac_compile) 2>conftest.er1
3691 ac_status=$?
3692 grep -v '^ *+' conftest.er1 >conftest.err
3693 rm -f conftest.er1
3694 cat conftest.err >&5
3695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696 (exit $ac_status); } &&
7357c5b6
AM
3697 { ac_try='test -z "$ac_c_werror_flag"
3698 || test ! -s conftest.err'
d45dc31f
SE
3699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3700 (eval $ac_try) 2>&5
3701 ac_status=$?
3702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703 (exit $ac_status); }; } &&
3704 { ac_try='test -s conftest.$ac_objext'
3705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3706 (eval $ac_try) 2>&5
3707 ac_status=$?
3708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709 (exit $ac_status); }; }; then
3710 ac_cv_prog_cc_g=yes
ac48eca1 3711else
d45dc31f
SE
3712 echo "$as_me: failed program was:" >&5
3713sed 's/^/| /' conftest.$ac_ext >&5
ac48eca1 3714
d45dc31f 3715ac_cv_prog_cc_g=no
ac48eca1 3716fi
d45dc31f 3717rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ac48eca1 3718fi
d45dc31f
SE
3719echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3720echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3721if test "$ac_test_CFLAGS" = set; then
3722 CFLAGS=$ac_save_CFLAGS
3723elif test $ac_cv_prog_cc_g = yes; then
3724 if test "$GCC" = yes; then
3725 CFLAGS="-g -O2"
ac48eca1 3726 else
d45dc31f 3727 CFLAGS="-g"
42ecbf5e 3728 fi
ac48eca1 3729else
d45dc31f
SE
3730 if test "$GCC" = yes; then
3731 CFLAGS="-O2"
3732 else
3733 CFLAGS=
42ecbf5e 3734 fi
ac48eca1 3735fi
d45dc31f
SE
3736echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3737echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3738if test "${ac_cv_prog_cc_stdc+set}" = set; then
3739 echo $ECHO_N "(cached) $ECHO_C" >&6
3740else
3741 ac_cv_prog_cc_stdc=no
3742ac_save_CC=$CC
3743cat >conftest.$ac_ext <<_ACEOF
42ecbf5e
DJ
3744/* confdefs.h. */
3745_ACEOF
3746cat confdefs.h >>conftest.$ac_ext
3747cat >>conftest.$ac_ext <<_ACEOF
3748/* end confdefs.h. */
d45dc31f
SE
3749#include <stdarg.h>
3750#include <stdio.h>
3751#include <sys/types.h>
3752#include <sys/stat.h>
3753/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3754struct buf { int x; };
3755FILE * (*rcsopen) (struct buf *, struct stat *, int);
3756static char *e (p, i)
3757 char **p;
3758 int i;
3759{
3760 return p[i];
3761}
3762static char *f (char * (*g) (char **, int), char **p, ...)
3763{
3764 char *s;
3765 va_list v;
3766 va_start (v,p);
3767 s = g (p, va_arg (v,int));
3768 va_end (v);
3769 return s;
3770}
3771
3772/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3773 function prototypes and stuff, but not '\xHH' hex character constants.
3774 These don't provoke an error unfortunately, instead are silently treated
3775 as 'x'. The following induces an error, until -std1 is added to get
3776 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3777 array size at least. It's necessary to write '\x00'==0 to get something
3778 that's true only with -std1. */
3779int osf4_cc_array ['\x00' == 0 ? 1 : -1];
252b5132 3780
d45dc31f
SE
3781int test (int i, double x);
3782struct s1 {int (*f) (int a);};
3783struct s2 {int (*f) (double a);};
3784int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3785int argc;
3786char **argv;
42ecbf5e
DJ
3787int
3788main ()
3789{
d45dc31f 3790return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
42ecbf5e
DJ
3791 ;
3792 return 0;
3793}
3794_ACEOF
d45dc31f
SE
3795# Don't try gcc -ansi; that turns off useful extensions and
3796# breaks some systems' header files.
3797# AIX -qlanglvl=ansi
3798# Ultrix and OSF/1 -std1
3799# HP-UX 10.20 and later -Ae
3800# HP-UX older versions -Aa -D_HPUX_SOURCE
3801# SVR4 -Xc -D__EXTENSIONS__
3802for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3803do
3804 CC="$ac_save_CC $ac_arg"
3805 rm -f conftest.$ac_objext
3806if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3807 (eval $ac_compile) 2>conftest.er1
42ecbf5e
DJ
3808 ac_status=$?
3809 grep -v '^ *+' conftest.er1 >conftest.err
3810 rm -f conftest.er1
3811 cat conftest.err >&5
3812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813 (exit $ac_status); } &&
7357c5b6
AM
3814 { ac_try='test -z "$ac_c_werror_flag"
3815 || test ! -s conftest.err'
42ecbf5e
DJ
3816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3817 (eval $ac_try) 2>&5
3818 ac_status=$?
3819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820 (exit $ac_status); }; } &&
d45dc31f 3821 { ac_try='test -s conftest.$ac_objext'
42ecbf5e
DJ
3822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3823 (eval $ac_try) 2>&5
3824 ac_status=$?
3825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826 (exit $ac_status); }; }; then
d45dc31f
SE
3827 ac_cv_prog_cc_stdc=$ac_arg
3828break
252b5132 3829else
42ecbf5e
DJ
3830 echo "$as_me: failed program was:" >&5
3831sed 's/^/| /' conftest.$ac_ext >&5
3832
252b5132 3833fi
d45dc31f
SE
3834rm -f conftest.err conftest.$ac_objext
3835done
3836rm -f conftest.$ac_ext conftest.$ac_objext
3837CC=$ac_save_CC
ac48eca1 3838
252b5132 3839fi
252b5132 3840
d45dc31f
SE
3841case "x$ac_cv_prog_cc_stdc" in
3842 x|xno)
3843 echo "$as_me:$LINENO: result: none needed" >&5
3844echo "${ECHO_T}none needed" >&6 ;;
3845 *)
3846 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3847echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3848 CC="$CC $ac_cv_prog_cc_stdc" ;;
252b5132
RH
3849esac
3850
d45dc31f
SE
3851# Some people use a C++ compiler to compile C. Since we use `exit',
3852# in C++ we need to declare it. In case someone uses the same compiler
3853# for both compiling C and C++ we need to have the C++ compiler decide
3854# the declaration of exit, since it's the most demanding environment.
3855cat >conftest.$ac_ext <<_ACEOF
3856#ifndef __cplusplus
3857 choke me
3858#endif
42ecbf5e 3859_ACEOF
d45dc31f
SE
3860rm -f conftest.$ac_objext
3861if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3862 (eval $ac_compile) 2>conftest.er1
3863 ac_status=$?
3864 grep -v '^ *+' conftest.er1 >conftest.err
3865 rm -f conftest.er1
3866 cat conftest.err >&5
3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868 (exit $ac_status); } &&
7357c5b6
AM
3869 { ac_try='test -z "$ac_c_werror_flag"
3870 || test ! -s conftest.err'
d45dc31f
SE
3871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3872 (eval $ac_try) 2>&5
3873 ac_status=$?
3874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875 (exit $ac_status); }; } &&
3876 { ac_try='test -s conftest.$ac_objext'
3877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3878 (eval $ac_try) 2>&5
3879 ac_status=$?
3880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3881 (exit $ac_status); }; }; then
3882 for ac_declaration in \
3883 '' \
3884 'extern "C" void std::exit (int) throw (); using std::exit;' \
3885 'extern "C" void std::exit (int); using std::exit;' \
3886 'extern "C" void exit (int) throw ();' \
3887 'extern "C" void exit (int);' \
3888 'void exit (int);'
3889do
3890 cat >conftest.$ac_ext <<_ACEOF
3891/* confdefs.h. */
3892_ACEOF
3893cat confdefs.h >>conftest.$ac_ext
3894cat >>conftest.$ac_ext <<_ACEOF
3895/* end confdefs.h. */
3896$ac_declaration
3897#include <stdlib.h>
3898int
3899main ()
42ecbf5e 3900{
d45dc31f
SE
3901exit (42);
3902 ;
3903 return 0;
3904}
3905_ACEOF
3906rm -f conftest.$ac_objext
3907if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3908 (eval $ac_compile) 2>conftest.er1
3909 ac_status=$?
3910 grep -v '^ *+' conftest.er1 >conftest.err
3911 rm -f conftest.er1
3912 cat conftest.err >&5
3913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3914 (exit $ac_status); } &&
7357c5b6
AM
3915 { ac_try='test -z "$ac_c_werror_flag"
3916 || test ! -s conftest.err'
d45dc31f
SE
3917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3918 (eval $ac_try) 2>&5
3919 ac_status=$?
3920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921 (exit $ac_status); }; } &&
3922 { ac_try='test -s conftest.$ac_objext'
3923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3924 (eval $ac_try) 2>&5
3925 ac_status=$?
3926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927 (exit $ac_status); }; }; then
3928 :
3929else
3930 echo "$as_me: failed program was:" >&5
3931sed 's/^/| /' conftest.$ac_ext >&5
252b5132 3932
d45dc31f
SE
3933continue
3934fi
3935rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3936 cat >conftest.$ac_ext <<_ACEOF
3937/* confdefs.h. */
3938_ACEOF
3939cat confdefs.h >>conftest.$ac_ext
3940cat >>conftest.$ac_ext <<_ACEOF
3941/* end confdefs.h. */
3942$ac_declaration
3943int
3944main ()
3945{
3946exit (42);
3947 ;
3948 return 0;
3949}
3950_ACEOF
3951rm -f conftest.$ac_objext
3952if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3953 (eval $ac_compile) 2>conftest.er1
3954 ac_status=$?
3955 grep -v '^ *+' conftest.er1 >conftest.err
3956 rm -f conftest.er1
3957 cat conftest.err >&5
3958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959 (exit $ac_status); } &&
7357c5b6
AM
3960 { ac_try='test -z "$ac_c_werror_flag"
3961 || test ! -s conftest.err'
d45dc31f
SE
3962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3963 (eval $ac_try) 2>&5
3964 ac_status=$?
3965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3966 (exit $ac_status); }; } &&
3967 { ac_try='test -s conftest.$ac_objext'
3968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3969 (eval $ac_try) 2>&5
3970 ac_status=$?
3971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972 (exit $ac_status); }; }; then
3973 break
3974else
3975 echo "$as_me: failed program was:" >&5
3976sed 's/^/| /' conftest.$ac_ext >&5
252b5132 3977
d45dc31f
SE
3978fi
3979rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3980done
3981rm -f conftest*
3982if test -n "$ac_declaration"; then
3983 echo '#ifdef __cplusplus' >>confdefs.h
3984 echo $ac_declaration >>confdefs.h
3985 echo '#endif' >>confdefs.h
3986fi
ac48eca1 3987
d45dc31f
SE
3988else
3989 echo "$as_me: failed program was:" >&5
3990sed 's/^/| /' conftest.$ac_ext >&5
42ecbf5e 3991
d45dc31f
SE
3992fi
3993rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3994ac_ext=c
3995ac_cpp='$CPP $CPPFLAGS'
3996ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3997ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3998ac_compiler_gnu=$ac_cv_c_compiler_gnu
42ecbf5e
DJ
3999
4000
d45dc31f
SE
4001cat >>confdefs.h <<\_ACEOF
4002#define _GNU_SOURCE 1
4003_ACEOF
42ecbf5e 4004
ac48eca1 4005
7357c5b6
AM
4006ac_ext=c
4007ac_cpp='$CPP $CPPFLAGS'
4008ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4009ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4010ac_compiler_gnu=$ac_cv_c_compiler_gnu
4011echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4012echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4013# On Suns, sometimes $CPP names a directory.
4014if test -n "$CPP" && test -d "$CPP"; then
4015 CPP=
4016fi
4017if test -z "$CPP"; then
4018 if test "${ac_cv_prog_CPP+set}" = set; then
4019 echo $ECHO_N "(cached) $ECHO_C" >&6
4020else
4021 # Double quotes because CPP needs to be expanded
4022 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4023 do
4024 ac_preproc_ok=false
4025for ac_c_preproc_warn_flag in '' yes
4026do
4027 # Use a header file that comes with gcc, so configuring glibc
4028 # with a fresh cross-compiler works.
4029 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4030 # <limits.h> exists even on freestanding compilers.
4031 # On the NeXT, cc -E runs the code through the compiler's parser,
4032 # not just through cpp. "Syntax error" is here to catch this case.
4033 cat >conftest.$ac_ext <<_ACEOF
4034/* confdefs.h. */
4035_ACEOF
4036cat confdefs.h >>conftest.$ac_ext
4037cat >>conftest.$ac_ext <<_ACEOF
4038/* end confdefs.h. */
4039#ifdef __STDC__
4040# include <limits.h>
4041#else
4042# include <assert.h>
4043#endif
4044 Syntax error
4045_ACEOF
4046if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4047 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4048 ac_status=$?
4049 grep -v '^ *+' conftest.er1 >conftest.err
4050 rm -f conftest.er1
4051 cat conftest.err >&5
4052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053 (exit $ac_status); } >/dev/null; then
4054 if test -s conftest.err; then
4055 ac_cpp_err=$ac_c_preproc_warn_flag
4056 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4057 else
4058 ac_cpp_err=
4059 fi
4060else
4061 ac_cpp_err=yes
4062fi
4063if test -z "$ac_cpp_err"; then
4064 :
4065else
4066 echo "$as_me: failed program was:" >&5
4067sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4068
7357c5b6
AM
4069 # Broken: fails on valid input.
4070continue
4071fi
4072rm -f conftest.err conftest.$ac_ext
d7040cdb 4073
7357c5b6
AM
4074 # OK, works on sane cases. Now check whether non-existent headers
4075 # can be detected and how.
4076 cat >conftest.$ac_ext <<_ACEOF
4077/* confdefs.h. */
4078_ACEOF
4079cat confdefs.h >>conftest.$ac_ext
4080cat >>conftest.$ac_ext <<_ACEOF
4081/* end confdefs.h. */
4082#include <ac_nonexistent.h>
4083_ACEOF
4084if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4085 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4086 ac_status=$?
4087 grep -v '^ *+' conftest.er1 >conftest.err
4088 rm -f conftest.er1
4089 cat conftest.err >&5
4090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091 (exit $ac_status); } >/dev/null; then
4092 if test -s conftest.err; then
4093 ac_cpp_err=$ac_c_preproc_warn_flag
4094 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4095 else
4096 ac_cpp_err=
4097 fi
4098else
4099 ac_cpp_err=yes
4100fi
4101if test -z "$ac_cpp_err"; then
4102 # Broken: success on invalid input.
4103continue
4104else
4105 echo "$as_me: failed program was:" >&5
4106sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4107
7357c5b6
AM
4108 # Passes both tests.
4109ac_preproc_ok=:
4110break
4111fi
4112rm -f conftest.err conftest.$ac_ext
d7040cdb 4113
7357c5b6
AM
4114done
4115# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4116rm -f conftest.err conftest.$ac_ext
4117if $ac_preproc_ok; then
4118 break
4119fi
d7040cdb 4120
7357c5b6
AM
4121 done
4122 ac_cv_prog_CPP=$CPP
d7040cdb 4123
7357c5b6
AM
4124fi
4125 CPP=$ac_cv_prog_CPP
4126else
4127 ac_cv_prog_CPP=$CPP
4128fi
4129echo "$as_me:$LINENO: result: $CPP" >&5
4130echo "${ECHO_T}$CPP" >&6
4131ac_preproc_ok=false
4132for ac_c_preproc_warn_flag in '' yes
4133do
4134 # Use a header file that comes with gcc, so configuring glibc
4135 # with a fresh cross-compiler works.
4136 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4137 # <limits.h> exists even on freestanding compilers.
4138 # On the NeXT, cc -E runs the code through the compiler's parser,
4139 # not just through cpp. "Syntax error" is here to catch this case.
4140 cat >conftest.$ac_ext <<_ACEOF
4141/* confdefs.h. */
4142_ACEOF
4143cat confdefs.h >>conftest.$ac_ext
4144cat >>conftest.$ac_ext <<_ACEOF
4145/* end confdefs.h. */
4146#ifdef __STDC__
4147# include <limits.h>
4148#else
4149# include <assert.h>
4150#endif
4151 Syntax error
4152_ACEOF
4153if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4154 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4155 ac_status=$?
4156 grep -v '^ *+' conftest.er1 >conftest.err
4157 rm -f conftest.er1
4158 cat conftest.err >&5
4159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160 (exit $ac_status); } >/dev/null; then
4161 if test -s conftest.err; then
4162 ac_cpp_err=$ac_c_preproc_warn_flag
4163 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4164 else
4165 ac_cpp_err=
4166 fi
4167else
4168 ac_cpp_err=yes
4169fi
4170if test -z "$ac_cpp_err"; then
4171 :
4172else
4173 echo "$as_me: failed program was:" >&5
4174sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4175
7357c5b6
AM
4176 # Broken: fails on valid input.
4177continue
4178fi
4179rm -f conftest.err conftest.$ac_ext
d7040cdb 4180
7357c5b6
AM
4181 # OK, works on sane cases. Now check whether non-existent headers
4182 # can be detected and how.
4183 cat >conftest.$ac_ext <<_ACEOF
4184/* confdefs.h. */
4185_ACEOF
4186cat confdefs.h >>conftest.$ac_ext
4187cat >>conftest.$ac_ext <<_ACEOF
4188/* end confdefs.h. */
4189#include <ac_nonexistent.h>
4190_ACEOF
4191if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4192 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4193 ac_status=$?
4194 grep -v '^ *+' conftest.er1 >conftest.err
4195 rm -f conftest.er1
4196 cat conftest.err >&5
4197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198 (exit $ac_status); } >/dev/null; then
4199 if test -s conftest.err; then
4200 ac_cpp_err=$ac_c_preproc_warn_flag
4201 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4202 else
4203 ac_cpp_err=
4204 fi
4205else
4206 ac_cpp_err=yes
4207fi
4208if test -z "$ac_cpp_err"; then
4209 # Broken: success on invalid input.
4210continue
4211else
4212 echo "$as_me: failed program was:" >&5
4213sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4214
7357c5b6
AM
4215 # Passes both tests.
4216ac_preproc_ok=:
4217break
4218fi
4219rm -f conftest.err conftest.$ac_ext
d7040cdb 4220
7357c5b6
AM
4221done
4222# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4223rm -f conftest.err conftest.$ac_ext
4224if $ac_preproc_ok; then
4225 :
4226else
4227 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4228echo "$as_me: error: in \`$ac_pwd':" >&2;}
4229{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4230See \`config.log' for more details." >&5
4231echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4232See \`config.log' for more details." >&2;}
4233 { (exit 1); exit 1; }; }; }
4234fi
d7040cdb 4235
7357c5b6
AM
4236ac_ext=c
4237ac_cpp='$CPP $CPPFLAGS'
4238ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4239ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4240ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb
SE
4241
4242
7357c5b6
AM
4243echo "$as_me:$LINENO: checking for egrep" >&5
4244echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4245if test "${ac_cv_prog_egrep+set}" = set; then
4246 echo $ECHO_N "(cached) $ECHO_C" >&6
4247else
4248 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4249 then ac_cv_prog_egrep='grep -E'
4250 else ac_cv_prog_egrep='egrep'
4251 fi
4252fi
4253echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4254echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4255 EGREP=$ac_cv_prog_egrep
d7040cdb 4256
d7040cdb 4257
7357c5b6
AM
4258echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4259echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4260if test "${ac_cv_header_stdc+set}" = set; then
4261 echo $ECHO_N "(cached) $ECHO_C" >&6
4262else
4263 cat >conftest.$ac_ext <<_ACEOF
4264/* confdefs.h. */
4265_ACEOF
4266cat confdefs.h >>conftest.$ac_ext
4267cat >>conftest.$ac_ext <<_ACEOF
4268/* end confdefs.h. */
4269#include <stdlib.h>
4270#include <stdarg.h>
4271#include <string.h>
4272#include <float.h>
d7040cdb 4273
7357c5b6
AM
4274int
4275main ()
4276{
d7040cdb 4277
7357c5b6
AM
4278 ;
4279 return 0;
4280}
4281_ACEOF
4282rm -f conftest.$ac_objext
4283if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4284 (eval $ac_compile) 2>conftest.er1
4285 ac_status=$?
4286 grep -v '^ *+' conftest.er1 >conftest.err
4287 rm -f conftest.er1
4288 cat conftest.err >&5
4289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290 (exit $ac_status); } &&
4291 { ac_try='test -z "$ac_c_werror_flag"
4292 || test ! -s conftest.err'
4293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4294 (eval $ac_try) 2>&5
4295 ac_status=$?
4296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4297 (exit $ac_status); }; } &&
4298 { ac_try='test -s conftest.$ac_objext'
4299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4300 (eval $ac_try) 2>&5
4301 ac_status=$?
4302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303 (exit $ac_status); }; }; then
4304 ac_cv_header_stdc=yes
4305else
4306 echo "$as_me: failed program was:" >&5
4307sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4308
7357c5b6
AM
4309ac_cv_header_stdc=no
4310fi
4311rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d7040cdb 4312
7357c5b6
AM
4313if test $ac_cv_header_stdc = yes; then
4314 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4315 cat >conftest.$ac_ext <<_ACEOF
4316/* confdefs.h. */
4317_ACEOF
4318cat confdefs.h >>conftest.$ac_ext
4319cat >>conftest.$ac_ext <<_ACEOF
4320/* end confdefs.h. */
4321#include <string.h>
d7040cdb 4322
7357c5b6
AM
4323_ACEOF
4324if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4325 $EGREP "memchr" >/dev/null 2>&1; then
4326 :
d45dc31f 4327else
7357c5b6
AM
4328 ac_cv_header_stdc=no
4329fi
4330rm -f conftest*
d7040cdb 4331
7357c5b6 4332fi
d7040cdb 4333
7357c5b6
AM
4334if test $ac_cv_header_stdc = yes; then
4335 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4336 cat >conftest.$ac_ext <<_ACEOF
4337/* confdefs.h. */
4338_ACEOF
4339cat confdefs.h >>conftest.$ac_ext
4340cat >>conftest.$ac_ext <<_ACEOF
4341/* end confdefs.h. */
4342#include <stdlib.h>
d7040cdb 4343
7357c5b6
AM
4344_ACEOF
4345if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4346 $EGREP "free" >/dev/null 2>&1; then
4347 :
4348else
4349 ac_cv_header_stdc=no
4350fi
4351rm -f conftest*
d7040cdb 4352
7357c5b6 4353fi
d7040cdb 4354
7357c5b6
AM
4355if test $ac_cv_header_stdc = yes; then
4356 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4357 if test "$cross_compiling" = yes; then
4358 :
4359else
4360 cat >conftest.$ac_ext <<_ACEOF
4361/* confdefs.h. */
4362_ACEOF
4363cat confdefs.h >>conftest.$ac_ext
4364cat >>conftest.$ac_ext <<_ACEOF
4365/* end confdefs.h. */
4366#include <ctype.h>
4367#if ((' ' & 0x0FF) == 0x020)
4368# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4369# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4370#else
4371# define ISLOWER(c) \
4372 (('a' <= (c) && (c) <= 'i') \
4373 || ('j' <= (c) && (c) <= 'r') \
4374 || ('s' <= (c) && (c) <= 'z'))
4375# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4376#endif
d7040cdb 4377
7357c5b6
AM
4378#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4379int
4380main ()
4381{
4382 int i;
4383 for (i = 0; i < 256; i++)
4384 if (XOR (islower (i), ISLOWER (i))
4385 || toupper (i) != TOUPPER (i))
4386 exit(2);
4387 exit (0);
4388}
4389_ACEOF
4390rm -f conftest$ac_exeext
4391if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4392 (eval $ac_link) 2>&5
4393 ac_status=$?
4394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4397 (eval $ac_try) 2>&5
4398 ac_status=$?
4399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400 (exit $ac_status); }; }; then
4401 :
4402else
4403 echo "$as_me: program exited with status $ac_status" >&5
4404echo "$as_me: failed program was:" >&5
4405sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4406
7357c5b6
AM
4407( exit $ac_status )
4408ac_cv_header_stdc=no
4409fi
4410rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4411fi
4412fi
4413fi
4414echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4415echo "${ECHO_T}$ac_cv_header_stdc" >&6
4416if test $ac_cv_header_stdc = yes; then
d7040cdb 4417
7357c5b6
AM
4418cat >>confdefs.h <<\_ACEOF
4419#define STDC_HEADERS 1
4420_ACEOF
d7040cdb 4421
7357c5b6 4422fi
d7040cdb 4423
7357c5b6 4424# On IRIX 5.3, sys/types and inttypes.h are conflicting.
d7040cdb
SE
4425
4426
4427
4428
4429
4430
4431
d7040cdb 4432
d7040cdb 4433
7357c5b6
AM
4434for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4435 inttypes.h stdint.h unistd.h
4436do
4437as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4438echo "$as_me:$LINENO: checking for $ac_header" >&5
4439echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4440if eval "test \"\${$as_ac_Header+set}\" = set"; then
4441 echo $ECHO_N "(cached) $ECHO_C" >&6
4442else
4443 cat >conftest.$ac_ext <<_ACEOF
4444/* confdefs.h. */
4445_ACEOF
4446cat confdefs.h >>conftest.$ac_ext
4447cat >>conftest.$ac_ext <<_ACEOF
4448/* end confdefs.h. */
4449$ac_includes_default
d7040cdb 4450
7357c5b6
AM
4451#include <$ac_header>
4452_ACEOF
4453rm -f conftest.$ac_objext
4454if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4455 (eval $ac_compile) 2>conftest.er1
4456 ac_status=$?
4457 grep -v '^ *+' conftest.er1 >conftest.err
4458 rm -f conftest.er1
4459 cat conftest.err >&5
4460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461 (exit $ac_status); } &&
4462 { ac_try='test -z "$ac_c_werror_flag"
4463 || test ! -s conftest.err'
4464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4465 (eval $ac_try) 2>&5
4466 ac_status=$?
4467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468 (exit $ac_status); }; } &&
4469 { ac_try='test -s conftest.$ac_objext'
4470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4471 (eval $ac_try) 2>&5
4472 ac_status=$?
4473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474 (exit $ac_status); }; }; then
4475 eval "$as_ac_Header=yes"
4476else
4477 echo "$as_me: failed program was:" >&5
4478sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4479
7357c5b6
AM
4480eval "$as_ac_Header=no"
4481fi
4482rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4483fi
4484echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4485echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4486if test `eval echo '${'$as_ac_Header'}'` = yes; then
4487 cat >>confdefs.h <<_ACEOF
4488#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4489_ACEOF
d7040cdb 4490
7357c5b6 4491fi
d7040cdb 4492
7357c5b6 4493done
d7040cdb
SE
4494
4495
4496
7357c5b6
AM
4497 if test "${ac_cv_header_minix_config_h+set}" = set; then
4498 echo "$as_me:$LINENO: checking for minix/config.h" >&5
4499echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4500if test "${ac_cv_header_minix_config_h+set}" = set; then
4501 echo $ECHO_N "(cached) $ECHO_C" >&6
4502fi
4503echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4504echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4505else
4506 # Is the header compilable?
4507echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4508echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
4509cat >conftest.$ac_ext <<_ACEOF
4510/* confdefs.h. */
4511_ACEOF
4512cat confdefs.h >>conftest.$ac_ext
4513cat >>conftest.$ac_ext <<_ACEOF
4514/* end confdefs.h. */
4515$ac_includes_default
4516#include <minix/config.h>
4517_ACEOF
4518rm -f conftest.$ac_objext
4519if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4520 (eval $ac_compile) 2>conftest.er1
4521 ac_status=$?
4522 grep -v '^ *+' conftest.er1 >conftest.err
4523 rm -f conftest.er1
4524 cat conftest.err >&5
4525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526 (exit $ac_status); } &&
4527 { ac_try='test -z "$ac_c_werror_flag"
4528 || test ! -s conftest.err'
4529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4530 (eval $ac_try) 2>&5
4531 ac_status=$?
4532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533 (exit $ac_status); }; } &&
4534 { ac_try='test -s conftest.$ac_objext'
4535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4536 (eval $ac_try) 2>&5
4537 ac_status=$?
4538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539 (exit $ac_status); }; }; then
4540 ac_header_compiler=yes
4541else
4542 echo "$as_me: failed program was:" >&5
4543sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4544
7357c5b6
AM
4545ac_header_compiler=no
4546fi
4547rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4548echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4549echo "${ECHO_T}$ac_header_compiler" >&6
d7040cdb 4550
7357c5b6
AM
4551# Is the header present?
4552echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4553echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
4554cat >conftest.$ac_ext <<_ACEOF
4555/* confdefs.h. */
4556_ACEOF
4557cat confdefs.h >>conftest.$ac_ext
4558cat >>conftest.$ac_ext <<_ACEOF
4559/* end confdefs.h. */
4560#include <minix/config.h>
4561_ACEOF
4562if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4563 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4564 ac_status=$?
4565 grep -v '^ *+' conftest.er1 >conftest.err
4566 rm -f conftest.er1
4567 cat conftest.err >&5
4568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569 (exit $ac_status); } >/dev/null; then
4570 if test -s conftest.err; then
4571 ac_cpp_err=$ac_c_preproc_warn_flag
4572 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4573 else
4574 ac_cpp_err=
4575 fi
4576else
4577 ac_cpp_err=yes
4578fi
4579if test -z "$ac_cpp_err"; then
4580 ac_header_preproc=yes
4581else
4582 echo "$as_me: failed program was:" >&5
4583sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4584
7357c5b6
AM
4585 ac_header_preproc=no
4586fi
4587rm -f conftest.err conftest.$ac_ext
4588echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4589echo "${ECHO_T}$ac_header_preproc" >&6
d7040cdb 4590
7357c5b6
AM
4591# So? What about this header?
4592case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4593 yes:no: )
4594 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4595echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4596 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4597echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4598 ac_header_preproc=yes
4599 ;;
4600 no:yes:* )
4601 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4602echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4603 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4604echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4605 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4606echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4607 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4608echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4609 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4610echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4611 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4612echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4613 (
4614 cat <<\_ASBOX
4615## ------------------------------------------ ##
4616## Report this to the AC_PACKAGE_NAME lists. ##
4617## ------------------------------------------ ##
4618_ASBOX
4619 ) |
4620 sed "s/^/$as_me: WARNING: /" >&2
4621 ;;
4622esac
4623echo "$as_me:$LINENO: checking for minix/config.h" >&5
4624echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4625if test "${ac_cv_header_minix_config_h+set}" = set; then
d7040cdb
SE
4626 echo $ECHO_N "(cached) $ECHO_C" >&6
4627else
7357c5b6 4628 ac_cv_header_minix_config_h=$ac_header_preproc
d7040cdb 4629fi
7357c5b6
AM
4630echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4631echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
d7040cdb 4632
7357c5b6
AM
4633fi
4634if test $ac_cv_header_minix_config_h = yes; then
4635 MINIX=yes
4636else
4637 MINIX=
4638fi
d7040cdb
SE
4639
4640
7357c5b6 4641 if test "$MINIX" = yes; then
d7040cdb 4642
7357c5b6
AM
4643cat >>confdefs.h <<\_ACEOF
4644#define _POSIX_SOURCE 1
4645_ACEOF
d7040cdb
SE
4646
4647
7357c5b6
AM
4648cat >>confdefs.h <<\_ACEOF
4649#define _POSIX_1_SOURCE 2
4650_ACEOF
d7040cdb
SE
4651
4652
7357c5b6
AM
4653cat >>confdefs.h <<\_ACEOF
4654#define _MINIX 1
4655_ACEOF
d7040cdb 4656
7357c5b6 4657 fi
d7040cdb
SE
4658
4659
4660
7357c5b6
AM
4661 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4662echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
4663if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
d7040cdb
SE
4664 echo $ECHO_N "(cached) $ECHO_C" >&6
4665else
7357c5b6
AM
4666 cat >conftest.$ac_ext <<_ACEOF
4667/* confdefs.h. */
4668_ACEOF
4669cat confdefs.h >>conftest.$ac_ext
4670cat >>conftest.$ac_ext <<_ACEOF
4671/* end confdefs.h. */
d7040cdb 4672
7357c5b6
AM
4673# define __EXTENSIONS__ 1
4674 $ac_includes_default
4675int
4676main ()
4677{
d7040cdb 4678
7357c5b6
AM
4679 ;
4680 return 0;
4681}
4682_ACEOF
4683rm -f conftest.$ac_objext
4684if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4685 (eval $ac_compile) 2>conftest.er1
4686 ac_status=$?
4687 grep -v '^ *+' conftest.er1 >conftest.err
4688 rm -f conftest.er1
4689 cat conftest.err >&5
4690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691 (exit $ac_status); } &&
4692 { ac_try='test -z "$ac_c_werror_flag"
4693 || test ! -s conftest.err'
4694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4695 (eval $ac_try) 2>&5
4696 ac_status=$?
4697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698 (exit $ac_status); }; } &&
4699 { ac_try='test -s conftest.$ac_objext'
4700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4701 (eval $ac_try) 2>&5
4702 ac_status=$?
4703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4704 (exit $ac_status); }; }; then
4705 ac_cv_safe_to_define___extensions__=yes
d7040cdb 4706else
7357c5b6
AM
4707 echo "$as_me: failed program was:" >&5
4708sed 's/^/| /' conftest.$ac_ext >&5
4709
4710ac_cv_safe_to_define___extensions__=no
d7040cdb 4711fi
7357c5b6
AM
4712rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4713fi
4714echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4715echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
4716 test $ac_cv_safe_to_define___extensions__ = yes &&
4717 cat >>confdefs.h <<\_ACEOF
4718#define __EXTENSIONS__ 1
4719_ACEOF
d7040cdb 4720
7357c5b6
AM
4721 cat >>confdefs.h <<\_ACEOF
4722#define _ALL_SOURCE 1
4723_ACEOF
d7040cdb 4724
7357c5b6
AM
4725 cat >>confdefs.h <<\_ACEOF
4726#define _GNU_SOURCE 1
4727_ACEOF
d7040cdb 4728
7357c5b6
AM
4729 cat >>confdefs.h <<\_ACEOF
4730#define _POSIX_PTHREAD_SEMANTICS 1
4731_ACEOF
d7040cdb 4732
7357c5b6
AM
4733 cat >>confdefs.h <<\_ACEOF
4734#define _TANDEM_SOURCE 1
4735_ACEOF
d7040cdb
SE
4736
4737
4738
4739
7357c5b6
AM
4740macro_version='2.1a'
4741macro_revision='1.2435'
d7040cdb
SE
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
7357c5b6 4754ltmain="$ac_aux_dir/ltmain.sh"
d7040cdb 4755
7357c5b6
AM
4756# Set options
4757
4758enable_dlopen=no
4759
4760
4761enable_win32_dll=no
4762
4763
4764# Check whether --enable-shared or --disable-shared was given.
4765if test "${enable_shared+set}" = set; then
4766 enableval="$enable_shared"
4767 p=${PACKAGE-default}
4768 case $enableval in
4769 yes) enable_shared=yes ;;
4770 no) enable_shared=no ;;
4771 *)
4772 enable_shared=no
4773 # Look at the argument we got. We use all the common list separators.
4774 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4775 for pkg in $enableval; do
4776 IFS="$lt_save_ifs"
4777 if test "X$pkg" = "X$p"; then
4778 enable_shared=yes
4779 fi
4780 done
4781 IFS="$lt_save_ifs"
4782 ;;
4783 esac
4784else
4785 enable_shared=yes
4786fi;
4787
4788
4789
4790
4791
4792
4793
4794
4795# Check whether --enable-static or --disable-static was given.
4796if test "${enable_static+set}" = set; then
4797 enableval="$enable_static"
4798 p=${PACKAGE-default}
4799 case $enableval in
4800 yes) enable_static=yes ;;
4801 no) enable_static=no ;;
4802 *)
4803 enable_static=no
4804 # Look at the argument we got. We use all the common list separators.
4805 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4806 for pkg in $enableval; do
4807 IFS="$lt_save_ifs"
4808 if test "X$pkg" = "X$p"; then
4809 enable_static=yes
4810 fi
4811 done
4812 IFS="$lt_save_ifs"
4813 ;;
4814 esac
4815else
4816 enable_static=yes
4817fi;
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827# Check whether --with-pic or --without-pic was given.
4828if test "${with_pic+set}" = set; then
4829 withval="$with_pic"
4830 pic_mode="$withval"
4831else
4832 pic_mode=default
4833fi;
4834
4835test -z "$pic_mode" && pic_mode=default
4836
4837
4838
4839
4840
4841
4842
4843# Check whether --enable-fast-install or --disable-fast-install was given.
4844if test "${enable_fast_install+set}" = set; then
4845 enableval="$enable_fast_install"
4846 p=${PACKAGE-default}
4847 case $enableval in
4848 yes) enable_fast_install=yes ;;
4849 no) enable_fast_install=no ;;
4850 *)
4851 enable_fast_install=no
4852 # Look at the argument we got. We use all the common list separators.
4853 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4854 for pkg in $enableval; do
4855 IFS="$lt_save_ifs"
4856 if test "X$pkg" = "X$p"; then
4857 enable_fast_install=yes
4858 fi
4859 done
4860 IFS="$lt_save_ifs"
4861 ;;
4862 esac
4863else
4864 enable_fast_install=yes
4865fi;
4866
4867
4868
4869
4870
4871
4872
4873
4874echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4875echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4876if test "${lt_cv_path_SED+set}" = set; then
4877 echo $ECHO_N "(cached) $ECHO_C" >&6
4878else
4879 # Loop through the user's path and test for sed and gsed.
4880# Then use that list of sed's as ones to test for truncation.
4881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4882for as_dir in $PATH
4883do
4884 IFS=$as_save_IFS
4885 test -z "$as_dir" && as_dir=.
4886 for lt_ac_prog in sed gsed; do
4887 for ac_exec_ext in '' $ac_executable_extensions; do
4888 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4889 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4890 fi
4891 done
4892 done
4893done
4894IFS=$as_save_IFS
4895lt_ac_max=0
4896lt_ac_count=0
4897# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4898# along with /bin/sed that truncates output.
4899for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4900 test ! -f $lt_ac_sed && continue
4901 cat /dev/null > conftest.in
4902 lt_ac_count=0
4903 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4904 # Check for GNU sed and select it if it is found.
4905 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4906 lt_cv_path_SED=$lt_ac_sed
4907 break
4908 fi
4909 while true; do
4910 cat conftest.in conftest.in >conftest.tmp
4911 mv conftest.tmp conftest.in
4912 cp conftest.in conftest.nl
4913 echo >>conftest.nl
4914 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4915 cmp -s conftest.out conftest.nl || break
4916 # 10000 chars as input seems more than enough
4917 test $lt_ac_count -gt 10 && break
4918 lt_ac_count=`expr $lt_ac_count + 1`
4919 if test $lt_ac_count -gt $lt_ac_max; then
4920 lt_ac_max=$lt_ac_count
4921 lt_cv_path_SED=$lt_ac_sed
4922 fi
4923 done
4924done
4925
4926fi
4927
4928SED=$lt_cv_path_SED
4929
4930echo "$as_me:$LINENO: result: $SED" >&5
4931echo "${ECHO_T}$SED" >&6
4932
4933test -z "$SED" && SED=sed
4934Xsed="$SED -e 1s/^X//"
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946echo "$as_me:$LINENO: checking for fgrep" >&5
4947echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4948if test "${ac_cv_prog_fgrep+set}" = set; then
4949 echo $ECHO_N "(cached) $ECHO_C" >&6
4950else
4951 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4952 then ac_cv_prog_fgrep='grep -F'
4953 else ac_cv_prog_fgrep='fgrep'
4954 fi
4955fi
4956echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4957echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4958 FGREP=$ac_cv_prog_fgrep
4959
4960
4961test -z "$GREP" && GREP=grep
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981# Check whether --with-gnu-ld or --without-gnu-ld was given.
4982if test "${with_gnu_ld+set}" = set; then
4983 withval="$with_gnu_ld"
4984 test "$withval" = no || with_gnu_ld=yes
4985else
4986 with_gnu_ld=no
4987fi;
4988ac_prog=ld
4989if test "$GCC" = yes; then
4990 # Check if gcc -print-prog-name=ld gives a path.
4991 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4992echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4993 case $host in
4994 *-*-mingw*)
d45dc31f
SE
4995 # gcc leaves a trailing carriage return which upsets mingw
4996 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4997 *)
4998 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4999 esac
5000 case $ac_prog in
5001 # Accept absolute paths.
d7040cdb 5002 [\\/]* | ?:[\\/]*)
d45dc31f 5003 re_direlt='/[^/][^/]*/\.\./'
d7040cdb
SE
5004 # Canonicalize the pathname of ld
5005 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5006 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5007 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
d45dc31f
SE
5008 done
5009 test -z "$LD" && LD="$ac_prog"
5010 ;;
5011 "")
5012 # If it fails, then pretend we aren't using GCC.
5013 ac_prog=ld
5014 ;;
5015 *)
5016 # If it is relative, then search for the first ld in PATH.
5017 with_gnu_ld=unknown
5018 ;;
5019 esac
5020elif test "$with_gnu_ld" = yes; then
5021 echo "$as_me:$LINENO: checking for GNU ld" >&5
5022echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5023else
5024 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5025echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5026fi
5027if test "${lt_cv_path_LD+set}" = set; then
5028 echo $ECHO_N "(cached) $ECHO_C" >&6
5029else
5030 if test -z "$LD"; then
d7040cdb 5031 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
d45dc31f 5032 for ac_dir in $PATH; do
d7040cdb 5033 IFS="$lt_save_ifs"
d45dc31f
SE
5034 test -z "$ac_dir" && ac_dir=.
5035 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5036 lt_cv_path_LD="$ac_dir/$ac_prog"
5037 # Check to see if the program is GNU ld. I'd rather use --version,
d7040cdb 5038 # but apparently some variants of GNU ld only accept -v.
d45dc31f 5039 # Break only if it was the GNU/non-GNU ld that we prefer.
d7040cdb
SE
5040 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5041 *GNU* | *'with BFD'*)
d45dc31f 5042 test "$with_gnu_ld" != no && break
d7040cdb
SE
5043 ;;
5044 *)
d45dc31f 5045 test "$with_gnu_ld" != yes && break
d7040cdb
SE
5046 ;;
5047 esac
d45dc31f
SE
5048 fi
5049 done
d7040cdb 5050 IFS="$lt_save_ifs"
d45dc31f
SE
5051else
5052 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5053fi
5054fi
1ad12f97 5055
d45dc31f
SE
5056LD="$lt_cv_path_LD"
5057if test -n "$LD"; then
5058 echo "$as_me:$LINENO: result: $LD" >&5
5059echo "${ECHO_T}$LD" >&6
5060else
5061 echo "$as_me:$LINENO: result: no" >&5
5062echo "${ECHO_T}no" >&6
5063fi
5064test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5065echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5066 { (exit 1); exit 1; }; }
5067echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5068echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5069if test "${lt_cv_prog_gnu_ld+set}" = set; then
5070 echo $ECHO_N "(cached) $ECHO_C" >&6
5071else
d7040cdb
SE
5072 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5073case `$LD -v 2>&1 </dev/null` in
5074*GNU* | *'with BFD'*)
d45dc31f 5075 lt_cv_prog_gnu_ld=yes
d7040cdb
SE
5076 ;;
5077*)
d45dc31f 5078 lt_cv_prog_gnu_ld=no
d7040cdb
SE
5079 ;;
5080esac
d45dc31f
SE
5081fi
5082echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5083echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5084with_gnu_ld=$lt_cv_prog_gnu_ld
569acd2c 5085
d45dc31f 5086
42ecbf5e 5087
d7040cdb
SE
5088
5089
5090
5091
5092
5093
5094
5095echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5096echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
d45dc31f
SE
5097if test "${lt_cv_path_NM+set}" = set; then
5098 echo $ECHO_N "(cached) $ECHO_C" >&6
5099else
5100 if test -n "$NM"; then
5101 # Let the user override the test.
5102 lt_cv_path_NM="$NM"
5103else
d7040cdb
SE
5104 lt_nm_to_check="${ac_tool_prefix}nm"
5105 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5106 lt_nm_to_check="$lt_nm_to_check nm"
5107 fi
5108 for lt_tmp_nm in $lt_nm_to_check; do
5109 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5110 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5111 IFS="$lt_save_ifs"
5112 test -z "$ac_dir" && ac_dir=.
5113 tmp_nm="$ac_dir/$lt_tmp_nm"
5114 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5115 # Check to see if the nm accepts a BSD-compat flag.
5116 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5117 # nm: unknown option "B" ignored
5118 # Tru64's nm complains that /dev/null is an invalid object file
5119 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5120 */dev/null* | *'Invalid file or object type'*)
5121 lt_cv_path_NM="$tmp_nm -B"
5122 break
5123 ;;
5124 *)
5125 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5126 */dev/null*)
5127 lt_cv_path_NM="$tmp_nm -p"
5128 break
5129 ;;
5130 *)
5131 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5132 continue # so that we can try to find one that supports BSD flags
5133 ;;
5134 esac
5135 ;;
5136 esac
d45dc31f 5137 fi
d7040cdb
SE
5138 done
5139 IFS="$lt_save_ifs"
d45dc31f 5140 done
d7040cdb 5141 : ${lt_cv_path_NM=no}
d45dc31f 5142fi
a541e3ce 5143fi
d7040cdb
SE
5144echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5145echo "${ECHO_T}$lt_cv_path_NM" >&6
5146if test "$lt_cv_path_NM" != "no"; then
5147 NM="$lt_cv_path_NM"
d45dc31f 5148else
d7040cdb
SE
5149 # Didn't find any BSD compatible name lister, look for dumpbin.
5150 if test -n "$ac_tool_prefix"; then
5151 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5152 do
5153 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5154set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5155echo "$as_me:$LINENO: checking for $ac_word" >&5
5156echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5157if test "${ac_cv_prog_DUMPBIN+set}" = set; then
d45dc31f
SE
5158 echo $ECHO_N "(cached) $ECHO_C" >&6
5159else
d7040cdb
SE
5160 if test -n "$DUMPBIN"; then
5161 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5162else
5163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5164for as_dir in $PATH
5165do
5166 IFS=$as_save_IFS
5167 test -z "$as_dir" && as_dir=.
5168 for ac_exec_ext in '' $ac_executable_extensions; do
5169 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5170 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5172 break 2
5173 fi
5174done
5175done
398ee8f1 5176
d7040cdb
SE
5177fi
5178fi
5179DUMPBIN=$ac_cv_prog_DUMPBIN
5180if test -n "$DUMPBIN"; then
5181 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5182echo "${ECHO_T}$DUMPBIN" >&6
5183else
5184 echo "$as_me:$LINENO: result: no" >&5
5185echo "${ECHO_T}no" >&6
5186fi
d15b04bd 5187
d7040cdb
SE
5188 test -n "$DUMPBIN" && break
5189 done
5190fi
5191if test -z "$DUMPBIN"; then
5192 ac_ct_DUMPBIN=$DUMPBIN
5193 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5194do
5195 # Extract the first word of "$ac_prog", so it can be a program name with args.
5196set dummy $ac_prog; ac_word=$2
5197echo "$as_me:$LINENO: checking for $ac_word" >&5
5198echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5199if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5200 echo $ECHO_N "(cached) $ECHO_C" >&6
5201else
5202 if test -n "$ac_ct_DUMPBIN"; then
5203 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5204else
5205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5206for as_dir in $PATH
5207do
5208 IFS=$as_save_IFS
5209 test -z "$as_dir" && as_dir=.
5210 for ac_exec_ext in '' $ac_executable_extensions; do
5211 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5212 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5214 break 2
d45dc31f 5215 fi
d7040cdb
SE
5216done
5217done
d15b04bd 5218
d7040cdb
SE
5219fi
5220fi
5221ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5222if test -n "$ac_ct_DUMPBIN"; then
5223 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5224echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
5225else
5226 echo "$as_me:$LINENO: result: no" >&5
5227echo "${ECHO_T}no" >&6
5228fi
42ecbf5e 5229
d7040cdb
SE
5230 test -n "$ac_ct_DUMPBIN" && break
5231done
5232test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
d45dc31f 5233
d7040cdb
SE
5234 DUMPBIN=$ac_ct_DUMPBIN
5235fi
d45dc31f 5236
d45dc31f 5237
d7040cdb
SE
5238 if test "$DUMPBIN" != ":"; then
5239 NM="$DUMPBIN"
42ecbf5e 5240 fi
d7040cdb
SE
5241fi
5242test -z "$NM" && NM=nm
d45dc31f 5243
42ecbf5e 5244
d15b04bd 5245
42ecbf5e 5246
d45dc31f 5247
42ecbf5e 5248
d7040cdb
SE
5249echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5250echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
5251if test "${lt_cv_nm_interface+set}" = set; then
5252 echo $ECHO_N "(cached) $ECHO_C" >&6
5253else
5254 lt_cv_nm_interface="BSD nm"
5255 echo "int some_variable = 0;" > conftest.$ac_ext
da594c4a 5256 (eval echo "\"\$as_me:5256: $ac_compile\"" >&5)
d7040cdb
SE
5257 (eval "$ac_compile" 2>conftest.err)
5258 cat conftest.err >&5
da594c4a 5259 (eval echo "\"\$as_me:5259: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
d7040cdb
SE
5260 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5261 cat conftest.err >&5
da594c4a 5262 (eval echo "\"\$as_me:5262: output\"" >&5)
d7040cdb
SE
5263 cat conftest.out >&5
5264 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5265 lt_cv_nm_interface="MS dumpbin"
5266 fi
5267 rm -f conftest*
42ecbf5e 5268fi
d7040cdb
SE
5269echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5270echo "${ECHO_T}$lt_cv_nm_interface" >&6
42ecbf5e 5271
d7040cdb
SE
5272echo "$as_me:$LINENO: checking whether ln -s works" >&5
5273echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5274LN_S=$as_ln_s
5275if test "$LN_S" = "ln -s"; then
5276 echo "$as_me:$LINENO: result: yes" >&5
5277echo "${ECHO_T}yes" >&6
5278else
5279 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5280echo "${ECHO_T}no, using $LN_S" >&6
5281fi
d45dc31f
SE
5282
5283# find the maximum length of command line arguments
5284echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5285echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5286if test "${lt_cv_sys_max_cmd_len+set}" = set; then
42ecbf5e
DJ
5287 echo $ECHO_N "(cached) $ECHO_C" >&6
5288else
d45dc31f
SE
5289 i=0
5290 teststring="ABCD"
5291
5292 case $build_os in
5293 msdosdjgpp*)
5294 # On DJGPP, this test can blow up pretty badly due to problems in libc
5295 # (any single argument exceeding 2000 bytes causes a buffer overrun
5296 # during glob expansion). Even if it were fixed, the result of this
5297 # check would be larger than it should be.
5298 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5299 ;;
5300
d7040cdb
SE
5301 gnu*)
5302 # Under GNU Hurd, this test is not required because there is
5303 # no limit to the length of command line arguments.
5304 # Libtool will interpret -1 as no limit whatsoever
5305 lt_cv_sys_max_cmd_len=-1;
5306 ;;
5307
d45dc31f
SE
5308 cygwin* | mingw*)
5309 # On Win9x/ME, this test blows up -- it succeeds, but takes
5310 # about 5 minutes as the teststring grows exponentially.
5311 # Worse, since 9x/ME are not pre-emptively multitasking,
5312 # you end up with a "frozen" computer, even though with patience
5313 # the test eventually succeeds (with a max line length of 256k).
5314 # Instead, let's just punt: use the minimum linelength reported by
5315 # all of the supported platforms: 8192 (on NT/2K/XP).
5316 lt_cv_sys_max_cmd_len=8192;
5317 ;;
5318
5319 amigaos*)
5320 # On AmigaOS with pdksh, this test takes hours, literally.
5321 # So we just punt and use a minimum line length of 8192.
5322 lt_cv_sys_max_cmd_len=8192;
5323 ;;
5324
5325 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5326 # This has been around since 386BSD, at least. Likely further.
5327 if test -x /sbin/sysctl; then
5328 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5329 elif test -x /usr/sbin/sysctl; then
5330 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5331 else
d7040cdb 5332 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
d45dc31f
SE
5333 fi
5334 # And add a safety zone
5335 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5336 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5337 ;;
d7040cdb
SE
5338
5339 interix*)
5340 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5341 lt_cv_sys_max_cmd_len=196608
5342 ;;
5343
5344 osf*)
5345 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5346 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5347 # nice to cause kernel panics so lets avoid the loop below.
5348 # First set a reasonable default.
5349 lt_cv_sys_max_cmd_len=16384
5350 #
5351 if test -x /sbin/sysconfig; then
5352 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5353 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5354 esac
5355 fi
5356 ;;
5357 sco3.2v5*)
5358 lt_cv_sys_max_cmd_len=102400
5359 ;;
5360 sysv5* | sco5v6* | sysv4.2uw2*)
5361 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5362 if test -n "$kargmax"; then
5363 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5364 else
5365 lt_cv_sys_max_cmd_len=32768
5366 fi
5367 ;;
5368 *)
5ba684e2
NC
5369 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
5370 if test -n $lt_cv_sys_max_cmd_len; then
5371 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5372 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5373 else
5374 # Make teststring a little bigger before we do anything with it.
5375 # a 1K string should be a reasonable start.
5376 for i in 1 2 3 4 5 6 7 8 ; do
5377 teststring=$teststring$teststring
5378 done
5379 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5380 # If test is not a shell built-in, we'll probably end up computing a
5381 # maximum length that is only half of the actual maximum length, but
5382 # we can't tell.
5383 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5384 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5385 test $i != 17 # 1/2 MB should be enough
5386 do
5387 i=`expr $i + 1`
5388 teststring=$teststring$teststring
5389 done
5390 # Only check the string length outside the loop.
5391 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5392 teststring=
5393 # Add a significant safety factor because C++ compilers can tack on
5394 # massive amounts of additional arguments before passing them to the
5395 # linker. It appears as though 1/2 is a usable value.
5396 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5397 fi
d7040cdb 5398 ;;
d45dc31f 5399 esac
42ecbf5e 5400
42ecbf5e
DJ
5401fi
5402
d7040cdb 5403if test -n $lt_cv_sys_max_cmd_len ; then
d45dc31f
SE
5404 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5405echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
252b5132 5406else
d45dc31f
SE
5407 echo "$as_me:$LINENO: result: none" >&5
5408echo "${ECHO_T}none" >&6
252b5132 5409fi
d7040cdb 5410max_cmd_len=$lt_cv_sys_max_cmd_len
e5a52504 5411
d45dc31f 5412
42ecbf5e 5413
d45dc31f 5414
d45dc31f 5415
d7040cdb
SE
5416
5417
5418: ${CP="cp -f"}
5419: ${MV="mv -f"}
5420: ${RM="rm -f"}
5421
5422echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5423echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
5424# Try some XSI features
5425xsi_shell=no
5426( _lt_dummy="a/b/c"
5427 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5428 = c,a/b,, ) >/dev/null 2>&1 \
5429 && xsi_shell=yes
5430echo "$as_me:$LINENO: result: $xsi_shell" >&5
5431echo "${ECHO_T}$xsi_shell" >&6
5432
5433
5434echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5435echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
5436lt_shell_append=no
5437( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5438 >/dev/null 2>&1 \
5439 && lt_shell_append=yes
5440echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5441echo "${ECHO_T}$lt_shell_append" >&6
5442
5443
5444if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5445 lt_unset=unset
252b5132 5446else
d7040cdb 5447 lt_unset=false
252b5132
RH
5448fi
5449
d7040cdb
SE
5450
5451
5452
5453
5454# test EBCDIC or ASCII
5455case `echo X|tr X '\101'` in
5456 A) # ASCII based system
5457 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5458 lt_SP2NL='tr \040 \012'
5459 lt_NL2SP='tr \015\012 \040\040'
5460 ;;
5461 *) # EBCDIC based system
5462 lt_SP2NL='tr \100 \n'
5463 lt_NL2SP='tr \r\n \100\100'
5464 ;;
5465esac
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5476echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5477if test "${lt_cv_ld_reload_flag+set}" = set; then
42ecbf5e 5478 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5479else
d7040cdb
SE
5480 lt_cv_ld_reload_flag='-r'
5481fi
5482echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5483echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5484reload_flag=$lt_cv_ld_reload_flag
5485case $reload_flag in
5486"" | " "*) ;;
5487*) reload_flag=" $reload_flag" ;;
5488esac
5489reload_cmds='$LD$reload_flag -o $output$reload_objs'
5490case $host_os in
5491 darwin*)
5492 if test "$GCC" = yes; then
5493 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5494 else
5495 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5496 fi
5497 ;;
5498esac
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5510echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
5511if test "${lt_cv_deplibs_check_method+set}" = set; then
5512 echo $ECHO_N "(cached) $ECHO_C" >&6
5513else
5514 lt_cv_file_magic_cmd='$MAGIC_CMD'
5515lt_cv_file_magic_test_file=
5516lt_cv_deplibs_check_method='unknown'
5517# Need to set the preceding variable on all platforms that support
5518# interlibrary dependencies.
5519# 'none' -- dependencies not supported.
5520# `unknown' -- same as none, but documents that we really don't know.
5521# 'pass_all' -- all dependencies passed with no checks.
5522# 'test_compile' -- check by making test program.
5523# 'file_magic [[regex]]' -- check by looking for files in library path
5524# which responds to the $file_magic_cmd with a given extended regex.
5525# If you have `file' or equivalent on your system and you're not sure
5526# whether `pass_all' will *always* work, you probably want this one.
5527
5528case $host_os in
50e7d84b 5529aix[4-9]*)
d7040cdb
SE
5530 lt_cv_deplibs_check_method=pass_all
5531 ;;
5532
5533beos*)
5534 lt_cv_deplibs_check_method=pass_all
5535 ;;
5536
5537bsdi[45]*)
5538 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5539 lt_cv_file_magic_cmd='/usr/bin/file -L'
5540 lt_cv_file_magic_test_file=/shlib/libc.so
5541 ;;
5542
5543cygwin*)
5544 # func_win32_libid is a shell function defined in ltmain.sh
5545 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5546 lt_cv_file_magic_cmd='func_win32_libid'
5547 ;;
5548
5549mingw* | pw32*)
5550 # Base MSYS/MinGW do not provide the 'file' command needed by
5551 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5552 # unless we find 'file', for example because we are cross-compiling.
5553 if ( file / ) >/dev/null 2>&1; then
5554 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5555 lt_cv_file_magic_cmd='func_win32_libid'
5556 else
5557 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5558 lt_cv_file_magic_cmd='$OBJDUMP -f'
5559 fi
5560 ;;
5561
5562darwin* | rhapsody*)
5563 lt_cv_deplibs_check_method=pass_all
d45dc31f 5564 ;;
d7040cdb
SE
5565
5566freebsd* | dragonfly*)
5567 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5568 case $host_cpu in
5569 i*86 )
5570 # Not sure whether the presence of OpenBSD here was a mistake.
5571 # Let's accept both of them until this is cleared up.
5572 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5573 lt_cv_file_magic_cmd=/usr/bin/file
5574 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5575 ;;
5576 esac
5577 else
5578 lt_cv_deplibs_check_method=pass_all
5579 fi
5580 ;;
5581
5582gnu*)
5583 lt_cv_deplibs_check_method=pass_all
d45dc31f 5584 ;;
d7040cdb
SE
5585
5586hpux10.20* | hpux11*)
5587 lt_cv_file_magic_cmd=/usr/bin/file
5588 case $host_cpu in
5589 ia64*)
5590 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5591 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5592 ;;
5593 hppa*64*)
5594 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]'
5595 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5596 ;;
d45dc31f 5597 *)
d7040cdb
SE
5598 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5599 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5600 ;;
5601 esac
5602 ;;
42ecbf5e 5603
d7040cdb
SE
5604interix[3-9]*)
5605 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5606 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5607 ;;
42ecbf5e 5608
d7040cdb
SE
5609irix5* | irix6* | nonstopux*)
5610 case $LD in
5611 *-32|*"-32 ") libmagic=32-bit;;
5612 *-n32|*"-n32 ") libmagic=N32;;
5613 *-64|*"-64 ") libmagic=64-bit;;
5614 *) libmagic=never-match;;
5615 esac
5616 lt_cv_deplibs_check_method=pass_all
d45dc31f 5617 ;;
42ecbf5e 5618
d7040cdb
SE
5619# This must be Linux ELF.
5620linux* | k*bsd*-gnu)
5621 lt_cv_deplibs_check_method=pass_all
5622 ;;
252b5132 5623
d7040cdb
SE
5624netbsd*)
5625 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5626 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
d45dc31f 5627 else
d7040cdb 5628 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
d45dc31f 5629 fi
d7040cdb
SE
5630 ;;
5631
5632newos6*)
5633 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5634 lt_cv_file_magic_cmd=/usr/bin/file
5635 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5636 ;;
5637
5638*nto* | *qnx*)
5639 lt_cv_deplibs_check_method=pass_all
5640 ;;
42ecbf5e 5641
d7040cdb
SE
5642openbsd*)
5643 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5644 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5645 else
5646 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
d45dc31f
SE
5647 fi
5648 ;;
d7040cdb
SE
5649
5650osf3* | osf4* | osf5*)
5651 lt_cv_deplibs_check_method=pass_all
5652 ;;
5653
5654rdos*)
5655 lt_cv_deplibs_check_method=pass_all
5656 ;;
5657
5658solaris*)
5659 lt_cv_deplibs_check_method=pass_all
5660 ;;
5661
5662sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5663 lt_cv_deplibs_check_method=pass_all
5664 ;;
5665
5666sysv4 | sysv4.3*)
5667 case $host_vendor in
5668 motorola)
5669 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]'
5670 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5671 ;;
5672 ncr)
5673 lt_cv_deplibs_check_method=pass_all
5674 ;;
5675 sequent)
5676 lt_cv_file_magic_cmd='/bin/file'
5677 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5678 ;;
5679 sni)
5680 lt_cv_file_magic_cmd='/bin/file'
5681 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5682 lt_cv_file_magic_test_file=/lib/libc.so
5683 ;;
5684 siemens)
5685 lt_cv_deplibs_check_method=pass_all
5686 ;;
5687 pc)
5688 lt_cv_deplibs_check_method=pass_all
5689 ;;
5690 esac
5691 ;;
5692
5693tpf*)
5694 lt_cv_deplibs_check_method=pass_all
5695 ;;
d45dc31f 5696esac
42ecbf5e 5697
d7040cdb
SE
5698fi
5699echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5700echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5701file_magic_cmd=$lt_cv_file_magic_cmd
5702deplibs_check_method=$lt_cv_deplibs_check_method
5703test -z "$deplibs_check_method" && deplibs_check_method=unknown
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
d45dc31f 5716if test -n "$ac_tool_prefix"; then
d7040cdb
SE
5717 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5718set dummy ${ac_tool_prefix}ar; ac_word=$2
d45dc31f
SE
5719echo "$as_me:$LINENO: checking for $ac_word" >&5
5720echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d7040cdb 5721if test "${ac_cv_prog_AR+set}" = set; then
d45dc31f 5722 echo $ECHO_N "(cached) $ECHO_C" >&6
42ecbf5e 5723else
d7040cdb
SE
5724 if test -n "$AR"; then
5725 ac_cv_prog_AR="$AR" # Let the user override the test.
d45dc31f
SE
5726else
5727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5728for as_dir in $PATH
5729do
5730 IFS=$as_save_IFS
5731 test -z "$as_dir" && as_dir=.
5732 for ac_exec_ext in '' $ac_executable_extensions; do
5733 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 5734 ac_cv_prog_AR="${ac_tool_prefix}ar"
d45dc31f
SE
5735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5736 break 2
5737 fi
5738done
5739done
42ecbf5e 5740
42ecbf5e 5741fi
d45dc31f 5742fi
d7040cdb
SE
5743AR=$ac_cv_prog_AR
5744if test -n "$AR"; then
5745 echo "$as_me:$LINENO: result: $AR" >&5
5746echo "${ECHO_T}$AR" >&6
d45dc31f
SE
5747else
5748 echo "$as_me:$LINENO: result: no" >&5
5749echo "${ECHO_T}no" >&6
5750fi
42ecbf5e
DJ
5751
5752fi
d7040cdb
SE
5753if test -z "$ac_cv_prog_AR"; then
5754 ac_ct_AR=$AR
5755 # Extract the first word of "ar", so it can be a program name with args.
5756set dummy ar; ac_word=$2
d45dc31f
SE
5757echo "$as_me:$LINENO: checking for $ac_word" >&5
5758echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d7040cdb 5759if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
42ecbf5e
DJ
5760 echo $ECHO_N "(cached) $ECHO_C" >&6
5761else
d7040cdb
SE
5762 if test -n "$ac_ct_AR"; then
5763 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
42ecbf5e 5764else
d45dc31f
SE
5765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5766for as_dir in $PATH
5767do
5768 IFS=$as_save_IFS
5769 test -z "$as_dir" && as_dir=.
5770 for ac_exec_ext in '' $ac_executable_extensions; do
5771 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 5772 ac_cv_prog_ac_ct_AR="ar"
d45dc31f
SE
5773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5774 break 2
5775 fi
5776done
5777done
42ecbf5e 5778
d7040cdb 5779 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
42ecbf5e 5780fi
42ecbf5e 5781fi
d7040cdb
SE
5782ac_ct_AR=$ac_cv_prog_ac_ct_AR
5783if test -n "$ac_ct_AR"; then
5784 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5785echo "${ECHO_T}$ac_ct_AR" >&6
252b5132 5786else
d45dc31f
SE
5787 echo "$as_me:$LINENO: result: no" >&5
5788echo "${ECHO_T}no" >&6
252b5132 5789fi
252b5132 5790
d7040cdb 5791 AR=$ac_ct_AR
d45dc31f 5792else
d7040cdb 5793 AR="$ac_cv_prog_AR"
d45dc31f 5794fi
42ecbf5e 5795
d7040cdb
SE
5796test -z "$AR" && AR=ar
5797test -z "$AR_FLAGS" && AR_FLAGS=cru
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
d45dc31f
SE
5809if test -n "$ac_tool_prefix"; then
5810 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5811set dummy ${ac_tool_prefix}strip; ac_word=$2
5812echo "$as_me:$LINENO: checking for $ac_word" >&5
5813echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5814if test "${ac_cv_prog_STRIP+set}" = set; then
5815 echo $ECHO_N "(cached) $ECHO_C" >&6
5816else
5817 if test -n "$STRIP"; then
5818 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5819else
5820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5821for as_dir in $PATH
42ecbf5e 5822do
d45dc31f
SE
5823 IFS=$as_save_IFS
5824 test -z "$as_dir" && as_dir=.
5825 for ac_exec_ext in '' $ac_executable_extensions; do
5826 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5827 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5829 break 2
5830 fi
5831done
5832done
5833
5834fi
5835fi
5836STRIP=$ac_cv_prog_STRIP
5837if test -n "$STRIP"; then
5838 echo "$as_me:$LINENO: result: $STRIP" >&5
5839echo "${ECHO_T}$STRIP" >&6
252b5132 5840else
d45dc31f
SE
5841 echo "$as_me:$LINENO: result: no" >&5
5842echo "${ECHO_T}no" >&6
5843fi
42ecbf5e 5844
252b5132 5845fi
d45dc31f
SE
5846if test -z "$ac_cv_prog_STRIP"; then
5847 ac_ct_STRIP=$STRIP
5848 # Extract the first word of "strip", so it can be a program name with args.
5849set dummy strip; ac_word=$2
5850echo "$as_me:$LINENO: checking for $ac_word" >&5
5851echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5852if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5853 echo $ECHO_N "(cached) $ECHO_C" >&6
5854else
5855 if test -n "$ac_ct_STRIP"; then
5856 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5857else
5858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5859for as_dir in $PATH
5860do
5861 IFS=$as_save_IFS
5862 test -z "$as_dir" && as_dir=.
5863 for ac_exec_ext in '' $ac_executable_extensions; do
5864 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5865 ac_cv_prog_ac_ct_STRIP="strip"
5866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5867 break 2
5868 fi
5869done
42ecbf5e 5870done
42ecbf5e 5871
d45dc31f
SE
5872 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5873fi
5874fi
5875ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5876if test -n "$ac_ct_STRIP"; then
5877 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5878echo "${ECHO_T}$ac_ct_STRIP" >&6
5879else
5880 echo "$as_me:$LINENO: result: no" >&5
5881echo "${ECHO_T}no" >&6
252b5132 5882fi
e5a52504 5883
d45dc31f
SE
5884 STRIP=$ac_ct_STRIP
5885else
5886 STRIP="$ac_cv_prog_STRIP"
5887fi
e5a52504 5888
d7040cdb 5889test -z "$STRIP" && STRIP=:
d45dc31f 5890
d45dc31f
SE
5891
5892
d45dc31f 5893
d45dc31f
SE
5894
5895
d7040cdb
SE
5896if test -n "$ac_tool_prefix"; then
5897 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5898set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5899echo "$as_me:$LINENO: checking for $ac_word" >&5
5900echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5901if test "${ac_cv_prog_RANLIB+set}" = set; then
5902 echo $ECHO_N "(cached) $ECHO_C" >&6
d45dc31f 5903else
d7040cdb
SE
5904 if test -n "$RANLIB"; then
5905 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5906else
5907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5908for as_dir in $PATH
5909do
5910 IFS=$as_save_IFS
5911 test -z "$as_dir" && as_dir=.
5912 for ac_exec_ext in '' $ac_executable_extensions; do
5913 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5914 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5916 break 2
d45dc31f 5917 fi
d7040cdb
SE
5918done
5919done
d45dc31f 5920
d7040cdb
SE
5921fi
5922fi
5923RANLIB=$ac_cv_prog_RANLIB
5924if test -n "$RANLIB"; then
5925 echo "$as_me:$LINENO: result: $RANLIB" >&5
5926echo "${ECHO_T}$RANLIB" >&6
5927else
5928 echo "$as_me:$LINENO: result: no" >&5
5929echo "${ECHO_T}no" >&6
5930fi
d45dc31f 5931
d7040cdb
SE
5932fi
5933if test -z "$ac_cv_prog_RANLIB"; then
5934 ac_ct_RANLIB=$RANLIB
5935 # Extract the first word of "ranlib", so it can be a program name with args.
5936set dummy ranlib; ac_word=$2
5937echo "$as_me:$LINENO: checking for $ac_word" >&5
5938echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5939if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5940 echo $ECHO_N "(cached) $ECHO_C" >&6
5941else
5942 if test -n "$ac_ct_RANLIB"; then
5943 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5944else
5945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5946for as_dir in $PATH
5947do
5948 IFS=$as_save_IFS
5949 test -z "$as_dir" && as_dir=.
5950 for ac_exec_ext in '' $ac_executable_extensions; do
5951 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5952 ac_cv_prog_ac_ct_RANLIB="ranlib"
5953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5954 break 2
d45dc31f 5955 fi
d7040cdb
SE
5956done
5957done
d45dc31f 5958
d7040cdb
SE
5959 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5960fi
5961fi
5962ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5963if test -n "$ac_ct_RANLIB"; then
5964 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5965echo "${ECHO_T}$ac_ct_RANLIB" >&6
d15b04bd 5966else
d7040cdb
SE
5967 echo "$as_me:$LINENO: result: no" >&5
5968echo "${ECHO_T}no" >&6
5969fi
252b5132 5970
d7040cdb
SE
5971 RANLIB=$ac_ct_RANLIB
5972else
5973 RANLIB="$ac_cv_prog_RANLIB"
5974fi
d45dc31f 5975
d7040cdb 5976test -z "$RANLIB" && RANLIB=:
d45dc31f 5977
d45dc31f 5978
d45dc31f 5979
42ecbf5e 5980
e5a52504 5981
d7040cdb
SE
5982
5983# Determine commands to create old-style static archives.
5984old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5985old_postinstall_cmds='chmod 644 $oldlib'
5986old_postuninstall_cmds=
5987
5988if test -n "$RANLIB"; then
5989 case $host_os in
5990 openbsd*)
5991 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5992 ;;
5993 *)
5994 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5995 ;;
5996 esac
5997 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
d45dc31f 5998fi
d45dc31f
SE
5999
6000
d45dc31f
SE
6001
6002
d15b04bd 6003
3e321448 6004
d45dc31f 6005
d45dc31f 6006
d45dc31f
SE
6007
6008
d45dc31f 6009
d45dc31f 6010
d45dc31f
SE
6011
6012
6013
6014
6015
6016
6017
d45dc31f 6018
d45dc31f 6019
d45dc31f 6020
d45dc31f 6021
d45dc31f 6022
d45dc31f 6023
d45dc31f 6024
d45dc31f 6025
3e321448
L
6026
6027
d45dc31f
SE
6028
6029
d45dc31f
SE
6030
6031
d45dc31f 6032
d7040cdb
SE
6033# If no C compiler was specified, use CC.
6034LTCC=${LTCC-"$CC"}
42ecbf5e 6035
d7040cdb
SE
6036# If no C compiler flags were specified, use CFLAGS.
6037LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
e5a52504 6038
d7040cdb
SE
6039# Allow CC to be a program name with arguments.
6040compiler=$CC
d15b04bd 6041
d7040cdb
SE
6042
6043# Check for command to grab the raw symbol name followed by C symbol from nm.
6044echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6045echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6046if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
42ecbf5e 6047 echo $ECHO_N "(cached) $ECHO_C" >&6
d15b04bd 6048else
d7040cdb
SE
6049
6050# These are sane defaults that work on at least a few old systems.
6051# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6052
6053# Character class describing NM global symbol codes.
6054symcode='[BCDEGRST]'
6055
6056# Regexp to match symbols that can be accessed directly from C.
6057sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6058
6059# Define system-specific variables.
6060case $host_os in
6061aix*)
6062 symcode='[BCDT]'
6063 ;;
6064cygwin* | mingw* | pw32*)
6065 symcode='[ABCDGISTW]'
6066 ;;
6067hpux*)
6068 if test "$host_cpu" = ia64; then
6069 symcode='[ABCDEGRST]'
42ecbf5e 6070 fi
d7040cdb
SE
6071 ;;
6072irix* | nonstopux*)
6073 symcode='[BCDEGRST]'
6074 ;;
6075osf*)
6076 symcode='[BCDEGQRST]'
6077 ;;
6078solaris*)
6079 symcode='[BDRT]'
6080 ;;
6081sco3.2v5*)
6082 symcode='[DT]'
6083 ;;
6084sysv4.2uw2*)
6085 symcode='[DT]'
6086 ;;
6087sysv5* | sco5v6* | unixware* | OpenUNIX*)
6088 symcode='[ABDT]'
6089 ;;
6090sysv4)
6091 symcode='[DFNSTU]'
6092 ;;
6093esac
d15b04bd 6094
d7040cdb
SE
6095# If we're using GNU nm, then use its standard symbol codes.
6096case `$NM -V 2>&1` in
6097*GNU* | *'with BFD'*)
6098 symcode='[ABCDGIRSTW]' ;;
6099esac
e5a52504 6100
d7040cdb
SE
6101# Transform an extracted symbol line into a proper C declaration.
6102# Some systems (esp. on ia64) link data and code symbols differently,
7357c5b6
AM
6103# so use this general approach.
6104lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
d7040cdb 6105
7357c5b6
AM
6106# Transform an extracted symbol line into symbol name and symbol address
6107lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
d7040cdb 6108
7357c5b6
AM
6109# Handle CRLF in mingw tool chain
6110opt_cr=
6111case $build_os in
6112mingw*)
6113 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6114 ;;
6115esac
d7040cdb 6116
7357c5b6
AM
6117# Try without a prefix underscore, then with it.
6118for ac_symprfx in "" "_"; do
d7040cdb 6119
7357c5b6
AM
6120 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6121 symxfrm="\\1 $ac_symprfx\\2 \\2"
d7040cdb 6122
7357c5b6
AM
6123 # Write the raw and C identifiers.
6124 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6125 # Fake it for dumpbin and say T for any non-static function
6126 # and D for any global variable.
6127 # Also find C++ and __fastcall symbols from MSVC++,
6128 # which start with @ or ?.
6129 lt_cv_sys_global_symbol_pipe="$AWK '"\
6130" {last_section=section; section=\$ 3};"\
6131" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6132" \$ 0!~/External *\|/{next};"\
6133" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6134" {if(hide[section]) next};"\
6135" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6136" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6137" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6138" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6139" ' prfx=^$ac_symprfx"
6140 else
6141 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6142 fi
6143
6144 # Check to see that the pipe works correctly.
6145 pipe_works=no
6146
6147 rm -f conftest*
6148 cat > conftest.$ac_ext <<_LT_EOF
6149#ifdef __cplusplus
6150extern "C" {
6151#endif
6152char nm_test_var;
6153void nm_test_func(void);
6154void nm_test_func(void){}
6155#ifdef __cplusplus
d7040cdb 6156}
7357c5b6
AM
6157#endif
6158int main(){nm_test_var='a';nm_test_func();return(0);}
6159_LT_EOF
6160
6161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6162 (eval $ac_compile) 2>&5
42ecbf5e
DJ
6163 ac_status=$?
6164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357c5b6
AM
6165 (exit $ac_status); }; then
6166 # Now try to grab the symbols.
6167 nlist=conftest.nm
6168 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6169 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
42ecbf5e
DJ
6170 ac_status=$?
6171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357c5b6
AM
6172 (exit $ac_status); } && test -s "$nlist"; then
6173 # Try sorting and uniquifying the output.
6174 if sort "$nlist" | uniq > "$nlist"T; then
6175 mv -f "$nlist"T "$nlist"
6176 else
6177 rm -f "$nlist"T
6178 fi
d7040cdb 6179
7357c5b6
AM
6180 # Make sure that we snagged all the symbols we need.
6181 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6182 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6183 cat <<_LT_EOF > conftest.$ac_ext
6184#ifdef __cplusplus
6185extern "C" {
6186#endif
e5a52504 6187
7357c5b6
AM
6188_LT_EOF
6189 # Now generate the symbol file.
6190 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7148cc28 6191
7357c5b6 6192 cat <<_LT_EOF >> conftest.$ac_ext
d7040cdb 6193
7357c5b6
AM
6194/* The mapping between symbol names and symbols. */
6195const struct {
6196 const char *name;
6197 void *address;
6198}
6199lt__PROGRAM__LTX_preloaded_symbols[] =
6200{
6201 { "@PROGRAM@", (void *) 0 },
6202_LT_EOF
6203 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6204 cat <<\_LT_EOF >> conftest.$ac_ext
6205 {0, (void *) 0}
6206};
d7040cdb 6207
7357c5b6
AM
6208/* This works around a problem in FreeBSD linker */
6209#ifdef FREEBSD_WORKAROUND
6210static const void *lt_preloaded_setup() {
6211 return lt__PROGRAM__LTX_preloaded_symbols;
6212}
d7040cdb
SE
6213#endif
6214
7357c5b6 6215#ifdef __cplusplus
d7040cdb 6216}
7357c5b6
AM
6217#endif
6218_LT_EOF
6219 # Now try linking the two files.
6220 mv conftest.$ac_objext conftstm.$ac_objext
6221 lt_save_LIBS="$LIBS"
6222 lt_save_CFLAGS="$CFLAGS"
6223 LIBS="conftstm.$ac_objext"
6224 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d7040cdb
SE
6226 (eval $ac_link) 2>&5
6227 ac_status=$?
6228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357c5b6
AM
6229 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6230 pipe_works=yes
6231 fi
6232 LIBS="$lt_save_LIBS"
6233 CFLAGS="$lt_save_CFLAGS"
6234 else
6235 echo "cannot find nm_test_func in $nlist" >&5
6236 fi
6237 else
6238 echo "cannot find nm_test_var in $nlist" >&5
6239 fi
6240 else
6241 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6242 fi
6243 else
6244 echo "$progname: failed program was:" >&5
6245 cat conftest.$ac_ext >&5
6246 fi
6247 rm -f conftest* conftst*
6248
6249 # Do not use the global_symbol_pipe unless it works.
6250 if test "$pipe_works" = yes; then
6251 break
6252 else
6253 lt_cv_sys_global_symbol_pipe=
6254 fi
6255done
d7040cdb 6256
d7040cdb 6257fi
7357c5b6
AM
6258
6259if test -z "$lt_cv_sys_global_symbol_pipe"; then
6260 lt_cv_sys_global_symbol_to_cdecl=
d7040cdb 6261fi
7357c5b6
AM
6262if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6263 echo "$as_me:$LINENO: result: failed" >&5
6264echo "${ECHO_T}failed" >&6
6265else
6266 echo "$as_me:$LINENO: result: ok" >&5
6267echo "${ECHO_T}ok" >&6
d7040cdb 6268fi
20e95c23 6269
20e95c23
DJ
6270
6271
20e95c23
DJ
6272
6273
20e95c23 6274
20e95c23 6275
20e95c23 6276
20e95c23 6277
20e95c23 6278
20e95c23
DJ
6279
6280
7357c5b6
AM
6281
6282
6283
6284
6285
6286# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6287if test "${enable_libtool_lock+set}" = set; then
6288 enableval="$enable_libtool_lock"
6289
6290fi;
6291test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6292
6293# Some flags need to be propagated to the compiler or linker for good
6294# libtool support.
6295case $host in
6296ia64-*-hpux*)
6297 # Find out which ABI we are using.
6298 echo 'int i;' > conftest.$ac_ext
6299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6300 (eval $ac_compile) 2>&5
6301 ac_status=$?
6302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6303 (exit $ac_status); }; then
6304 case `/usr/bin/file conftest.$ac_objext` in
6305 *ELF-32*)
6306 HPUX_IA64_MODE="32"
6307 ;;
6308 *ELF-64*)
6309 HPUX_IA64_MODE="64"
6310 ;;
6311 esac
6312 fi
6313 rm -rf conftest*
6314 ;;
6315*-*-irix6*)
6316 # Find out which ABI we are using.
da594c4a 6317 echo '#line 6317 "configure"' > conftest.$ac_ext
7357c5b6
AM
6318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6319 (eval $ac_compile) 2>&5
6320 ac_status=$?
6321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322 (exit $ac_status); }; then
6323 if test "$lt_cv_prog_gnu_ld" = yes; then
6324 case `/usr/bin/file conftest.$ac_objext` in
6325 *32-bit*)
6326 LD="${LD-ld} -melf32bsmip"
6327 ;;
6328 *N32*)
6329 LD="${LD-ld} -melf32bmipn32"
6330 ;;
6331 *64-bit*)
6332 LD="${LD-ld} -melf64bmip"
6333 ;;
6334 esac
6335 else
6336 case `/usr/bin/file conftest.$ac_objext` in
6337 *32-bit*)
6338 LD="${LD-ld} -32"
6339 ;;
6340 *N32*)
6341 LD="${LD-ld} -n32"
6342 ;;
6343 *64-bit*)
6344 LD="${LD-ld} -64"
6345 ;;
6346 esac
6347 fi
6348 fi
6349 rm -rf conftest*
6350 ;;
6351
6352x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6353s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6354 # Find out which ABI we are using.
6355 echo 'int i;' > conftest.$ac_ext
6356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6357 (eval $ac_compile) 2>&5
6358 ac_status=$?
6359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360 (exit $ac_status); }; then
6361 case `/usr/bin/file conftest.o` in
6362 *32-bit*)
6363 case $host in
6364 x86_64-*kfreebsd*-gnu)
6365 LD="${LD-ld} -m elf_i386_fbsd"
6366 ;;
6367 x86_64-*linux*)
6368 LD="${LD-ld} -m elf_i386"
6369 ;;
6370 ppc64-*linux*|powerpc64-*linux*)
6371 LD="${LD-ld} -m elf32ppclinux"
6372 ;;
6373 s390x-*linux*)
6374 LD="${LD-ld} -m elf_s390"
6375 ;;
6376 sparc64-*linux*)
6377 LD="${LD-ld} -m elf32_sparc"
6378 ;;
6379 esac
6380 ;;
6381 *64-bit*)
6382 case $host in
6383 x86_64-*kfreebsd*-gnu)
6384 LD="${LD-ld} -m elf_x86_64_fbsd"
6385 ;;
6386 x86_64-*linux*)
6387 LD="${LD-ld} -m elf_x86_64"
6388 ;;
6389 ppc*-*linux*|powerpc*-*linux*)
6390 LD="${LD-ld} -m elf64ppc"
6391 ;;
6392 s390*-*linux*|s390*-*tpf*)
6393 LD="${LD-ld} -m elf64_s390"
6394 ;;
6395 sparc*-*linux*)
6396 LD="${LD-ld} -m elf64_sparc"
6397 ;;
6398 esac
6399 ;;
6400 esac
6401 fi
6402 rm -rf conftest*
6403 ;;
6404
6405*-*-sco3.2v5*)
6406 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6407 SAVE_CFLAGS="$CFLAGS"
6408 CFLAGS="$CFLAGS -belf"
6409 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6410echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6411if test "${lt_cv_cc_needs_belf+set}" = set; then
d7040cdb
SE
6412 echo $ECHO_N "(cached) $ECHO_C" >&6
6413else
7357c5b6
AM
6414 ac_ext=c
6415ac_cpp='$CPP $CPPFLAGS'
6416ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6417ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6418ac_compiler_gnu=$ac_cv_c_compiler_gnu
6419
6420 cat >conftest.$ac_ext <<_ACEOF
d7040cdb
SE
6421/* confdefs.h. */
6422_ACEOF
6423cat confdefs.h >>conftest.$ac_ext
6424cat >>conftest.$ac_ext <<_ACEOF
6425/* end confdefs.h. */
20e95c23 6426
7357c5b6
AM
6427int
6428main ()
6429{
6430
6431 ;
6432 return 0;
6433}
d7040cdb 6434_ACEOF
7357c5b6
AM
6435rm -f conftest.$ac_objext conftest$ac_exeext
6436if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6437 (eval $ac_link) 2>conftest.er1
d7040cdb
SE
6438 ac_status=$?
6439 grep -v '^ *+' conftest.er1 >conftest.err
6440 rm -f conftest.er1
6441 cat conftest.err >&5
6442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443 (exit $ac_status); } &&
7357c5b6
AM
6444 { ac_try='test -z "$ac_c_werror_flag"
6445 || test ! -s conftest.err'
d7040cdb
SE
6446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6447 (eval $ac_try) 2>&5
6448 ac_status=$?
6449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6450 (exit $ac_status); }; } &&
7357c5b6 6451 { ac_try='test -s conftest$ac_exeext'
d7040cdb
SE
6452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6453 (eval $ac_try) 2>&5
6454 ac_status=$?
6455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6456 (exit $ac_status); }; }; then
7357c5b6 6457 lt_cv_cc_needs_belf=yes
d15b04bd 6458else
d7040cdb
SE
6459 echo "$as_me: failed program was:" >&5
6460sed 's/^/| /' conftest.$ac_ext >&5
20e95c23 6461
7357c5b6 6462lt_cv_cc_needs_belf=no
d7040cdb 6463fi
7357c5b6
AM
6464rm -f conftest.err conftest.$ac_objext \
6465 conftest$ac_exeext conftest.$ac_ext
6466 ac_ext=c
6467ac_cpp='$CPP $CPPFLAGS'
6468ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6469ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6470ac_compiler_gnu=$ac_cv_c_compiler_gnu
20e95c23 6471
d7040cdb 6472fi
7357c5b6
AM
6473echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6474echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6475 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6476 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6477 CFLAGS="$SAVE_CFLAGS"
6478 fi
6479 ;;
6480sparc*-*solaris*)
6481 # Find out which ABI we are using.
6482 echo 'int i;' > conftest.$ac_ext
6483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6484 (eval $ac_compile) 2>&5
6485 ac_status=$?
6486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487 (exit $ac_status); }; then
6488 case `/usr/bin/file conftest.o` in
6489 *64-bit*)
6490 case $lt_cv_prog_gnu_ld in
6491 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6492 *) LD="${LD-ld} -64" ;;
6493 esac
6494 ;;
6495 esac
6496 fi
6497 rm -rf conftest*
6498 ;;
6499esac
20e95c23 6500
7357c5b6 6501need_locks="$enable_libtool_lock"
20e95c23
DJ
6502
6503
d7040cdb
SE
6504for ac_header in dlfcn.h
6505do
6506as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6507echo "$as_me:$LINENO: checking for $ac_header" >&5
6508echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6509if eval "test \"\${$as_ac_Header+set}\" = set"; then
6510 echo $ECHO_N "(cached) $ECHO_C" >&6
6511else
6512 cat >conftest.$ac_ext <<_ACEOF
6513/* confdefs.h. */
6514_ACEOF
6515cat confdefs.h >>conftest.$ac_ext
6516cat >>conftest.$ac_ext <<_ACEOF
6517/* end confdefs.h. */
6518$ac_includes_default
42ecbf5e 6519
d7040cdb
SE
6520#include <$ac_header>
6521_ACEOF
6522rm -f conftest.$ac_objext
6523if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6524 (eval $ac_compile) 2>conftest.er1
6525 ac_status=$?
6526 grep -v '^ *+' conftest.er1 >conftest.err
6527 rm -f conftest.er1
6528 cat conftest.err >&5
6529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530 (exit $ac_status); } &&
7357c5b6
AM
6531 { ac_try='test -z "$ac_c_werror_flag"
6532 || test ! -s conftest.err'
d7040cdb
SE
6533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6534 (eval $ac_try) 2>&5
6535 ac_status=$?
6536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537 (exit $ac_status); }; } &&
6538 { ac_try='test -s conftest.$ac_objext'
6539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6540 (eval $ac_try) 2>&5
6541 ac_status=$?
6542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543 (exit $ac_status); }; }; then
6544 eval "$as_ac_Header=yes"
20e95c23 6545else
d7040cdb
SE
6546 echo "$as_me: failed program was:" >&5
6547sed 's/^/| /' conftest.$ac_ext >&5
6548
6549eval "$as_ac_Header=no"
d15b04bd 6550fi
d7040cdb
SE
6551rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6552fi
6553echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6554echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6555if test `eval echo '${'$as_ac_Header'}'` = yes; then
6556 cat >>confdefs.h <<_ACEOF
6557#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6558_ACEOF
20e95c23 6559
d7040cdb
SE
6560fi
6561
6562done
6563
6564
6565
6566# This can be used to rebuild libtool when needed
6567LIBTOOL_DEPS="$ltmain"
6568
6569# Always use our own libtool.
6570LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596test -z "$LN_S" && LN_S="ln -s"
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611if test -n "${ZSH_VERSION+set}" ; then
6612 setopt NO_GLOB_SUBST
6613fi
6614
6615echo "$as_me:$LINENO: checking for objdir" >&5
6616echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6617if test "${lt_cv_objdir+set}" = set; then
20e95c23
DJ
6618 echo $ECHO_N "(cached) $ECHO_C" >&6
6619else
d7040cdb
SE
6620 rm -f .libs 2>/dev/null
6621mkdir .libs 2>/dev/null
6622if test -d .libs; then
6623 lt_cv_objdir=.libs
42ecbf5e 6624else
d7040cdb
SE
6625 # MS-DOS does not allow filenames that begin with a dot.
6626 lt_cv_objdir=_libs
6627fi
6628rmdir .libs 2>/dev/null
42ecbf5e 6629fi
d7040cdb
SE
6630echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6631echo "${ECHO_T}$lt_cv_objdir" >&6
6632objdir=$lt_cv_objdir
42ecbf5e 6633
d7040cdb
SE
6634
6635
6636
6637
6638cat >>confdefs.h <<_ACEOF
6639#define LT_OBJDIR "$lt_cv_objdir/"
6640_ACEOF
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658case $host_os in
6659aix3*)
6660 # AIX sometimes has problems with the GCC collect2 program. For some
6661 # reason, if we set the COLLECT_NAMES environment variable, the problems
6662 # vanish in a puff of smoke.
6663 if test "X${COLLECT_NAMES+set}" != Xset; then
6664 COLLECT_NAMES=
6665 export COLLECT_NAMES
6666 fi
6667 ;;
6668esac
6669
6670# Sed substitution that helps us do robust quoting. It backslashifies
6671# metacharacters that are still active within double-quoted strings.
6672sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6673
6674# Same as above, but do not quote variable references.
6675double_quote_subst='s/\(["`\\]\)/\\\1/g'
6676
6677# Sed substitution to delay expansion of an escaped shell variable in a
6678# double_quote_subst'ed string.
6679delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6680
6681# Sed substitution to delay expansion of an escaped single quote.
6682delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6683
6684# Sed substitution to avoid accidental globbing in evaled expressions
6685no_glob_subst='s/\*/\\\*/g'
6686
6687# Global variables:
6688ofile=libtool
6689can_build_shared=yes
6690
6691# All known linkers require a `.a' archive for static linking (except MSVC,
6692# which needs '.lib').
6693libext=a
6694
6695with_gnu_ld="$lt_cv_prog_gnu_ld"
6696
6697old_CC="$CC"
6698old_CFLAGS="$CFLAGS"
6699
6700# Set sane defaults for various variables
6701test -z "$CC" && CC=cc
6702test -z "$LTCC" && LTCC=$CC
6703test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6704test -z "$LD" && LD=ld
6705test -z "$ac_objext" && ac_objext=o
6706
6707for cc_temp in $compiler""; do
6708 case $cc_temp in
6709 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6710 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6711 \-*) ;;
6712 *) break;;
6713 esac
6714done
6715cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6716
6717
6718# Only perform the check for file, if the check method requires it
6719test -z "$MAGIC_CMD" && MAGIC_CMD=file
6720case $deplibs_check_method in
6721file_magic*)
6722 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6723 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6724echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6725if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
42ecbf5e
DJ
6726 echo $ECHO_N "(cached) $ECHO_C" >&6
6727else
d7040cdb
SE
6728 case $MAGIC_CMD in
6729[\\/*] | ?:[\\/]*)
6730 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
20e95c23 6731 ;;
d7040cdb
SE
6732*)
6733 lt_save_MAGIC_CMD="$MAGIC_CMD"
6734 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6735 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6736 for ac_dir in $ac_dummy; do
6737 IFS="$lt_save_ifs"
6738 test -z "$ac_dir" && ac_dir=.
6739 if test -f $ac_dir/${ac_tool_prefix}file; then
6740 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6741 if test -n "$file_magic_test_file"; then
6742 case $deplibs_check_method in
6743 "file_magic "*)
6744 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6745 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6746 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6747 $EGREP "$file_magic_regex" > /dev/null; then
6748 :
6749 else
6750 cat <<_LT_EOF 1>&2
42ecbf5e 6751
d7040cdb
SE
6752*** Warning: the command libtool uses to detect shared libraries,
6753*** $file_magic_cmd, produces output that libtool cannot recognize.
6754*** The result is that libtool may fail to recognize shared libraries
6755*** as such. This will affect the creation of libtool libraries that
6756*** depend on shared libraries, but programs linked with such libtool
6757*** libraries will work regardless of this problem. Nevertheless, you
6758*** may want to report the problem to your system manager and/or to
6759*** bug-libtool@gnu.org
6760
6761_LT_EOF
6762 fi ;;
6763 esac
6764 fi
6765 break
6766 fi
6767 done
6768 IFS="$lt_save_ifs"
6769 MAGIC_CMD="$lt_save_MAGIC_CMD"
20e95c23
DJ
6770 ;;
6771esac
42ecbf5e 6772fi
20e95c23 6773
d7040cdb
SE
6774MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6775if test -n "$MAGIC_CMD"; then
6776 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6777echo "${ECHO_T}$MAGIC_CMD" >&6
42ecbf5e
DJ
6778else
6779 echo "$as_me:$LINENO: result: no" >&5
6780echo "${ECHO_T}no" >&6
6781fi
6782
20e95c23
DJ
6783
6784
42ecbf5e 6785
20e95c23 6786
d7040cdb
SE
6787if test -z "$lt_cv_path_MAGIC_CMD"; then
6788 if test -n "$ac_tool_prefix"; then
6789 echo "$as_me:$LINENO: checking for file" >&5
6790echo $ECHO_N "checking for file... $ECHO_C" >&6
6791if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
42ecbf5e
DJ
6792 echo $ECHO_N "(cached) $ECHO_C" >&6
6793else
d7040cdb
SE
6794 case $MAGIC_CMD in
6795[\\/*] | ?:[\\/]*)
6796 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6797 ;;
6798*)
6799 lt_save_MAGIC_CMD="$MAGIC_CMD"
6800 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6801 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6802 for ac_dir in $ac_dummy; do
6803 IFS="$lt_save_ifs"
6804 test -z "$ac_dir" && ac_dir=.
6805 if test -f $ac_dir/file; then
6806 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6807 if test -n "$file_magic_test_file"; then
6808 case $deplibs_check_method in
6809 "file_magic "*)
6810 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6811 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6812 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6813 $EGREP "$file_magic_regex" > /dev/null; then
6814 :
6815 else
6816 cat <<_LT_EOF 1>&2
6817
6818*** Warning: the command libtool uses to detect shared libraries,
6819*** $file_magic_cmd, produces output that libtool cannot recognize.
6820*** The result is that libtool may fail to recognize shared libraries
6821*** as such. This will affect the creation of libtool libraries that
6822*** depend on shared libraries, but programs linked with such libtool
6823*** libraries will work regardless of this problem. Nevertheless, you
6824*** may want to report the problem to your system manager and/or to
6825*** bug-libtool@gnu.org
6826
6827_LT_EOF
6828 fi ;;
6829 esac
6830 fi
6831 break
6832 fi
6833 done
6834 IFS="$lt_save_ifs"
6835 MAGIC_CMD="$lt_save_MAGIC_CMD"
6836 ;;
20e95c23
DJ
6837esac
6838fi
d7040cdb
SE
6839
6840MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6841if test -n "$MAGIC_CMD"; then
6842 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6843echo "${ECHO_T}$MAGIC_CMD" >&6
20e95c23
DJ
6844else
6845 echo "$as_me:$LINENO: result: no" >&5
6846echo "${ECHO_T}no" >&6
6847fi
6848
20e95c23 6849
42ecbf5e 6850 else
d7040cdb 6851 MAGIC_CMD=:
42ecbf5e 6852 fi
42ecbf5e 6853fi
42ecbf5e 6854
20e95c23 6855 fi
d7040cdb
SE
6856 ;;
6857esac
42ecbf5e 6858
d7040cdb 6859# Use C for the default configuration in the libtool script
42ecbf5e 6860
d7040cdb
SE
6861lt_save_CC="$CC"
6862ac_ext=c
6863ac_cpp='$CPP $CPPFLAGS'
6864ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6865ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6866ac_compiler_gnu=$ac_cv_c_compiler_gnu
42ecbf5e 6867
42ecbf5e 6868
d7040cdb
SE
6869# Source file extension for C test sources.
6870ac_ext=c
42ecbf5e 6871
d7040cdb
SE
6872# Object file extension for compiled C test sources.
6873objext=o
6874objext=$objext
42ecbf5e 6875
d7040cdb
SE
6876# Code to be used in simple compile tests
6877lt_simple_compile_test_code="int some_variable = 0;"
42ecbf5e 6878
d7040cdb
SE
6879# Code to be used in simple link tests
6880lt_simple_link_test_code='int main(){return(0);}'
42ecbf5e 6881
ac48eca1 6882
42ecbf5e 6883
42ecbf5e 6884
d5fbea21 6885
d5fbea21
DJ
6886
6887
d7040cdb
SE
6888# If no C compiler was specified, use CC.
6889LTCC=${LTCC-"$CC"}
20e95c23 6890
d7040cdb
SE
6891# If no C compiler flags were specified, use CFLAGS.
6892LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
42ecbf5e 6893
d7040cdb
SE
6894# Allow CC to be a program name with arguments.
6895compiler=$CC
252b5132 6896
d7040cdb
SE
6897# Save the default compiler, since it gets overwritten when the other
6898# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6899compiler_DEFAULT=$CC
42ecbf5e 6900
d7040cdb
SE
6901# save warnings/boilerplate of simple test code
6902ac_outfile=conftest.$ac_objext
6903echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6904eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6905_lt_compiler_boilerplate=`cat conftest.err`
6906$RM conftest*
252b5132 6907
d7040cdb
SE
6908ac_outfile=conftest.$ac_objext
6909echo "$lt_simple_link_test_code" >conftest.$ac_ext
6910eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6911_lt_linker_boilerplate=`cat conftest.err`
6912$RM conftest*
252b5132 6913
42ecbf5e 6914
d7040cdb
SE
6915## CAVEAT EMPTOR:
6916## There is no encapsulation within the following macros, do not change
6917## the running order or otherwise move them around unless you know exactly
6918## what you are doing...
6919if test -n "$compiler"; then
252b5132 6920
d7040cdb 6921lt_prog_compiler_no_builtin_flag=
252b5132 6922
d7040cdb
SE
6923if test "$GCC" = yes; then
6924 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
d15b04bd 6925
d7040cdb
SE
6926 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6927echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6928if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
20e95c23 6929 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6930else
d7040cdb
SE
6931 lt_cv_prog_compiler_rtti_exceptions=no
6932 ac_outfile=conftest.$ac_objext
6933 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6934 lt_compiler_flag="-fno-rtti -fno-exceptions"
6935 # Insert the option either (1) after the last *FLAGS variable, or
6936 # (2) before a word containing "conftest.", or (3) at the end.
6937 # Note that $ac_compile itself does not contain backslashes and begins
6938 # with a dollar sign (not a hyphen), so the echo should work correctly.
6939 # The option is referenced via a variable to avoid confusing sed.
6940 lt_compile=`echo "$ac_compile" | $SED \
6941 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6942 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6943 -e 's:$: $lt_compiler_flag:'`
da594c4a 6944 (eval echo "\"\$as_me:6944: $lt_compile\"" >&5)
d7040cdb
SE
6945 (eval "$lt_compile" 2>conftest.err)
6946 ac_status=$?
6947 cat conftest.err >&5
da594c4a 6948 echo "$as_me:6948: \$? = $ac_status" >&5
d7040cdb
SE
6949 if (exit $ac_status) && test -s "$ac_outfile"; then
6950 # The compiler can only warn and ignore the option if not recognized
6951 # So say no if there are warnings other than the usual output.
6952 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6953 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6954 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6955 lt_cv_prog_compiler_rtti_exceptions=yes
6956 fi
6957 fi
6958 $RM conftest*
42ecbf5e 6959
252b5132 6960fi
d7040cdb
SE
6961echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6962echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6963
6964if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6965 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
20e95c23 6966else
d7040cdb 6967 :
252b5132 6968fi
252b5132
RH
6969
6970fi
d7040cdb
SE
6971
6972
6973
6974
6975
6976
6977 lt_prog_compiler_wl=
6978lt_prog_compiler_pic=
6979lt_prog_compiler_static=
6980
6981echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6982echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6983
6984 if test "$GCC" = yes; then
6985 lt_prog_compiler_wl='-Wl,'
6986 lt_prog_compiler_static='-static'
6987
6988 case $host_os in
6989 aix*)
6990 # All AIX code is PIC.
6991 if test "$host_cpu" = ia64; then
6992 # AIX 5 now supports IA64 processor
6993 lt_prog_compiler_static='-Bstatic'
6994 fi
6995 ;;
6996
6997 amigaos*)
6998 if test "$host_cpu" = m68k; then
6999 # FIXME: we need at least 68020 code to build shared libraries, but
7000 # adding the `-m68020' flag to GCC prevents building anything better,
7001 # like `-m68040'.
7002 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7003 fi
7004 ;;
7005
7006 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7007 # PIC is the default for these OSes.
7008 ;;
7009
7010 mingw* | cygwin* | pw32* | os2*)
7011 # This hack is so that the source file can tell whether it is being
7012 # built for inclusion in a dll (and should export symbols for example).
7013 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7014 # (--disable-auto-import) libraries
7015 lt_prog_compiler_pic='-DDLL_EXPORT'
7016 ;;
7017
7018 darwin* | rhapsody*)
7019 # PIC is the default on this platform
7020 # Common symbols not allowed in MH_DYLIB files
7021 lt_prog_compiler_pic='-fno-common'
7022 ;;
7023
7024 hpux*)
7025 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7026 # not for PA HP-UX.
7027 case $host_cpu in
7028 hppa*64*|ia64*)
7029 # +Z the default
7030 ;;
7031 *)
7032 lt_prog_compiler_pic='-fPIC'
7033 ;;
7034 esac
7035 ;;
7036
7037 interix[3-9]*)
7038 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7039 # Instead, we relocate shared libraries at runtime.
7040 ;;
7041
7042 msdosdjgpp*)
7043 # Just because we use GCC doesn't mean we suddenly get shared libraries
7044 # on systems that don't support them.
7045 lt_prog_compiler_can_build_shared=no
7046 enable_shared=no
7047 ;;
7048
7049 *nto* | *qnx*)
7050 # QNX uses GNU C++, but need to define -shared option too, otherwise
7051 # it will coredump.
7052 lt_prog_compiler_pic='-fPIC -shared'
7053 ;;
7054
7055 sysv4*MP*)
7056 if test -d /usr/nec; then
7057 lt_prog_compiler_pic=-Kconform_pic
7058 fi
7059 ;;
7060
7061 *)
7062 lt_prog_compiler_pic='-fPIC'
7063 ;;
7064 esac
7065 else
7066 # PORTME Check for flag to pass linker flags through the system compiler.
7067 case $host_os in
7068 aix*)
7069 lt_prog_compiler_wl='-Wl,'
7070 if test "$host_cpu" = ia64; then
7071 # AIX 5 now supports IA64 processor
7072 lt_prog_compiler_static='-Bstatic'
7073 else
7074 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7075 fi
7076 ;;
7077 darwin*)
7078 # PIC is the default on this platform
7079 # Common symbols not allowed in MH_DYLIB files
7080 case $cc_basename in
7081 xlc*)
7082 lt_prog_compiler_pic='-qnocommon'
7083 lt_prog_compiler_wl='-Wl,'
7084 ;;
7085 esac
7086 ;;
7087
7088 mingw* | cygwin* | pw32* | os2*)
7089 # This hack is so that the source file can tell whether it is being
7090 # built for inclusion in a dll (and should export symbols for example).
7091 lt_prog_compiler_pic='-DDLL_EXPORT'
7092 ;;
7093
7094 hpux9* | hpux10* | hpux11*)
7095 lt_prog_compiler_wl='-Wl,'
7096 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7097 # not for PA HP-UX.
7098 case $host_cpu in
7099 hppa*64*|ia64*)
7100 # +Z the default
7101 ;;
7102 *)
7103 lt_prog_compiler_pic='+Z'
7104 ;;
7105 esac
7106 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7107 lt_prog_compiler_static='${wl}-a ${wl}archive'
7108 ;;
7109
7110 irix5* | irix6* | nonstopux*)
7111 lt_prog_compiler_wl='-Wl,'
7112 # PIC (with -KPIC) is the default.
7113 lt_prog_compiler_static='-non_shared'
7114 ;;
7115
7116 linux* | k*bsd*-gnu)
7117 case $cc_basename in
7118 icc* | ecc*)
7119 lt_prog_compiler_wl='-Wl,'
7120 lt_prog_compiler_pic='-KPIC'
7121 lt_prog_compiler_static='-static'
7122 ;;
7123 pgcc* | pgf77* | pgf90* | pgf95*)
7124 # Portland Group compilers (*not* the Pentium gcc compiler,
7125 # which looks to be a dead project)
7126 lt_prog_compiler_wl='-Wl,'
7127 lt_prog_compiler_pic='-fpic'
7128 lt_prog_compiler_static='-Bstatic'
7129 ;;
7130 ccc*)
7131 lt_prog_compiler_wl='-Wl,'
7132 # All Alpha code is PIC.
7133 lt_prog_compiler_static='-non_shared'
7134 ;;
7135 *)
7136 case `$CC -V 2>&1 | sed 5q` in
7137 *Sun\ C*)
7138 # Sun C 5.9
7139 lt_prog_compiler_pic='-KPIC'
7140 lt_prog_compiler_static='-Bstatic'
7141 lt_prog_compiler_wl='-Wl,'
7142 ;;
7143 *Sun\ F*)
7144 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7145 lt_prog_compiler_pic='-KPIC'
7146 lt_prog_compiler_static='-Bstatic'
7147 lt_prog_compiler_wl=''
7148 ;;
7149 esac
7150 ;;
7151 esac
7152 ;;
7153
7154 newsos6)
7155 lt_prog_compiler_pic='-KPIC'
7156 lt_prog_compiler_static='-Bstatic'
7157 ;;
7158
7159 *nto* | *qnx*)
7160 # QNX uses GNU C++, but need to define -shared option too, otherwise
7161 # it will coredump.
7162 lt_prog_compiler_pic='-fPIC -shared'
7163 ;;
7164
7165 osf3* | osf4* | osf5*)
7166 lt_prog_compiler_wl='-Wl,'
7167 # All OSF/1 code is PIC.
7168 lt_prog_compiler_static='-non_shared'
7169 ;;
7170
7171 rdos*)
7172 lt_prog_compiler_static='-non_shared'
7173 ;;
7174
7175 solaris*)
7176 lt_prog_compiler_pic='-KPIC'
7177 lt_prog_compiler_static='-Bstatic'
7178 case $cc_basename in
7179 f77* | f90* | f95*)
7180 lt_prog_compiler_wl='-Qoption ld ';;
7181 *)
7182 lt_prog_compiler_wl='-Wl,';;
7183 esac
7184 ;;
7185
7186 sunos4*)
7187 lt_prog_compiler_wl='-Qoption ld '
7188 lt_prog_compiler_pic='-PIC'
7189 lt_prog_compiler_static='-Bstatic'
7190 ;;
7191
7192 sysv4 | sysv4.2uw2* | sysv4.3*)
7193 lt_prog_compiler_wl='-Wl,'
7194 lt_prog_compiler_pic='-KPIC'
7195 lt_prog_compiler_static='-Bstatic'
7196 ;;
7197
7198 sysv4*MP*)
7199 if test -d /usr/nec ;then
7200 lt_prog_compiler_pic='-Kconform_pic'
7201 lt_prog_compiler_static='-Bstatic'
7202 fi
7203 ;;
7204
7205 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7206 lt_prog_compiler_wl='-Wl,'
7207 lt_prog_compiler_pic='-KPIC'
7208 lt_prog_compiler_static='-Bstatic'
7209 ;;
7210
7211 unicos*)
7212 lt_prog_compiler_wl='-Wl,'
7213 lt_prog_compiler_can_build_shared=no
7214 ;;
7215
7216 uts4*)
7217 lt_prog_compiler_pic='-pic'
7218 lt_prog_compiler_static='-Bstatic'
7219 ;;
7220
7221 *)
7222 lt_prog_compiler_can_build_shared=no
7223 ;;
7224 esac
7225 fi
7226
7227case $host_os in
7228 # For platforms which do not support PIC, -DPIC is meaningless:
7229 *djgpp*)
7230 lt_prog_compiler_pic=
7231 ;;
7232 *)
7233 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7234 ;;
7235esac
7236echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7237echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7238
7239
7240
7241
7242
7243
7244#
7245# Check to make sure the PIC flag actually works.
7246#
7247if test -n "$lt_prog_compiler_pic"; then
7248 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7249echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7250if test "${lt_prog_compiler_pic_works+set}" = set; then
42ecbf5e
DJ
7251 echo $ECHO_N "(cached) $ECHO_C" >&6
7252else
d7040cdb
SE
7253 lt_prog_compiler_pic_works=no
7254 ac_outfile=conftest.$ac_objext
7255 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7256 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7257 # Insert the option either (1) after the last *FLAGS variable, or
7258 # (2) before a word containing "conftest.", or (3) at the end.
7259 # Note that $ac_compile itself does not contain backslashes and begins
7260 # with a dollar sign (not a hyphen), so the echo should work correctly.
7261 # The option is referenced via a variable to avoid confusing sed.
7262 lt_compile=`echo "$ac_compile" | $SED \
7263 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7264 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7265 -e 's:$: $lt_compiler_flag:'`
da594c4a 7266 (eval echo "\"\$as_me:7266: $lt_compile\"" >&5)
d7040cdb
SE
7267 (eval "$lt_compile" 2>conftest.err)
7268 ac_status=$?
7269 cat conftest.err >&5
da594c4a 7270 echo "$as_me:7270: \$? = $ac_status" >&5
d7040cdb
SE
7271 if (exit $ac_status) && test -s "$ac_outfile"; then
7272 # The compiler can only warn and ignore the option if not recognized
7273 # So say no if there are warnings other than the usual output.
7274 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7275 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7276 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7277 lt_prog_compiler_pic_works=yes
7278 fi
7279 fi
7280 $RM conftest*
42ecbf5e 7281
252b5132 7282fi
d7040cdb
SE
7283echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7284echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7285
7286if test x"$lt_prog_compiler_pic_works" = xyes; then
7287 case $lt_prog_compiler_pic in
7288 "" | " "*) ;;
7289 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7290 esac
252b5132 7291else
d7040cdb
SE
7292 lt_prog_compiler_pic=
7293 lt_prog_compiler_can_build_shared=no
252b5132 7294fi
252b5132
RH
7295
7296fi
42ecbf5e 7297
d7040cdb
SE
7298
7299
7300
7301
7302
7303#
7304# Check to make sure the static flag actually works.
7305#
7306wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7307echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7308echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7309if test "${lt_prog_compiler_static_works+set}" = set; then
20e95c23 7310 echo $ECHO_N "(cached) $ECHO_C" >&6
42ecbf5e 7311else
d7040cdb
SE
7312 lt_prog_compiler_static_works=no
7313 save_LDFLAGS="$LDFLAGS"
7314 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7315 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7316 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7317 # The linker can only warn and ignore the option if not recognized
7318 # So say no if there are warnings
7319 if test -s conftest.err; then
7320 # Append any errors to the config.log.
7321 cat conftest.err 1>&5
7322 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7323 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7324 if diff conftest.exp conftest.er2 >/dev/null; then
7325 lt_prog_compiler_static_works=yes
7326 fi
7327 else
7328 lt_prog_compiler_static_works=yes
7329 fi
7330 fi
7331 $RM conftest*
7332 LDFLAGS="$save_LDFLAGS"
42ecbf5e 7333
42ecbf5e 7334fi
d7040cdb
SE
7335echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7336echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7337
7338if test x"$lt_prog_compiler_static_works" = xyes; then
7339 :
7340else
7341 lt_prog_compiler_static=
42ecbf5e 7342fi
42ecbf5e 7343
252b5132 7344
252b5132 7345
42ecbf5e 7346
252b5132 7347
20e95c23 7348
d7040cdb
SE
7349
7350 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7351echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7352if test "${lt_cv_prog_compiler_c_o+set}" = set; then
42ecbf5e 7353 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7354else
d7040cdb
SE
7355 lt_cv_prog_compiler_c_o=no
7356 $RM -r conftest 2>/dev/null
7357 mkdir conftest
7358 cd conftest
7359 mkdir out
7360 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7361
7362 lt_compiler_flag="-o out/conftest2.$ac_objext"
7363 # Insert the option either (1) after the last *FLAGS variable, or
7364 # (2) before a word containing "conftest.", or (3) at the end.
7365 # Note that $ac_compile itself does not contain backslashes and begins
7366 # with a dollar sign (not a hyphen), so the echo should work correctly.
7367 lt_compile=`echo "$ac_compile" | $SED \
7368 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7369 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7370 -e 's:$: $lt_compiler_flag:'`
da594c4a 7371 (eval echo "\"\$as_me:7371: $lt_compile\"" >&5)
d7040cdb
SE
7372 (eval "$lt_compile" 2>out/conftest.err)
7373 ac_status=$?
7374 cat out/conftest.err >&5
da594c4a 7375 echo "$as_me:7375: \$? = $ac_status" >&5
d7040cdb
SE
7376 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7377 then
7378 # The compiler can only warn and ignore the option if not recognized
7379 # So say no if there are warnings
7380 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7381 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7382 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7383 lt_cv_prog_compiler_c_o=yes
7384 fi
7385 fi
7386 chmod u+w . 2>&5
7387 $RM conftest*
7388 # SGI C++ compiler will create directory out/ii_files/ for
7389 # template instantiation
7390 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7391 $RM out/* && rmdir out
7392 cd ..
7393 $RM -r conftest
7394 $RM conftest*
7395
252b5132 7396fi
d7040cdb
SE
7397echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7398echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
42ecbf5e 7399
20e95c23 7400
20e95c23
DJ
7401
7402
d7040cdb
SE
7403
7404
7405 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7406echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7407if test "${lt_cv_prog_compiler_c_o+set}" = set; then
42ecbf5e
DJ
7408 echo $ECHO_N "(cached) $ECHO_C" >&6
7409else
d7040cdb
SE
7410 lt_cv_prog_compiler_c_o=no
7411 $RM -r conftest 2>/dev/null
7412 mkdir conftest
7413 cd conftest
7414 mkdir out
7415 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7416
7417 lt_compiler_flag="-o out/conftest2.$ac_objext"
7418 # Insert the option either (1) after the last *FLAGS variable, or
7419 # (2) before a word containing "conftest.", or (3) at the end.
7420 # Note that $ac_compile itself does not contain backslashes and begins
7421 # with a dollar sign (not a hyphen), so the echo should work correctly.
7422 lt_compile=`echo "$ac_compile" | $SED \
7423 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7424 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7425 -e 's:$: $lt_compiler_flag:'`
da594c4a 7426 (eval echo "\"\$as_me:7426: $lt_compile\"" >&5)
d7040cdb
SE
7427 (eval "$lt_compile" 2>out/conftest.err)
7428 ac_status=$?
7429 cat out/conftest.err >&5
da594c4a 7430 echo "$as_me:7430: \$? = $ac_status" >&5
d7040cdb
SE
7431 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7432 then
7433 # The compiler can only warn and ignore the option if not recognized
7434 # So say no if there are warnings
7435 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7436 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7437 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7438 lt_cv_prog_compiler_c_o=yes
7439 fi
7440 fi
7441 chmod u+w . 2>&5
7442 $RM conftest*
7443 # SGI C++ compiler will create directory out/ii_files/ for
7444 # template instantiation
7445 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7446 $RM out/* && rmdir out
7447 cd ..
7448 $RM -r conftest
7449 $RM conftest*
7450
7451fi
7452echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7453echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7454
7455
7456
7457
7458hard_links="nottested"
7459if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7460 # do not overwrite the value of need_locks provided by the user
7461 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7462echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7463 hard_links=yes
7464 $RM conftest*
7465 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7466 touch conftest.a
7467 ln conftest.a conftest.b 2>&5 || hard_links=no
7468 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7469 echo "$as_me:$LINENO: result: $hard_links" >&5
7470echo "${ECHO_T}$hard_links" >&6
7471 if test "$hard_links" = no; then
7472 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7473echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7474 need_locks=warn
7475 fi
7476else
7477 need_locks=no
7478fi
7479
7480
7481
7482
7483
7484
7485 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7486echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7487
7488 runpath_var=
7489 allow_undefined_flag=
7490 always_export_symbols=no
7491 archive_cmds=
7492 archive_expsym_cmds=
7493 compiler_needs_object=no
7494 enable_shared_with_static_runtimes=no
7495 export_dynamic_flag_spec=
7496 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7497 hardcode_automatic=no
7498 hardcode_direct=no
7499 hardcode_direct_absolute=no
7500 hardcode_libdir_flag_spec=
7501 hardcode_libdir_flag_spec_ld=
7502 hardcode_libdir_separator=
7503 hardcode_minus_L=no
7504 hardcode_shlibpath_var=unsupported
7505 inherit_rpath=no
7506 link_all_deplibs=unknown
7507 module_cmds=
7508 module_expsym_cmds=
7509 old_archive_from_new_cmds=
7510 old_archive_from_expsyms_cmds=
7511 thread_safe_flag_spec=
7512 whole_archive_flag_spec=
7513 # include_expsyms should be a list of space-separated symbols to be *always*
7514 # included in the symbol list
7515 include_expsyms=
7516 # exclude_expsyms can be an extended regexp of symbols to exclude
7517 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7518 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7519 # as well as any symbol that contains `d'.
7520 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7521 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7522 # platforms (ab)use it in PIC code, but their linkers get confused if
7523 # the symbol is explicitly referenced. Since portable code cannot
7524 # rely on this symbol name, it's probably fine to never include it in
7525 # preloaded symbol tables.
7526 extract_expsyms_cmds=
7527
7528 case $host_os in
7529 cygwin* | mingw* | pw32*)
7530 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7531 # When not using gcc, we currently assume that we are using
7532 # Microsoft Visual C++.
7533 if test "$GCC" != yes; then
7534 with_gnu_ld=no
7535 fi
7536 ;;
7537 interix*)
7538 # we just hope/assume this is gcc and not c89 (= MSVC++)
7539 with_gnu_ld=yes
7540 ;;
7541 openbsd*)
7542 with_gnu_ld=no
7543 ;;
7544 esac
7545
7546 ld_shlibs=yes
7547 if test "$with_gnu_ld" = yes; then
7548 # If archive_cmds runs LD, not CC, wlarc should be empty
7549 wlarc='${wl}'
7550
7551 # Set some defaults for GNU ld with shared library support. These
7552 # are reset later if shared libraries are not supported. Putting them
7553 # here allows them to be overridden if necessary.
7554 runpath_var=LD_RUN_PATH
7555 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7556 export_dynamic_flag_spec='${wl}--export-dynamic'
7557 # ancient GNU ld didn't support --whole-archive et. al.
7558 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7559 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7560 else
7561 whole_archive_flag_spec=
7562 fi
7563 supports_anon_versioning=no
7564 case `$LD -v 2>&1` in
7565 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7566 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7567 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7568 *\ 2.11.*) ;; # other 2.11 versions
7569 *) supports_anon_versioning=yes ;;
7570 esac
7571
7572 # See if GNU ld supports shared libraries.
7573 case $host_os in
50e7d84b 7574 aix[3-9]*)
d7040cdb
SE
7575 # On AIX/PPC, the GNU linker is very broken
7576 if test "$host_cpu" != ia64; then
7577 ld_shlibs=no
7578 cat <<_LT_EOF 1>&2
7579
7580*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7581*** to be unable to reliably create shared libraries on AIX.
7582*** Therefore, libtool is disabling shared libraries support. If you
7583*** really care for shared libraries, you may want to modify your PATH
7584*** so that a non-GNU linker is found, and then restart.
7585
7586_LT_EOF
7587 fi
7588 ;;
7589
7590 amigaos*)
7591 if test "$host_cpu" = m68k; then
7592 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)'
7593 hardcode_libdir_flag_spec='-L$libdir'
7594 hardcode_minus_L=yes
7595 fi
7596
7597 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7598 # that the semantics of dynamic libraries on AmigaOS, at least up
7599 # to version 4, is to share data among multiple programs linked
7600 # with the same dynamic library. Since this doesn't match the
7601 # behavior of shared libraries on other platforms, we can't use
7602 # them.
7603 ld_shlibs=no
7604 ;;
7605
7606 beos*)
7607 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7608 allow_undefined_flag=unsupported
7609 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7610 # support --undefined. This deserves some investigation. FIXME
7611 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7612 else
7613 ld_shlibs=no
7614 fi
7615 ;;
7616
7617 cygwin* | mingw* | pw32*)
7618 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7619 # as there is no search path for DLLs.
7620 hardcode_libdir_flag_spec='-L$libdir'
7621 allow_undefined_flag=unsupported
7622 always_export_symbols=no
7623 enable_shared_with_static_runtimes=yes
7624 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7625
7626 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7627 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7628 # If the export-symbols file already is a .def file (1st line
7629 # is EXPORTS), use it as is; otherwise, prepend...
7630 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7631 cp $export_symbols $output_objdir/$soname.def;
7632 else
7633 echo EXPORTS > $output_objdir/$soname.def;
7634 cat $export_symbols >> $output_objdir/$soname.def;
7635 fi~
7636 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7637 else
7638 ld_shlibs=no
7639 fi
7640 ;;
7641
7642 interix[3-9]*)
7643 hardcode_direct=no
7644 hardcode_shlibpath_var=no
7645 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7646 export_dynamic_flag_spec='${wl}-E'
7647 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7648 # Instead, shared libraries are loaded at an image base (0x10000000 by
7649 # default) and relocated if they conflict, which is a slow very memory
7650 # consuming and fragmenting process. To avoid this, we pick a random,
7651 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7652 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7653 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7654 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'
7655 ;;
7656
7657 gnu* | linux* | tpf* | k*bsd*-gnu)
7658 tmp_diet=no
7659 if test "$host_os" = linux-dietlibc; then
7660 case $cc_basename in
7661 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7662 esac
7663 fi
7664 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7665 && test "$tmp_diet" = no
7666 then
7667 tmp_addflag=
7668 case $cc_basename,$host_cpu in
7669 pgcc*) # Portland Group C compiler
7670 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'
7671 tmp_addflag=' $pic_flag'
7672 ;;
7673 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7674 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'
7675 tmp_addflag=' $pic_flag -Mnomain' ;;
7676 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7677 tmp_addflag=' -i_dynamic' ;;
7678 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7679 tmp_addflag=' -i_dynamic -nofor_main' ;;
7680 ifc* | ifort*) # Intel Fortran compiler
7681 tmp_addflag=' -nofor_main' ;;
7682 esac
7683 case `$CC -V 2>&1 | sed 5q` in
7684 *Sun\ C*) # Sun C 5.9
7685 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'
7686 compiler_needs_object=yes
7687 tmp_sharedflag='-G' ;;
7688 *Sun\ F*) # Sun Fortran 8.3
7689 tmp_sharedflag='-G' ;;
7690 *)
7691 tmp_sharedflag='-shared' ;;
7692 esac
7693 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7694
7695 if test "x$supports_anon_versioning" = xyes; then
7696 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7697 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7698 echo "local: *; };" >> $output_objdir/$libname.ver~
7699 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7700 fi
7701 else
7702 ld_shlibs=no
7703 fi
7704 ;;
7705
7706 netbsd*)
7707 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7708 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7709 wlarc=
7710 else
7711 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7712 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7713 fi
7714 ;;
7715
7716 solaris*)
7717 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7718 ld_shlibs=no
7719 cat <<_LT_EOF 1>&2
7720
7721*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7722*** create shared libraries on Solaris systems. Therefore, libtool
7723*** is disabling shared libraries support. We urge you to upgrade GNU
7724*** binutils to release 2.9.1 or newer. Another option is to modify
7725*** your PATH or compiler configuration so that the native linker is
7726*** used, and then restart.
7727
7728_LT_EOF
7729 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7730 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7731 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7732 else
7733 ld_shlibs=no
7734 fi
7735 ;;
7736
7737 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7738 case `$LD -v 2>&1` in
7739 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7740 ld_shlibs=no
7741 cat <<_LT_EOF 1>&2
7742
7743*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7744*** reliably create shared libraries on SCO systems. Therefore, libtool
7745*** is disabling shared libraries support. We urge you to upgrade GNU
7746*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7747*** your PATH or compiler configuration so that the native linker is
7748*** used, and then restart.
7749
7750_LT_EOF
7751 ;;
7752 *)
7753 # For security reasons, it is highly recommended that you always
7754 # use absolute paths for naming shared libraries, and exclude the
7755 # DT_RUNPATH tag from executables and libraries. But doing so
7756 # requires that you compile everything twice, which is a pain.
7757 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7758 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7759 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7760 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7761 else
7762 ld_shlibs=no
7763 fi
7764 ;;
7765 esac
7766 ;;
7767
7768 sunos4*)
7769 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7770 wlarc=
7771 hardcode_direct=yes
7772 hardcode_shlibpath_var=no
7773 ;;
7774
7775 *)
7776 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7777 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7778 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7779 else
7780 ld_shlibs=no
7781 fi
7782 ;;
7783 esac
7784
7785 if test "$ld_shlibs" = no; then
7786 runpath_var=
7787 hardcode_libdir_flag_spec=
7788 export_dynamic_flag_spec=
7789 whole_archive_flag_spec=
7790 fi
7791 else
7792 # PORTME fill in a description of your system's linker (not GNU ld)
7793 case $host_os in
7794 aix3*)
7795 allow_undefined_flag=unsupported
7796 always_export_symbols=yes
7797 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'
7798 # Note: this linker hardcodes the directories in LIBPATH if there
7799 # are no directories specified by -L.
7800 hardcode_minus_L=yes
7801 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7802 # Neither direct hardcoding nor static linking is supported with a
7803 # broken collect2.
7804 hardcode_direct=unsupported
7805 fi
7806 ;;
7807
50e7d84b 7808 aix[4-9]*)
d7040cdb
SE
7809 if test "$host_cpu" = ia64; then
7810 # On IA64, the linker does run time linking by default, so we don't
7811 # have to do anything special.
7812 aix_use_runtimelinking=no
7813 exp_sym_flag='-Bexport'
7814 no_entry_flag=""
7815 else
7816 # If we're using GNU nm, then we don't want the "-C" option.
7817 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7818 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7819 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'
7820 else
7821 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'
7822 fi
7823 aix_use_runtimelinking=no
7824
7825 # Test if we are trying to use run time linking or normal
7826 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7827 # need to do runtime linking.
50e7d84b 7828 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
d7040cdb
SE
7829 for ld_flag in $LDFLAGS; do
7830 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7831 aix_use_runtimelinking=yes
7832 break
7833 fi
7834 done
7835 ;;
7836 esac
7837
7838 exp_sym_flag='-bexport'
7839 no_entry_flag='-bnoentry'
7840 fi
7841
7842 # When large executables or shared objects are built, AIX ld can
7843 # have problems creating the table of contents. If linking a library
7844 # or program results in "error TOC overflow" add -mminimal-toc to
7845 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7846 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7847
7848 archive_cmds=''
7849 hardcode_direct=yes
7850 hardcode_direct_absolute=yes
7851 hardcode_libdir_separator=':'
7852 link_all_deplibs=yes
7853 file_list_spec='${wl}-f,'
7854
7855 if test "$GCC" = yes; then
7856 case $host_os in aix4.[012]|aix4.[012].*)
7857 # We only want to do this on AIX 4.2 and lower, the check
7858 # below for broken collect2 doesn't work under 4.3+
7859 collect2name=`${CC} -print-prog-name=collect2`
7860 if test -f "$collect2name" &&
7861 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7862 then
7863 # We have reworked collect2
7864 :
7865 else
7866 # We have old collect2
7867 hardcode_direct=unsupported
7868 # It fails to find uninstalled libraries when the uninstalled
7869 # path is not listed in the libpath. Setting hardcode_minus_L
7870 # to unsupported forces relinking
7871 hardcode_minus_L=yes
7872 hardcode_libdir_flag_spec='-L$libdir'
7873 hardcode_libdir_separator=
7874 fi
7875 ;;
7876 esac
7877 shared_flag='-shared'
7878 if test "$aix_use_runtimelinking" = yes; then
7879 shared_flag="$shared_flag "'${wl}-G'
7880 fi
7881 else
7882 # not using gcc
7883 if test "$host_cpu" = ia64; then
7884 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7885 # chokes on -Wl,-G. The following line is correct:
7886 shared_flag='-G'
7887 else
7888 if test "$aix_use_runtimelinking" = yes; then
7889 shared_flag='${wl}-G'
7890 else
7891 shared_flag='${wl}-bM:SRE'
7892 fi
7893 fi
7894 fi
7895
7896 # It seems that -bexpall does not export symbols beginning with
7897 # underscore (_), so it is better to generate a list of symbols to export.
7898 always_export_symbols=yes
7899 if test "$aix_use_runtimelinking" = yes; then
7900 # Warning - without using the other runtime loading flags (-brtl),
7901 # -berok will link without error, but may produce a broken library.
7902 allow_undefined_flag='-berok'
7903 # Determine the default libpath from the value encoded in an
7904 # empty executable.
7905 cat >conftest.$ac_ext <<_ACEOF
42ecbf5e
DJ
7906/* confdefs.h. */
7907_ACEOF
7908cat confdefs.h >>conftest.$ac_ext
7909cat >>conftest.$ac_ext <<_ACEOF
7910/* end confdefs.h. */
d7040cdb
SE
7911
7912int
7913main ()
7914{
7915
7916 ;
7917 return 0;
7918}
42ecbf5e 7919_ACEOF
d7040cdb
SE
7920rm -f conftest.$ac_objext conftest$ac_exeext
7921if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7922 (eval $ac_link) 2>conftest.er1
42ecbf5e
DJ
7923 ac_status=$?
7924 grep -v '^ *+' conftest.er1 >conftest.err
7925 rm -f conftest.er1
7926 cat conftest.err >&5
7927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb 7928 (exit $ac_status); } &&
7357c5b6
AM
7929 { ac_try='test -z "$ac_c_werror_flag"
7930 || test ! -s conftest.err'
d7040cdb
SE
7931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7932 (eval $ac_try) 2>&5
7933 ac_status=$?
7934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7935 (exit $ac_status); }; } &&
7936 { ac_try='test -s conftest$ac_exeext'
7937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7938 (eval $ac_try) 2>&5
7939 ac_status=$?
7940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7941 (exit $ac_status); }; }; then
7942
7943lt_aix_libpath_sed='
7944 /Import File Strings/,/^$/ {
7945 /^0/ {
7946 s/^0 *\(.*\)$/\1/
7947 p
7948 }
7949 }'
7950aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7951# Check for a 64-bit object if we didn't find anything.
7952if test -z "$aix_libpath"; then
7953 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
252b5132 7954fi
252b5132 7955else
20e95c23
DJ
7956 echo "$as_me: failed program was:" >&5
7957sed 's/^/| /' conftest.$ac_ext >&5
7958
252b5132 7959fi
d7040cdb
SE
7960rm -f conftest.err conftest.$ac_objext \
7961 conftest$ac_exeext conftest.$ac_ext
7962if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
252b5132 7963
d7040cdb
SE
7964 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7965 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"
7966 else
7967 if test "$host_cpu" = ia64; then
7968 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7969 allow_undefined_flag="-z nodefs"
7970 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"
7971 else
7972 # Determine the default libpath from the value encoded in an
7973 # empty executable.
7974 cat >conftest.$ac_ext <<_ACEOF
42ecbf5e
DJ
7975/* confdefs.h. */
7976_ACEOF
7977cat confdefs.h >>conftest.$ac_ext
7978cat >>conftest.$ac_ext <<_ACEOF
7979/* end confdefs.h. */
d7040cdb
SE
7980
7981int
7982main ()
7983{
7984
7985 ;
7986 return 0;
7987}
42ecbf5e 7988_ACEOF
d7040cdb
SE
7989rm -f conftest.$ac_objext conftest$ac_exeext
7990if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7991 (eval $ac_link) 2>conftest.er1
42ecbf5e
DJ
7992 ac_status=$?
7993 grep -v '^ *+' conftest.er1 >conftest.err
7994 rm -f conftest.er1
7995 cat conftest.err >&5
7996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb 7997 (exit $ac_status); } &&
7357c5b6
AM
7998 { ac_try='test -z "$ac_c_werror_flag"
7999 || test ! -s conftest.err'
d7040cdb
SE
8000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8001 (eval $ac_try) 2>&5
8002 ac_status=$?
8003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8004 (exit $ac_status); }; } &&
8005 { ac_try='test -s conftest$ac_exeext'
8006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8007 (eval $ac_try) 2>&5
8008 ac_status=$?
8009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8010 (exit $ac_status); }; }; then
8011
8012lt_aix_libpath_sed='
8013 /Import File Strings/,/^$/ {
8014 /^0/ {
8015 s/^0 *\(.*\)$/\1/
8016 p
8017 }
8018 }'
8019aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8020# Check for a 64-bit object if we didn't find anything.
8021if test -z "$aix_libpath"; then
8022 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20e95c23 8023fi
252b5132 8024else
42ecbf5e
DJ
8025 echo "$as_me: failed program was:" >&5
8026sed 's/^/| /' conftest.$ac_ext >&5
8027
252b5132 8028fi
d7040cdb
SE
8029rm -f conftest.err conftest.$ac_objext \
8030 conftest$ac_exeext conftest.$ac_ext
8031if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8032
8033 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8034 # Warning - without using the other run time loading flags,
8035 # -berok will link without error, but may produce a broken library.
8036 no_undefined_flag=' ${wl}-bernotok'
8037 allow_undefined_flag=' ${wl}-berok'
8038 # Exported symbols can be pulled into shared objects from archives
8039 whole_archive_flag_spec='$convenience'
8040 archive_cmds_need_lc=yes
8041 # This is similar to how AIX traditionally builds its shared libraries.
8042 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'
8043 fi
8044 fi
8045 ;;
42ecbf5e 8046
d7040cdb
SE
8047 amigaos*)
8048 if test "$host_cpu" = m68k; then
8049 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)'
8050 hardcode_libdir_flag_spec='-L$libdir'
8051 hardcode_minus_L=yes
8052 fi
8053 # see comment about different semantics on the GNU ld section
8054 ld_shlibs=no
8055 ;;
252b5132 8056
d7040cdb
SE
8057 bsdi[45]*)
8058 export_dynamic_flag_spec=-rdynamic
8059 ;;
252b5132 8060
d7040cdb
SE
8061 cygwin* | mingw* | pw32*)
8062 # When not using gcc, we currently assume that we are using
8063 # Microsoft Visual C++.
8064 # hardcode_libdir_flag_spec is actually meaningless, as there is
8065 # no search path for DLLs.
8066 hardcode_libdir_flag_spec=' '
8067 allow_undefined_flag=unsupported
8068 # Tell ltmain to make .lib files, not .a files.
8069 libext=lib
8070 # Tell ltmain to make .dll files, not .so files.
8071 shrext_cmds=".dll"
8072 # FIXME: Setting linknames here is a bad hack.
8073 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8074 # The linker will automatically build a .lib file if we build a DLL.
8075 old_archive_from_new_cmds='true'
8076 # FIXME: Should let the user specify the lib program.
8077 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8078 fix_srcfile_path='`cygpath -w "$srcfile"`'
8079 enable_shared_with_static_runtimes=yes
8080 ;;
252b5132 8081
d7040cdb
SE
8082 darwin* | rhapsody*)
8083 case $host_os in
8084 rhapsody* | darwin1.[012])
8085 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8086 ;;
8087 *) # Darwin 1.3 on
8088 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
8089 10.[012])
8090 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8091 ;;
8092 10.*)
8093 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8094 ;;
8095 esac
8096 ;;
8097 esac
8098 archive_cmds_need_lc=no
8099 hardcode_direct=no
8100 hardcode_automatic=yes
8101 hardcode_shlibpath_var=unsupported
8102 whole_archive_flag_spec=''
8103 link_all_deplibs=yes
8104 if test "$GCC" = yes ; then
8105 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8106 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8107else
d7040cdb
SE
8108 lt_cv_apple_cc_single_mod=no
8109 if test -z "${LT_MULTI_MODULE}"; then
8110 # By default we will add the -single_module flag. You can override
8111 # by either setting the environment variable LT_MULTI_MODULE
8112 # non-empty at configure time, or by adding -multi-module to the
8113 # link flags.
8114 echo "int foo(void){return 1;}" > conftest.c
8115 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8116 -dynamiclib ${wl}-single_module conftest.c
8117 if test -f libconftest.dylib; then
8118 lt_cv_apple_cc_single_mod=yes
8119 rm libconftest.dylib
8120 fi
8121 rm conftest.$ac_ext
8122 fi
252b5132 8123fi
c46f8c51 8124
d7040cdb
SE
8125 output_verbose_link_cmd=echo
8126 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
8127 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8128 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}'
8129 else
8130 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8131 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}'
8132 fi
8133 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8134 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}'
8135 else
8136 case $cc_basename in
8137 xlc*)
8138 output_verbose_link_cmd=echo
8139 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
8140 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8141 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8142 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}'
8143 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}'
8144 ;;
8145 *)
8146 ld_shlibs=no
8147 ;;
8148 esac
8149 fi
8150 ;;
42ecbf5e 8151
d7040cdb
SE
8152 dgux*)
8153 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8154 hardcode_libdir_flag_spec='-L$libdir'
8155 hardcode_shlibpath_var=no
8156 ;;
252b5132 8157
d7040cdb
SE
8158 freebsd1*)
8159 ld_shlibs=no
8160 ;;
252b5132 8161
d7040cdb
SE
8162 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8163 # support. Future versions do this automatically, but an explicit c++rt0.o
8164 # does not break anything, and helps significantly (at the cost of a little
8165 # extra space).
8166 freebsd2.2*)
8167 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8168 hardcode_libdir_flag_spec='-R$libdir'
8169 hardcode_direct=yes
8170 hardcode_shlibpath_var=no
8171 ;;
252b5132 8172
d7040cdb
SE
8173 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8174 freebsd2*)
8175 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8176 hardcode_direct=yes
8177 hardcode_minus_L=yes
8178 hardcode_shlibpath_var=no
8179 ;;
42ecbf5e 8180
d7040cdb
SE
8181 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8182 freebsd* | dragonfly*)
8183 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8184 hardcode_libdir_flag_spec='-R$libdir'
8185 hardcode_direct=yes
8186 hardcode_shlibpath_var=no
8187 ;;
252b5132 8188
d7040cdb
SE
8189 hpux9*)
8190 if test "$GCC" = yes; then
8191 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'
8192 else
8193 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'
8194 fi
8195 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8196 hardcode_libdir_separator=:
8197 hardcode_direct=yes
8198
8199 # hardcode_minus_L: Not really in the search PATH,
8200 # but as the default location of the library.
8201 hardcode_minus_L=yes
8202 export_dynamic_flag_spec='${wl}-E'
8203 ;;
20e95c23 8204
d7040cdb
SE
8205 hpux10*)
8206 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8207 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8208 else
8209 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8210 fi
8211 if test "$with_gnu_ld" = no; then
8212 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8213 hardcode_libdir_flag_spec_ld='+b $libdir'
8214 hardcode_libdir_separator=:
8215 hardcode_direct=yes
8216 hardcode_direct_absolute=yes
8217 export_dynamic_flag_spec='${wl}-E'
8218 # hardcode_minus_L: Not really in the search PATH,
8219 # but as the default location of the library.
8220 hardcode_minus_L=yes
8221 fi
8222 ;;
20e95c23 8223
d7040cdb
SE
8224 hpux11*)
8225 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8226 case $host_cpu in
8227 hppa*64*)
8228 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8229 ;;
8230 ia64*)
8231 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8232 ;;
8233 *)
8234 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8235 ;;
8236 esac
8237 else
8238 case $host_cpu in
8239 hppa*64*)
8240 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8241 ;;
8242 ia64*)
8243 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8244 ;;
8245 *)
8246 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8247 ;;
8248 esac
8249 fi
8250 if test "$with_gnu_ld" = no; then
8251 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8252 hardcode_libdir_separator=:
8253
8254 case $host_cpu in
8255 hppa*64*|ia64*)
8256 hardcode_direct=no
8257 hardcode_shlibpath_var=no
8258 ;;
8259 *)
8260 hardcode_direct=yes
8261 hardcode_direct_absolute=yes
8262 export_dynamic_flag_spec='${wl}-E'
8263
8264 # hardcode_minus_L: Not really in the search PATH,
8265 # but as the default location of the library.
8266 hardcode_minus_L=yes
8267 ;;
8268 esac
8269 fi
8270 ;;
8271
8272 irix5* | irix6* | nonstopux*)
8273 if test "$GCC" = yes; then
8274 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'
8275 # Try to use the -exported_symbol ld option, if it does not
8276 # work, assume that -exports_file does not work either and
8277 # implicitly export all symbols.
8278 save_LDFLAGS="$LDFLAGS"
8279 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8280 cat >conftest.$ac_ext <<_ACEOF
8281int foo(void) {}
42ecbf5e 8282_ACEOF
d7040cdb
SE
8283rm -f conftest.$ac_objext conftest$ac_exeext
8284if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8285 (eval $ac_link) 2>conftest.er1
42ecbf5e
DJ
8286 ac_status=$?
8287 grep -v '^ *+' conftest.er1 >conftest.err
8288 rm -f conftest.er1
8289 cat conftest.err >&5
8290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291 (exit $ac_status); } &&
7357c5b6
AM
8292 { ac_try='test -z "$ac_c_werror_flag"
8293 || test ! -s conftest.err'
42ecbf5e
DJ
8294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8295 (eval $ac_try) 2>&5
8296 ac_status=$?
8297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298 (exit $ac_status); }; } &&
d7040cdb 8299 { ac_try='test -s conftest$ac_exeext'
42ecbf5e
DJ
8300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8301 (eval $ac_try) 2>&5
8302 ac_status=$?
8303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8304 (exit $ac_status); }; }; then
d7040cdb
SE
8305 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'
8306
42ecbf5e
DJ
8307else
8308 echo "$as_me: failed program was:" >&5
8309sed 's/^/| /' conftest.$ac_ext >&5
8310
42ecbf5e 8311fi
d7040cdb
SE
8312rm -f conftest.err conftest.$ac_objext \
8313 conftest$ac_exeext conftest.$ac_ext
8314 LDFLAGS="$save_LDFLAGS"
8315 else
8316 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'
8317 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'
8318 fi
8319 archive_cmds_need_lc='no'
8320 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8321 hardcode_libdir_separator=:
8322 inherit_rpath=yes
8323 link_all_deplibs=yes
8324 ;;
42ecbf5e 8325
d7040cdb
SE
8326 netbsd*)
8327 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8328 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8329 else
8330 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8331 fi
8332 hardcode_libdir_flag_spec='-R$libdir'
8333 hardcode_direct=yes
8334 hardcode_shlibpath_var=no
8335 ;;
42ecbf5e 8336
d7040cdb
SE
8337 newsos6)
8338 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8339 hardcode_direct=yes
8340 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8341 hardcode_libdir_separator=:
8342 hardcode_shlibpath_var=no
8343 ;;
42ecbf5e 8344
d7040cdb
SE
8345 *nto* | *qnx*)
8346 ;;
252b5132 8347
d7040cdb
SE
8348 openbsd*)
8349 hardcode_direct=yes
8350 hardcode_shlibpath_var=no
8351 hardcode_direct_absolute=yes
8352 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8353 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8354 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8355 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8356 export_dynamic_flag_spec='${wl}-E'
8357 else
8358 case $host_os in
8359 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8360 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8361 hardcode_libdir_flag_spec='-R$libdir'
8362 ;;
8363 *)
8364 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8365 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8366 ;;
8367 esac
8368 fi
8369 ;;
252b5132 8370
d7040cdb
SE
8371 os2*)
8372 hardcode_libdir_flag_spec='-L$libdir'
8373 hardcode_minus_L=yes
8374 allow_undefined_flag=unsupported
8375 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'
8376 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8377 ;;
2481e6a2 8378
d7040cdb
SE
8379 osf3*)
8380 if test "$GCC" = yes; then
8381 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8382 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'
8383 else
8384 allow_undefined_flag=' -expect_unresolved \*'
8385 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'
8386 fi
8387 archive_cmds_need_lc='no'
8388 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8389 hardcode_libdir_separator=:
8390 ;;
42ecbf5e 8391
d7040cdb
SE
8392 osf4* | osf5*) # as osf3* with the addition of -msym flag
8393 if test "$GCC" = yes; then
8394 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8395 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'
8396 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8397 else
8398 allow_undefined_flag=' -expect_unresolved \*'
8399 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'
8400 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~
8401 $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'
42ecbf5e 8402
d7040cdb
SE
8403 # Both c and cxx compiler support -rpath directly
8404 hardcode_libdir_flag_spec='-rpath $libdir'
8405 fi
8406 archive_cmds_need_lc='no'
8407 hardcode_libdir_separator=:
8408 ;;
8409
8410 solaris*)
8411 no_undefined_flag=' -z defs'
8412 if test "$GCC" = yes; then
8413 wlarc='${wl}'
8414 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8415 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8416 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8417 else
8418 case `$CC -V 2>&1` in
8419 *"Compilers 5.0"*)
8420 wlarc=''
8421 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8422 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8423 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8424 ;;
8425 *)
8426 wlarc='${wl}'
8427 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8428 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8429 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8430 ;;
8431 esac
8432 fi
8433 hardcode_libdir_flag_spec='-R$libdir'
8434 hardcode_shlibpath_var=no
8435 case $host_os in
8436 solaris2.[0-5] | solaris2.[0-5].*) ;;
8437 *)
8438 # The compiler driver will combine and reorder linker options,
8439 # but understands `-z linker_flag'. GCC discards it without `$wl',
8440 # but is careful enough not to reorder.
8441 # Supported since Solaris 2.6 (maybe 2.5.1?)
8442 if test "$GCC" = yes; then
8443 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8444 else
8445 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8446 fi
8447 ;;
8448 esac
8449 link_all_deplibs=yes
8450 ;;
8451
8452 sunos4*)
8453 if test "x$host_vendor" = xsequent; then
8454 # Use $CC to link under sequent, because it throws in some extra .o
8455 # files that make .init and .fini sections work.
8456 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8457 else
8458 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8459 fi
8460 hardcode_libdir_flag_spec='-L$libdir'
8461 hardcode_direct=yes
8462 hardcode_minus_L=yes
8463 hardcode_shlibpath_var=no
8464 ;;
8465
8466 sysv4)
8467 case $host_vendor in
8468 sni)
8469 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8470 hardcode_direct=yes # is this really true???
8471 ;;
8472 siemens)
8473 ## LD is ld it makes a PLAMLIB
8474 ## CC just makes a GrossModule.
8475 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8476 reload_cmds='$CC -r -o $output$reload_objs'
8477 hardcode_direct=no
8478 ;;
8479 motorola)
8480 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8481 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8482 ;;
8483 esac
8484 runpath_var='LD_RUN_PATH'
8485 hardcode_shlibpath_var=no
8486 ;;
8487
8488 sysv4.3*)
8489 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8490 hardcode_shlibpath_var=no
8491 export_dynamic_flag_spec='-Bexport'
8492 ;;
8493
8494 sysv4*MP*)
8495 if test -d /usr/nec; then
8496 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8497 hardcode_shlibpath_var=no
8498 runpath_var=LD_RUN_PATH
8499 hardcode_runpath_var=yes
8500 ld_shlibs=yes
8501 fi
8502 ;;
8503
8504 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8505 no_undefined_flag='${wl}-z,text'
8506 archive_cmds_need_lc=no
8507 hardcode_shlibpath_var=no
8508 runpath_var='LD_RUN_PATH'
8509
8510 if test "$GCC" = yes; then
8511 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8512 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8513 else
8514 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8515 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8516 fi
8517 ;;
8518
8519 sysv5* | sco3.2v5* | sco5v6*)
8520 # Note: We can NOT use -z defs as we might desire, because we do not
8521 # link with -lc, and that would cause any symbols used from libc to
8522 # always be unresolved, which means just about no library would
8523 # ever link correctly. If we're not using GNU ld we use -z text
8524 # though, which does catch some bad symbols but isn't as heavy-handed
8525 # as -z defs.
8526 no_undefined_flag='${wl}-z,text'
8527 allow_undefined_flag='${wl}-z,nodefs'
8528 archive_cmds_need_lc=no
8529 hardcode_shlibpath_var=no
8530 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8531 hardcode_libdir_separator=':'
8532 link_all_deplibs=yes
8533 export_dynamic_flag_spec='${wl}-Bexport'
8534 runpath_var='LD_RUN_PATH'
8535
8536 if test "$GCC" = yes; then
8537 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8538 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8539 else
8540 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8541 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8542 fi
8543 ;;
8544
8545 uts4*)
8546 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8547 hardcode_libdir_flag_spec='-L$libdir'
8548 hardcode_shlibpath_var=no
8549 ;;
8550
8551 *)
8552 ld_shlibs=no
8553 ;;
8554 esac
8555
8556 if test x$host_vendor = xsni; then
8557 case $host in
8558 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8559 export_dynamic_flag_spec='${wl}-Blargedynsym'
8560 ;;
8561 esac
8562 fi
8563 fi
8564
8565echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8566echo "${ECHO_T}$ld_shlibs" >&6
8567test "$ld_shlibs" = no && can_build_shared=no
8568
8569with_gnu_ld=$with_gnu_ld
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585#
8586# Do we need to explicitly link libc?
8587#
8588case "x$archive_cmds_need_lc" in
8589x|xyes)
8590 # Assume -lc should be added
8591 archive_cmds_need_lc=yes
8592
8593 if test "$enable_shared" = yes && test "$GCC" = yes; then
8594 case $archive_cmds in
8595 *'~'*)
8596 # FIXME: we may have to deal with multi-command sequences.
8597 ;;
8598 '$CC '*)
8599 # Test whether the compiler implicitly links with -lc since on some
8600 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8601 # to ld, don't add -lc before -lgcc.
8602 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8603echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8604 $RM conftest*
8605 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8606
8607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8608 (eval $ac_compile) 2>&5
20e95c23
DJ
8609 ac_status=$?
8610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
8611 (exit $ac_status); } 2>conftest.err; then
8612 soname=conftest
8613 lib=conftest
8614 libobjs=conftest.$ac_objext
8615 deplibs=
8616 wl=$lt_prog_compiler_wl
8617 pic_flag=$lt_prog_compiler_pic
8618 compiler_flags=-v
8619 linker_flags=-v
8620 verstring=
8621 output_objdir=.
8622 libname=conftest
8623 lt_save_allow_undefined_flag=$allow_undefined_flag
8624 allow_undefined_flag=
8625 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8626 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20e95c23
DJ
8627 ac_status=$?
8628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
8629 (exit $ac_status); }
8630 then
8631 archive_cmds_need_lc=no
8632 else
8633 archive_cmds_need_lc=yes
8634 fi
8635 allow_undefined_flag=$lt_save_allow_undefined_flag
8636 else
8637 cat conftest.err 1>&5
8638 fi
8639 $RM conftest*
8640 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8641echo "${ECHO_T}$archive_cmds_need_lc" >&6
8642 ;;
8643 esac
8644 fi
8645 ;;
8646esac
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8805echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8806withGCC=$GCC
8807if test "$withGCC" = yes; then
8808 case $host_os in
8809 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8810 *) lt_awk_arg="/^libraries:/" ;;
8811 esac
8812 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8813 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8814 # if the path contains ";" then we assume it to be the separator
8815 # otherwise default to the standard path separator (i.e. ":") - it is
8816 # assumed that no part of a normal pathname contains ";" but that should
8817 # okay in the real world where ";" in dirpaths is itself problematic.
8818 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8819 else
8820 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8821 fi
8822 # Ok, now we have the path, separated by spaces, we can step through it
8823 # and add multilib dir if necessary.
8824 lt_tmp_lt_search_path_spec=
8825 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8826 for lt_sys_path in $lt_search_path_spec; do
8827 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8828 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8829 else
8830 test -d "$lt_sys_path" && \
8831 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8832 fi
8833 done
8834 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8835BEGIN {RS=" "; FS="/|\n";} {
8836 lt_foo="";
8837 lt_count=0;
8838 for (lt_i = NF; lt_i > 0; lt_i--) {
8839 if ($lt_i != "" && $lt_i != ".") {
8840 if ($lt_i == "..") {
8841 lt_count++;
8842 } else {
8843 if (lt_count == 0) {
8844 lt_foo="/" $lt_i lt_foo;
8845 } else {
8846 lt_count--;
8847 }
8848 }
8849 }
8850 }
8851 if (lt_foo != "") { lt_freq[lt_foo]++; }
8852 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8853}'`
8854 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8855else
8856 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8857fi
8858library_names_spec=
8859libname_spec='lib$name'
8860soname_spec=
8861shrext_cmds=".so"
8862postinstall_cmds=
8863postuninstall_cmds=
8864finish_cmds=
8865finish_eval=
8866shlibpath_var=
8867shlibpath_overrides_runpath=unknown
8868version_type=none
8869dynamic_linker="$host_os ld.so"
8870sys_lib_dlsearch_path_spec="/lib /usr/lib"
8871need_lib_prefix=unknown
8872hardcode_into_libs=no
8873
8874# when you set need_version to no, make sure it does not cause -set_version
8875# flags to be left without arguments
8876need_version=unknown
8877
8878case $host_os in
8879aix3*)
8880 version_type=linux
8881 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8882 shlibpath_var=LIBPATH
8883
8884 # AIX 3 has no versioning support, so we append a major version to the name.
8885 soname_spec='${libname}${release}${shared_ext}$major'
8886 ;;
8887
50e7d84b 8888aix[4-9]*)
d7040cdb
SE
8889 version_type=linux
8890 need_lib_prefix=no
8891 need_version=no
8892 hardcode_into_libs=yes
8893 if test "$host_cpu" = ia64; then
8894 # AIX 5 supports IA64
8895 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8896 shlibpath_var=LD_LIBRARY_PATH
8897 else
8898 # With GCC up to 2.95.x, collect2 would create an import file
8899 # for dependence libraries. The import file would start with
8900 # the line `#! .'. This would cause the generated library to
8901 # depend on `.', always an invalid library. This was fixed in
8902 # development snapshots of GCC prior to 3.0.
8903 case $host_os in
8904 aix4 | aix4.[01] | aix4.[01].*)
8905 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8906 echo ' yes '
8907 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8908 :
8909 else
8910 can_build_shared=no
8911 fi
8912 ;;
8913 esac
8914 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8915 # soname into executable. Probably we can add versioning support to
8916 # collect2, so additional links can be useful in future.
8917 if test "$aix_use_runtimelinking" = yes; then
8918 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8919 # instead of lib<name>.a to let people know that these are not
8920 # typical AIX shared libraries.
8921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8922 else
8923 # We preserve .a as extension for shared libraries through AIX4.2
8924 # and later when we are not doing run time linking.
8925 library_names_spec='${libname}${release}.a $libname.a'
8926 soname_spec='${libname}${release}${shared_ext}$major'
8927 fi
8928 shlibpath_var=LIBPATH
8929 fi
8930 ;;
8931
8932amigaos*)
8933 if test "$host_cpu" = m68k; then
8934 library_names_spec='$libname.ixlibrary $libname.a'
8935 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8936 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'
8937 else
8938 dynamic_linker=no
8939 fi
8940 ;;
8941
8942beos*)
8943 library_names_spec='${libname}${shared_ext}'
8944 dynamic_linker="$host_os ld.so"
8945 shlibpath_var=LIBRARY_PATH
8946 ;;
8947
8948bsdi[45]*)
8949 version_type=linux
8950 need_version=no
8951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8952 soname_spec='${libname}${release}${shared_ext}$major'
8953 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8954 shlibpath_var=LD_LIBRARY_PATH
8955 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8956 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8957 # the default ld.so.conf also contains /usr/contrib/lib and
8958 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8959 # libtool to hard-code these into programs
8960 ;;
8961
8962cygwin* | mingw* | pw32*)
8963 version_type=windows
8964 shrext_cmds=".dll"
8965 need_version=no
8966 need_lib_prefix=no
8967
8968 case $withGCC,$host_os in
8969 yes,cygwin* | yes,mingw* | yes,pw32*)
8970 library_names_spec='$libname.dll.a'
8971 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8972 postinstall_cmds='base_file=`basename \${file}`~
8973 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8974 dldir=$destdir/`dirname \$dlpath`~
8975 test -d \$dldir || mkdir -p \$dldir~
8976 $install_prog $dir/$dlname \$dldir/$dlname~
8977 chmod a+x \$dldir/$dlname~
8978 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8979 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8980 fi'
8981 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8982 dlpath=$dir/\$dldll~
8983 $RM \$dlpath'
8984 shlibpath_overrides_runpath=yes
8985
8986 case $host_os in
8987 cygwin*)
8988 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8989 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8990 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8991 ;;
8992 mingw*)
8993 # MinGW DLLs use traditional 'lib' prefix
8994 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8995 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8996 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8997 # It is most probably a Windows format PATH printed by
8998 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8999 # path with ; separators, and with drive letters. We can handle the
9000 # drive letters (cygwin fileutils understands them), so leave them,
9001 # especially as we might pass files found there to a mingw objdump,
9002 # which wouldn't understand a cygwinified path. Ahh.
9003 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9004 else
9005 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9006 fi
9007 ;;
9008 pw32*)
9009 # pw32 DLLs use 'pw' prefix rather than 'lib'
9010 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9011 ;;
9012 esac
9013 ;;
9014
9015 *)
9016 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9017 ;;
9018 esac
9019 dynamic_linker='Win32 ld.exe'
9020 # FIXME: first we should search . and the directory the executable is in
9021 shlibpath_var=PATH
9022 ;;
9023
9024darwin* | rhapsody*)
9025 dynamic_linker="$host_os dyld"
9026 version_type=darwin
9027 need_lib_prefix=no
9028 need_version=no
9029 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9030 soname_spec='${libname}${release}${major}$shared_ext'
9031 shlibpath_overrides_runpath=yes
9032 shlibpath_var=DYLD_LIBRARY_PATH
9033 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9034
9035 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9036 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9037 ;;
9038
9039dgux*)
9040 version_type=linux
9041 need_lib_prefix=no
9042 need_version=no
9043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9044 soname_spec='${libname}${release}${shared_ext}$major'
9045 shlibpath_var=LD_LIBRARY_PATH
9046 ;;
9047
9048freebsd1*)
9049 dynamic_linker=no
9050 ;;
9051
9052freebsd* | dragonfly*)
9053 # DragonFly does not have aout. When/if they implement a new
9054 # versioning mechanism, adjust this.
9055 if test -x /usr/bin/objformat; then
9056 objformat=`/usr/bin/objformat`
9057 else
9058 case $host_os in
9059 freebsd[123]*) objformat=aout ;;
9060 *) objformat=elf ;;
9061 esac
9062 fi
9063 version_type=freebsd-$objformat
9064 case $version_type in
9065 freebsd-elf*)
9066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9067 need_version=no
9068 need_lib_prefix=no
9069 ;;
9070 freebsd-*)
9071 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9072 need_version=yes
9073 ;;
9074 esac
9075 shlibpath_var=LD_LIBRARY_PATH
9076 case $host_os in
9077 freebsd2*)
9078 shlibpath_overrides_runpath=yes
9079 ;;
9080 freebsd3.[01]* | freebsdelf3.[01]*)
9081 shlibpath_overrides_runpath=yes
9082 hardcode_into_libs=yes
9083 ;;
9084 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9085 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9086 shlibpath_overrides_runpath=no
9087 hardcode_into_libs=yes
9088 ;;
9089 *) # from 4.6 on, and DragonFly
9090 shlibpath_overrides_runpath=yes
9091 hardcode_into_libs=yes
9092 ;;
9093 esac
9094 ;;
9095
9096gnu*)
9097 version_type=linux
9098 need_lib_prefix=no
9099 need_version=no
9100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9101 soname_spec='${libname}${release}${shared_ext}$major'
9102 shlibpath_var=LD_LIBRARY_PATH
9103 hardcode_into_libs=yes
9104 ;;
9105
9106hpux9* | hpux10* | hpux11*)
9107 # Give a soname corresponding to the major version so that dld.sl refuses to
9108 # link against other versions.
9109 version_type=sunos
9110 need_lib_prefix=no
9111 need_version=no
9112 case $host_cpu in
9113 ia64*)
9114 shrext_cmds='.so'
9115 hardcode_into_libs=yes
9116 dynamic_linker="$host_os dld.so"
9117 shlibpath_var=LD_LIBRARY_PATH
9118 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9120 soname_spec='${libname}${release}${shared_ext}$major'
9121 if test "X$HPUX_IA64_MODE" = X32; then
9122 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9123 else
9124 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9125 fi
9126 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9127 ;;
9128 hppa*64*)
9129 shrext_cmds='.sl'
9130 hardcode_into_libs=yes
9131 dynamic_linker="$host_os dld.sl"
9132 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9133 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9135 soname_spec='${libname}${release}${shared_ext}$major'
9136 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9137 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9138 ;;
9139 *)
9140 shrext_cmds='.sl'
9141 dynamic_linker="$host_os dld.sl"
9142 shlibpath_var=SHLIB_PATH
9143 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9145 soname_spec='${libname}${release}${shared_ext}$major'
9146 ;;
9147 esac
9148 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9149 postinstall_cmds='chmod 555 $lib'
9150 ;;
9151
9152interix[3-9]*)
9153 version_type=linux
9154 need_lib_prefix=no
9155 need_version=no
9156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9157 soname_spec='${libname}${release}${shared_ext}$major'
9158 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9159 shlibpath_var=LD_LIBRARY_PATH
9160 shlibpath_overrides_runpath=no
9161 hardcode_into_libs=yes
9162 ;;
9163
9164irix5* | irix6* | nonstopux*)
9165 case $host_os in
9166 nonstopux*) version_type=nonstopux ;;
9167 *)
9168 if test "$lt_cv_prog_gnu_ld" = yes; then
9169 version_type=linux
9170 else
9171 version_type=irix
9172 fi ;;
9173 esac
9174 need_lib_prefix=no
9175 need_version=no
9176 soname_spec='${libname}${release}${shared_ext}$major'
9177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9178 case $host_os in
9179 irix5* | nonstopux*)
9180 libsuff= shlibsuff=
9181 ;;
9182 *)
9183 case $LD in # libtool.m4 will add one of these switches to LD
9184 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9185 libsuff= shlibsuff= libmagic=32-bit;;
9186 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9187 libsuff=32 shlibsuff=N32 libmagic=N32;;
9188 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9189 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9190 *) libsuff= shlibsuff= libmagic=never-match;;
9191 esac
9192 ;;
9193 esac
9194 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9195 shlibpath_overrides_runpath=no
9196 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9197 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9198 hardcode_into_libs=yes
9199 ;;
9200
9201# No shared lib support for Linux oldld, aout, or coff.
9202linux*oldld* | linux*aout* | linux*coff*)
9203 dynamic_linker=no
9204 ;;
9205
9206# This must be Linux ELF.
9207linux* | k*bsd*-gnu)
9208 version_type=linux
9209 need_lib_prefix=no
9210 need_version=no
9211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9212 soname_spec='${libname}${release}${shared_ext}$major'
9213 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9214 shlibpath_var=LD_LIBRARY_PATH
9215 shlibpath_overrides_runpath=no
9216 # Some binutils ld are patched to set DT_RUNPATH
9217 save_LDFLAGS=$LDFLAGS
9218 save_libdir=$libdir
9219 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9220 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9221 cat >conftest.$ac_ext <<_ACEOF
9222/* confdefs.h. */
9223_ACEOF
9224cat confdefs.h >>conftest.$ac_ext
9225cat >>conftest.$ac_ext <<_ACEOF
9226/* end confdefs.h. */
9227
9228int
9229main ()
9230{
9231
9232 ;
9233 return 0;
9234}
9235_ACEOF
9236rm -f conftest.$ac_objext conftest$ac_exeext
9237if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9238 (eval $ac_link) 2>conftest.er1
9239 ac_status=$?
9240 grep -v '^ *+' conftest.er1 >conftest.err
9241 rm -f conftest.er1
9242 cat conftest.err >&5
9243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9244 (exit $ac_status); } &&
7357c5b6
AM
9245 { ac_try='test -z "$ac_c_werror_flag"
9246 || test ! -s conftest.err'
d7040cdb
SE
9247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9248 (eval $ac_try) 2>&5
9249 ac_status=$?
9250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9251 (exit $ac_status); }; } &&
9252 { ac_try='test -s conftest$ac_exeext'
9253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9254 (eval $ac_try) 2>&5
9255 ac_status=$?
9256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257 (exit $ac_status); }; }; then
9258 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
9259 shlibpath_overrides_runpath=yes
9260fi
9261
9262else
9263 echo "$as_me: failed program was:" >&5
9264sed 's/^/| /' conftest.$ac_ext >&5
9265
9266fi
9267rm -f conftest.err conftest.$ac_objext \
9268 conftest$ac_exeext conftest.$ac_ext
9269 LDFLAGS=$save_LDFLAGS
9270 libdir=$save_libdir
9271
9272 # This implies no fast_install, which is unacceptable.
9273 # Some rework will be needed to allow for fast_install
9274 # before this can be enabled.
9275 hardcode_into_libs=yes
9276
9277 # Append ld.so.conf contents to the search path
9278 if test -f /etc/ld.so.conf; then
9279 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' ' '`
9280 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9281 fi
9282
9283 # We used to test for /lib/ld.so.1 and disable shared libraries on
9284 # powerpc, because MkLinux only supported shared libraries with the
9285 # GNU dynamic linker. Since this was broken with cross compilers,
9286 # most powerpc-linux boxes support dynamic linking these days and
9287 # people can always --disable-shared, the test was removed, and we
9288 # assume the GNU/Linux dynamic linker is in use.
9289 dynamic_linker='GNU/Linux ld.so'
9290 ;;
9291
9292netbsd*)
9293 version_type=sunos
9294 need_lib_prefix=no
9295 need_version=no
9296 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9298 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9299 dynamic_linker='NetBSD (a.out) ld.so'
9300 else
9301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9302 soname_spec='${libname}${release}${shared_ext}$major'
9303 dynamic_linker='NetBSD ld.elf_so'
9304 fi
9305 shlibpath_var=LD_LIBRARY_PATH
9306 shlibpath_overrides_runpath=yes
9307 hardcode_into_libs=yes
9308 ;;
9309
9310newsos6)
9311 version_type=linux
9312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9313 shlibpath_var=LD_LIBRARY_PATH
9314 shlibpath_overrides_runpath=yes
9315 ;;
9316
9317*nto* | *qnx*)
9318 version_type=qnx
9319 need_lib_prefix=no
9320 need_version=no
9321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9322 soname_spec='${libname}${release}${shared_ext}$major'
9323 shlibpath_var=LD_LIBRARY_PATH
9324 shlibpath_overrides_runpath=no
9325 hardcode_into_libs=yes
9326 dynamic_linker='ldqnx.so'
9327 ;;
9328
9329openbsd*)
9330 version_type=sunos
9331 sys_lib_dlsearch_path_spec="/usr/lib"
9332 need_lib_prefix=no
9333 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9334 case $host_os in
9335 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9336 *) need_version=no ;;
9337 esac
9338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9339 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9340 shlibpath_var=LD_LIBRARY_PATH
9341 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9342 case $host_os in
9343 openbsd2.[89] | openbsd2.[89].*)
9344 shlibpath_overrides_runpath=no
9345 ;;
9346 *)
9347 shlibpath_overrides_runpath=yes
9348 ;;
9349 esac
9350 else
9351 shlibpath_overrides_runpath=yes
9352 fi
9353 ;;
9354
9355os2*)
9356 libname_spec='$name'
9357 shrext_cmds=".dll"
9358 need_lib_prefix=no
9359 library_names_spec='$libname${shared_ext} $libname.a'
9360 dynamic_linker='OS/2 ld.exe'
9361 shlibpath_var=LIBPATH
9362 ;;
9363
9364osf3* | osf4* | osf5*)
9365 version_type=osf
9366 need_lib_prefix=no
9367 need_version=no
9368 soname_spec='${libname}${release}${shared_ext}$major'
9369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9370 shlibpath_var=LD_LIBRARY_PATH
9371 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9372 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9373 ;;
9374
9375rdos*)
9376 dynamic_linker=no
9377 ;;
9378
9379solaris*)
9380 version_type=linux
9381 need_lib_prefix=no
9382 need_version=no
9383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9384 soname_spec='${libname}${release}${shared_ext}$major'
9385 shlibpath_var=LD_LIBRARY_PATH
9386 shlibpath_overrides_runpath=yes
9387 hardcode_into_libs=yes
9388 # ldd complains unless libraries are executable
9389 postinstall_cmds='chmod +x $lib'
9390 ;;
9391
9392sunos4*)
9393 version_type=sunos
9394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9395 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9396 shlibpath_var=LD_LIBRARY_PATH
9397 shlibpath_overrides_runpath=yes
9398 if test "$with_gnu_ld" = yes; then
9399 need_lib_prefix=no
9400 fi
9401 need_version=yes
9402 ;;
9403
9404sysv4 | sysv4.3*)
9405 version_type=linux
9406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9407 soname_spec='${libname}${release}${shared_ext}$major'
9408 shlibpath_var=LD_LIBRARY_PATH
9409 case $host_vendor in
9410 sni)
9411 shlibpath_overrides_runpath=no
9412 need_lib_prefix=no
9413 runpath_var=LD_RUN_PATH
9414 ;;
9415 siemens)
9416 need_lib_prefix=no
9417 ;;
9418 motorola)
9419 need_lib_prefix=no
9420 need_version=no
9421 shlibpath_overrides_runpath=no
9422 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9423 ;;
9424 esac
9425 ;;
9426
9427sysv4*MP*)
9428 if test -d /usr/nec ;then
9429 version_type=linux
9430 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9431 soname_spec='$libname${shared_ext}.$major'
9432 shlibpath_var=LD_LIBRARY_PATH
9433 fi
9434 ;;
9435
9436sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9437 version_type=freebsd-elf
9438 need_lib_prefix=no
9439 need_version=no
9440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9441 soname_spec='${libname}${release}${shared_ext}$major'
9442 shlibpath_var=LD_LIBRARY_PATH
9443 shlibpath_overrides_runpath=yes
9444 hardcode_into_libs=yes
9445 if test "$with_gnu_ld" = yes; then
9446 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9447 else
9448 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9449 case $host_os in
9450 sco3.2v5*)
9451 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9452 ;;
9453 esac
9454 fi
9455 sys_lib_dlsearch_path_spec='/usr/lib'
9456 ;;
9457
9458tpf*)
9459 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9460 version_type=linux
9461 need_lib_prefix=no
9462 need_version=no
9463 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9464 shlibpath_var=LD_LIBRARY_PATH
9465 shlibpath_overrides_runpath=no
9466 hardcode_into_libs=yes
9467 ;;
9468
9469uts4*)
9470 version_type=linux
9471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9472 soname_spec='${libname}${release}${shared_ext}$major'
9473 shlibpath_var=LD_LIBRARY_PATH
9474 ;;
9475
9476*)
9477 dynamic_linker=no
9478 ;;
9479esac
9480echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9481echo "${ECHO_T}$dynamic_linker" >&6
9482test "$dynamic_linker" = no && can_build_shared=no
9483
9484variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9485if test "$GCC" = yes; then
9486 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9487fi
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9576echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9577hardcode_action=
9578if test -n "$hardcode_libdir_flag_spec" ||
9579 test -n "$runpath_var" ||
9580 test "X$hardcode_automatic" = "Xyes" ; then
9581
9582 # We can hardcode non-existent directories.
9583 if test "$hardcode_direct" != no &&
9584 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9585 # have to relink, otherwise we might link with an installed library
9586 # when we should be linking with a yet-to-be-installed one
9587 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9588 test "$hardcode_minus_L" != no; then
9589 # Linking always hardcodes the temporary library directory.
9590 hardcode_action=relink
9591 else
9592 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9593 hardcode_action=immediate
9594 fi
9595else
9596 # We cannot hardcode anything, or else we can only hardcode existing
9597 # directories.
9598 hardcode_action=unsupported
9599fi
9600echo "$as_me:$LINENO: result: $hardcode_action" >&5
9601echo "${ECHO_T}$hardcode_action" >&6
9602
9603if test "$hardcode_action" = relink ||
9604 test "$inherit_rpath" = yes; then
9605 # Fast installation is not supported
9606 enable_fast_install=no
9607elif test "$shlibpath_overrides_runpath" = yes ||
9608 test "$enable_shared" = no; then
9609 # Fast installation is not necessary
9610 enable_fast_install=needless
9611fi
9612
9613
9614
9615
9616
9617
9618 if test "x$enable_dlopen" != xyes; then
9619 enable_dlopen=unknown
9620 enable_dlopen_self=unknown
9621 enable_dlopen_self_static=unknown
9622else
9623 lt_cv_dlopen=no
9624 lt_cv_dlopen_libs=
9625
9626 case $host_os in
9627 beos*)
9628 lt_cv_dlopen="load_add_on"
9629 lt_cv_dlopen_libs=
9630 lt_cv_dlopen_self=yes
9631 ;;
9632
9633 mingw* | pw32*)
9634 lt_cv_dlopen="LoadLibrary"
9635 lt_cv_dlopen_libs=
9636 ;;
9637
9638 cygwin*)
9639 lt_cv_dlopen="dlopen"
9640 lt_cv_dlopen_libs=
9641 ;;
9642
9643 darwin*)
9644 # if libdl is installed we need to link against it
9645 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9646echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9647if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9648 echo $ECHO_N "(cached) $ECHO_C" >&6
9649else
9650 ac_check_lib_save_LIBS=$LIBS
9651LIBS="-ldl $LIBS"
9652cat >conftest.$ac_ext <<_ACEOF
9653/* confdefs.h. */
9654_ACEOF
9655cat confdefs.h >>conftest.$ac_ext
9656cat >>conftest.$ac_ext <<_ACEOF
9657/* end confdefs.h. */
9658
9659/* Override any gcc2 internal prototype to avoid an error. */
9660#ifdef __cplusplus
9661extern "C"
9662#endif
9663/* We use char because int might match the return type of a gcc2
9664 builtin and then its argument prototype would still apply. */
9665char dlopen ();
9666int
9667main ()
9668{
9669dlopen ();
9670 ;
9671 return 0;
9672}
9673_ACEOF
9674rm -f conftest.$ac_objext conftest$ac_exeext
9675if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9676 (eval $ac_link) 2>conftest.er1
9677 ac_status=$?
9678 grep -v '^ *+' conftest.er1 >conftest.err
9679 rm -f conftest.er1
9680 cat conftest.err >&5
9681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682 (exit $ac_status); } &&
7357c5b6
AM
9683 { ac_try='test -z "$ac_c_werror_flag"
9684 || test ! -s conftest.err'
d7040cdb
SE
9685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9686 (eval $ac_try) 2>&5
9687 ac_status=$?
9688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9689 (exit $ac_status); }; } &&
9690 { ac_try='test -s conftest$ac_exeext'
9691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9692 (eval $ac_try) 2>&5
9693 ac_status=$?
9694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695 (exit $ac_status); }; }; then
9696 ac_cv_lib_dl_dlopen=yes
9697else
9698 echo "$as_me: failed program was:" >&5
9699sed 's/^/| /' conftest.$ac_ext >&5
9700
9701ac_cv_lib_dl_dlopen=no
9702fi
9703rm -f conftest.err conftest.$ac_objext \
9704 conftest$ac_exeext conftest.$ac_ext
9705LIBS=$ac_check_lib_save_LIBS
9706fi
9707echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9708echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9709if test $ac_cv_lib_dl_dlopen = yes; then
9710 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9711else
9712
9713 lt_cv_dlopen="dyld"
9714 lt_cv_dlopen_libs=
9715 lt_cv_dlopen_self=yes
9716
9717fi
9718
9719 ;;
9720
9721 *)
9722 echo "$as_me:$LINENO: checking for shl_load" >&5
9723echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9724if test "${ac_cv_func_shl_load+set}" = set; then
9725 echo $ECHO_N "(cached) $ECHO_C" >&6
9726else
9727 cat >conftest.$ac_ext <<_ACEOF
9728/* confdefs.h. */
9729_ACEOF
9730cat confdefs.h >>conftest.$ac_ext
9731cat >>conftest.$ac_ext <<_ACEOF
9732/* end confdefs.h. */
9733/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9734 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9735#define shl_load innocuous_shl_load
9736
9737/* System header to define __stub macros and hopefully few prototypes,
9738 which can conflict with char shl_load (); below.
9739 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9740 <limits.h> exists even on freestanding compilers. */
9741
9742#ifdef __STDC__
9743# include <limits.h>
9744#else
9745# include <assert.h>
9746#endif
9747
9748#undef shl_load
9749
9750/* Override any gcc2 internal prototype to avoid an error. */
9751#ifdef __cplusplus
9752extern "C"
9753{
9754#endif
9755/* We use char because int might match the return type of a gcc2
9756 builtin and then its argument prototype would still apply. */
9757char shl_load ();
9758/* The GNU C library defines this for functions which it implements
9759 to always fail with ENOSYS. Some functions are actually named
9760 something starting with __ and the normal name is an alias. */
9761#if defined (__stub_shl_load) || defined (__stub___shl_load)
9762choke me
9763#else
9764char (*f) () = shl_load;
9765#endif
9766#ifdef __cplusplus
9767}
9768#endif
9769
9770int
9771main ()
9772{
9773return f != shl_load;
9774 ;
9775 return 0;
9776}
9777_ACEOF
9778rm -f conftest.$ac_objext conftest$ac_exeext
9779if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9780 (eval $ac_link) 2>conftest.er1
9781 ac_status=$?
9782 grep -v '^ *+' conftest.er1 >conftest.err
9783 rm -f conftest.er1
9784 cat conftest.err >&5
9785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9786 (exit $ac_status); } &&
7357c5b6
AM
9787 { ac_try='test -z "$ac_c_werror_flag"
9788 || test ! -s conftest.err'
d7040cdb
SE
9789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9790 (eval $ac_try) 2>&5
9791 ac_status=$?
9792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793 (exit $ac_status); }; } &&
9794 { ac_try='test -s conftest$ac_exeext'
9795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9796 (eval $ac_try) 2>&5
9797 ac_status=$?
9798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799 (exit $ac_status); }; }; then
9800 ac_cv_func_shl_load=yes
9801else
9802 echo "$as_me: failed program was:" >&5
9803sed 's/^/| /' conftest.$ac_ext >&5
9804
9805ac_cv_func_shl_load=no
9806fi
9807rm -f conftest.err conftest.$ac_objext \
9808 conftest$ac_exeext conftest.$ac_ext
9809fi
9810echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9811echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9812if test $ac_cv_func_shl_load = yes; then
9813 lt_cv_dlopen="shl_load"
9814else
9815 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9816echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9817if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9818 echo $ECHO_N "(cached) $ECHO_C" >&6
9819else
9820 ac_check_lib_save_LIBS=$LIBS
9821LIBS="-ldld $LIBS"
9822cat >conftest.$ac_ext <<_ACEOF
9823/* confdefs.h. */
9824_ACEOF
9825cat confdefs.h >>conftest.$ac_ext
9826cat >>conftest.$ac_ext <<_ACEOF
9827/* end confdefs.h. */
9828
9829/* Override any gcc2 internal prototype to avoid an error. */
9830#ifdef __cplusplus
9831extern "C"
9832#endif
9833/* We use char because int might match the return type of a gcc2
9834 builtin and then its argument prototype would still apply. */
9835char shl_load ();
9836int
9837main ()
9838{
9839shl_load ();
9840 ;
9841 return 0;
9842}
9843_ACEOF
9844rm -f conftest.$ac_objext conftest$ac_exeext
9845if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9846 (eval $ac_link) 2>conftest.er1
9847 ac_status=$?
9848 grep -v '^ *+' conftest.er1 >conftest.err
9849 rm -f conftest.er1
9850 cat conftest.err >&5
9851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852 (exit $ac_status); } &&
7357c5b6
AM
9853 { ac_try='test -z "$ac_c_werror_flag"
9854 || test ! -s conftest.err'
d7040cdb
SE
9855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9856 (eval $ac_try) 2>&5
9857 ac_status=$?
9858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859 (exit $ac_status); }; } &&
9860 { ac_try='test -s conftest$ac_exeext'
9861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9862 (eval $ac_try) 2>&5
9863 ac_status=$?
9864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865 (exit $ac_status); }; }; then
9866 ac_cv_lib_dld_shl_load=yes
9867else
9868 echo "$as_me: failed program was:" >&5
9869sed 's/^/| /' conftest.$ac_ext >&5
9870
9871ac_cv_lib_dld_shl_load=no
9872fi
9873rm -f conftest.err conftest.$ac_objext \
9874 conftest$ac_exeext conftest.$ac_ext
9875LIBS=$ac_check_lib_save_LIBS
9876fi
9877echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9878echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9879if test $ac_cv_lib_dld_shl_load = yes; then
9880 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9881else
9882 echo "$as_me:$LINENO: checking for dlopen" >&5
9883echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9884if test "${ac_cv_func_dlopen+set}" = set; then
9885 echo $ECHO_N "(cached) $ECHO_C" >&6
9886else
9887 cat >conftest.$ac_ext <<_ACEOF
9888/* confdefs.h. */
9889_ACEOF
9890cat confdefs.h >>conftest.$ac_ext
9891cat >>conftest.$ac_ext <<_ACEOF
9892/* end confdefs.h. */
9893/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9894 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9895#define dlopen innocuous_dlopen
9896
9897/* System header to define __stub macros and hopefully few prototypes,
9898 which can conflict with char dlopen (); below.
9899 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9900 <limits.h> exists even on freestanding compilers. */
9901
9902#ifdef __STDC__
9903# include <limits.h>
9904#else
9905# include <assert.h>
9906#endif
9907
9908#undef dlopen
9909
9910/* Override any gcc2 internal prototype to avoid an error. */
9911#ifdef __cplusplus
9912extern "C"
9913{
9914#endif
9915/* We use char because int might match the return type of a gcc2
9916 builtin and then its argument prototype would still apply. */
9917char dlopen ();
9918/* The GNU C library defines this for functions which it implements
9919 to always fail with ENOSYS. Some functions are actually named
9920 something starting with __ and the normal name is an alias. */
9921#if defined (__stub_dlopen) || defined (__stub___dlopen)
9922choke me
9923#else
9924char (*f) () = dlopen;
9925#endif
9926#ifdef __cplusplus
9927}
9928#endif
9929
9930int
9931main ()
9932{
9933return f != dlopen;
9934 ;
9935 return 0;
9936}
9937_ACEOF
9938rm -f conftest.$ac_objext conftest$ac_exeext
9939if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9940 (eval $ac_link) 2>conftest.er1
9941 ac_status=$?
9942 grep -v '^ *+' conftest.er1 >conftest.err
9943 rm -f conftest.er1
9944 cat conftest.err >&5
9945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946 (exit $ac_status); } &&
7357c5b6
AM
9947 { ac_try='test -z "$ac_c_werror_flag"
9948 || test ! -s conftest.err'
d7040cdb
SE
9949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9950 (eval $ac_try) 2>&5
9951 ac_status=$?
9952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953 (exit $ac_status); }; } &&
9954 { ac_try='test -s conftest$ac_exeext'
9955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9956 (eval $ac_try) 2>&5
9957 ac_status=$?
9958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9959 (exit $ac_status); }; }; then
9960 ac_cv_func_dlopen=yes
9961else
9962 echo "$as_me: failed program was:" >&5
9963sed 's/^/| /' conftest.$ac_ext >&5
9964
9965ac_cv_func_dlopen=no
9966fi
9967rm -f conftest.err conftest.$ac_objext \
9968 conftest$ac_exeext conftest.$ac_ext
9969fi
9970echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9971echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9972if test $ac_cv_func_dlopen = yes; then
9973 lt_cv_dlopen="dlopen"
9974else
9975 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9976echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9977if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9978 echo $ECHO_N "(cached) $ECHO_C" >&6
9979else
9980 ac_check_lib_save_LIBS=$LIBS
9981LIBS="-ldl $LIBS"
9982cat >conftest.$ac_ext <<_ACEOF
9983/* confdefs.h. */
9984_ACEOF
9985cat confdefs.h >>conftest.$ac_ext
9986cat >>conftest.$ac_ext <<_ACEOF
9987/* end confdefs.h. */
9988
9989/* Override any gcc2 internal prototype to avoid an error. */
9990#ifdef __cplusplus
9991extern "C"
9992#endif
9993/* We use char because int might match the return type of a gcc2
9994 builtin and then its argument prototype would still apply. */
9995char dlopen ();
9996int
9997main ()
9998{
9999dlopen ();
10000 ;
10001 return 0;
10002}
10003_ACEOF
10004rm -f conftest.$ac_objext conftest$ac_exeext
10005if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10006 (eval $ac_link) 2>conftest.er1
10007 ac_status=$?
10008 grep -v '^ *+' conftest.er1 >conftest.err
10009 rm -f conftest.er1
10010 cat conftest.err >&5
10011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012 (exit $ac_status); } &&
7357c5b6
AM
10013 { ac_try='test -z "$ac_c_werror_flag"
10014 || test ! -s conftest.err'
d7040cdb
SE
10015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10016 (eval $ac_try) 2>&5
10017 ac_status=$?
10018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10019 (exit $ac_status); }; } &&
10020 { ac_try='test -s conftest$ac_exeext'
10021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10022 (eval $ac_try) 2>&5
10023 ac_status=$?
10024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025 (exit $ac_status); }; }; then
10026 ac_cv_lib_dl_dlopen=yes
10027else
10028 echo "$as_me: failed program was:" >&5
10029sed 's/^/| /' conftest.$ac_ext >&5
10030
10031ac_cv_lib_dl_dlopen=no
10032fi
10033rm -f conftest.err conftest.$ac_objext \
10034 conftest$ac_exeext conftest.$ac_ext
10035LIBS=$ac_check_lib_save_LIBS
10036fi
10037echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10038echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10039if test $ac_cv_lib_dl_dlopen = yes; then
10040 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10041else
10042 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10043echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10044if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10045 echo $ECHO_N "(cached) $ECHO_C" >&6
10046else
10047 ac_check_lib_save_LIBS=$LIBS
10048LIBS="-lsvld $LIBS"
10049cat >conftest.$ac_ext <<_ACEOF
10050/* confdefs.h. */
10051_ACEOF
10052cat confdefs.h >>conftest.$ac_ext
10053cat >>conftest.$ac_ext <<_ACEOF
10054/* end confdefs.h. */
10055
10056/* Override any gcc2 internal prototype to avoid an error. */
10057#ifdef __cplusplus
10058extern "C"
10059#endif
10060/* We use char because int might match the return type of a gcc2
10061 builtin and then its argument prototype would still apply. */
10062char dlopen ();
10063int
10064main ()
10065{
10066dlopen ();
10067 ;
10068 return 0;
10069}
10070_ACEOF
10071rm -f conftest.$ac_objext conftest$ac_exeext
10072if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10073 (eval $ac_link) 2>conftest.er1
10074 ac_status=$?
10075 grep -v '^ *+' conftest.er1 >conftest.err
10076 rm -f conftest.er1
10077 cat conftest.err >&5
10078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079 (exit $ac_status); } &&
7357c5b6
AM
10080 { ac_try='test -z "$ac_c_werror_flag"
10081 || test ! -s conftest.err'
d7040cdb
SE
10082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10083 (eval $ac_try) 2>&5
10084 ac_status=$?
10085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10086 (exit $ac_status); }; } &&
10087 { ac_try='test -s conftest$ac_exeext'
10088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10089 (eval $ac_try) 2>&5
10090 ac_status=$?
10091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092 (exit $ac_status); }; }; then
10093 ac_cv_lib_svld_dlopen=yes
10094else
10095 echo "$as_me: failed program was:" >&5
10096sed 's/^/| /' conftest.$ac_ext >&5
10097
10098ac_cv_lib_svld_dlopen=no
10099fi
10100rm -f conftest.err conftest.$ac_objext \
10101 conftest$ac_exeext conftest.$ac_ext
10102LIBS=$ac_check_lib_save_LIBS
10103fi
10104echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10105echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10106if test $ac_cv_lib_svld_dlopen = yes; then
10107 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10108else
10109 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10110echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10111if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10112 echo $ECHO_N "(cached) $ECHO_C" >&6
10113else
10114 ac_check_lib_save_LIBS=$LIBS
10115LIBS="-ldld $LIBS"
10116cat >conftest.$ac_ext <<_ACEOF
10117/* confdefs.h. */
10118_ACEOF
10119cat confdefs.h >>conftest.$ac_ext
10120cat >>conftest.$ac_ext <<_ACEOF
10121/* end confdefs.h. */
10122
10123/* Override any gcc2 internal prototype to avoid an error. */
10124#ifdef __cplusplus
10125extern "C"
10126#endif
10127/* We use char because int might match the return type of a gcc2
10128 builtin and then its argument prototype would still apply. */
10129char dld_link ();
10130int
10131main ()
10132{
10133dld_link ();
10134 ;
10135 return 0;
10136}
10137_ACEOF
10138rm -f conftest.$ac_objext conftest$ac_exeext
10139if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10140 (eval $ac_link) 2>conftest.er1
10141 ac_status=$?
10142 grep -v '^ *+' conftest.er1 >conftest.err
10143 rm -f conftest.er1
10144 cat conftest.err >&5
10145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146 (exit $ac_status); } &&
7357c5b6
AM
10147 { ac_try='test -z "$ac_c_werror_flag"
10148 || test ! -s conftest.err'
d7040cdb
SE
10149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10150 (eval $ac_try) 2>&5
10151 ac_status=$?
10152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153 (exit $ac_status); }; } &&
10154 { ac_try='test -s conftest$ac_exeext'
10155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10156 (eval $ac_try) 2>&5
10157 ac_status=$?
10158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10159 (exit $ac_status); }; }; then
10160 ac_cv_lib_dld_dld_link=yes
10161else
10162 echo "$as_me: failed program was:" >&5
10163sed 's/^/| /' conftest.$ac_ext >&5
10164
10165ac_cv_lib_dld_dld_link=no
10166fi
10167rm -f conftest.err conftest.$ac_objext \
10168 conftest$ac_exeext conftest.$ac_ext
10169LIBS=$ac_check_lib_save_LIBS
10170fi
10171echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10172echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10173if test $ac_cv_lib_dld_dld_link = yes; then
10174 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10175fi
10176
10177
10178fi
10179
10180
10181fi
10182
10183
10184fi
10185
10186
10187fi
10188
10189
10190fi
10191
10192 ;;
10193 esac
10194
10195 if test "x$lt_cv_dlopen" != xno; then
10196 enable_dlopen=yes
10197 else
10198 enable_dlopen=no
10199 fi
10200
10201 case $lt_cv_dlopen in
10202 dlopen)
10203 save_CPPFLAGS="$CPPFLAGS"
10204 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10205
10206 save_LDFLAGS="$LDFLAGS"
10207 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10208
10209 save_LIBS="$LIBS"
10210 LIBS="$lt_cv_dlopen_libs $LIBS"
10211
10212 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10213echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10214if test "${lt_cv_dlopen_self+set}" = set; then
10215 echo $ECHO_N "(cached) $ECHO_C" >&6
10216else
10217 if test "$cross_compiling" = yes; then :
10218 lt_cv_dlopen_self=cross
10219else
10220 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10221 lt_status=$lt_dlunknown
10222 cat > conftest.$ac_ext <<_LT_EOF
da594c4a 10223#line 10223 "configure"
d7040cdb
SE
10224#include "confdefs.h"
10225
10226#if HAVE_DLFCN_H
10227#include <dlfcn.h>
10228#endif
10229
10230#include <stdio.h>
10231
10232#ifdef RTLD_GLOBAL
10233# define LT_DLGLOBAL RTLD_GLOBAL
10234#else
10235# ifdef DL_GLOBAL
10236# define LT_DLGLOBAL DL_GLOBAL
10237# else
10238# define LT_DLGLOBAL 0
10239# endif
10240#endif
10241
10242/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10243 find out it does not work in some platform. */
10244#ifndef LT_DLLAZY_OR_NOW
10245# ifdef RTLD_LAZY
10246# define LT_DLLAZY_OR_NOW RTLD_LAZY
10247# else
10248# ifdef DL_LAZY
10249# define LT_DLLAZY_OR_NOW DL_LAZY
10250# else
10251# ifdef RTLD_NOW
10252# define LT_DLLAZY_OR_NOW RTLD_NOW
10253# else
10254# ifdef DL_NOW
10255# define LT_DLLAZY_OR_NOW DL_NOW
10256# else
10257# define LT_DLLAZY_OR_NOW 0
10258# endif
10259# endif
10260# endif
10261# endif
10262#endif
10263
10264#ifdef __cplusplus
10265extern "C" void exit (int);
10266#endif
10267
10268void fnord() { int i=42;}
10269int main ()
10270{
10271 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10272 int status = $lt_dlunknown;
10273
10274 if (self)
10275 {
10276 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10277 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10278 /* dlclose (self); */
10279 }
10280 else
10281 puts (dlerror ());
10282
10283 exit (status);
10284}
10285_LT_EOF
10286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10287 (eval $ac_link) 2>&5
10288 ac_status=$?
10289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10290 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10291 (./conftest; exit; ) >&5 2>/dev/null
10292 lt_status=$?
10293 case x$lt_status in
10294 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10295 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10296 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10297 esac
10298 else :
10299 # compilation failed
10300 lt_cv_dlopen_self=no
10301 fi
10302fi
10303rm -fr conftest*
10304
10305
10306fi
10307echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10308echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10309
10310 if test "x$lt_cv_dlopen_self" = xyes; then
10311 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10312 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10313echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10314if test "${lt_cv_dlopen_self_static+set}" = set; then
10315 echo $ECHO_N "(cached) $ECHO_C" >&6
10316else
10317 if test "$cross_compiling" = yes; then :
10318 lt_cv_dlopen_self_static=cross
10319else
10320 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10321 lt_status=$lt_dlunknown
10322 cat > conftest.$ac_ext <<_LT_EOF
da594c4a 10323#line 10323 "configure"
d7040cdb
SE
10324#include "confdefs.h"
10325
10326#if HAVE_DLFCN_H
10327#include <dlfcn.h>
10328#endif
10329
10330#include <stdio.h>
10331
10332#ifdef RTLD_GLOBAL
10333# define LT_DLGLOBAL RTLD_GLOBAL
10334#else
10335# ifdef DL_GLOBAL
10336# define LT_DLGLOBAL DL_GLOBAL
10337# else
10338# define LT_DLGLOBAL 0
10339# endif
10340#endif
10341
10342/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10343 find out it does not work in some platform. */
10344#ifndef LT_DLLAZY_OR_NOW
10345# ifdef RTLD_LAZY
10346# define LT_DLLAZY_OR_NOW RTLD_LAZY
10347# else
10348# ifdef DL_LAZY
10349# define LT_DLLAZY_OR_NOW DL_LAZY
10350# else
10351# ifdef RTLD_NOW
10352# define LT_DLLAZY_OR_NOW RTLD_NOW
10353# else
10354# ifdef DL_NOW
10355# define LT_DLLAZY_OR_NOW DL_NOW
10356# else
10357# define LT_DLLAZY_OR_NOW 0
10358# endif
10359# endif
10360# endif
10361# endif
10362#endif
10363
10364#ifdef __cplusplus
10365extern "C" void exit (int);
10366#endif
10367
10368void fnord() { int i=42;}
10369int main ()
10370{
10371 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10372 int status = $lt_dlunknown;
10373
10374 if (self)
10375 {
10376 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10377 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10378 /* dlclose (self); */
10379 }
10380 else
10381 puts (dlerror ());
10382
10383 exit (status);
10384}
10385_LT_EOF
10386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10387 (eval $ac_link) 2>&5
10388 ac_status=$?
10389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10390 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10391 (./conftest; exit; ) >&5 2>/dev/null
10392 lt_status=$?
10393 case x$lt_status in
10394 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10395 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10396 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10397 esac
10398 else :
10399 # compilation failed
10400 lt_cv_dlopen_self_static=no
10401 fi
10402fi
10403rm -fr conftest*
10404
10405
10406fi
10407echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10408echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10409 fi
10410
10411 CPPFLAGS="$save_CPPFLAGS"
10412 LDFLAGS="$save_LDFLAGS"
10413 LIBS="$save_LIBS"
10414 ;;
10415 esac
10416
10417 case $lt_cv_dlopen_self in
10418 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10419 *) enable_dlopen_self=unknown ;;
10420 esac
10421
10422 case $lt_cv_dlopen_self_static in
10423 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10424 *) enable_dlopen_self_static=unknown ;;
10425 esac
10426fi
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444striplib=
10445old_striplib=
10446echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10447echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10448if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10449 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10450 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10451 echo "$as_me:$LINENO: result: yes" >&5
10452echo "${ECHO_T}yes" >&6
10453else
10454# FIXME - insert some real tests, host_os isn't really good enough
10455 case $host_os in
10456 darwin*)
10457 if test -n "$STRIP" ; then
10458 striplib="$STRIP -x"
10459 old_striplib="$STRIP -S"
10460 echo "$as_me:$LINENO: result: yes" >&5
10461echo "${ECHO_T}yes" >&6
10462 else
10463 echo "$as_me:$LINENO: result: no" >&5
10464echo "${ECHO_T}no" >&6
10465 fi
10466 ;;
10467 *)
10468 echo "$as_me:$LINENO: result: no" >&5
10469echo "${ECHO_T}no" >&6
10470 ;;
10471 esac
10472fi
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485 # Report which library types will actually be built
10486 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10487echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10488 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10489echo "${ECHO_T}$can_build_shared" >&6
10490
10491 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10492echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10493 test "$can_build_shared" = "no" && enable_shared=no
10494
10495 # On AIX, shared libraries and static libraries use the same namespace, and
10496 # are all built from PIC.
10497 case $host_os in
10498 aix3*)
10499 test "$enable_shared" = yes && enable_static=no
10500 if test -n "$RANLIB"; then
10501 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10502 postinstall_cmds='$RANLIB $lib'
10503 fi
10504 ;;
10505
50e7d84b 10506 aix[4-9]*)
d7040cdb
SE
10507 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10508 test "$enable_shared" = yes && enable_static=no
10509 fi
10510 ;;
10511 esac
10512 echo "$as_me:$LINENO: result: $enable_shared" >&5
10513echo "${ECHO_T}$enable_shared" >&6
10514
10515 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10516echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10517 # Make sure either enable_shared or enable_static is yes.
10518 test "$enable_shared" = yes || enable_static=yes
10519 echo "$as_me:$LINENO: result: $enable_static" >&5
10520echo "${ECHO_T}$enable_static" >&6
10521
10522
10523
10524
10525fi
10526ac_ext=c
10527ac_cpp='$CPP $CPPFLAGS'
10528ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10529ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10530ac_compiler_gnu=$ac_cv_c_compiler_gnu
10531
10532CC="$lt_save_CC"
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546 ac_config_commands="$ac_config_commands libtool"
10547
10548
10549
10550
10551# Only expand once:
10552
10553
10554
10555# Check whether --enable-targets or --disable-targets was given.
10556if test "${enable_targets+set}" = set; then
10557 enableval="$enable_targets"
10558 case "${enableval}" in
10559 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
10560echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
10561 { (exit 1); exit 1; }; }
10562 ;;
10563 no) enable_targets= ;;
10564 *) enable_targets=$enableval ;;
10565esac
10566fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
10567if test "${enable_commonbfdlib+set}" = set; then
10568 enableval="$enable_commonbfdlib"
10569 case "${enableval}" in
10570 yes) commonbfdlib=true ;;
10571 no) commonbfdlib=false ;;
10572 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
10573echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
10574 { (exit 1); exit 1; }; } ;;
10575esac
10576fi;
10577
10578GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
10579
10580# Check whether --enable-werror or --disable-werror was given.
10581if test "${enable_werror+set}" = set; then
10582 enableval="$enable_werror"
10583 case "${enableval}" in
10584 yes | y) ERROR_ON_WARNING="yes" ;;
10585 no | n) ERROR_ON_WARNING="no" ;;
10586 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
10587echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
10588 { (exit 1); exit 1; }; } ;;
10589 esac
10590fi;
10591
bb8541b9
L
10592# Enable -Wno-format by default when using gcc on mingw
10593case "${host}" in
10594 *-*-mingw32*)
10595 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10596 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
10597 fi
10598 ;;
10599 *) ;;
10600esac
10601
d7040cdb
SE
10602# Enable -Werror by default when using gcc
10603if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10604 ERROR_ON_WARNING=yes
10605fi
10606
10607NO_WERROR=
10608if test "${ERROR_ON_WARNING}" = yes ; then
10609 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
10610 NO_WERROR="-Wno-error"
10611fi
10612
10613if test "${GCC}" = yes ; then
10614 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
10615fi
10616
10617# Check whether --enable-build-warnings or --disable-build-warnings was given.
10618if test "${enable_build_warnings+set}" = set; then
10619 enableval="$enable_build_warnings"
10620 case "${enableval}" in
10621 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
10622 no) if test "${GCC}" = yes ; then
10623 WARN_CFLAGS="-w"
10624 fi;;
10625 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10626 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
10627 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10628 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
10629 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
10630esac
10631fi;
10632
10633if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
10634 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
10635fi
10636
10637
10638
10639
10640
10641 ac_config_headers="$ac_config_headers config.h:config.in"
10642
10643
10644if test -z "$target" ; then
10645 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
10646echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
10647 { (exit 1); exit 1; }; }
10648fi
10649if test -z "$host" ; then
10650 { { echo "$as_me:$LINENO: error: Unrecognized host system type; please check config.sub." >&5
10651echo "$as_me: error: Unrecognized host system type; please check config.sub." >&2;}
10652 { (exit 1); exit 1; }; }
10653fi
10654
10655for ac_prog in 'bison -y' byacc
10656do
10657 # Extract the first word of "$ac_prog", so it can be a program name with args.
10658set dummy $ac_prog; ac_word=$2
10659echo "$as_me:$LINENO: checking for $ac_word" >&5
10660echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10661if test "${ac_cv_prog_YACC+set}" = set; then
10662 echo $ECHO_N "(cached) $ECHO_C" >&6
10663else
10664 if test -n "$YACC"; then
10665 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10666else
10667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10668for as_dir in $PATH
10669do
10670 IFS=$as_save_IFS
10671 test -z "$as_dir" && as_dir=.
10672 for ac_exec_ext in '' $ac_executable_extensions; do
10673 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10674 ac_cv_prog_YACC="$ac_prog"
10675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10676 break 2
10677 fi
10678done
10679done
10680
10681fi
10682fi
10683YACC=$ac_cv_prog_YACC
10684if test -n "$YACC"; then
10685 echo "$as_me:$LINENO: result: $YACC" >&5
10686echo "${ECHO_T}$YACC" >&6
10687else
10688 echo "$as_me:$LINENO: result: no" >&5
10689echo "${ECHO_T}no" >&6
10690fi
10691
10692 test -n "$YACC" && break
10693done
10694test -n "$YACC" || YACC="yacc"
10695
10696for ac_prog in flex lex
10697do
10698 # Extract the first word of "$ac_prog", so it can be a program name with args.
10699set dummy $ac_prog; ac_word=$2
10700echo "$as_me:$LINENO: checking for $ac_word" >&5
10701echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10702if test "${ac_cv_prog_LEX+set}" = set; then
10703 echo $ECHO_N "(cached) $ECHO_C" >&6
10704else
10705 if test -n "$LEX"; then
10706 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10707else
10708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10709for as_dir in $PATH
10710do
10711 IFS=$as_save_IFS
10712 test -z "$as_dir" && as_dir=.
10713 for ac_exec_ext in '' $ac_executable_extensions; do
10714 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10715 ac_cv_prog_LEX="$ac_prog"
10716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10717 break 2
10718 fi
10719done
10720done
10721
10722fi
10723fi
10724LEX=$ac_cv_prog_LEX
10725if test -n "$LEX"; then
10726 echo "$as_me:$LINENO: result: $LEX" >&5
10727echo "${ECHO_T}$LEX" >&6
10728else
10729 echo "$as_me:$LINENO: result: no" >&5
10730echo "${ECHO_T}no" >&6
10731fi
10732
10733 test -n "$LEX" && break
10734done
10735test -n "$LEX" || LEX=":"
10736
10737if test -z "$LEXLIB"
10738then
10739 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
10740echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
10741if test "${ac_cv_lib_fl_yywrap+set}" = set; then
10742 echo $ECHO_N "(cached) $ECHO_C" >&6
10743else
10744 ac_check_lib_save_LIBS=$LIBS
10745LIBS="-lfl $LIBS"
10746cat >conftest.$ac_ext <<_ACEOF
10747/* confdefs.h. */
10748_ACEOF
10749cat confdefs.h >>conftest.$ac_ext
10750cat >>conftest.$ac_ext <<_ACEOF
10751/* end confdefs.h. */
10752
10753/* Override any gcc2 internal prototype to avoid an error. */
10754#ifdef __cplusplus
10755extern "C"
10756#endif
10757/* We use char because int might match the return type of a gcc2
10758 builtin and then its argument prototype would still apply. */
10759char yywrap ();
10760int
10761main ()
10762{
10763yywrap ();
10764 ;
10765 return 0;
10766}
10767_ACEOF
10768rm -f conftest.$ac_objext conftest$ac_exeext
10769if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10770 (eval $ac_link) 2>conftest.er1
10771 ac_status=$?
10772 grep -v '^ *+' conftest.er1 >conftest.err
10773 rm -f conftest.er1
10774 cat conftest.err >&5
10775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10776 (exit $ac_status); } &&
7357c5b6
AM
10777 { ac_try='test -z "$ac_c_werror_flag"
10778 || test ! -s conftest.err'
d7040cdb
SE
10779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10780 (eval $ac_try) 2>&5
10781 ac_status=$?
10782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783 (exit $ac_status); }; } &&
10784 { ac_try='test -s conftest$ac_exeext'
10785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10786 (eval $ac_try) 2>&5
10787 ac_status=$?
10788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789 (exit $ac_status); }; }; then
10790 ac_cv_lib_fl_yywrap=yes
10791else
10792 echo "$as_me: failed program was:" >&5
10793sed 's/^/| /' conftest.$ac_ext >&5
10794
10795ac_cv_lib_fl_yywrap=no
10796fi
10797rm -f conftest.err conftest.$ac_objext \
10798 conftest$ac_exeext conftest.$ac_ext
10799LIBS=$ac_check_lib_save_LIBS
10800fi
10801echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
10802echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
10803if test $ac_cv_lib_fl_yywrap = yes; then
10804 LEXLIB="-lfl"
10805else
10806 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
10807echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
10808if test "${ac_cv_lib_l_yywrap+set}" = set; then
10809 echo $ECHO_N "(cached) $ECHO_C" >&6
10810else
10811 ac_check_lib_save_LIBS=$LIBS
10812LIBS="-ll $LIBS"
10813cat >conftest.$ac_ext <<_ACEOF
10814/* confdefs.h. */
10815_ACEOF
10816cat confdefs.h >>conftest.$ac_ext
10817cat >>conftest.$ac_ext <<_ACEOF
10818/* end confdefs.h. */
10819
10820/* Override any gcc2 internal prototype to avoid an error. */
10821#ifdef __cplusplus
10822extern "C"
10823#endif
10824/* We use char because int might match the return type of a gcc2
10825 builtin and then its argument prototype would still apply. */
10826char yywrap ();
10827int
10828main ()
10829{
10830yywrap ();
10831 ;
10832 return 0;
10833}
10834_ACEOF
10835rm -f conftest.$ac_objext conftest$ac_exeext
10836if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10837 (eval $ac_link) 2>conftest.er1
10838 ac_status=$?
10839 grep -v '^ *+' conftest.er1 >conftest.err
10840 rm -f conftest.er1
10841 cat conftest.err >&5
10842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10843 (exit $ac_status); } &&
7357c5b6
AM
10844 { ac_try='test -z "$ac_c_werror_flag"
10845 || test ! -s conftest.err'
d7040cdb
SE
10846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10847 (eval $ac_try) 2>&5
10848 ac_status=$?
10849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850 (exit $ac_status); }; } &&
10851 { ac_try='test -s conftest$ac_exeext'
10852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10853 (eval $ac_try) 2>&5
10854 ac_status=$?
10855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856 (exit $ac_status); }; }; then
10857 ac_cv_lib_l_yywrap=yes
10858else
10859 echo "$as_me: failed program was:" >&5
10860sed 's/^/| /' conftest.$ac_ext >&5
10861
10862ac_cv_lib_l_yywrap=no
10863fi
10864rm -f conftest.err conftest.$ac_objext \
10865 conftest$ac_exeext conftest.$ac_ext
10866LIBS=$ac_check_lib_save_LIBS
10867fi
10868echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
10869echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
10870if test $ac_cv_lib_l_yywrap = yes; then
10871 LEXLIB="-ll"
10872fi
10873
10874fi
10875
10876fi
10877
10878if test "x$LEX" != "x:"; then
10879 echo "$as_me:$LINENO: checking lex output file root" >&5
10880echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
10881if test "${ac_cv_prog_lex_root+set}" = set; then
10882 echo $ECHO_N "(cached) $ECHO_C" >&6
10883else
10884 # The minimal lex program is just a single line: %%. But some broken lexes
10885# (Solaris, I think it was) want two %% lines, so accommodate them.
10886cat >conftest.l <<_ACEOF
10887%%
10888%%
10889_ACEOF
10890{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
10891 (eval $LEX conftest.l) 2>&5
10892 ac_status=$?
10893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10894 (exit $ac_status); }
10895if test -f lex.yy.c; then
10896 ac_cv_prog_lex_root=lex.yy
10897elif test -f lexyy.c; then
10898 ac_cv_prog_lex_root=lexyy
10899else
10900 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
10901echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
10902 { (exit 1); exit 1; }; }
10903fi
10904fi
10905echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
10906echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
10907rm -f conftest.l
10908LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
10909
10910echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
10911echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
10912if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
10913 echo $ECHO_N "(cached) $ECHO_C" >&6
10914else
10915 # POSIX says lex can declare yytext either as a pointer or an array; the
10916# default is implementation-dependent. Figure out which it is, since
10917# not all implementations provide the %pointer and %array declarations.
10918ac_cv_prog_lex_yytext_pointer=no
10919echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
10920ac_save_LIBS=$LIBS
10921LIBS="$LIBS $LEXLIB"
10922cat >conftest.$ac_ext <<_ACEOF
10923`cat $LEX_OUTPUT_ROOT.c`
10924_ACEOF
10925rm -f conftest.$ac_objext conftest$ac_exeext
10926if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10927 (eval $ac_link) 2>conftest.er1
10928 ac_status=$?
10929 grep -v '^ *+' conftest.er1 >conftest.err
10930 rm -f conftest.er1
10931 cat conftest.err >&5
10932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933 (exit $ac_status); } &&
7357c5b6
AM
10934 { ac_try='test -z "$ac_c_werror_flag"
10935 || test ! -s conftest.err'
d7040cdb
SE
10936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10937 (eval $ac_try) 2>&5
10938 ac_status=$?
10939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10940 (exit $ac_status); }; } &&
10941 { ac_try='test -s conftest$ac_exeext'
10942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10943 (eval $ac_try) 2>&5
10944 ac_status=$?
10945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10946 (exit $ac_status); }; }; then
10947 ac_cv_prog_lex_yytext_pointer=yes
10948else
10949 echo "$as_me: failed program was:" >&5
10950sed 's/^/| /' conftest.$ac_ext >&5
10951
10952fi
10953rm -f conftest.err conftest.$ac_objext \
10954 conftest$ac_exeext conftest.$ac_ext
10955LIBS=$ac_save_LIBS
10956rm -f "${LEX_OUTPUT_ROOT}.c"
10957
10958fi
10959echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
10960echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
10961if test $ac_cv_prog_lex_yytext_pointer = yes; then
10962
10963cat >>confdefs.h <<\_ACEOF
10964#define YYTEXT_POINTER 1
10965_ACEOF
10966
10967fi
10968
10969fi
10970if test "$LEX" = :; then
10971 LEX=${am_missing_run}flex
10972fi
10973
30b0f203 10974ALL_LINGUAS="fr tr ja es sv da zh_CN ru ro rw zh_TW fi vi uk sk"
d7040cdb
SE
10975# If we haven't got the data from the intl directory,
10976# assume NLS is disabled.
10977USE_NLS=no
10978LIBINTL=
10979LIBINTL_DEP=
10980INCINTL=
10981XGETTEXT=
10982GMSGFMT=
10983POSUB=
10984
10985if test -f ../intl/config.intl; then
10986 . ../intl/config.intl
10987fi
10988echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10989echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10990if test x"$USE_NLS" != xyes; then
10991 echo "$as_me:$LINENO: result: no" >&5
10992echo "${ECHO_T}no" >&6
10993else
10994 echo "$as_me:$LINENO: result: yes" >&5
10995echo "${ECHO_T}yes" >&6
10996
10997cat >>confdefs.h <<\_ACEOF
10998#define ENABLE_NLS 1
10999_ACEOF
11000
11001
11002 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
11003echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
11004 # Look for .po and .gmo files in the source directory.
11005 CATALOGS=
11006 XLINGUAS=
11007 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11008 # If there aren't any .gmo files the shell will give us the
11009 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11010 # weeded out.
11011 case "$cat" in *\**)
11012 continue;;
11013 esac
11014 # The quadruple backslash is collapsed to a double backslash
11015 # by the backticks, then collapsed again by the double quotes,
11016 # leaving us with one backslash in the sed expression (right
11017 # before the dot that mustn't act as a wildcard).
11018 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11019 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11020 # The user is allowed to set LINGUAS to a list of languages to
11021 # install catalogs for. If it's empty that means "all of them."
11022 if test "x$LINGUAS" = x; then
11023 CATALOGS="$CATALOGS $cat"
11024 XLINGUAS="$XLINGUAS $lang"
11025 else
11026 case "$LINGUAS" in *$lang*)
11027 CATALOGS="$CATALOGS $cat"
11028 XLINGUAS="$XLINGUAS $lang"
11029 ;;
11030 esac
11031 fi
11032 done
11033 LINGUAS="$XLINGUAS"
11034 echo "$as_me:$LINENO: result: $LINGUAS" >&5
11035echo "${ECHO_T}$LINGUAS" >&6
11036
11037
11038 DATADIRNAME=share
11039
11040 INSTOBJEXT=.mo
11041
11042 GENCAT=gencat
11043
11044 CATOBJEXT=.gmo
11045
11046fi
11047
11048 MKINSTALLDIRS=
11049 if test -n "$ac_aux_dir"; then
11050 case "$ac_aux_dir" in
11051 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
11052 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
11053 esac
11054 fi
11055 if test -z "$MKINSTALLDIRS"; then
11056 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
11057 fi
11058
11059
11060
11061 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11062echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
11063 # Check whether --enable-nls or --disable-nls was given.
11064if test "${enable_nls+set}" = set; then
11065 enableval="$enable_nls"
11066 USE_NLS=$enableval
11067else
11068 USE_NLS=yes
11069fi;
11070 echo "$as_me:$LINENO: result: $USE_NLS" >&5
11071echo "${ECHO_T}$USE_NLS" >&6
11072
11073
11074
11075
11076
11077
11078# Prepare PATH_SEPARATOR.
11079# The user is always right.
11080if test "${PATH_SEPARATOR+set}" != set; then
11081 echo "#! /bin/sh" >conf$$.sh
11082 echo "exit 0" >>conf$$.sh
11083 chmod +x conf$$.sh
11084 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11085 PATH_SEPARATOR=';'
11086 else
11087 PATH_SEPARATOR=:
11088 fi
11089 rm -f conf$$.sh
11090fi
11091
11092# Find out how to test for executable files. Don't use a zero-byte file,
11093# as systems may use methods other than mode bits to determine executability.
11094cat >conf$$.file <<_ASEOF
11095#! /bin/sh
11096exit 0
11097_ASEOF
11098chmod +x conf$$.file
11099if test -x conf$$.file >/dev/null 2>&1; then
11100 ac_executable_p="test -x"
11101else
11102 ac_executable_p="test -f"
11103fi
11104rm -f conf$$.file
11105
11106# Extract the first word of "msgfmt", so it can be a program name with args.
11107set dummy msgfmt; ac_word=$2
11108echo "$as_me:$LINENO: checking for $ac_word" >&5
11109echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11110if test "${ac_cv_path_MSGFMT+set}" = set; then
11111 echo $ECHO_N "(cached) $ECHO_C" >&6
11112else
11113 case "$MSGFMT" in
11114 [\\/]* | ?:[\\/]*)
11115 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11116 ;;
11117 *)
11118 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11119 for ac_dir in $PATH; do
11120 IFS="$ac_save_IFS"
11121 test -z "$ac_dir" && ac_dir=.
11122 for ac_exec_ext in '' $ac_executable_extensions; do
11123 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11124 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
11125 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11126 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
11127 break 2
11128 fi
11129 fi
11130 done
11131 done
11132 IFS="$ac_save_IFS"
11133 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11134 ;;
11135esac
11136fi
11137MSGFMT="$ac_cv_path_MSGFMT"
11138if test "$MSGFMT" != ":"; then
11139 echo "$as_me:$LINENO: result: $MSGFMT" >&5
11140echo "${ECHO_T}$MSGFMT" >&6
11141else
11142 echo "$as_me:$LINENO: result: no" >&5
11143echo "${ECHO_T}no" >&6
11144fi
11145
11146 # Extract the first word of "gmsgfmt", so it can be a program name with args.
11147set dummy gmsgfmt; ac_word=$2
11148echo "$as_me:$LINENO: checking for $ac_word" >&5
11149echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11150if test "${ac_cv_path_GMSGFMT+set}" = set; then
11151 echo $ECHO_N "(cached) $ECHO_C" >&6
11152else
11153 case $GMSGFMT in
11154 [\\/]* | ?:[\\/]*)
11155 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11156 ;;
11157 *)
11158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11159for as_dir in $PATH
11160do
11161 IFS=$as_save_IFS
11162 test -z "$as_dir" && as_dir=.
11163 for ac_exec_ext in '' $ac_executable_extensions; do
11164 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11165 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
11166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11167 break 2
11168 fi
11169done
11170done
11171
11172 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11173 ;;
11174esac
11175fi
11176GMSGFMT=$ac_cv_path_GMSGFMT
11177
11178if test -n "$GMSGFMT"; then
11179 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
11180echo "${ECHO_T}$GMSGFMT" >&6
11181else
11182 echo "$as_me:$LINENO: result: no" >&5
11183echo "${ECHO_T}no" >&6
11184fi
11185
11186
11187
11188# Prepare PATH_SEPARATOR.
11189# The user is always right.
11190if test "${PATH_SEPARATOR+set}" != set; then
11191 echo "#! /bin/sh" >conf$$.sh
11192 echo "exit 0" >>conf$$.sh
11193 chmod +x conf$$.sh
11194 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11195 PATH_SEPARATOR=';'
11196 else
11197 PATH_SEPARATOR=:
11198 fi
11199 rm -f conf$$.sh
11200fi
11201
11202# Find out how to test for executable files. Don't use a zero-byte file,
11203# as systems may use methods other than mode bits to determine executability.
11204cat >conf$$.file <<_ASEOF
11205#! /bin/sh
11206exit 0
11207_ASEOF
11208chmod +x conf$$.file
11209if test -x conf$$.file >/dev/null 2>&1; then
11210 ac_executable_p="test -x"
11211else
11212 ac_executable_p="test -f"
11213fi
11214rm -f conf$$.file
11215
11216# Extract the first word of "xgettext", so it can be a program name with args.
11217set dummy xgettext; ac_word=$2
11218echo "$as_me:$LINENO: checking for $ac_word" >&5
11219echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11220if test "${ac_cv_path_XGETTEXT+set}" = set; then
11221 echo $ECHO_N "(cached) $ECHO_C" >&6
11222else
11223 case "$XGETTEXT" in
11224 [\\/]* | ?:[\\/]*)
11225 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11226 ;;
11227 *)
11228 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11229 for ac_dir in $PATH; do
11230 IFS="$ac_save_IFS"
11231 test -z "$ac_dir" && ac_dir=.
11232 for ac_exec_ext in '' $ac_executable_extensions; do
11233 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11234 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11235 (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
11236 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
11237 break 2
11238 fi
11239 fi
11240 done
11241 done
11242 IFS="$ac_save_IFS"
11243 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11244 ;;
11245esac
11246fi
11247XGETTEXT="$ac_cv_path_XGETTEXT"
11248if test "$XGETTEXT" != ":"; then
11249 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
11250echo "${ECHO_T}$XGETTEXT" >&6
11251else
11252 echo "$as_me:$LINENO: result: no" >&5
11253echo "${ECHO_T}no" >&6
11254fi
11255
11256 rm -f messages.po
11257
11258
11259# Prepare PATH_SEPARATOR.
11260# The user is always right.
11261if test "${PATH_SEPARATOR+set}" != set; then
11262 echo "#! /bin/sh" >conf$$.sh
11263 echo "exit 0" >>conf$$.sh
11264 chmod +x conf$$.sh
11265 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11266 PATH_SEPARATOR=';'
11267 else
11268 PATH_SEPARATOR=:
11269 fi
11270 rm -f conf$$.sh
11271fi
11272
11273# Find out how to test for executable files. Don't use a zero-byte file,
11274# as systems may use methods other than mode bits to determine executability.
11275cat >conf$$.file <<_ASEOF
11276#! /bin/sh
11277exit 0
11278_ASEOF
11279chmod +x conf$$.file
11280if test -x conf$$.file >/dev/null 2>&1; then
11281 ac_executable_p="test -x"
11282else
11283 ac_executable_p="test -f"
11284fi
11285rm -f conf$$.file
11286
11287# Extract the first word of "msgmerge", so it can be a program name with args.
11288set dummy msgmerge; ac_word=$2
11289echo "$as_me:$LINENO: checking for $ac_word" >&5
11290echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11291if test "${ac_cv_path_MSGMERGE+set}" = set; then
11292 echo $ECHO_N "(cached) $ECHO_C" >&6
11293else
11294 case "$MSGMERGE" in
11295 [\\/]* | ?:[\\/]*)
11296 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11297 ;;
11298 *)
11299 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11300 for ac_dir in $PATH; do
11301 IFS="$ac_save_IFS"
11302 test -z "$ac_dir" && ac_dir=.
11303 for ac_exec_ext in '' $ac_executable_extensions; do
11304 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11305 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
11306 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11307 break 2
11308 fi
11309 fi
11310 done
11311 done
11312 IFS="$ac_save_IFS"
11313 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11314 ;;
11315esac
11316fi
11317MSGMERGE="$ac_cv_path_MSGMERGE"
11318if test "$MSGMERGE" != ":"; then
11319 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
11320echo "${ECHO_T}$MSGMERGE" >&6
11321else
11322 echo "$as_me:$LINENO: result: no" >&5
11323echo "${ECHO_T}no" >&6
11324fi
11325
11326
11327 if test "$GMSGFMT" != ":"; then
11328 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
11329 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11330 : ;
11331 else
11332 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
11333 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
11334echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
11335 GMSGFMT=":"
11336 fi
11337 fi
11338
11339 if test "$XGETTEXT" != ":"; then
11340 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11341 (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
11342 : ;
11343 else
11344 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
11345echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
11346 XGETTEXT=":"
11347 fi
11348 rm -f messages.po
11349 fi
11350
11351 ac_config_commands="$ac_config_commands default-1"
11352
11353
11354
11355echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11356echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11357 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11358if test "${enable_maintainer_mode+set}" = set; then
11359 enableval="$enable_maintainer_mode"
11360 USE_MAINTAINER_MODE=$enableval
42ecbf5e 11361else
d7040cdb
SE
11362 USE_MAINTAINER_MODE=no
11363fi;
11364 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
11365echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
42ecbf5e 11366
d7040cdb
SE
11367
11368if test $USE_MAINTAINER_MODE = yes; then
11369 MAINTAINER_MODE_TRUE=
11370 MAINTAINER_MODE_FALSE='#'
11371else
11372 MAINTAINER_MODE_TRUE='#'
11373 MAINTAINER_MODE_FALSE=
42ecbf5e 11374fi
d7040cdb
SE
11375
11376 MAINT=$MAINTAINER_MODE_TRUE
11377
11378
11379
11380
11381if false; then
11382 GENINSRC_NEVER_TRUE=
11383 GENINSRC_NEVER_FALSE='#'
11384else
11385 GENINSRC_NEVER_TRUE='#'
11386 GENINSRC_NEVER_FALSE=
42ecbf5e 11387fi
d7040cdb
SE
11388
11389
11390if test -n "$EXEEXT"; then
20e95c23
DJ
11391
11392cat >>confdefs.h <<\_ACEOF
d7040cdb 11393#define HAVE_EXECUTABLE_SUFFIX 1
20e95c23 11394_ACEOF
42ecbf5e 11395
252b5132
RH
11396fi
11397
d7040cdb
SE
11398cat >>confdefs.h <<_ACEOF
11399#define EXECUTABLE_SUFFIX "${EXEEXT}"
11400_ACEOF
42ecbf5e 11401
252b5132 11402
d7040cdb 11403# host-specific stuff:
252b5132 11404
d7040cdb 11405HDEFINES=
252b5132 11406
d7040cdb 11407. ${srcdir}/../bfd/configure.host
252b5132 11408
252b5132 11409
d7040cdb 11410AR=${AR-ar}
252b5132 11411
d7040cdb
SE
11412if test -n "$ac_tool_prefix"; then
11413 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11414set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11415echo "$as_me:$LINENO: checking for $ac_word" >&5
11416echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11417if test "${ac_cv_prog_RANLIB+set}" = set; then
11418 echo $ECHO_N "(cached) $ECHO_C" >&6
11419else
11420 if test -n "$RANLIB"; then
11421 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11422else
11423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11424for as_dir in $PATH
11425do
11426 IFS=$as_save_IFS
11427 test -z "$as_dir" && as_dir=.
11428 for ac_exec_ext in '' $ac_executable_extensions; do
11429 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11430 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11432 break 2
11433 fi
11434done
11435done
252b5132 11436
d7040cdb
SE
11437fi
11438fi
11439RANLIB=$ac_cv_prog_RANLIB
11440if test -n "$RANLIB"; then
11441 echo "$as_me:$LINENO: result: $RANLIB" >&5
11442echo "${ECHO_T}$RANLIB" >&6
11443else
11444 echo "$as_me:$LINENO: result: no" >&5
11445echo "${ECHO_T}no" >&6
11446fi
20e95c23 11447
d7040cdb
SE
11448fi
11449if test -z "$ac_cv_prog_RANLIB"; then
11450 ac_ct_RANLIB=$RANLIB
11451 # Extract the first word of "ranlib", so it can be a program name with args.
11452set dummy ranlib; ac_word=$2
11453echo "$as_me:$LINENO: checking for $ac_word" >&5
11454echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11455if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
42ecbf5e 11456 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11457else
d7040cdb
SE
11458 if test -n "$ac_ct_RANLIB"; then
11459 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11460else
11461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11462for as_dir in $PATH
11463do
11464 IFS=$as_save_IFS
11465 test -z "$as_dir" && as_dir=.
11466 for ac_exec_ext in '' $ac_executable_extensions; do
11467 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11468 ac_cv_prog_ac_ct_RANLIB="ranlib"
11469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11470 break 2
11471 fi
11472done
11473done
20e95c23 11474
d7040cdb
SE
11475 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11476fi
11477fi
11478ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11479if test -n "$ac_ct_RANLIB"; then
11480 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11481echo "${ECHO_T}$ac_ct_RANLIB" >&6
20e95c23 11482else
d7040cdb
SE
11483 echo "$as_me:$LINENO: result: no" >&5
11484echo "${ECHO_T}no" >&6
11485fi
11486
11487 RANLIB=$ac_ct_RANLIB
11488else
11489 RANLIB="$ac_cv_prog_RANLIB"
11490fi
11491
11492# Find a good install program. We prefer a C program (faster),
11493# so one script is as good as another. But avoid the broken or
11494# incompatible versions:
11495# SysV /etc/install, /usr/sbin/install
11496# SunOS /usr/etc/install
11497# IRIX /sbin/install
11498# AIX /bin/install
11499# AmigaOS /C/install, which installs bootblocks on floppy discs
11500# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11501# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11502# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11503# OS/2's system install, which has a completely different semantic
11504# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 11505# Reject install programs that cannot install multiple files.
d7040cdb
SE
11506echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11507echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11508if test -z "$INSTALL"; then
11509if test "${ac_cv_path_install+set}" = set; then
11510 echo $ECHO_N "(cached) $ECHO_C" >&6
11511else
11512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11513for as_dir in $PATH
11514do
11515 IFS=$as_save_IFS
11516 test -z "$as_dir" && as_dir=.
11517 # Account for people who put trailing slashes in PATH elements.
11518case $as_dir/ in
11519 ./ | .// | /cC/* | \
11520 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11521 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11522 /usr/ucb/* ) ;;
11523 *)
11524 # OSF1 and SCO ODT 3.0 have their own names for install.
11525 # Don't use installbsd from OSF since it installs stuff as root
11526 # by default.
11527 for ac_prog in ginstall scoinst install; do
11528 for ac_exec_ext in '' $ac_executable_extensions; do
11529 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11530 if test $ac_prog = install &&
11531 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11532 # AIX install. It has an incompatible calling convention.
11533 :
11534 elif test $ac_prog = install &&
11535 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11536 # program-specific install script used by HP pwplus--don't use.
11537 :
11538 else
58c85be7
RW
11539 rm -rf conftest.one conftest.two conftest.dir
11540 echo one > conftest.one
11541 echo two > conftest.two
11542 mkdir conftest.dir
11543 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
11544 test -s conftest.one && test -s conftest.two &&
11545 test -s conftest.dir/conftest.one &&
11546 test -s conftest.dir/conftest.two
11547 then
11548 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11549 break 3
11550 fi
d7040cdb
SE
11551 fi
11552 fi
11553 done
11554 done
11555 ;;
11556esac
11557done
11558
58c85be7 11559rm -rf conftest.one conftest.two conftest.dir
d7040cdb
SE
11560
11561fi
11562 if test "${ac_cv_path_install+set}" = set; then
11563 INSTALL=$ac_cv_path_install
11564 else
58c85be7
RW
11565 # As a last resort, use the slow shell script. Don't cache a
11566 # value for INSTALL within a source directory, because that will
d7040cdb 11567 # break other packages using the cache if that directory is
58c85be7 11568 # removed, or if the value is a relative name.
d7040cdb
SE
11569 INSTALL=$ac_install_sh
11570 fi
11571fi
11572echo "$as_me:$LINENO: result: $INSTALL" >&5
11573echo "${ECHO_T}$INSTALL" >&6
11574
11575# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11576# It thinks the first close brace ends the variable substitution.
11577test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11578
11579test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11580
11581test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11582
11583
11584# Put a plausible default for CC_FOR_BUILD in Makefile.
11585if test -z "$CC_FOR_BUILD"; then
11586 if test "x$cross_compiling" = "xno"; then
11587 CC_FOR_BUILD='$(CC)'
11588 else
11589 CC_FOR_BUILD=gcc
11590 fi
11591fi
20e95c23 11592
d7040cdb
SE
11593# Also set EXEEXT_FOR_BUILD.
11594if test "x$cross_compiling" = "xno"; then
11595 EXEEXT_FOR_BUILD='$(EXEEXT)'
11596else
11597 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
11598echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
11599if test "${bfd_cv_build_exeext+set}" = set; then
11600 echo $ECHO_N "(cached) $ECHO_C" >&6
11601else
11602 rm -f conftest*
11603 echo 'int main () { return 0; }' > conftest.c
11604 bfd_cv_build_exeext=
11605 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
11606 for file in conftest.*; do
11607 case $file in
11608 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
11609 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
11610 esac
11611 done
11612 rm -f conftest*
11613 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
252b5132 11614fi
d7040cdb
SE
11615echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
11616echo "${ECHO_T}$bfd_cv_build_exeext" >&6
11617 EXEEXT_FOR_BUILD=""
11618 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
252b5132
RH
11619fi
11620
11621
d7040cdb
SE
11622DEMANGLER_NAME=c++filt
11623case "${host}" in
11624 *-*-go32* | *-*-msdos*)
11625 DEMANGLER_NAME=cxxfilt
11626esac
8a965946
ILT
11627
11628
42ecbf5e
DJ
11629
11630
11631
11632
11633
11634
f8eae8b2
L
11635
11636
11637for ac_header in string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h limits.h sys/param.h
252b5132 11638do
42ecbf5e
DJ
11639as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11640if eval "test \"\${$as_ac_Header+set}\" = set"; then
11641 echo "$as_me:$LINENO: checking for $ac_header" >&5
11642echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11643if eval "test \"\${$as_ac_Header+set}\" = set"; then
11644 echo $ECHO_N "(cached) $ECHO_C" >&6
11645fi
11646echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11647echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11648else
11649 # Is the header compilable?
11650echo "$as_me:$LINENO: checking $ac_header usability" >&5
11651echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11652cat >conftest.$ac_ext <<_ACEOF
11653/* confdefs.h. */
11654_ACEOF
11655cat confdefs.h >>conftest.$ac_ext
11656cat >>conftest.$ac_ext <<_ACEOF
11657/* end confdefs.h. */
11658$ac_includes_default
11659#include <$ac_header>
11660_ACEOF
11661rm -f conftest.$ac_objext
11662if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11663 (eval $ac_compile) 2>conftest.er1
11664 ac_status=$?
11665 grep -v '^ *+' conftest.er1 >conftest.err
11666 rm -f conftest.er1
11667 cat conftest.err >&5
11668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11669 (exit $ac_status); } &&
7357c5b6
AM
11670 { ac_try='test -z "$ac_c_werror_flag"
11671 || test ! -s conftest.err'
42ecbf5e
DJ
11672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11673 (eval $ac_try) 2>&5
11674 ac_status=$?
11675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676 (exit $ac_status); }; } &&
11677 { ac_try='test -s conftest.$ac_objext'
11678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11679 (eval $ac_try) 2>&5
11680 ac_status=$?
11681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682 (exit $ac_status); }; }; then
11683 ac_header_compiler=yes
11684else
11685 echo "$as_me: failed program was:" >&5
11686sed 's/^/| /' conftest.$ac_ext >&5
11687
11688ac_header_compiler=no
11689fi
11690rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11691echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11692echo "${ECHO_T}$ac_header_compiler" >&6
11693
11694# Is the header present?
11695echo "$as_me:$LINENO: checking $ac_header presence" >&5
11696echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11697cat >conftest.$ac_ext <<_ACEOF
11698/* confdefs.h. */
11699_ACEOF
11700cat confdefs.h >>conftest.$ac_ext
11701cat >>conftest.$ac_ext <<_ACEOF
11702/* end confdefs.h. */
11703#include <$ac_header>
11704_ACEOF
11705if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11706 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11707 ac_status=$?
11708 grep -v '^ *+' conftest.er1 >conftest.err
11709 rm -f conftest.er1
11710 cat conftest.err >&5
11711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11712 (exit $ac_status); } >/dev/null; then
11713 if test -s conftest.err; then
11714 ac_cpp_err=$ac_c_preproc_warn_flag
11715 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11716 else
11717 ac_cpp_err=
11718 fi
252b5132 11719else
42ecbf5e 11720 ac_cpp_err=yes
252b5132 11721fi
42ecbf5e
DJ
11722if test -z "$ac_cpp_err"; then
11723 ac_header_preproc=yes
11724else
11725 echo "$as_me: failed program was:" >&5
11726sed 's/^/| /' conftest.$ac_ext >&5
11727
11728 ac_header_preproc=no
252b5132 11729fi
42ecbf5e
DJ
11730rm -f conftest.err conftest.$ac_ext
11731echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11732echo "${ECHO_T}$ac_header_preproc" >&6
11733
11734# So? What about this header?
11735case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11736 yes:no: )
11737 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11738echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11739 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11740echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11741 ac_header_preproc=yes
11742 ;;
11743 no:yes:* )
11744 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11745echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11746 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11747echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11748 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11749echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11750 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11751echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11752 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11753echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11754 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11755echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11756 (
11757 cat <<\_ASBOX
11758## ------------------------------------------ ##
11759## Report this to the AC_PACKAGE_NAME lists. ##
11760## ------------------------------------------ ##
11761_ASBOX
11762 ) |
11763 sed "s/^/$as_me: WARNING: /" >&2
11764 ;;
11765esac
11766echo "$as_me:$LINENO: checking for $ac_header" >&5
11767echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11768if eval "test \"\${$as_ac_Header+set}\" = set"; then
11769 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11770else
42ecbf5e
DJ
11771 eval "$as_ac_Header=\$ac_header_preproc"
11772fi
11773echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11774echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11775
252b5132 11776fi
42ecbf5e
DJ
11777if test `eval echo '${'$as_ac_Header'}'` = yes; then
11778 cat >>confdefs.h <<_ACEOF
11779#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11780_ACEOF
11781
11782fi
11783
252b5132
RH
11784done
11785
42ecbf5e
DJ
11786echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
11787echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
11788if test "${ac_cv_header_sys_wait_h+set}" = set; then
11789 echo $ECHO_N "(cached) $ECHO_C" >&6
11790else
11791 cat >conftest.$ac_ext <<_ACEOF
11792/* confdefs.h. */
11793_ACEOF
11794cat confdefs.h >>conftest.$ac_ext
11795cat >>conftest.$ac_ext <<_ACEOF
11796/* end confdefs.h. */
252b5132
RH
11797#include <sys/types.h>
11798#include <sys/wait.h>
11799#ifndef WEXITSTATUS
42ecbf5e 11800# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
252b5132
RH
11801#endif
11802#ifndef WIFEXITED
42ecbf5e 11803# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
252b5132 11804#endif
42ecbf5e
DJ
11805
11806int
11807main ()
11808{
11809 int s;
11810 wait (&s);
11811 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11812 ;
11813 return 0;
11814}
11815_ACEOF
11816rm -f conftest.$ac_objext
11817if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11818 (eval $ac_compile) 2>conftest.er1
11819 ac_status=$?
11820 grep -v '^ *+' conftest.er1 >conftest.err
11821 rm -f conftest.er1
11822 cat conftest.err >&5
11823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824 (exit $ac_status); } &&
7357c5b6
AM
11825 { ac_try='test -z "$ac_c_werror_flag"
11826 || test ! -s conftest.err'
42ecbf5e
DJ
11827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11828 (eval $ac_try) 2>&5
11829 ac_status=$?
11830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11831 (exit $ac_status); }; } &&
11832 { ac_try='test -s conftest.$ac_objext'
11833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11834 (eval $ac_try) 2>&5
11835 ac_status=$?
11836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11837 (exit $ac_status); }; }; then
252b5132
RH
11838 ac_cv_header_sys_wait_h=yes
11839else
42ecbf5e
DJ
11840 echo "$as_me: failed program was:" >&5
11841sed 's/^/| /' conftest.$ac_ext >&5
11842
11843ac_cv_header_sys_wait_h=no
252b5132 11844fi
42ecbf5e 11845rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 11846fi
42ecbf5e
DJ
11847echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
11848echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
d15b04bd 11849if test $ac_cv_header_sys_wait_h = yes; then
42ecbf5e
DJ
11850
11851cat >>confdefs.h <<\_ACEOF
252b5132 11852#define HAVE_SYS_WAIT_H 1
42ecbf5e 11853_ACEOF
252b5132
RH
11854
11855fi
11856
11857# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11858# for constant arguments. Useless!
42ecbf5e
DJ
11859echo "$as_me:$LINENO: checking for working alloca.h" >&5
11860echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
11861if test "${ac_cv_working_alloca_h+set}" = set; then
11862 echo $ECHO_N "(cached) $ECHO_C" >&6
11863else
11864 cat >conftest.$ac_ext <<_ACEOF
11865/* confdefs.h. */
11866_ACEOF
11867cat confdefs.h >>conftest.$ac_ext
11868cat >>conftest.$ac_ext <<_ACEOF
11869/* end confdefs.h. */
252b5132 11870#include <alloca.h>
42ecbf5e
DJ
11871int
11872main ()
11873{
11874char *p = (char *) alloca (2 * sizeof (int));
11875 ;
11876 return 0;
11877}
11878_ACEOF
11879rm -f conftest.$ac_objext conftest$ac_exeext
11880if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11881 (eval $ac_link) 2>conftest.er1
11882 ac_status=$?
11883 grep -v '^ *+' conftest.er1 >conftest.err
11884 rm -f conftest.er1
11885 cat conftest.err >&5
11886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887 (exit $ac_status); } &&
7357c5b6
AM
11888 { ac_try='test -z "$ac_c_werror_flag"
11889 || test ! -s conftest.err'
42ecbf5e
DJ
11890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11891 (eval $ac_try) 2>&5
11892 ac_status=$?
11893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11894 (exit $ac_status); }; } &&
11895 { ac_try='test -s conftest$ac_exeext'
11896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11897 (eval $ac_try) 2>&5
11898 ac_status=$?
11899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900 (exit $ac_status); }; }; then
11901 ac_cv_working_alloca_h=yes
11902else
11903 echo "$as_me: failed program was:" >&5
11904sed 's/^/| /' conftest.$ac_ext >&5
11905
11906ac_cv_working_alloca_h=no
11907fi
11908rm -f conftest.err conftest.$ac_objext \
11909 conftest$ac_exeext conftest.$ac_ext
11910fi
11911echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
11912echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
11913if test $ac_cv_working_alloca_h = yes; then
11914
11915cat >>confdefs.h <<\_ACEOF
252b5132 11916#define HAVE_ALLOCA_H 1
42ecbf5e 11917_ACEOF
252b5132
RH
11918
11919fi
11920
42ecbf5e
DJ
11921echo "$as_me:$LINENO: checking for alloca" >&5
11922echo $ECHO_N "checking for alloca... $ECHO_C" >&6
11923if test "${ac_cv_func_alloca_works+set}" = set; then
11924 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11925else
42ecbf5e
DJ
11926 cat >conftest.$ac_ext <<_ACEOF
11927/* confdefs.h. */
11928_ACEOF
11929cat confdefs.h >>conftest.$ac_ext
11930cat >>conftest.$ac_ext <<_ACEOF
11931/* end confdefs.h. */
252b5132
RH
11932#ifdef __GNUC__
11933# define alloca __builtin_alloca
11934#else
11935# ifdef _MSC_VER
11936# include <malloc.h>
11937# define alloca _alloca
11938# else
11939# if HAVE_ALLOCA_H
11940# include <alloca.h>
11941# else
11942# ifdef _AIX
11943 #pragma alloca
11944# else
11945# ifndef alloca /* predefined by HP cc +Olibcalls */
11946char *alloca ();
11947# endif
11948# endif
11949# endif
11950# endif
11951#endif
11952
42ecbf5e
DJ
11953int
11954main ()
11955{
11956char *p = (char *) alloca (1);
11957 ;
11958 return 0;
11959}
11960_ACEOF
11961rm -f conftest.$ac_objext conftest$ac_exeext
11962if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11963 (eval $ac_link) 2>conftest.er1
11964 ac_status=$?
11965 grep -v '^ *+' conftest.er1 >conftest.err
11966 rm -f conftest.er1
11967 cat conftest.err >&5
11968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11969 (exit $ac_status); } &&
7357c5b6
AM
11970 { ac_try='test -z "$ac_c_werror_flag"
11971 || test ! -s conftest.err'
42ecbf5e
DJ
11972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11973 (eval $ac_try) 2>&5
11974 ac_status=$?
11975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976 (exit $ac_status); }; } &&
11977 { ac_try='test -s conftest$ac_exeext'
11978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11979 (eval $ac_try) 2>&5
11980 ac_status=$?
11981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982 (exit $ac_status); }; }; then
252b5132
RH
11983 ac_cv_func_alloca_works=yes
11984else
42ecbf5e
DJ
11985 echo "$as_me: failed program was:" >&5
11986sed 's/^/| /' conftest.$ac_ext >&5
11987
11988ac_cv_func_alloca_works=no
252b5132 11989fi
42ecbf5e
DJ
11990rm -f conftest.err conftest.$ac_objext \
11991 conftest$ac_exeext conftest.$ac_ext
252b5132 11992fi
42ecbf5e
DJ
11993echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
11994echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
252b5132 11995
252b5132 11996if test $ac_cv_func_alloca_works = yes; then
e5a52504 11997
42ecbf5e
DJ
11998cat >>confdefs.h <<\_ACEOF
11999#define HAVE_ALLOCA 1
12000_ACEOF
e5a52504 12001
42ecbf5e 12002else
d15b04bd 12003 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
42ecbf5e
DJ
12004# that cause trouble. Some versions do not even contain alloca or
12005# contain a buggy version. If you still want to use their alloca,
12006# use ar to extract alloca.o from them instead of compiling alloca.c.
12007
12008ALLOCA=alloca.$ac_objext
12009
12010cat >>confdefs.h <<\_ACEOF
252b5132 12011#define C_ALLOCA 1
42ecbf5e 12012_ACEOF
252b5132
RH
12013
12014
42ecbf5e
DJ
12015echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12016echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
12017if test "${ac_cv_os_cray+set}" = set; then
12018 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12019else
42ecbf5e
DJ
12020 cat >conftest.$ac_ext <<_ACEOF
12021/* confdefs.h. */
12022_ACEOF
12023cat confdefs.h >>conftest.$ac_ext
12024cat >>conftest.$ac_ext <<_ACEOF
12025/* end confdefs.h. */
252b5132
RH
12026#if defined(CRAY) && ! defined(CRAY2)
12027webecray
12028#else
12029wenotbecray
12030#endif
12031
42ecbf5e 12032_ACEOF
252b5132 12033if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42ecbf5e 12034 $EGREP "webecray" >/dev/null 2>&1; then
252b5132
RH
12035 ac_cv_os_cray=yes
12036else
252b5132
RH
12037 ac_cv_os_cray=no
12038fi
12039rm -f conftest*
12040
12041fi
42ecbf5e
DJ
12042echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12043echo "${ECHO_T}$ac_cv_os_cray" >&6
d15b04bd 12044if test $ac_cv_os_cray = yes; then
42ecbf5e
DJ
12045 for ac_func in _getb67 GETB67 getb67; do
12046 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12047echo "$as_me:$LINENO: checking for $ac_func" >&5
12048echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12049if eval "test \"\${$as_ac_var+set}\" = set"; then
12050 echo $ECHO_N "(cached) $ECHO_C" >&6
12051else
12052 cat >conftest.$ac_ext <<_ACEOF
12053/* confdefs.h. */
12054_ACEOF
12055cat confdefs.h >>conftest.$ac_ext
12056cat >>conftest.$ac_ext <<_ACEOF
12057/* end confdefs.h. */
12058/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12059 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12060#define $ac_func innocuous_$ac_func
12061
252b5132 12062/* System header to define __stub macros and hopefully few prototypes,
42ecbf5e
DJ
12063 which can conflict with char $ac_func (); below.
12064 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12065 <limits.h> exists even on freestanding compilers. */
12066
12067#ifdef __STDC__
12068# include <limits.h>
12069#else
12070# include <assert.h>
12071#endif
d15b04bd 12072
42ecbf5e 12073#undef $ac_func
d15b04bd 12074
42ecbf5e
DJ
12075/* Override any gcc2 internal prototype to avoid an error. */
12076#ifdef __cplusplus
12077extern "C"
12078{
12079#endif
12080/* We use char because int might match the return type of a gcc2
12081 builtin and then its argument prototype would still apply. */
12082char $ac_func ();
252b5132
RH
12083/* The GNU C library defines this for functions which it implements
12084 to always fail with ENOSYS. Some functions are actually named
12085 something starting with __ and the normal name is an alias. */
12086#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12087choke me
12088#else
42ecbf5e
DJ
12089char (*f) () = $ac_func;
12090#endif
12091#ifdef __cplusplus
12092}
252b5132
RH
12093#endif
12094
42ecbf5e
DJ
12095int
12096main ()
12097{
12098return f != $ac_func;
12099 ;
12100 return 0;
12101}
12102_ACEOF
12103rm -f conftest.$ac_objext conftest$ac_exeext
12104if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12105 (eval $ac_link) 2>conftest.er1
12106 ac_status=$?
12107 grep -v '^ *+' conftest.er1 >conftest.err
12108 rm -f conftest.er1
12109 cat conftest.err >&5
12110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111 (exit $ac_status); } &&
7357c5b6
AM
12112 { ac_try='test -z "$ac_c_werror_flag"
12113 || test ! -s conftest.err'
42ecbf5e
DJ
12114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12115 (eval $ac_try) 2>&5
12116 ac_status=$?
12117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118 (exit $ac_status); }; } &&
12119 { ac_try='test -s conftest$ac_exeext'
12120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12121 (eval $ac_try) 2>&5
12122 ac_status=$?
12123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124 (exit $ac_status); }; }; then
12125 eval "$as_ac_var=yes"
12126else
12127 echo "$as_me: failed program was:" >&5
12128sed 's/^/| /' conftest.$ac_ext >&5
12129
12130eval "$as_ac_var=no"
12131fi
12132rm -f conftest.err conftest.$ac_objext \
12133 conftest$ac_exeext conftest.$ac_ext
12134fi
12135echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12136echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12137if test `eval echo '${'$as_ac_var'}'` = yes; then
12138
12139cat >>confdefs.h <<_ACEOF
252b5132 12140#define CRAY_STACKSEG_END $ac_func
42ecbf5e 12141_ACEOF
252b5132 12142
42ecbf5e 12143 break
252b5132
RH
12144fi
12145
42ecbf5e 12146 done
252b5132
RH
12147fi
12148
42ecbf5e
DJ
12149echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
12150echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
12151if test "${ac_cv_c_stack_direction+set}" = set; then
12152 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
12153else
12154 if test "$cross_compiling" = yes; then
12155 ac_cv_c_stack_direction=0
12156else
42ecbf5e
DJ
12157 cat >conftest.$ac_ext <<_ACEOF
12158/* confdefs.h. */
12159_ACEOF
12160cat confdefs.h >>conftest.$ac_ext
12161cat >>conftest.$ac_ext <<_ACEOF
12162/* end confdefs.h. */
12163int
252b5132
RH
12164find_stack_direction ()
12165{
12166 static char *addr = 0;
12167 auto char dummy;
12168 if (addr == 0)
12169 {
12170 addr = &dummy;
12171 return find_stack_direction ();
12172 }
12173 else
12174 return (&dummy > addr) ? 1 : -1;
12175}
42ecbf5e
DJ
12176
12177int
252b5132
RH
12178main ()
12179{
42ecbf5e 12180 exit (find_stack_direction () < 0);
252b5132 12181}
42ecbf5e
DJ
12182_ACEOF
12183rm -f conftest$ac_exeext
12184if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12185 (eval $ac_link) 2>&5
12186 ac_status=$?
12187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12190 (eval $ac_try) 2>&5
12191 ac_status=$?
12192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193 (exit $ac_status); }; }; then
252b5132
RH
12194 ac_cv_c_stack_direction=1
12195else
42ecbf5e
DJ
12196 echo "$as_me: program exited with status $ac_status" >&5
12197echo "$as_me: failed program was:" >&5
12198sed 's/^/| /' conftest.$ac_ext >&5
12199
12200( exit $ac_status )
12201ac_cv_c_stack_direction=-1
252b5132 12202fi
42ecbf5e 12203rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 12204fi
252b5132 12205fi
42ecbf5e
DJ
12206echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
12207echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
252b5132 12208
42ecbf5e 12209cat >>confdefs.h <<_ACEOF
252b5132 12210#define STACK_DIRECTION $ac_cv_c_stack_direction
42ecbf5e
DJ
12211_ACEOF
12212
252b5132
RH
12213
12214fi
12215
42ecbf5e
DJ
12216
12217
12218
12219
12220
9710509e 12221for ac_func in sbrk utimes setmode getc_unlocked strcoll
252b5132 12222do
42ecbf5e
DJ
12223as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12224echo "$as_me:$LINENO: checking for $ac_func" >&5
12225echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12226if eval "test \"\${$as_ac_var+set}\" = set"; then
12227 echo $ECHO_N "(cached) $ECHO_C" >&6
12228else
12229 cat >conftest.$ac_ext <<_ACEOF
12230/* confdefs.h. */
12231_ACEOF
12232cat confdefs.h >>conftest.$ac_ext
12233cat >>conftest.$ac_ext <<_ACEOF
12234/* end confdefs.h. */
12235/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12236 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12237#define $ac_func innocuous_$ac_func
12238
252b5132 12239/* System header to define __stub macros and hopefully few prototypes,
42ecbf5e
DJ
12240 which can conflict with char $ac_func (); below.
12241 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12242 <limits.h> exists even on freestanding compilers. */
12243
12244#ifdef __STDC__
12245# include <limits.h>
12246#else
12247# include <assert.h>
12248#endif
d15b04bd 12249
42ecbf5e 12250#undef $ac_func
d15b04bd 12251
42ecbf5e
DJ
12252/* Override any gcc2 internal prototype to avoid an error. */
12253#ifdef __cplusplus
12254extern "C"
12255{
12256#endif
12257/* We use char because int might match the return type of a gcc2
12258 builtin and then its argument prototype would still apply. */
12259char $ac_func ();
252b5132
RH
12260/* The GNU C library defines this for functions which it implements
12261 to always fail with ENOSYS. Some functions are actually named
12262 something starting with __ and the normal name is an alias. */
12263#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12264choke me
12265#else
42ecbf5e
DJ
12266char (*f) () = $ac_func;
12267#endif
12268#ifdef __cplusplus
12269}
252b5132
RH
12270#endif
12271
42ecbf5e
DJ
12272int
12273main ()
12274{
12275return f != $ac_func;
12276 ;
12277 return 0;
12278}
12279_ACEOF
12280rm -f conftest.$ac_objext conftest$ac_exeext
12281if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12282 (eval $ac_link) 2>conftest.er1
12283 ac_status=$?
12284 grep -v '^ *+' conftest.er1 >conftest.err
12285 rm -f conftest.er1
12286 cat conftest.err >&5
12287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288 (exit $ac_status); } &&
7357c5b6
AM
12289 { ac_try='test -z "$ac_c_werror_flag"
12290 || test ! -s conftest.err'
42ecbf5e
DJ
12291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12292 (eval $ac_try) 2>&5
12293 ac_status=$?
12294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295 (exit $ac_status); }; } &&
12296 { ac_try='test -s conftest$ac_exeext'
12297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12298 (eval $ac_try) 2>&5
12299 ac_status=$?
12300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12301 (exit $ac_status); }; }; then
12302 eval "$as_ac_var=yes"
12303else
12304 echo "$as_me: failed program was:" >&5
12305sed 's/^/| /' conftest.$ac_ext >&5
12306
12307eval "$as_ac_var=no"
12308fi
12309rm -f conftest.err conftest.$ac_objext \
12310 conftest$ac_exeext conftest.$ac_ext
12311fi
12312echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12313echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12314if test `eval echo '${'$as_ac_var'}'` = yes; then
12315 cat >>confdefs.h <<_ACEOF
12316#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12317_ACEOF
252b5132 12318
252b5132
RH
12319fi
12320done
12321
f9c026a8
NC
12322echo "$as_me:$LINENO: checking for mkstemp" >&5
12323echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
12324if test "${ac_cv_func_mkstemp+set}" = set; then
12325 echo $ECHO_N "(cached) $ECHO_C" >&6
12326else
12327 cat >conftest.$ac_ext <<_ACEOF
12328/* confdefs.h. */
12329_ACEOF
12330cat confdefs.h >>conftest.$ac_ext
12331cat >>conftest.$ac_ext <<_ACEOF
12332/* end confdefs.h. */
12333/* Define mkstemp to an innocuous variant, in case <limits.h> declares mkstemp.
12334 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12335#define mkstemp innocuous_mkstemp
12336
12337/* System header to define __stub macros and hopefully few prototypes,
12338 which can conflict with char mkstemp (); below.
12339 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12340 <limits.h> exists even on freestanding compilers. */
12341
12342#ifdef __STDC__
12343# include <limits.h>
12344#else
12345# include <assert.h>
12346#endif
12347
12348#undef mkstemp
12349
12350/* Override any gcc2 internal prototype to avoid an error. */
12351#ifdef __cplusplus
12352extern "C"
12353{
12354#endif
12355/* We use char because int might match the return type of a gcc2
12356 builtin and then its argument prototype would still apply. */
12357char mkstemp ();
12358/* The GNU C library defines this for functions which it implements
12359 to always fail with ENOSYS. Some functions are actually named
12360 something starting with __ and the normal name is an alias. */
12361#if defined (__stub_mkstemp) || defined (__stub___mkstemp)
12362choke me
12363#else
12364char (*f) () = mkstemp;
12365#endif
12366#ifdef __cplusplus
12367}
12368#endif
12369
12370int
12371main ()
12372{
12373return f != mkstemp;
12374 ;
12375 return 0;
12376}
12377_ACEOF
12378rm -f conftest.$ac_objext conftest$ac_exeext
12379if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12380 (eval $ac_link) 2>conftest.er1
12381 ac_status=$?
12382 grep -v '^ *+' conftest.er1 >conftest.err
12383 rm -f conftest.er1
12384 cat conftest.err >&5
12385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12386 (exit $ac_status); } &&
7357c5b6
AM
12387 { ac_try='test -z "$ac_c_werror_flag"
12388 || test ! -s conftest.err'
f9c026a8
NC
12389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12390 (eval $ac_try) 2>&5
12391 ac_status=$?
12392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12393 (exit $ac_status); }; } &&
12394 { ac_try='test -s conftest$ac_exeext'
12395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12396 (eval $ac_try) 2>&5
12397 ac_status=$?
12398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12399 (exit $ac_status); }; }; then
12400 ac_cv_func_mkstemp=yes
12401else
12402 echo "$as_me: failed program was:" >&5
12403sed 's/^/| /' conftest.$ac_ext >&5
12404
12405ac_cv_func_mkstemp=no
12406fi
12407rm -f conftest.err conftest.$ac_objext \
12408 conftest$ac_exeext conftest.$ac_ext
12409fi
12410echo "$as_me:$LINENO: result: $ac_cv_func_mkstemp" >&5
12411echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
12412if test $ac_cv_func_mkstemp = yes; then
12413
12414cat >>confdefs.h <<\_ACEOF
12415#define HAVE_MKSTEMP 1
12416_ACEOF
12417
12418fi
12419
12420echo "$as_me:$LINENO: checking for mkdtemp" >&5
12421echo $ECHO_N "checking for mkdtemp... $ECHO_C" >&6
12422if test "${ac_cv_func_mkdtemp+set}" = set; then
12423 echo $ECHO_N "(cached) $ECHO_C" >&6
12424else
12425 cat >conftest.$ac_ext <<_ACEOF
12426/* confdefs.h. */
12427_ACEOF
12428cat confdefs.h >>conftest.$ac_ext
12429cat >>conftest.$ac_ext <<_ACEOF
12430/* end confdefs.h. */
12431/* Define mkdtemp to an innocuous variant, in case <limits.h> declares mkdtemp.
12432 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12433#define mkdtemp innocuous_mkdtemp
12434
12435/* System header to define __stub macros and hopefully few prototypes,
12436 which can conflict with char mkdtemp (); below.
12437 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12438 <limits.h> exists even on freestanding compilers. */
12439
12440#ifdef __STDC__
12441# include <limits.h>
12442#else
12443# include <assert.h>
12444#endif
12445
12446#undef mkdtemp
12447
12448/* Override any gcc2 internal prototype to avoid an error. */
12449#ifdef __cplusplus
12450extern "C"
12451{
12452#endif
12453/* We use char because int might match the return type of a gcc2
12454 builtin and then its argument prototype would still apply. */
12455char mkdtemp ();
12456/* The GNU C library defines this for functions which it implements
12457 to always fail with ENOSYS. Some functions are actually named
12458 something starting with __ and the normal name is an alias. */
12459#if defined (__stub_mkdtemp) || defined (__stub___mkdtemp)
12460choke me
12461#else
12462char (*f) () = mkdtemp;
12463#endif
12464#ifdef __cplusplus
12465}
12466#endif
12467
12468int
12469main ()
12470{
12471return f != mkdtemp;
12472 ;
12473 return 0;
12474}
12475_ACEOF
12476rm -f conftest.$ac_objext conftest$ac_exeext
12477if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12478 (eval $ac_link) 2>conftest.er1
12479 ac_status=$?
12480 grep -v '^ *+' conftest.er1 >conftest.err
12481 rm -f conftest.er1
12482 cat conftest.err >&5
12483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12484 (exit $ac_status); } &&
7357c5b6
AM
12485 { ac_try='test -z "$ac_c_werror_flag"
12486 || test ! -s conftest.err'
f9c026a8
NC
12487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12488 (eval $ac_try) 2>&5
12489 ac_status=$?
12490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12491 (exit $ac_status); }; } &&
12492 { ac_try='test -s conftest$ac_exeext'
12493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12494 (eval $ac_try) 2>&5
12495 ac_status=$?
12496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12497 (exit $ac_status); }; }; then
12498 ac_cv_func_mkdtemp=yes
12499else
12500 echo "$as_me: failed program was:" >&5
12501sed 's/^/| /' conftest.$ac_ext >&5
12502
12503ac_cv_func_mkdtemp=no
12504fi
12505rm -f conftest.err conftest.$ac_objext \
12506 conftest$ac_exeext conftest.$ac_ext
12507fi
12508echo "$as_me:$LINENO: result: $ac_cv_func_mkdtemp" >&5
12509echo "${ECHO_T}$ac_cv_func_mkdtemp" >&6
12510if test $ac_cv_func_mkdtemp = yes; then
12511
12512cat >>confdefs.h <<\_ACEOF
12513#define HAVE_MKDTEMP 1
12514_ACEOF
12515
12516fi
12517
252b5132 12518
cedd9a58
JJ
12519# Check whether fopen64 is available and whether _LARGEFILE64_SOURCE
12520# needs to be defined for it
42ecbf5e
DJ
12521echo "$as_me:$LINENO: checking for fopen64" >&5
12522echo $ECHO_N "checking for fopen64... $ECHO_C" >&6
12523if test "${bu_cv_have_fopen64+set}" = set; then
12524 echo $ECHO_N "(cached) $ECHO_C" >&6
12525else
12526 cat >conftest.$ac_ext <<_ACEOF
12527/* confdefs.h. */
12528_ACEOF
12529cat confdefs.h >>conftest.$ac_ext
12530cat >>conftest.$ac_ext <<_ACEOF
12531/* end confdefs.h. */
cedd9a58 12532#include <stdio.h>
42ecbf5e
DJ
12533int
12534main ()
12535{
cedd9a58 12536FILE *f = fopen64 ("/tmp/foo","r");
42ecbf5e
DJ
12537 ;
12538 return 0;
12539}
12540_ACEOF
12541rm -f conftest.$ac_objext conftest$ac_exeext
12542if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12543 (eval $ac_link) 2>conftest.er1
12544 ac_status=$?
12545 grep -v '^ *+' conftest.er1 >conftest.err
12546 rm -f conftest.er1
12547 cat conftest.err >&5
12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549 (exit $ac_status); } &&
7357c5b6
AM
12550 { ac_try='test -z "$ac_c_werror_flag"
12551 || test ! -s conftest.err'
42ecbf5e
DJ
12552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12553 (eval $ac_try) 2>&5
12554 ac_status=$?
12555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556 (exit $ac_status); }; } &&
12557 { ac_try='test -s conftest$ac_exeext'
12558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12559 (eval $ac_try) 2>&5
12560 ac_status=$?
12561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 (exit $ac_status); }; }; then
cedd9a58
JJ
12563 bu_cv_have_fopen64=yes
12564else
42ecbf5e
DJ
12565 echo "$as_me: failed program was:" >&5
12566sed 's/^/| /' conftest.$ac_ext >&5
12567
12568saved_CPPFLAGS=$CPPFLAGS
cedd9a58 12569 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
42ecbf5e
DJ
12570 cat >conftest.$ac_ext <<_ACEOF
12571/* confdefs.h. */
12572_ACEOF
12573cat confdefs.h >>conftest.$ac_ext
12574cat >>conftest.$ac_ext <<_ACEOF
12575/* end confdefs.h. */
cedd9a58 12576#include <stdio.h>
42ecbf5e
DJ
12577int
12578main ()
12579{
cedd9a58 12580FILE *f = fopen64 ("/tmp/foo","r");
42ecbf5e
DJ
12581 ;
12582 return 0;
12583}
12584_ACEOF
12585rm -f conftest.$ac_objext conftest$ac_exeext
12586if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12587 (eval $ac_link) 2>conftest.er1
12588 ac_status=$?
12589 grep -v '^ *+' conftest.er1 >conftest.err
12590 rm -f conftest.er1
12591 cat conftest.err >&5
12592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12593 (exit $ac_status); } &&
7357c5b6
AM
12594 { ac_try='test -z "$ac_c_werror_flag"
12595 || test ! -s conftest.err'
42ecbf5e
DJ
12596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12597 (eval $ac_try) 2>&5
12598 ac_status=$?
12599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12600 (exit $ac_status); }; } &&
12601 { ac_try='test -s conftest$ac_exeext'
12602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12603 (eval $ac_try) 2>&5
12604 ac_status=$?
12605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12606 (exit $ac_status); }; }; then
cedd9a58
JJ
12607 bu_cv_have_fopen64="need -D_LARGEFILE64_SOURCE"
12608else
42ecbf5e
DJ
12609 echo "$as_me: failed program was:" >&5
12610sed 's/^/| /' conftest.$ac_ext >&5
12611
12612bu_cv_have_fopen64=no
cedd9a58 12613fi
42ecbf5e
DJ
12614rm -f conftest.err conftest.$ac_objext \
12615 conftest$ac_exeext conftest.$ac_ext
17a5a5c3 12616 CPPFLAGS=$saved_CPPFLAGS
cedd9a58 12617fi
42ecbf5e
DJ
12618rm -f conftest.err conftest.$ac_objext \
12619 conftest$ac_exeext conftest.$ac_ext
cedd9a58 12620fi
cedd9a58 12621
42ecbf5e
DJ
12622echo "$as_me:$LINENO: result: $bu_cv_have_fopen64" >&5
12623echo "${ECHO_T}$bu_cv_have_fopen64" >&6
6db7a086 12624if test "$bu_cv_have_fopen64" != no; then
42ecbf5e
DJ
12625
12626cat >>confdefs.h <<\_ACEOF
cedd9a58 12627#define HAVE_FOPEN64 1
42ecbf5e 12628_ACEOF
cedd9a58 12629
fb5b5478 12630fi
42ecbf5e
DJ
12631echo "$as_me:$LINENO: checking for stat64" >&5
12632echo $ECHO_N "checking for stat64... $ECHO_C" >&6
12633if test "${bu_cv_have_stat64+set}" = set; then
12634 echo $ECHO_N "(cached) $ECHO_C" >&6
fb5b5478 12635else
42ecbf5e
DJ
12636 cat >conftest.$ac_ext <<_ACEOF
12637/* confdefs.h. */
12638_ACEOF
12639cat confdefs.h >>conftest.$ac_ext
12640cat >>conftest.$ac_ext <<_ACEOF
12641/* end confdefs.h. */
fb5b5478 12642#include <sys/stat.h>
42ecbf5e
DJ
12643int
12644main ()
12645{
fb5b5478 12646struct stat64 st; stat64 ("/tmp/foo", &st);
42ecbf5e
DJ
12647 ;
12648 return 0;
12649}
12650_ACEOF
12651rm -f conftest.$ac_objext conftest$ac_exeext
12652if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12653 (eval $ac_link) 2>conftest.er1
12654 ac_status=$?
12655 grep -v '^ *+' conftest.er1 >conftest.err
12656 rm -f conftest.er1
12657 cat conftest.err >&5
12658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659 (exit $ac_status); } &&
7357c5b6
AM
12660 { ac_try='test -z "$ac_c_werror_flag"
12661 || test ! -s conftest.err'
42ecbf5e
DJ
12662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12663 (eval $ac_try) 2>&5
12664 ac_status=$?
12665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12666 (exit $ac_status); }; } &&
12667 { ac_try='test -s conftest$ac_exeext'
12668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12669 (eval $ac_try) 2>&5
12670 ac_status=$?
12671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672 (exit $ac_status); }; }; then
fb5b5478
JJ
12673 bu_cv_have_stat64=yes
12674else
42ecbf5e
DJ
12675 echo "$as_me: failed program was:" >&5
12676sed 's/^/| /' conftest.$ac_ext >&5
12677
12678saved_CPPFLAGS=$CPPFLAGS
fb5b5478 12679 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
42ecbf5e
DJ
12680 cat >conftest.$ac_ext <<_ACEOF
12681/* confdefs.h. */
12682_ACEOF
12683cat confdefs.h >>conftest.$ac_ext
12684cat >>conftest.$ac_ext <<_ACEOF
12685/* end confdefs.h. */
fb5b5478 12686#include <sys/stat.h>
42ecbf5e
DJ
12687int
12688main ()
12689{
fb5b5478 12690struct stat64 st; stat64 ("/tmp/foo", &st);
42ecbf5e
DJ
12691 ;
12692 return 0;
12693}
12694_ACEOF
12695rm -f conftest.$ac_objext conftest$ac_exeext
12696if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12697 (eval $ac_link) 2>conftest.er1
12698 ac_status=$?
12699 grep -v '^ *+' conftest.er1 >conftest.err
12700 rm -f conftest.er1
12701 cat conftest.err >&5
12702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12703 (exit $ac_status); } &&
7357c5b6
AM
12704 { ac_try='test -z "$ac_c_werror_flag"
12705 || test ! -s conftest.err'
42ecbf5e
DJ
12706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12707 (eval $ac_try) 2>&5
12708 ac_status=$?
12709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710 (exit $ac_status); }; } &&
12711 { ac_try='test -s conftest$ac_exeext'
12712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12713 (eval $ac_try) 2>&5
12714 ac_status=$?
12715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12716 (exit $ac_status); }; }; then
fb5b5478
JJ
12717 bu_cv_have_stat64="need -D_LARGEFILE64_SOURCE"
12718else
42ecbf5e
DJ
12719 echo "$as_me: failed program was:" >&5
12720sed 's/^/| /' conftest.$ac_ext >&5
12721
12722bu_cv_have_stat64=no
fb5b5478 12723fi
42ecbf5e
DJ
12724rm -f conftest.err conftest.$ac_objext \
12725 conftest$ac_exeext conftest.$ac_ext
fb5b5478
JJ
12726 CPPFLAGS=$saved_CPPFLAGS
12727fi
42ecbf5e
DJ
12728rm -f conftest.err conftest.$ac_objext \
12729 conftest$ac_exeext conftest.$ac_ext
fb5b5478
JJ
12730fi
12731
42ecbf5e
DJ
12732echo "$as_me:$LINENO: result: $bu_cv_have_stat64" >&5
12733echo "${ECHO_T}$bu_cv_have_stat64" >&6
fb5b5478 12734if test "$bu_cv_have_stat64" != no; then
42ecbf5e
DJ
12735
12736cat >>confdefs.h <<\_ACEOF
fb5b5478 12737#define HAVE_STAT64 1
42ecbf5e 12738_ACEOF
fb5b5478
JJ
12739
12740fi
12741if test "$bu_cv_have_fopen64" = "need -D_LARGEFILE64_SOURCE" \
12742 || test "$bu_cv_have_stat64" = "need -D_LARGEFILE64_SOURCE"; then
42ecbf5e
DJ
12743
12744cat >>confdefs.h <<\_ACEOF
cedd9a58 12745#define _LARGEFILE64_SOURCE 1
42ecbf5e 12746_ACEOF
cedd9a58 12747
fb5b5478 12748 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
cedd9a58
JJ
12749fi
12750
f353eb8a 12751# Some systems have frexp only in -lm, not in -lc.
42ecbf5e
DJ
12752echo "$as_me:$LINENO: checking for library containing frexp" >&5
12753echo $ECHO_N "checking for library containing frexp... $ECHO_C" >&6
12754if test "${ac_cv_search_frexp+set}" = set; then
12755 echo $ECHO_N "(cached) $ECHO_C" >&6
12756else
12757 ac_func_search_save_LIBS=$LIBS
12758ac_cv_search_frexp=no
12759cat >conftest.$ac_ext <<_ACEOF
12760/* confdefs.h. */
12761_ACEOF
12762cat confdefs.h >>conftest.$ac_ext
12763cat >>conftest.$ac_ext <<_ACEOF
12764/* end confdefs.h. */
f353eb8a 12765
f353eb8a 12766/* Override any gcc2 internal prototype to avoid an error. */
42ecbf5e
DJ
12767#ifdef __cplusplus
12768extern "C"
12769#endif
f353eb8a 12770/* We use char because int might match the return type of a gcc2
42ecbf5e
DJ
12771 builtin and then its argument prototype would still apply. */
12772char frexp ();
12773int
12774main ()
12775{
12776frexp ();
12777 ;
12778 return 0;
12779}
12780_ACEOF
12781rm -f conftest.$ac_objext conftest$ac_exeext
12782if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12783 (eval $ac_link) 2>conftest.er1
12784 ac_status=$?
12785 grep -v '^ *+' conftest.er1 >conftest.err
12786 rm -f conftest.er1
12787 cat conftest.err >&5
12788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12789 (exit $ac_status); } &&
7357c5b6
AM
12790 { ac_try='test -z "$ac_c_werror_flag"
12791 || test ! -s conftest.err'
42ecbf5e
DJ
12792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12793 (eval $ac_try) 2>&5
12794 ac_status=$?
12795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12796 (exit $ac_status); }; } &&
12797 { ac_try='test -s conftest$ac_exeext'
12798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12799 (eval $ac_try) 2>&5
12800 ac_status=$?
12801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12802 (exit $ac_status); }; }; then
f353eb8a
ILT
12803 ac_cv_search_frexp="none required"
12804else
42ecbf5e
DJ
12805 echo "$as_me: failed program was:" >&5
12806sed 's/^/| /' conftest.$ac_ext >&5
12807
f353eb8a 12808fi
42ecbf5e
DJ
12809rm -f conftest.err conftest.$ac_objext \
12810 conftest$ac_exeext conftest.$ac_ext
12811if test "$ac_cv_search_frexp" = no; then
12812 for ac_lib in m; do
12813 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12814 cat >conftest.$ac_ext <<_ACEOF
12815/* confdefs.h. */
12816_ACEOF
12817cat confdefs.h >>conftest.$ac_ext
12818cat >>conftest.$ac_ext <<_ACEOF
12819/* end confdefs.h. */
12820
f353eb8a 12821/* Override any gcc2 internal prototype to avoid an error. */
42ecbf5e
DJ
12822#ifdef __cplusplus
12823extern "C"
12824#endif
f353eb8a 12825/* We use char because int might match the return type of a gcc2
42ecbf5e
DJ
12826 builtin and then its argument prototype would still apply. */
12827char frexp ();
12828int
12829main ()
12830{
12831frexp ();
12832 ;
12833 return 0;
12834}
12835_ACEOF
12836rm -f conftest.$ac_objext conftest$ac_exeext
12837if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12838 (eval $ac_link) 2>conftest.er1
12839 ac_status=$?
12840 grep -v '^ *+' conftest.er1 >conftest.err
12841 rm -f conftest.er1
12842 cat conftest.err >&5
12843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12844 (exit $ac_status); } &&
7357c5b6
AM
12845 { ac_try='test -z "$ac_c_werror_flag"
12846 || test ! -s conftest.err'
42ecbf5e
DJ
12847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12848 (eval $ac_try) 2>&5
12849 ac_status=$?
12850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851 (exit $ac_status); }; } &&
12852 { ac_try='test -s conftest$ac_exeext'
12853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12854 (eval $ac_try) 2>&5
12855 ac_status=$?
12856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12857 (exit $ac_status); }; }; then
12858 ac_cv_search_frexp="-l$ac_lib"
f353eb8a
ILT
12859break
12860else
42ecbf5e
DJ
12861 echo "$as_me: failed program was:" >&5
12862sed 's/^/| /' conftest.$ac_ext >&5
12863
f353eb8a 12864fi
42ecbf5e
DJ
12865rm -f conftest.err conftest.$ac_objext \
12866 conftest$ac_exeext conftest.$ac_ext
12867 done
e5a52504 12868fi
42ecbf5e
DJ
12869LIBS=$ac_func_search_save_LIBS
12870fi
12871echo "$as_me:$LINENO: result: $ac_cv_search_frexp" >&5
12872echo "${ECHO_T}$ac_cv_search_frexp" >&6
12873if test "$ac_cv_search_frexp" != no; then
d15b04bd 12874 test "$ac_cv_search_frexp" = "none required" || LIBS="$ac_cv_search_frexp $LIBS"
42ecbf5e 12875
f353eb8a
ILT
12876fi
12877
42ecbf5e
DJ
12878
12879echo "$as_me:$LINENO: checking for time_t in time.h" >&5
12880echo $ECHO_N "checking for time_t in time.h... $ECHO_C" >&6
12881if test "${bu_cv_decl_time_t_time_h+set}" = set; then
12882 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12883else
42ecbf5e
DJ
12884 cat >conftest.$ac_ext <<_ACEOF
12885/* confdefs.h. */
12886_ACEOF
12887cat confdefs.h >>conftest.$ac_ext
12888cat >>conftest.$ac_ext <<_ACEOF
12889/* end confdefs.h. */
252b5132 12890#include <time.h>
42ecbf5e
DJ
12891int
12892main ()
12893{
252b5132 12894time_t i;
42ecbf5e
DJ
12895 ;
12896 return 0;
12897}
12898_ACEOF
12899rm -f conftest.$ac_objext
12900if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12901 (eval $ac_compile) 2>conftest.er1
12902 ac_status=$?
12903 grep -v '^ *+' conftest.er1 >conftest.err
12904 rm -f conftest.er1
12905 cat conftest.err >&5
12906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12907 (exit $ac_status); } &&
7357c5b6
AM
12908 { ac_try='test -z "$ac_c_werror_flag"
12909 || test ! -s conftest.err'
42ecbf5e
DJ
12910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12911 (eval $ac_try) 2>&5
12912 ac_status=$?
12913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914 (exit $ac_status); }; } &&
12915 { ac_try='test -s conftest.$ac_objext'
12916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12917 (eval $ac_try) 2>&5
12918 ac_status=$?
12919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920 (exit $ac_status); }; }; then
252b5132
RH
12921 bu_cv_decl_time_t_time_h=yes
12922else
42ecbf5e
DJ
12923 echo "$as_me: failed program was:" >&5
12924sed 's/^/| /' conftest.$ac_ext >&5
12925
12926bu_cv_decl_time_t_time_h=no
252b5132 12927fi
42ecbf5e 12928rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
12929fi
12930
42ecbf5e
DJ
12931echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_time_h" >&5
12932echo "${ECHO_T}$bu_cv_decl_time_t_time_h" >&6
252b5132 12933if test $bu_cv_decl_time_t_time_h = yes; then
42ecbf5e
DJ
12934
12935cat >>confdefs.h <<\_ACEOF
252b5132 12936#define HAVE_TIME_T_IN_TIME_H 1
42ecbf5e 12937_ACEOF
252b5132
RH
12938
12939fi
12940
42ecbf5e
DJ
12941echo "$as_me:$LINENO: checking for time_t in sys/types.h" >&5
12942echo $ECHO_N "checking for time_t in sys/types.h... $ECHO_C" >&6
12943if test "${bu_cv_decl_time_t_types_h+set}" = set; then
12944 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12945else
42ecbf5e
DJ
12946 cat >conftest.$ac_ext <<_ACEOF
12947/* confdefs.h. */
12948_ACEOF
12949cat confdefs.h >>conftest.$ac_ext
12950cat >>conftest.$ac_ext <<_ACEOF
12951/* end confdefs.h. */
252b5132 12952#include <sys/types.h>
42ecbf5e
DJ
12953int
12954main ()
12955{
252b5132 12956time_t i;
42ecbf5e
DJ
12957 ;
12958 return 0;
12959}
12960_ACEOF
12961rm -f conftest.$ac_objext
12962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12963 (eval $ac_compile) 2>conftest.er1
12964 ac_status=$?
12965 grep -v '^ *+' conftest.er1 >conftest.err
12966 rm -f conftest.er1
12967 cat conftest.err >&5
12968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12969 (exit $ac_status); } &&
7357c5b6
AM
12970 { ac_try='test -z "$ac_c_werror_flag"
12971 || test ! -s conftest.err'
42ecbf5e
DJ
12972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12973 (eval $ac_try) 2>&5
12974 ac_status=$?
12975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976 (exit $ac_status); }; } &&
12977 { ac_try='test -s conftest.$ac_objext'
12978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12979 (eval $ac_try) 2>&5
12980 ac_status=$?
12981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982 (exit $ac_status); }; }; then
252b5132
RH
12983 bu_cv_decl_time_t_types_h=yes
12984else
42ecbf5e
DJ
12985 echo "$as_me: failed program was:" >&5
12986sed 's/^/| /' conftest.$ac_ext >&5
12987
12988bu_cv_decl_time_t_types_h=no
252b5132 12989fi
42ecbf5e 12990rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
12991fi
12992
42ecbf5e
DJ
12993echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_types_h" >&5
12994echo "${ECHO_T}$bu_cv_decl_time_t_types_h" >&6
252b5132 12995if test $bu_cv_decl_time_t_types_h = yes; then
42ecbf5e
DJ
12996
12997cat >>confdefs.h <<\_ACEOF
252b5132 12998#define HAVE_TIME_T_IN_TYPES_H 1
42ecbf5e 12999_ACEOF
252b5132
RH
13000
13001fi
13002
42ecbf5e
DJ
13003echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
13004echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
13005if test "${bu_cv_decl_getopt_unistd_h+set}" = set; then
13006 echo $ECHO_N "(cached) $ECHO_C" >&6
e46eba98 13007else
42ecbf5e
DJ
13008 cat >conftest.$ac_ext <<_ACEOF
13009/* confdefs.h. */
13010_ACEOF
13011cat confdefs.h >>conftest.$ac_ext
13012cat >>conftest.$ac_ext <<_ACEOF
13013/* end confdefs.h. */
e46eba98 13014#include <unistd.h>
42ecbf5e
DJ
13015int
13016main ()
13017{
e46eba98 13018extern int getopt (int, char *const*, const char *);
42ecbf5e
DJ
13019 ;
13020 return 0;
13021}
13022_ACEOF
13023rm -f conftest.$ac_objext
13024if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13025 (eval $ac_compile) 2>conftest.er1
13026 ac_status=$?
13027 grep -v '^ *+' conftest.er1 >conftest.err
13028 rm -f conftest.er1
13029 cat conftest.err >&5
13030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13031 (exit $ac_status); } &&
7357c5b6
AM
13032 { ac_try='test -z "$ac_c_werror_flag"
13033 || test ! -s conftest.err'
42ecbf5e
DJ
13034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13035 (eval $ac_try) 2>&5
13036 ac_status=$?
13037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13038 (exit $ac_status); }; } &&
13039 { ac_try='test -s conftest.$ac_objext'
13040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13041 (eval $ac_try) 2>&5
13042 ac_status=$?
13043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13044 (exit $ac_status); }; }; then
e46eba98
NC
13045 bu_cv_decl_getopt_unistd_h=yes
13046else
42ecbf5e
DJ
13047 echo "$as_me: failed program was:" >&5
13048sed 's/^/| /' conftest.$ac_ext >&5
13049
13050bu_cv_decl_getopt_unistd_h=no
e46eba98 13051fi
42ecbf5e 13052rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e46eba98
NC
13053fi
13054
42ecbf5e
DJ
13055echo "$as_me:$LINENO: result: $bu_cv_decl_getopt_unistd_h" >&5
13056echo "${ECHO_T}$bu_cv_decl_getopt_unistd_h" >&6
e46eba98 13057if test $bu_cv_decl_getopt_unistd_h = yes; then
42ecbf5e
DJ
13058
13059cat >>confdefs.h <<\_ACEOF
e46eba98 13060#define HAVE_DECL_GETOPT 1
42ecbf5e 13061_ACEOF
e46eba98
NC
13062
13063fi
13064
252b5132
RH
13065# Under Next 3.2 <utime.h> apparently does not define struct utimbuf
13066# by default.
42ecbf5e
DJ
13067echo "$as_me:$LINENO: checking for utime.h" >&5
13068echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
13069if test "${bu_cv_header_utime_h+set}" = set; then
13070 echo $ECHO_N "(cached) $ECHO_C" >&6
13071else
13072 cat >conftest.$ac_ext <<_ACEOF
13073/* confdefs.h. */
13074_ACEOF
13075cat confdefs.h >>conftest.$ac_ext
13076cat >>conftest.$ac_ext <<_ACEOF
13077/* end confdefs.h. */
252b5132
RH
13078#include <sys/types.h>
13079#ifdef HAVE_TIME_H
13080#include <time.h>
13081#endif
13082#include <utime.h>
42ecbf5e
DJ
13083int
13084main ()
13085{
252b5132 13086struct utimbuf s;
42ecbf5e
DJ
13087 ;
13088 return 0;
13089}
13090_ACEOF
13091rm -f conftest.$ac_objext
13092if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13093 (eval $ac_compile) 2>conftest.er1
13094 ac_status=$?
13095 grep -v '^ *+' conftest.er1 >conftest.err
13096 rm -f conftest.er1
13097 cat conftest.err >&5
13098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13099 (exit $ac_status); } &&
7357c5b6
AM
13100 { ac_try='test -z "$ac_c_werror_flag"
13101 || test ! -s conftest.err'
42ecbf5e
DJ
13102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13103 (eval $ac_try) 2>&5
13104 ac_status=$?
13105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13106 (exit $ac_status); }; } &&
13107 { ac_try='test -s conftest.$ac_objext'
13108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13109 (eval $ac_try) 2>&5
13110 ac_status=$?
13111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13112 (exit $ac_status); }; }; then
252b5132
RH
13113 bu_cv_header_utime_h=yes
13114else
42ecbf5e
DJ
13115 echo "$as_me: failed program was:" >&5
13116sed 's/^/| /' conftest.$ac_ext >&5
13117
13118bu_cv_header_utime_h=no
252b5132 13119fi
42ecbf5e 13120rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
13121fi
13122
42ecbf5e
DJ
13123echo "$as_me:$LINENO: result: $bu_cv_header_utime_h" >&5
13124echo "${ECHO_T}$bu_cv_header_utime_h" >&6
252b5132 13125if test $bu_cv_header_utime_h = yes; then
42ecbf5e
DJ
13126
13127cat >>confdefs.h <<\_ACEOF
252b5132 13128#define HAVE_GOOD_UTIME_H 1
42ecbf5e 13129_ACEOF
252b5132
RH
13130
13131fi
13132
398ee8f1
SE
13133echo "$as_me:$LINENO: checking whether fprintf is declared" >&5
13134echo $ECHO_N "checking whether fprintf is declared... $ECHO_C" >&6
13135if test "${ac_cv_have_decl_fprintf+set}" = set; then
42ecbf5e 13136 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 13137else
42ecbf5e
DJ
13138 cat >conftest.$ac_ext <<_ACEOF
13139/* confdefs.h. */
13140_ACEOF
13141cat confdefs.h >>conftest.$ac_ext
13142cat >>conftest.$ac_ext <<_ACEOF
13143/* end confdefs.h. */
398ee8f1 13144$ac_includes_default
42ecbf5e
DJ
13145int
13146main ()
13147{
398ee8f1
SE
13148#ifndef fprintf
13149 char *p = (char *) fprintf;
13150#endif
13151
42ecbf5e
DJ
13152 ;
13153 return 0;
13154}
13155_ACEOF
13156rm -f conftest.$ac_objext
13157if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13158 (eval $ac_compile) 2>conftest.er1
13159 ac_status=$?
13160 grep -v '^ *+' conftest.er1 >conftest.err
13161 rm -f conftest.er1
13162 cat conftest.err >&5
13163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13164 (exit $ac_status); } &&
7357c5b6
AM
13165 { ac_try='test -z "$ac_c_werror_flag"
13166 || test ! -s conftest.err'
42ecbf5e
DJ
13167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13168 (eval $ac_try) 2>&5
13169 ac_status=$?
13170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13171 (exit $ac_status); }; } &&
13172 { ac_try='test -s conftest.$ac_objext'
13173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13174 (eval $ac_try) 2>&5
13175 ac_status=$?
13176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13177 (exit $ac_status); }; }; then
398ee8f1 13178 ac_cv_have_decl_fprintf=yes
252b5132 13179else
42ecbf5e
DJ
13180 echo "$as_me: failed program was:" >&5
13181sed 's/^/| /' conftest.$ac_ext >&5
13182
398ee8f1 13183ac_cv_have_decl_fprintf=no
252b5132 13184fi
42ecbf5e 13185rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 13186fi
398ee8f1
SE
13187echo "$as_me:$LINENO: result: $ac_cv_have_decl_fprintf" >&5
13188echo "${ECHO_T}$ac_cv_have_decl_fprintf" >&6
13189if test $ac_cv_have_decl_fprintf = yes; then
252b5132 13190
398ee8f1
SE
13191cat >>confdefs.h <<_ACEOF
13192#define HAVE_DECL_FPRINTF 1
13193_ACEOF
42ecbf5e 13194
398ee8f1
SE
13195
13196else
13197 cat >>confdefs.h <<_ACEOF
13198#define HAVE_DECL_FPRINTF 0
42ecbf5e 13199_ACEOF
252b5132 13200
252b5132 13201
3e321448
L
13202fi
13203echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
13204echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
13205if test "${ac_cv_have_decl_stpcpy+set}" = set; then
13206 echo $ECHO_N "(cached) $ECHO_C" >&6
13207else
13208 cat >conftest.$ac_ext <<_ACEOF
13209/* confdefs.h. */
13210_ACEOF
13211cat confdefs.h >>conftest.$ac_ext
13212cat >>conftest.$ac_ext <<_ACEOF
13213/* end confdefs.h. */
13214$ac_includes_default
13215int
13216main ()
13217{
13218#ifndef stpcpy
13219 char *p = (char *) stpcpy;
13220#endif
13221
13222 ;
13223 return 0;
13224}
13225_ACEOF
13226rm -f conftest.$ac_objext
13227if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13228 (eval $ac_compile) 2>conftest.er1
13229 ac_status=$?
13230 grep -v '^ *+' conftest.er1 >conftest.err
13231 rm -f conftest.er1
13232 cat conftest.err >&5
13233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13234 (exit $ac_status); } &&
7357c5b6
AM
13235 { ac_try='test -z "$ac_c_werror_flag"
13236 || test ! -s conftest.err'
3e321448
L
13237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13238 (eval $ac_try) 2>&5
13239 ac_status=$?
13240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13241 (exit $ac_status); }; } &&
13242 { ac_try='test -s conftest.$ac_objext'
13243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13244 (eval $ac_try) 2>&5
13245 ac_status=$?
13246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247 (exit $ac_status); }; }; then
13248 ac_cv_have_decl_stpcpy=yes
13249else
13250 echo "$as_me: failed program was:" >&5
13251sed 's/^/| /' conftest.$ac_ext >&5
13252
13253ac_cv_have_decl_stpcpy=no
13254fi
13255rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13256fi
13257echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
13258echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
13259if test $ac_cv_have_decl_stpcpy = yes; then
13260
13261cat >>confdefs.h <<_ACEOF
13262#define HAVE_DECL_STPCPY 1
13263_ACEOF
13264
13265
13266else
13267 cat >>confdefs.h <<_ACEOF
13268#define HAVE_DECL_STPCPY 0
13269_ACEOF
13270
13271
398ee8f1
SE
13272fi
13273echo "$as_me:$LINENO: checking whether strstr is declared" >&5
13274echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
13275if test "${ac_cv_have_decl_strstr+set}" = set; then
42ecbf5e 13276 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 13277else
42ecbf5e
DJ
13278 cat >conftest.$ac_ext <<_ACEOF
13279/* confdefs.h. */
13280_ACEOF
13281cat confdefs.h >>conftest.$ac_ext
13282cat >>conftest.$ac_ext <<_ACEOF
13283/* end confdefs.h. */
398ee8f1 13284$ac_includes_default
42ecbf5e
DJ
13285int
13286main ()
13287{
398ee8f1
SE
13288#ifndef strstr
13289 char *p = (char *) strstr;
13290#endif
13291
42ecbf5e
DJ
13292 ;
13293 return 0;
13294}
13295_ACEOF
13296rm -f conftest.$ac_objext
13297if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13298 (eval $ac_compile) 2>conftest.er1
13299 ac_status=$?
13300 grep -v '^ *+' conftest.er1 >conftest.err
13301 rm -f conftest.er1
13302 cat conftest.err >&5
13303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304 (exit $ac_status); } &&
7357c5b6
AM
13305 { ac_try='test -z "$ac_c_werror_flag"
13306 || test ! -s conftest.err'
42ecbf5e
DJ
13307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13308 (eval $ac_try) 2>&5
13309 ac_status=$?
13310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311 (exit $ac_status); }; } &&
13312 { ac_try='test -s conftest.$ac_objext'
13313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13314 (eval $ac_try) 2>&5
13315 ac_status=$?
13316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13317 (exit $ac_status); }; }; then
398ee8f1 13318 ac_cv_have_decl_strstr=yes
252b5132 13319else
42ecbf5e
DJ
13320 echo "$as_me: failed program was:" >&5
13321sed 's/^/| /' conftest.$ac_ext >&5
13322
398ee8f1 13323ac_cv_have_decl_strstr=no
252b5132 13324fi
42ecbf5e 13325rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 13326fi
398ee8f1
SE
13327echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
13328echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
13329if test $ac_cv_have_decl_strstr = yes; then
252b5132 13330
398ee8f1
SE
13331cat >>confdefs.h <<_ACEOF
13332#define HAVE_DECL_STRSTR 1
13333_ACEOF
42ecbf5e 13334
398ee8f1
SE
13335
13336else
13337 cat >>confdefs.h <<_ACEOF
13338#define HAVE_DECL_STRSTR 0
42ecbf5e 13339_ACEOF
252b5132 13340
252b5132 13341
398ee8f1
SE
13342fi
13343echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
13344echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
13345if test "${ac_cv_have_decl_sbrk+set}" = set; then
42ecbf5e 13346 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 13347else
42ecbf5e
DJ
13348 cat >conftest.$ac_ext <<_ACEOF
13349/* confdefs.h. */
13350_ACEOF
13351cat confdefs.h >>conftest.$ac_ext
13352cat >>conftest.$ac_ext <<_ACEOF
13353/* end confdefs.h. */
398ee8f1 13354$ac_includes_default
42ecbf5e
DJ
13355int
13356main ()
13357{
398ee8f1
SE
13358#ifndef sbrk
13359 char *p = (char *) sbrk;
13360#endif
13361
42ecbf5e
DJ
13362 ;
13363 return 0;
13364}
13365_ACEOF
13366rm -f conftest.$ac_objext
13367if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13368 (eval $ac_compile) 2>conftest.er1
13369 ac_status=$?
13370 grep -v '^ *+' conftest.er1 >conftest.err
13371 rm -f conftest.er1
13372 cat conftest.err >&5
13373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13374 (exit $ac_status); } &&
7357c5b6
AM
13375 { ac_try='test -z "$ac_c_werror_flag"
13376 || test ! -s conftest.err'
42ecbf5e
DJ
13377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13378 (eval $ac_try) 2>&5
13379 ac_status=$?
13380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13381 (exit $ac_status); }; } &&
13382 { ac_try='test -s conftest.$ac_objext'
13383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13384 (eval $ac_try) 2>&5
13385 ac_status=$?
13386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13387 (exit $ac_status); }; }; then
398ee8f1 13388 ac_cv_have_decl_sbrk=yes
252b5132 13389else
42ecbf5e
DJ
13390 echo "$as_me: failed program was:" >&5
13391sed 's/^/| /' conftest.$ac_ext >&5
13392
398ee8f1 13393ac_cv_have_decl_sbrk=no
252b5132 13394fi
42ecbf5e 13395rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 13396fi
398ee8f1
SE
13397echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
13398echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
13399if test $ac_cv_have_decl_sbrk = yes; then
252b5132 13400
398ee8f1
SE
13401cat >>confdefs.h <<_ACEOF
13402#define HAVE_DECL_SBRK 1
13403_ACEOF
42ecbf5e 13404
398ee8f1
SE
13405
13406else
13407 cat >>confdefs.h <<_ACEOF
13408#define HAVE_DECL_SBRK 0
42ecbf5e 13409_ACEOF
252b5132 13410
252b5132 13411
398ee8f1
SE
13412fi
13413echo "$as_me:$LINENO: checking whether getenv is declared" >&5
13414echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
13415if test "${ac_cv_have_decl_getenv+set}" = set; then
42ecbf5e 13416 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 13417else
42ecbf5e
DJ
13418 cat >conftest.$ac_ext <<_ACEOF
13419/* confdefs.h. */
13420_ACEOF
13421cat confdefs.h >>conftest.$ac_ext
13422cat >>conftest.$ac_ext <<_ACEOF
13423/* end confdefs.h. */
398ee8f1 13424$ac_includes_default
42ecbf5e
DJ
13425int
13426main ()
13427{
398ee8f1
SE
13428#ifndef getenv
13429 char *p = (char *) getenv;
13430#endif
13431
42ecbf5e
DJ
13432 ;
13433 return 0;
13434}
13435_ACEOF
13436rm -f conftest.$ac_objext
13437if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13438 (eval $ac_compile) 2>conftest.er1
13439 ac_status=$?
13440 grep -v '^ *+' conftest.er1 >conftest.err
13441 rm -f conftest.er1
13442 cat conftest.err >&5
13443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13444 (exit $ac_status); } &&
7357c5b6
AM
13445 { ac_try='test -z "$ac_c_werror_flag"
13446 || test ! -s conftest.err'
42ecbf5e
DJ
13447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13448 (eval $ac_try) 2>&5
13449 ac_status=$?
13450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13451 (exit $ac_status); }; } &&
13452 { ac_try='test -s conftest.$ac_objext'
13453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13454 (eval $ac_try) 2>&5
13455 ac_status=$?
13456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13457 (exit $ac_status); }; }; then
398ee8f1 13458 ac_cv_have_decl_getenv=yes
252b5132 13459else
42ecbf5e
DJ
13460 echo "$as_me: failed program was:" >&5
13461sed 's/^/| /' conftest.$ac_ext >&5
13462
398ee8f1 13463ac_cv_have_decl_getenv=no
252b5132 13464fi
42ecbf5e 13465rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 13466fi
398ee8f1
SE
13467echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
13468echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
13469if test $ac_cv_have_decl_getenv = yes; then
252b5132 13470
398ee8f1
SE
13471cat >>confdefs.h <<_ACEOF
13472#define HAVE_DECL_GETENV 1
13473_ACEOF
42ecbf5e 13474
398ee8f1
SE
13475
13476else
13477 cat >>confdefs.h <<_ACEOF
13478#define HAVE_DECL_GETENV 0
42ecbf5e 13479_ACEOF
252b5132 13480
252b5132 13481
398ee8f1
SE
13482fi
13483echo "$as_me:$LINENO: checking whether environ is declared" >&5
13484echo $ECHO_N "checking whether environ is declared... $ECHO_C" >&6
13485if test "${ac_cv_have_decl_environ+set}" = set; then
42ecbf5e 13486 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 13487else
42ecbf5e
DJ
13488 cat >conftest.$ac_ext <<_ACEOF
13489/* confdefs.h. */
13490_ACEOF
13491cat confdefs.h >>conftest.$ac_ext
13492cat >>conftest.$ac_ext <<_ACEOF
13493/* end confdefs.h. */
398ee8f1 13494$ac_includes_default
42ecbf5e
DJ
13495int
13496main ()
13497{
398ee8f1
SE
13498#ifndef environ
13499 char *p = (char *) environ;
13500#endif
13501
42ecbf5e
DJ
13502 ;
13503 return 0;
13504}
13505_ACEOF
13506rm -f conftest.$ac_objext
13507if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13508 (eval $ac_compile) 2>conftest.er1
13509 ac_status=$?
13510 grep -v '^ *+' conftest.er1 >conftest.err
13511 rm -f conftest.er1
13512 cat conftest.err >&5
13513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13514 (exit $ac_status); } &&
7357c5b6
AM
13515 { ac_try='test -z "$ac_c_werror_flag"
13516 || test ! -s conftest.err'
42ecbf5e
DJ
13517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13518 (eval $ac_try) 2>&5
13519 ac_status=$?
13520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13521 (exit $ac_status); }; } &&
13522 { ac_try='test -s conftest.$ac_objext'
13523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13524 (eval $ac_try) 2>&5
13525 ac_status=$?
13526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13527 (exit $ac_status); }; }; then
398ee8f1 13528 ac_cv_have_decl_environ=yes
252b5132 13529else
42ecbf5e
DJ
13530 echo "$as_me: failed program was:" >&5
13531sed 's/^/| /' conftest.$ac_ext >&5
13532
398ee8f1 13533ac_cv_have_decl_environ=no
252b5132 13534fi
42ecbf5e 13535rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 13536fi
398ee8f1
SE
13537echo "$as_me:$LINENO: result: $ac_cv_have_decl_environ" >&5
13538echo "${ECHO_T}$ac_cv_have_decl_environ" >&6
13539if test $ac_cv_have_decl_environ = yes; then
252b5132 13540
398ee8f1
SE
13541cat >>confdefs.h <<_ACEOF
13542#define HAVE_DECL_ENVIRON 1
13543_ACEOF
42ecbf5e 13544
398ee8f1
SE
13545
13546else
13547 cat >>confdefs.h <<_ACEOF
13548#define HAVE_DECL_ENVIRON 0
42ecbf5e 13549_ACEOF
252b5132 13550
252b5132 13551
398ee8f1 13552fi
b7d4af3a
JW
13553echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
13554echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
13555if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
13556 echo $ECHO_N "(cached) $ECHO_C" >&6
13557else
13558 cat >conftest.$ac_ext <<_ACEOF
13559/* confdefs.h. */
13560_ACEOF
13561cat confdefs.h >>conftest.$ac_ext
13562cat >>conftest.$ac_ext <<_ACEOF
13563/* end confdefs.h. */
13564$ac_includes_default
13565int
13566main ()
13567{
13568#ifndef getc_unlocked
13569 char *p = (char *) getc_unlocked;
13570#endif
13571
13572 ;
13573 return 0;
13574}
13575_ACEOF
13576rm -f conftest.$ac_objext
13577if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13578 (eval $ac_compile) 2>conftest.er1
13579 ac_status=$?
13580 grep -v '^ *+' conftest.er1 >conftest.err
13581 rm -f conftest.er1
13582 cat conftest.err >&5
13583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13584 (exit $ac_status); } &&
7357c5b6
AM
13585 { ac_try='test -z "$ac_c_werror_flag"
13586 || test ! -s conftest.err'
b7d4af3a
JW
13587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13588 (eval $ac_try) 2>&5
13589 ac_status=$?
13590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13591 (exit $ac_status); }; } &&
13592 { ac_try='test -s conftest.$ac_objext'
13593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13594 (eval $ac_try) 2>&5
13595 ac_status=$?
13596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13597 (exit $ac_status); }; }; then
13598 ac_cv_have_decl_getc_unlocked=yes
13599else
13600 echo "$as_me: failed program was:" >&5
13601sed 's/^/| /' conftest.$ac_ext >&5
13602
13603ac_cv_have_decl_getc_unlocked=no
13604fi
13605rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13606fi
13607echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
13608echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
13609if test $ac_cv_have_decl_getc_unlocked = yes; then
13610
13611cat >>confdefs.h <<_ACEOF
13612#define HAVE_DECL_GETC_UNLOCKED 1
13613_ACEOF
13614
13615
13616else
13617 cat >>confdefs.h <<_ACEOF
13618#define HAVE_DECL_GETC_UNLOCKED 0
13619_ACEOF
13620
13621
db50c840
EB
13622fi
13623echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
13624echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
13625if test "${ac_cv_have_decl_snprintf+set}" = set; then
13626 echo $ECHO_N "(cached) $ECHO_C" >&6
13627else
13628 cat >conftest.$ac_ext <<_ACEOF
13629/* confdefs.h. */
13630_ACEOF
13631cat confdefs.h >>conftest.$ac_ext
13632cat >>conftest.$ac_ext <<_ACEOF
13633/* end confdefs.h. */
13634$ac_includes_default
13635int
13636main ()
13637{
13638#ifndef snprintf
13639 char *p = (char *) snprintf;
13640#endif
13641
13642 ;
13643 return 0;
13644}
13645_ACEOF
13646rm -f conftest.$ac_objext
13647if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13648 (eval $ac_compile) 2>conftest.er1
13649 ac_status=$?
13650 grep -v '^ *+' conftest.er1 >conftest.err
13651 rm -f conftest.er1
13652 cat conftest.err >&5
13653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13654 (exit $ac_status); } &&
7357c5b6
AM
13655 { ac_try='test -z "$ac_c_werror_flag"
13656 || test ! -s conftest.err'
db50c840
EB
13657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13658 (eval $ac_try) 2>&5
13659 ac_status=$?
13660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13661 (exit $ac_status); }; } &&
13662 { ac_try='test -s conftest.$ac_objext'
13663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13664 (eval $ac_try) 2>&5
13665 ac_status=$?
13666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13667 (exit $ac_status); }; }; then
13668 ac_cv_have_decl_snprintf=yes
13669else
13670 echo "$as_me: failed program was:" >&5
13671sed 's/^/| /' conftest.$ac_ext >&5
13672
13673ac_cv_have_decl_snprintf=no
13674fi
13675rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13676fi
13677echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
13678echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
13679if test $ac_cv_have_decl_snprintf = yes; then
13680
13681cat >>confdefs.h <<_ACEOF
13682#define HAVE_DECL_SNPRINTF 1
13683_ACEOF
13684
13685
13686else
13687 cat >>confdefs.h <<_ACEOF
13688#define HAVE_DECL_SNPRINTF 0
13689_ACEOF
13690
13691
13692fi
13693echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
13694echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
13695if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
13696 echo $ECHO_N "(cached) $ECHO_C" >&6
13697else
13698 cat >conftest.$ac_ext <<_ACEOF
13699/* confdefs.h. */
13700_ACEOF
13701cat confdefs.h >>conftest.$ac_ext
13702cat >>conftest.$ac_ext <<_ACEOF
13703/* end confdefs.h. */
13704$ac_includes_default
13705int
13706main ()
13707{
13708#ifndef vsnprintf
13709 char *p = (char *) vsnprintf;
13710#endif
13711
13712 ;
13713 return 0;
13714}
13715_ACEOF
13716rm -f conftest.$ac_objext
13717if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13718 (eval $ac_compile) 2>conftest.er1
13719 ac_status=$?
13720 grep -v '^ *+' conftest.er1 >conftest.err
13721 rm -f conftest.er1
13722 cat conftest.err >&5
13723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13724 (exit $ac_status); } &&
7357c5b6
AM
13725 { ac_try='test -z "$ac_c_werror_flag"
13726 || test ! -s conftest.err'
db50c840
EB
13727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13728 (eval $ac_try) 2>&5
13729 ac_status=$?
13730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13731 (exit $ac_status); }; } &&
13732 { ac_try='test -s conftest.$ac_objext'
13733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13734 (eval $ac_try) 2>&5
13735 ac_status=$?
13736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13737 (exit $ac_status); }; }; then
13738 ac_cv_have_decl_vsnprintf=yes
13739else
13740 echo "$as_me: failed program was:" >&5
13741sed 's/^/| /' conftest.$ac_ext >&5
13742
13743ac_cv_have_decl_vsnprintf=no
13744fi
13745rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13746fi
13747echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
13748echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
13749if test $ac_cv_have_decl_vsnprintf = yes; then
13750
13751cat >>confdefs.h <<_ACEOF
13752#define HAVE_DECL_VSNPRINTF 1
13753_ACEOF
13754
13755
13756else
13757 cat >>confdefs.h <<_ACEOF
13758#define HAVE_DECL_VSNPRINTF 0
13759_ACEOF
13760
13761
b7d4af3a
JW
13762fi
13763
13764
252b5132 13765
1b315056
CS
13766# Link in zlib if we can. This allows us to read compressed debug
13767# sections. This is used only by readelf.c (objdump uses bfd for
13768# reading compressed sections).
13769echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
13770echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
13771if test "${ac_cv_search_zlibVersion+set}" = set; then
13772 echo $ECHO_N "(cached) $ECHO_C" >&6
13773else
13774 ac_func_search_save_LIBS=$LIBS
13775ac_cv_search_zlibVersion=no
13776cat >conftest.$ac_ext <<_ACEOF
13777/* confdefs.h. */
13778_ACEOF
13779cat confdefs.h >>conftest.$ac_ext
13780cat >>conftest.$ac_ext <<_ACEOF
13781/* end confdefs.h. */
13782
13783/* Override any gcc2 internal prototype to avoid an error. */
13784#ifdef __cplusplus
13785extern "C"
13786#endif
13787/* We use char because int might match the return type of a gcc2
13788 builtin and then its argument prototype would still apply. */
13789char zlibVersion ();
13790int
13791main ()
13792{
13793zlibVersion ();
13794 ;
13795 return 0;
13796}
13797_ACEOF
13798rm -f conftest.$ac_objext conftest$ac_exeext
13799if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13800 (eval $ac_link) 2>conftest.er1
13801 ac_status=$?
13802 grep -v '^ *+' conftest.er1 >conftest.err
13803 rm -f conftest.er1
13804 cat conftest.err >&5
13805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13806 (exit $ac_status); } &&
7357c5b6
AM
13807 { ac_try='test -z "$ac_c_werror_flag"
13808 || test ! -s conftest.err'
1b315056
CS
13809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13810 (eval $ac_try) 2>&5
13811 ac_status=$?
13812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813 (exit $ac_status); }; } &&
13814 { ac_try='test -s conftest$ac_exeext'
13815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13816 (eval $ac_try) 2>&5
13817 ac_status=$?
13818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13819 (exit $ac_status); }; }; then
13820 ac_cv_search_zlibVersion="none required"
13821else
13822 echo "$as_me: failed program was:" >&5
13823sed 's/^/| /' conftest.$ac_ext >&5
13824
13825fi
13826rm -f conftest.err conftest.$ac_objext \
13827 conftest$ac_exeext conftest.$ac_ext
13828if test "$ac_cv_search_zlibVersion" = no; then
13829 for ac_lib in z; do
13830 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13831 cat >conftest.$ac_ext <<_ACEOF
13832/* confdefs.h. */
13833_ACEOF
13834cat confdefs.h >>conftest.$ac_ext
13835cat >>conftest.$ac_ext <<_ACEOF
13836/* end confdefs.h. */
13837
13838/* Override any gcc2 internal prototype to avoid an error. */
13839#ifdef __cplusplus
13840extern "C"
13841#endif
13842/* We use char because int might match the return type of a gcc2
13843 builtin and then its argument prototype would still apply. */
13844char zlibVersion ();
13845int
13846main ()
13847{
13848zlibVersion ();
13849 ;
13850 return 0;
13851}
13852_ACEOF
13853rm -f conftest.$ac_objext conftest$ac_exeext
13854if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13855 (eval $ac_link) 2>conftest.er1
13856 ac_status=$?
13857 grep -v '^ *+' conftest.er1 >conftest.err
13858 rm -f conftest.er1
13859 cat conftest.err >&5
13860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13861 (exit $ac_status); } &&
7357c5b6
AM
13862 { ac_try='test -z "$ac_c_werror_flag"
13863 || test ! -s conftest.err'
1b315056
CS
13864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13865 (eval $ac_try) 2>&5
13866 ac_status=$?
13867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13868 (exit $ac_status); }; } &&
13869 { ac_try='test -s conftest$ac_exeext'
13870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13871 (eval $ac_try) 2>&5
13872 ac_status=$?
13873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13874 (exit $ac_status); }; }; then
13875 ac_cv_search_zlibVersion="-l$ac_lib"
13876break
13877else
13878 echo "$as_me: failed program was:" >&5
13879sed 's/^/| /' conftest.$ac_ext >&5
13880
13881fi
13882rm -f conftest.err conftest.$ac_objext \
13883 conftest$ac_exeext conftest.$ac_ext
13884 done
13885fi
13886LIBS=$ac_func_search_save_LIBS
13887fi
13888echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
13889echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
13890if test "$ac_cv_search_zlibVersion" != no; then
13891 test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS"
13892
13893for ac_header in zlib.h
13894do
13895as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13896if eval "test \"\${$as_ac_Header+set}\" = set"; then
13897 echo "$as_me:$LINENO: checking for $ac_header" >&5
13898echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13899if eval "test \"\${$as_ac_Header+set}\" = set"; then
13900 echo $ECHO_N "(cached) $ECHO_C" >&6
13901fi
13902echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13903echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13904else
13905 # Is the header compilable?
13906echo "$as_me:$LINENO: checking $ac_header usability" >&5
13907echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13908cat >conftest.$ac_ext <<_ACEOF
13909/* confdefs.h. */
13910_ACEOF
13911cat confdefs.h >>conftest.$ac_ext
13912cat >>conftest.$ac_ext <<_ACEOF
13913/* end confdefs.h. */
13914$ac_includes_default
13915#include <$ac_header>
13916_ACEOF
13917rm -f conftest.$ac_objext
13918if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13919 (eval $ac_compile) 2>conftest.er1
13920 ac_status=$?
13921 grep -v '^ *+' conftest.er1 >conftest.err
13922 rm -f conftest.er1
13923 cat conftest.err >&5
13924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13925 (exit $ac_status); } &&
7357c5b6
AM
13926 { ac_try='test -z "$ac_c_werror_flag"
13927 || test ! -s conftest.err'
1b315056
CS
13928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13929 (eval $ac_try) 2>&5
13930 ac_status=$?
13931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13932 (exit $ac_status); }; } &&
13933 { ac_try='test -s conftest.$ac_objext'
13934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13935 (eval $ac_try) 2>&5
13936 ac_status=$?
13937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13938 (exit $ac_status); }; }; then
13939 ac_header_compiler=yes
13940else
13941 echo "$as_me: failed program was:" >&5
13942sed 's/^/| /' conftest.$ac_ext >&5
13943
13944ac_header_compiler=no
13945fi
13946rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13947echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13948echo "${ECHO_T}$ac_header_compiler" >&6
13949
13950# Is the header present?
13951echo "$as_me:$LINENO: checking $ac_header presence" >&5
13952echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13953cat >conftest.$ac_ext <<_ACEOF
13954/* confdefs.h. */
13955_ACEOF
13956cat confdefs.h >>conftest.$ac_ext
13957cat >>conftest.$ac_ext <<_ACEOF
13958/* end confdefs.h. */
13959#include <$ac_header>
13960_ACEOF
13961if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13962 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13963 ac_status=$?
13964 grep -v '^ *+' conftest.er1 >conftest.err
13965 rm -f conftest.er1
13966 cat conftest.err >&5
13967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13968 (exit $ac_status); } >/dev/null; then
13969 if test -s conftest.err; then
13970 ac_cpp_err=$ac_c_preproc_warn_flag
13971 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13972 else
13973 ac_cpp_err=
13974 fi
13975else
13976 ac_cpp_err=yes
13977fi
13978if test -z "$ac_cpp_err"; then
13979 ac_header_preproc=yes
13980else
13981 echo "$as_me: failed program was:" >&5
13982sed 's/^/| /' conftest.$ac_ext >&5
13983
13984 ac_header_preproc=no
13985fi
13986rm -f conftest.err conftest.$ac_ext
13987echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13988echo "${ECHO_T}$ac_header_preproc" >&6
13989
13990# So? What about this header?
13991case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13992 yes:no: )
13993 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13994echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13995 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13996echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13997 ac_header_preproc=yes
13998 ;;
13999 no:yes:* )
14000 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14001echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14002 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14003echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14004 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14005echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14006 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14007echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14008 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14009echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14010 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14011echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14012 (
14013 cat <<\_ASBOX
14014## ------------------------------------------ ##
14015## Report this to the AC_PACKAGE_NAME lists. ##
14016## ------------------------------------------ ##
14017_ASBOX
14018 ) |
14019 sed "s/^/$as_me: WARNING: /" >&2
14020 ;;
14021esac
14022echo "$as_me:$LINENO: checking for $ac_header" >&5
14023echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14024if eval "test \"\${$as_ac_Header+set}\" = set"; then
14025 echo $ECHO_N "(cached) $ECHO_C" >&6
14026else
14027 eval "$as_ac_Header=\$ac_header_preproc"
14028fi
14029echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14030echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14031
14032fi
14033if test `eval echo '${'$as_ac_Header'}'` = yes; then
14034 cat >>confdefs.h <<_ACEOF
14035#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14036_ACEOF
14037
14038fi
14039
14040done
14041
14042fi
14043
14044
252b5132
RH
14045
14046case "${host}" in
8a965946 14047*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
42ecbf5e
DJ
14048
14049cat >>confdefs.h <<\_ACEOF
252b5132 14050#define USE_BINARY_FOPEN 1
42ecbf5e 14051_ACEOF
252b5132
RH
14052 ;;
14053esac
14054
14055# target-specific stuff:
14056
14057# Canonicalize the secondary target names.
14058if test -n "$enable_targets"; then
14059 for targ in `echo $enable_targets | sed 's/,/ /g'`
14060 do
6d83c84b 14061 result=`$ac_config_sub $targ 2>/dev/null`
252b5132
RH
14062 if test -n "$result"; then
14063 canon_targets="$canon_targets $result"
14064 else
14065 # Allow targets that config.sub doesn't recognize, like "all".
14066 canon_targets="$canon_targets $targ"
14067 fi
14068 done
14069fi
14070
5ba684e2
NC
14071if test "${ac_cv_header_iconv_h+set}" = set; then
14072 echo "$as_me:$LINENO: checking for iconv.h" >&5
14073echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
14074if test "${ac_cv_header_iconv_h+set}" = set; then
14075 echo $ECHO_N "(cached) $ECHO_C" >&6
14076fi
14077echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
14078echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
14079else
14080 # Is the header compilable?
14081echo "$as_me:$LINENO: checking iconv.h usability" >&5
14082echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
14083cat >conftest.$ac_ext <<_ACEOF
14084/* confdefs.h. */
14085_ACEOF
14086cat confdefs.h >>conftest.$ac_ext
14087cat >>conftest.$ac_ext <<_ACEOF
14088/* end confdefs.h. */
14089$ac_includes_default
14090#include <iconv.h>
14091_ACEOF
14092rm -f conftest.$ac_objext
14093if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14094 (eval $ac_compile) 2>conftest.er1
14095 ac_status=$?
14096 grep -v '^ *+' conftest.er1 >conftest.err
14097 rm -f conftest.er1
14098 cat conftest.err >&5
14099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14100 (exit $ac_status); } &&
7357c5b6
AM
14101 { ac_try='test -z "$ac_c_werror_flag"
14102 || test ! -s conftest.err'
5ba684e2
NC
14103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14104 (eval $ac_try) 2>&5
14105 ac_status=$?
14106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107 (exit $ac_status); }; } &&
14108 { ac_try='test -s conftest.$ac_objext'
14109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14110 (eval $ac_try) 2>&5
14111 ac_status=$?
14112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14113 (exit $ac_status); }; }; then
14114 ac_header_compiler=yes
14115else
14116 echo "$as_me: failed program was:" >&5
14117sed 's/^/| /' conftest.$ac_ext >&5
14118
14119ac_header_compiler=no
14120fi
14121rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14122echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14123echo "${ECHO_T}$ac_header_compiler" >&6
14124
14125# Is the header present?
14126echo "$as_me:$LINENO: checking iconv.h presence" >&5
14127echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
14128cat >conftest.$ac_ext <<_ACEOF
14129/* confdefs.h. */
14130_ACEOF
14131cat confdefs.h >>conftest.$ac_ext
14132cat >>conftest.$ac_ext <<_ACEOF
14133/* end confdefs.h. */
14134#include <iconv.h>
14135_ACEOF
14136if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14137 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14138 ac_status=$?
14139 grep -v '^ *+' conftest.er1 >conftest.err
14140 rm -f conftest.er1
14141 cat conftest.err >&5
14142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14143 (exit $ac_status); } >/dev/null; then
14144 if test -s conftest.err; then
14145 ac_cpp_err=$ac_c_preproc_warn_flag
14146 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14147 else
14148 ac_cpp_err=
14149 fi
14150else
14151 ac_cpp_err=yes
14152fi
14153if test -z "$ac_cpp_err"; then
14154 ac_header_preproc=yes
14155else
14156 echo "$as_me: failed program was:" >&5
14157sed 's/^/| /' conftest.$ac_ext >&5
14158
14159 ac_header_preproc=no
14160fi
14161rm -f conftest.err conftest.$ac_ext
14162echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14163echo "${ECHO_T}$ac_header_preproc" >&6
14164
14165# So? What about this header?
14166case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14167 yes:no: )
14168 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
14169echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14170 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
14171echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
14172 ac_header_preproc=yes
14173 ;;
14174 no:yes:* )
14175 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
14176echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
14177 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
14178echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
14179 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
14180echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
14181 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
14182echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
14183 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
14184echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
14185 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
14186echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
14187 (
14188 cat <<\_ASBOX
14189## ------------------------------------------ ##
14190## Report this to the AC_PACKAGE_NAME lists. ##
14191## ------------------------------------------ ##
14192_ASBOX
14193 ) |
14194 sed "s/^/$as_me: WARNING: /" >&2
14195 ;;
14196esac
14197echo "$as_me:$LINENO: checking for iconv.h" >&5
14198echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
14199if test "${ac_cv_header_iconv_h+set}" = set; then
14200 echo $ECHO_N "(cached) $ECHO_C" >&6
14201else
14202 ac_cv_header_iconv_h=$ac_header_preproc
14203fi
14204echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
14205echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
14206
14207fi
14208
14209
14210
14211 if test "X$prefix" = "XNONE"; then
14212 acl_final_prefix="$ac_default_prefix"
14213 else
14214 acl_final_prefix="$prefix"
14215 fi
14216 if test "X$exec_prefix" = "XNONE"; then
14217 acl_final_exec_prefix='${prefix}'
14218 else
14219 acl_final_exec_prefix="$exec_prefix"
14220 fi
14221 acl_save_prefix="$prefix"
14222 prefix="$acl_final_prefix"
14223 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
14224 prefix="$acl_save_prefix"
14225
14226
14227# Check whether --with-gnu-ld or --without-gnu-ld was given.
14228if test "${with_gnu_ld+set}" = set; then
14229 withval="$with_gnu_ld"
14230 test "$withval" = no || with_gnu_ld=yes
14231else
14232 with_gnu_ld=no
14233fi;
14234# Prepare PATH_SEPARATOR.
14235# The user is always right.
14236if test "${PATH_SEPARATOR+set}" != set; then
14237 echo "#! /bin/sh" >conf$$.sh
14238 echo "exit 0" >>conf$$.sh
14239 chmod +x conf$$.sh
14240 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14241 PATH_SEPARATOR=';'
14242 else
14243 PATH_SEPARATOR=:
14244 fi
14245 rm -f conf$$.sh
14246fi
14247ac_prog=ld
14248if test "$GCC" = yes; then
14249 # Check if gcc -print-prog-name=ld gives a path.
14250 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
14251echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
14252 case $host in
14253 *-*-mingw*)
14254 # gcc leaves a trailing carriage return which upsets mingw
14255 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14256 *)
14257 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14258 esac
14259 case $ac_prog in
14260 # Accept absolute paths.
14261 [\\/]* | [A-Za-z]:[\\/]*)
14262 re_direlt='/[^/][^/]*/\.\./'
14263 # Canonicalize the path of ld
14264 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
14265 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
14266 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
14267 done
14268 test -z "$LD" && LD="$ac_prog"
14269 ;;
14270 "")
14271 # If it fails, then pretend we aren't using GCC.
14272 ac_prog=ld
14273 ;;
14274 *)
14275 # If it is relative, then search for the first ld in PATH.
14276 with_gnu_ld=unknown
14277 ;;
14278 esac
14279elif test "$with_gnu_ld" = yes; then
14280 echo "$as_me:$LINENO: checking for GNU ld" >&5
14281echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
14282else
14283 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
14284echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
14285fi
14286if test "${acl_cv_path_LD+set}" = set; then
14287 echo $ECHO_N "(cached) $ECHO_C" >&6
14288else
14289 if test -z "$LD"; then
14290 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
14291 for ac_dir in $PATH; do
14292 test -z "$ac_dir" && ac_dir=.
14293 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14294 acl_cv_path_LD="$ac_dir/$ac_prog"
14295 # Check to see if the program is GNU ld. I'd rather use --version,
14296 # but apparently some GNU ld's only accept -v.
14297 # Break only if it was the GNU/non-GNU ld that we prefer.
14298 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
14299 test "$with_gnu_ld" != no && break
14300 else
14301 test "$with_gnu_ld" != yes && break
14302 fi
14303 fi
14304 done
14305 IFS="$ac_save_ifs"
14306else
14307 acl_cv_path_LD="$LD" # Let the user override the test with a path.
14308fi
14309fi
14310
14311LD="$acl_cv_path_LD"
14312if test -n "$LD"; then
14313 echo "$as_me:$LINENO: result: $LD" >&5
14314echo "${ECHO_T}$LD" >&6
14315else
14316 echo "$as_me:$LINENO: result: no" >&5
14317echo "${ECHO_T}no" >&6
14318fi
14319test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
14320echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
14321 { (exit 1); exit 1; }; }
14322echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
14323echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
14324if test "${acl_cv_prog_gnu_ld+set}" = set; then
14325 echo $ECHO_N "(cached) $ECHO_C" >&6
14326else
14327 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
14328if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
14329 acl_cv_prog_gnu_ld=yes
14330else
14331 acl_cv_prog_gnu_ld=no
14332fi
14333fi
14334echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
14335echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
14336with_gnu_ld=$acl_cv_prog_gnu_ld
14337
14338
14339
14340 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
14341echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
14342if test "${acl_cv_rpath+set}" = set; then
14343 echo $ECHO_N "(cached) $ECHO_C" >&6
14344else
14345
14346 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
14347 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
14348 . ./conftest.sh
14349 rm -f ./conftest.sh
14350 acl_cv_rpath=done
14351
14352fi
14353echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
14354echo "${ECHO_T}$acl_cv_rpath" >&6
14355 wl="$acl_cv_wl"
14356 libext="$acl_cv_libext"
14357 shlibext="$acl_cv_shlibext"
14358 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
14359 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
14360 hardcode_direct="$acl_cv_hardcode_direct"
14361 hardcode_minus_L="$acl_cv_hardcode_minus_L"
14362 # Check whether --enable-rpath or --disable-rpath was given.
14363if test "${enable_rpath+set}" = set; then
14364 enableval="$enable_rpath"
14365 :
14366else
14367 enable_rpath=yes
14368fi;
14369
14370
14371
14372
14373
14374
14375
14376 use_additional=yes
14377
14378 acl_save_prefix="$prefix"
14379 prefix="$acl_final_prefix"
14380 acl_save_exec_prefix="$exec_prefix"
14381 exec_prefix="$acl_final_exec_prefix"
14382
14383 eval additional_includedir=\"$includedir\"
14384 eval additional_libdir=\"$libdir\"
14385
14386 exec_prefix="$acl_save_exec_prefix"
14387 prefix="$acl_save_prefix"
14388
14389
14390# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
14391if test "${with_libiconv_prefix+set}" = set; then
14392 withval="$with_libiconv_prefix"
14393
14394 if test "X$withval" = "Xno"; then
14395 use_additional=no
14396 else
14397 if test "X$withval" = "X"; then
14398
14399 acl_save_prefix="$prefix"
14400 prefix="$acl_final_prefix"
14401 acl_save_exec_prefix="$exec_prefix"
14402 exec_prefix="$acl_final_exec_prefix"
14403
14404 eval additional_includedir=\"$includedir\"
14405 eval additional_libdir=\"$libdir\"
14406
14407 exec_prefix="$acl_save_exec_prefix"
14408 prefix="$acl_save_prefix"
14409
14410 else
14411 additional_includedir="$withval/include"
14412 additional_libdir="$withval/lib"
14413 fi
14414 fi
14415
14416fi;
14417 LIBICONV=
14418 LTLIBICONV=
14419 INCICONV=
14420 rpathdirs=
14421 ltrpathdirs=
14422 names_already_handled=
14423 names_next_round='iconv '
14424 while test -n "$names_next_round"; do
14425 names_this_round="$names_next_round"
14426 names_next_round=
14427 for name in $names_this_round; do
14428 already_handled=
14429 for n in $names_already_handled; do
14430 if test "$n" = "$name"; then
14431 already_handled=yes
14432 break
14433 fi
14434 done
14435 if test -z "$already_handled"; then
14436 names_already_handled="$names_already_handled $name"
14437 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14438 eval value=\"\$HAVE_LIB$uppername\"
14439 if test -n "$value"; then
14440 if test "$value" = yes; then
14441 eval value=\"\$LIB$uppername\"
14442 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
14443 eval value=\"\$LTLIB$uppername\"
14444 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
14445 else
14446 :
14447 fi
14448 else
14449 found_dir=
14450 found_la=
14451 found_so=
14452 found_a=
14453 if test $use_additional = yes; then
14454 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
14455 found_dir="$additional_libdir"
14456 found_so="$additional_libdir/lib$name.$shlibext"
14457 if test -f "$additional_libdir/lib$name.la"; then
14458 found_la="$additional_libdir/lib$name.la"
14459 fi
14460 else
14461 if test -f "$additional_libdir/lib$name.$libext"; then
14462 found_dir="$additional_libdir"
14463 found_a="$additional_libdir/lib$name.$libext"
14464 if test -f "$additional_libdir/lib$name.la"; then
14465 found_la="$additional_libdir/lib$name.la"
14466 fi
14467 fi
14468 fi
14469 fi
14470 if test "X$found_dir" = "X"; then
14471 for x in $LDFLAGS $LTLIBICONV; do
14472
14473 acl_save_prefix="$prefix"
14474 prefix="$acl_final_prefix"
14475 acl_save_exec_prefix="$exec_prefix"
14476 exec_prefix="$acl_final_exec_prefix"
14477 eval x=\"$x\"
14478 exec_prefix="$acl_save_exec_prefix"
14479 prefix="$acl_save_prefix"
14480
14481 case "$x" in
14482 -L*)
14483 dir=`echo "X$x" | sed -e 's/^X-L//'`
14484 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
14485 found_dir="$dir"
14486 found_so="$dir/lib$name.$shlibext"
14487 if test -f "$dir/lib$name.la"; then
14488 found_la="$dir/lib$name.la"
14489 fi
14490 else
14491 if test -f "$dir/lib$name.$libext"; then
14492 found_dir="$dir"
14493 found_a="$dir/lib$name.$libext"
14494 if test -f "$dir/lib$name.la"; then
14495 found_la="$dir/lib$name.la"
14496 fi
14497 fi
14498 fi
14499 ;;
14500 esac
14501 if test "X$found_dir" != "X"; then
14502 break
14503 fi
14504 done
14505 fi
14506 if test "X$found_dir" != "X"; then
14507 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
14508 if test "X$found_so" != "X"; then
14509 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
14510 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14511 else
14512 haveit=
14513 for x in $ltrpathdirs; do
14514 if test "X$x" = "X$found_dir"; then
14515 haveit=yes
14516 break
14517 fi
14518 done
14519 if test -z "$haveit"; then
14520 ltrpathdirs="$ltrpathdirs $found_dir"
14521 fi
14522 if test "$hardcode_direct" = yes; then
14523 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14524 else
14525 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14526 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14527 haveit=
14528 for x in $rpathdirs; do
14529 if test "X$x" = "X$found_dir"; then
14530 haveit=yes
14531 break
14532 fi
14533 done
14534 if test -z "$haveit"; then
14535 rpathdirs="$rpathdirs $found_dir"
14536 fi
14537 else
14538 haveit=
14539 for x in $LDFLAGS $LIBICONV; do
14540
14541 acl_save_prefix="$prefix"
14542 prefix="$acl_final_prefix"
14543 acl_save_exec_prefix="$exec_prefix"
14544 exec_prefix="$acl_final_exec_prefix"
14545 eval x=\"$x\"
14546 exec_prefix="$acl_save_exec_prefix"
14547 prefix="$acl_save_prefix"
14548
14549 if test "X$x" = "X-L$found_dir"; then
14550 haveit=yes
14551 break
14552 fi
14553 done
14554 if test -z "$haveit"; then
14555 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
14556 fi
14557 if test "$hardcode_minus_L" != no; then
14558 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14559 else
14560 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14561 fi
14562 fi
14563 fi
14564 fi
14565 else
14566 if test "X$found_a" != "X"; then
14567 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
14568 else
14569 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
14570 fi
14571 fi
14572 additional_includedir=
14573 case "$found_dir" in
14574 */lib | */lib/)
14575 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14576 additional_includedir="$basedir/include"
14577 ;;
14578 esac
14579 if test "X$additional_includedir" != "X"; then
14580 if test "X$additional_includedir" != "X/usr/include"; then
14581 haveit=
14582 if test "X$additional_includedir" = "X/usr/local/include"; then
14583 if test -n "$GCC"; then
14584 case $host_os in
14585 linux*) haveit=yes;;
14586 esac
14587 fi
14588 fi
14589 if test -z "$haveit"; then
14590 for x in $CPPFLAGS $INCICONV; do
14591
14592 acl_save_prefix="$prefix"
14593 prefix="$acl_final_prefix"
14594 acl_save_exec_prefix="$exec_prefix"
14595 exec_prefix="$acl_final_exec_prefix"
14596 eval x=\"$x\"
14597 exec_prefix="$acl_save_exec_prefix"
14598 prefix="$acl_save_prefix"
14599
14600 if test "X$x" = "X-I$additional_includedir"; then
14601 haveit=yes
14602 break
14603 fi
14604 done
14605 if test -z "$haveit"; then
14606 if test -d "$additional_includedir"; then
14607 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
14608 fi
14609 fi
14610 fi
14611 fi
14612 fi
14613 if test -n "$found_la"; then
14614 save_libdir="$libdir"
14615 case "$found_la" in
14616 */* | *\\*) . "$found_la" ;;
14617 *) . "./$found_la" ;;
14618 esac
14619 libdir="$save_libdir"
14620 for dep in $dependency_libs; do
14621 case "$dep" in
14622 -L*)
14623 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14624 if test "X$additional_libdir" != "X/usr/lib"; then
14625 haveit=
14626 if test "X$additional_libdir" = "X/usr/local/lib"; then
14627 if test -n "$GCC"; then
14628 case $host_os in
14629 linux*) haveit=yes;;
14630 esac
14631 fi
14632 fi
14633 if test -z "$haveit"; then
14634 haveit=
14635 for x in $LDFLAGS $LIBICONV; do
14636
14637 acl_save_prefix="$prefix"
14638 prefix="$acl_final_prefix"
14639 acl_save_exec_prefix="$exec_prefix"
14640 exec_prefix="$acl_final_exec_prefix"
14641 eval x=\"$x\"
14642 exec_prefix="$acl_save_exec_prefix"
14643 prefix="$acl_save_prefix"
14644
14645 if test "X$x" = "X-L$additional_libdir"; then
14646 haveit=yes
14647 break
14648 fi
14649 done
14650 if test -z "$haveit"; then
14651 if test -d "$additional_libdir"; then
14652 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
14653 fi
14654 fi
14655 haveit=
14656 for x in $LDFLAGS $LTLIBICONV; do
14657
14658 acl_save_prefix="$prefix"
14659 prefix="$acl_final_prefix"
14660 acl_save_exec_prefix="$exec_prefix"
14661 exec_prefix="$acl_final_exec_prefix"
14662 eval x=\"$x\"
14663 exec_prefix="$acl_save_exec_prefix"
14664 prefix="$acl_save_prefix"
14665
14666 if test "X$x" = "X-L$additional_libdir"; then
14667 haveit=yes
14668 break
14669 fi
14670 done
14671 if test -z "$haveit"; then
14672 if test -d "$additional_libdir"; then
14673 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
14674 fi
14675 fi
14676 fi
14677 fi
14678 ;;
14679 -R*)
14680 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14681 if test "$enable_rpath" != no; then
14682 haveit=
14683 for x in $rpathdirs; do
14684 if test "X$x" = "X$dir"; then
14685 haveit=yes
14686 break
14687 fi
14688 done
14689 if test -z "$haveit"; then
14690 rpathdirs="$rpathdirs $dir"
14691 fi
14692 haveit=
14693 for x in $ltrpathdirs; do
14694 if test "X$x" = "X$dir"; then
14695 haveit=yes
14696 break
14697 fi
14698 done
14699 if test -z "$haveit"; then
14700 ltrpathdirs="$ltrpathdirs $dir"
14701 fi
14702 fi
14703 ;;
14704 -l*)
14705 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14706 ;;
14707 *.la)
14708 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14709 ;;
14710 *)
14711 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
14712 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14713 ;;
14714 esac
14715 done
14716 fi
14717 else
14718 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14719 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14720 fi
14721 fi
14722 fi
14723 done
14724 done
14725 if test "X$rpathdirs" != "X"; then
14726 if test -n "$hardcode_libdir_separator"; then
14727 alldirs=
14728 for found_dir in $rpathdirs; do
14729 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14730 done
14731 acl_save_libdir="$libdir"
14732 libdir="$alldirs"
14733 eval flag=\"$hardcode_libdir_flag_spec\"
14734 libdir="$acl_save_libdir"
14735 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14736 else
14737 for found_dir in $rpathdirs; do
14738 acl_save_libdir="$libdir"
14739 libdir="$found_dir"
14740 eval flag=\"$hardcode_libdir_flag_spec\"
14741 libdir="$acl_save_libdir"
14742 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14743 done
14744 fi
14745 fi
14746 if test "X$ltrpathdirs" != "X"; then
14747 for found_dir in $ltrpathdirs; do
14748 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14749 done
14750 fi
14751
14752
14753
14754
14755
14756
14757
14758 am_save_CPPFLAGS="$CPPFLAGS"
14759
14760 for element in $INCICONV; do
14761 haveit=
14762 for x in $CPPFLAGS; do
14763
14764 acl_save_prefix="$prefix"
14765 prefix="$acl_final_prefix"
14766 acl_save_exec_prefix="$exec_prefix"
14767 exec_prefix="$acl_final_exec_prefix"
14768 eval x=\"$x\"
14769 exec_prefix="$acl_save_exec_prefix"
14770 prefix="$acl_save_prefix"
14771
14772 if test "X$x" = "X$element"; then
14773 haveit=yes
14774 break
14775 fi
14776 done
14777 if test -z "$haveit"; then
14778 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14779 fi
14780 done
14781
14782
14783 echo "$as_me:$LINENO: checking for iconv" >&5
14784echo $ECHO_N "checking for iconv... $ECHO_C" >&6
14785if test "${am_cv_func_iconv+set}" = set; then
14786 echo $ECHO_N "(cached) $ECHO_C" >&6
14787else
14788
14789 am_cv_func_iconv="no, consider installing GNU libiconv"
14790 am_cv_lib_iconv=no
14791 cat >conftest.$ac_ext <<_ACEOF
14792/* confdefs.h. */
14793_ACEOF
14794cat confdefs.h >>conftest.$ac_ext
14795cat >>conftest.$ac_ext <<_ACEOF
14796/* end confdefs.h. */
14797#include <stdlib.h>
14798#include <iconv.h>
14799int
14800main ()
14801{
14802iconv_t cd = iconv_open("","");
14803 iconv(cd,NULL,NULL,NULL,NULL);
14804 iconv_close(cd);
14805 ;
14806 return 0;
14807}
14808_ACEOF
14809rm -f conftest.$ac_objext conftest$ac_exeext
14810if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14811 (eval $ac_link) 2>conftest.er1
14812 ac_status=$?
14813 grep -v '^ *+' conftest.er1 >conftest.err
14814 rm -f conftest.er1
14815 cat conftest.err >&5
14816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14817 (exit $ac_status); } &&
7357c5b6
AM
14818 { ac_try='test -z "$ac_c_werror_flag"
14819 || test ! -s conftest.err'
5ba684e2
NC
14820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14821 (eval $ac_try) 2>&5
14822 ac_status=$?
14823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14824 (exit $ac_status); }; } &&
14825 { ac_try='test -s conftest$ac_exeext'
14826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14827 (eval $ac_try) 2>&5
14828 ac_status=$?
14829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14830 (exit $ac_status); }; }; then
14831 am_cv_func_iconv=yes
14832else
14833 echo "$as_me: failed program was:" >&5
14834sed 's/^/| /' conftest.$ac_ext >&5
14835
14836fi
14837rm -f conftest.err conftest.$ac_objext \
14838 conftest$ac_exeext conftest.$ac_ext
14839 if test "$am_cv_func_iconv" != yes; then
14840 am_save_LIBS="$LIBS"
14841 LIBS="$LIBS $LIBICONV"
14842 cat >conftest.$ac_ext <<_ACEOF
14843/* confdefs.h. */
14844_ACEOF
14845cat confdefs.h >>conftest.$ac_ext
14846cat >>conftest.$ac_ext <<_ACEOF
14847/* end confdefs.h. */
14848#include <stdlib.h>
14849#include <iconv.h>
14850int
14851main ()
14852{
14853iconv_t cd = iconv_open("","");
14854 iconv(cd,NULL,NULL,NULL,NULL);
14855 iconv_close(cd);
14856 ;
14857 return 0;
14858}
14859_ACEOF
14860rm -f conftest.$ac_objext conftest$ac_exeext
14861if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14862 (eval $ac_link) 2>conftest.er1
14863 ac_status=$?
14864 grep -v '^ *+' conftest.er1 >conftest.err
14865 rm -f conftest.er1
14866 cat conftest.err >&5
14867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14868 (exit $ac_status); } &&
7357c5b6
AM
14869 { ac_try='test -z "$ac_c_werror_flag"
14870 || test ! -s conftest.err'
5ba684e2
NC
14871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14872 (eval $ac_try) 2>&5
14873 ac_status=$?
14874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14875 (exit $ac_status); }; } &&
14876 { ac_try='test -s conftest$ac_exeext'
14877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14878 (eval $ac_try) 2>&5
14879 ac_status=$?
14880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14881 (exit $ac_status); }; }; then
14882 am_cv_lib_iconv=yes
14883 am_cv_func_iconv=yes
14884else
14885 echo "$as_me: failed program was:" >&5
14886sed 's/^/| /' conftest.$ac_ext >&5
14887
14888fi
14889rm -f conftest.err conftest.$ac_objext \
14890 conftest$ac_exeext conftest.$ac_ext
14891 LIBS="$am_save_LIBS"
14892 fi
14893
14894fi
14895echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
14896echo "${ECHO_T}$am_cv_func_iconv" >&6
14897 if test "$am_cv_func_iconv" = yes; then
14898
14899cat >>confdefs.h <<\_ACEOF
14900#define HAVE_ICONV 1
14901_ACEOF
14902
14903 fi
14904 if test "$am_cv_lib_iconv" = yes; then
14905 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
14906echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
14907 echo "$as_me:$LINENO: result: $LIBICONV" >&5
14908echo "${ECHO_T}$LIBICONV" >&6
14909 else
14910 CPPFLAGS="$am_save_CPPFLAGS"
14911 LIBICONV=
14912 LTLIBICONV=
14913 fi
14914
14915
14916
14917 if test "$am_cv_func_iconv" = yes; then
14918 echo "$as_me:$LINENO: checking for iconv declaration" >&5
14919echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
14920 if test "${am_cv_proto_iconv+set}" = set; then
14921 echo $ECHO_N "(cached) $ECHO_C" >&6
14922else
14923
14924 cat >conftest.$ac_ext <<_ACEOF
14925/* confdefs.h. */
14926_ACEOF
14927cat confdefs.h >>conftest.$ac_ext
14928cat >>conftest.$ac_ext <<_ACEOF
14929/* end confdefs.h. */
14930
14931#include <stdlib.h>
14932#include <iconv.h>
14933extern
14934#ifdef __cplusplus
14935"C"
14936#endif
14937#if defined(__STDC__) || defined(__cplusplus)
14938size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
14939#else
14940size_t iconv();
14941#endif
14942
14943int
14944main ()
14945{
14946
14947 ;
14948 return 0;
14949}
14950_ACEOF
14951rm -f conftest.$ac_objext
14952if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14953 (eval $ac_compile) 2>conftest.er1
14954 ac_status=$?
14955 grep -v '^ *+' conftest.er1 >conftest.err
14956 rm -f conftest.er1
14957 cat conftest.err >&5
14958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14959 (exit $ac_status); } &&
7357c5b6
AM
14960 { ac_try='test -z "$ac_c_werror_flag"
14961 || test ! -s conftest.err'
5ba684e2
NC
14962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14963 (eval $ac_try) 2>&5
14964 ac_status=$?
14965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14966 (exit $ac_status); }; } &&
14967 { ac_try='test -s conftest.$ac_objext'
14968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14969 (eval $ac_try) 2>&5
14970 ac_status=$?
14971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14972 (exit $ac_status); }; }; then
14973 am_cv_proto_iconv_arg1=""
14974else
14975 echo "$as_me: failed program was:" >&5
14976sed 's/^/| /' conftest.$ac_ext >&5
14977
14978am_cv_proto_iconv_arg1="const"
14979fi
14980rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14981 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
14982fi
14983
14984 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
14985 echo "$as_me:$LINENO: result: ${ac_t:-
14986 }$am_cv_proto_iconv" >&5
14987echo "${ECHO_T}${ac_t:-
14988 }$am_cv_proto_iconv" >&6
14989
14990cat >>confdefs.h <<_ACEOF
14991#define ICONV_CONST $am_cv_proto_iconv_arg1
14992_ACEOF
14993
14994 fi
14995
14996
252b5132
RH
14997all_targets=false
14998BUILD_NLMCONV=
14999NLMCONV_DEFS=
15000BUILD_SRCONV=
15001BUILD_DLLTOOL=
15002DLLTOOL_DEFS=
7aad4c3d 15003DLLTOOL_DEFAULT=
252b5132 15004BUILD_WINDRES=
692ed3e7 15005BUILD_WINDMC=
252b5132
RH
15006BUILD_DLLWRAP=
15007BUILD_MISC=
1d97d67f 15008BUILD_INSTALL_MISC=
8b1e6df3 15009OBJDUMP_DEFS=
252b5132
RH
15010
15011for targ in $target $canon_targets
15012do
15013 if test "x$targ" = "xall"; then
15014 all_targets=true
15015 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
15016 BUILD_SRCONV='$(SRCONV_PROG)'
15017 NLMCONV_DEFS="-DNLMCONV_I386 -DNLMCONV_ALPHA -DNLMCONV_POWERPC -DNLMCONV_SPARC"
1d97d67f 15018 BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
003bc0ba
NC
15019 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
15020 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
15021 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
15022 if test -z "$DLLTOOL_DEFAULT"; then
15023 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
15024 fi
15025 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
15026 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
252b5132
RH
15027 else
15028 case $targ in
42ecbf5e 15029 i[3-7]86*-*-netware*)
252b5132
RH
15030 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
15031 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_I386"
15032 ;;
15033 alpha*-*-netware*)
15034 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
15035 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_ALPHA"
15036 ;;
15037 powerpc*-*-netware*)
15038 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
15039 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_POWERPC"
15040 ;;
15041 sparc*-*-netware*)
15042 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
15043 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_SPARC"
15044 ;;
15045 esac
15046 case $targ in
15047 *-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;;
15048 esac
15049 case $targ in
a8c548cb
NC
15050 arm-epoc-pe*)
15051 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
15052 if test -z "$DLLTOOL_DEFAULT"; then
15053 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_EPOC"
15054 fi
a8c548cb
NC
15055 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_EPOC -DDLLTOOL_ARM"
15056 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 15057 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
a8c548cb 15058 ;;
7148cc28
NC
15059 arm-wince-pe* | arm-*-wince)
15060 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
15061 if test -z "$DLLTOOL_DEFAULT"; then
15062 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_WINCE"
15063 fi
7148cc28
NC
15064 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_WINCE -DDLLTOOL_ARM"
15065 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 15066 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
7148cc28
NC
15067 ;;
15068 arm-*-pe*)
252b5132 15069 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
15070 if test -z "$DLLTOOL_DEFAULT"; then
15071 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
15072 fi
252b5132
RH
15073 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
15074 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 15075 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
7a7b06ef 15076 ;;
27a710e5 15077 thumb-*-pe*)
252b5132 15078 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
15079 if test -z "$DLLTOOL_DEFAULT"; then
15080 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
15081 fi
252b5132
RH
15082 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
15083 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 15084 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
7a7b06ef 15085 ;;
42037fe5 15086 x86_64-*-mingw*)
99ad8390 15087 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
15088 if test -z "$DLLTOOL_DEFAULT"; then
15089 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MX86_64"
15090 fi
99ad8390
NC
15091 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MX86_64"
15092 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 15093 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
99ad8390
NC
15094 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
15095 ;;
80c7c40a 15096 i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32** | i[3-7]86-*-netbsdpe*)
252b5132 15097 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
15098 if test -z "$DLLTOOL_DEFAULT"; then
15099 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
15100 fi
252b5132
RH
15101 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
15102 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 15103 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
252b5132 15104 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
7a7b06ef 15105 ;;
80c7c40a 15106 i[3-7]86-*-interix)
7a7b06ef 15107 BUILD_DLLTOOL='$(DLLTOOL_PROG)'
7aad4c3d
L
15108 if test -z "$DLLTOOL_DEFAULT"; then
15109 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
15110 fi
7a7b06ef
ILT
15111 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
15112 ;;
f0660b73
NC
15113 powerpc*-aix5.[01])
15114 ;;
15115 powerpc*-aix5.*)
15116 OBJDUMP_DEFS="-DAIX_WEAK_SUPPORT"
15117 ;;
e1d5b1e7 15118 powerpc*-*-pe* | powerpc*-*-cygwin*)
252b5132 15119 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
15120 if test -z "$DLLTOOL_DEFAULT"; then
15121 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_PPC"
15122 fi
252b5132
RH
15123 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_PPC"
15124 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 15125 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
8a0e0f38 15126 ;;
59678365 15127 powerpc*-*-linux* | powerpc*-*-elf* | powerpc*-*-eabi*)
1d97d67f 15128 BUILD_INSTALL_MISC="${BUILD_INSTALL_MISC} embedspu"
669a9a2a 15129 ;;
e1d5b1e7 15130 sh*-*-pe)
8a0e0f38 15131 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
15132 if test -z "$DLLTOOL_DEFAULT"; then
15133 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_SH"
15134 fi
8a0e0f38
NC
15135 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH"
15136 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 15137 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
8a0e0f38 15138 ;;
cd14b966 15139 spu-*-*)
1d97d67f 15140 BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
cd14b966 15141 ;;
e1d5b1e7 15142 mips*-*-pe)
8a0e0f38 15143 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
15144 if test -z "$DLLTOOL_DEFAULT"; then
15145 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MIPS"
15146 fi
8a0e0f38
NC
15147 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS"
15148 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 15149 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
7a7b06ef 15150 ;;
27a710e5 15151 mcore-*-pe)
661016bb 15152 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
15153 if test -z "$DLLTOOL_DEFAULT"; then
15154 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE"
15155 fi
661016bb
NC
15156 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
15157 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 15158 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
7a7b06ef 15159 ;;
27a710e5 15160 mcore-*-elf)
661016bb 15161 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
15162 if test -z "$DLLTOOL_DEFAULT"; then
15163 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE_ELF"
15164 fi
661016bb 15165 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
7a7b06ef 15166 ;;
15ab5209
DB
15167 mep-*)
15168 OBJDUMP_DEFS="-DSKIP_ZEROES=256 -DSKIP_ZEROES_AT_END=0"
15169 ;;
252b5132
RH
15170 esac
15171 fi
15172done
15173
7aad4c3d
L
15174DLLTOOL_DEFS="$DLLTOOL_DEFS $DLLTOOL_DEFAULT"
15175
42ecbf5e
DJ
15176if test "${with_windres+set}" = set; then
15177 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
15178fi
15179
692ed3e7
NC
15180if test "${with_windmc+set}" = set; then
15181 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
15182fi
15183
15184
42ecbf5e
DJ
15185
15186
15187
15188
15189
15190
15191
15192
15193
15194
15195
1d97d67f 15196
42ecbf5e
DJ
15197cat >>confdefs.h <<_ACEOF
15198#define TARGET "${target}"
15199_ACEOF
15200
15201
15202targ=$target
15203. $srcdir/../bfd/config.bfd
15204if test "x$targ_underscore" = "xyes"; then
15205 UNDERSCORE=1
15206else
15207 UNDERSCORE=0
15208fi
15209
15210cat >>confdefs.h <<_ACEOF
15211#define TARGET_PREPENDS_UNDERSCORE $UNDERSCORE
15212_ACEOF
15213
15214
15215# Emulation
15216for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
15217do
15218 # Canonicalize the secondary target names.
15219 result=`$ac_config_sub $targ_alias 2>/dev/null`
15220 if test -n "$result"; then
15221 targ=$result
15222 else
15223 targ=$targ_alias
15224 fi
15225
15226 . ${srcdir}/configure.tgt
15227
15228 EMULATION=$targ_emul
15229 EMULATION_VECTOR=$targ_emul_vector
15230done
15231
15232
15233
15234
108a6f8e
CD
15235# Required for html and install-html
15236
15237
15238
15239
42ecbf5e 15240 ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
da594c4a 15241
42ecbf5e
DJ
15242cat >confcache <<\_ACEOF
15243# This file is a shell script that caches the results of configure
15244# tests run on this system so they can be shared between configure
15245# scripts and configure runs, see configure's option --config-cache.
15246# It is not useful on other systems. If it contains results you don't
15247# want to keep, you may remove or edit it.
15248#
15249# config.status only pays attention to the cache file if you give it
15250# the --recheck option to rerun configure.
15251#
15252# `ac_cv_env_foo' variables (set or unset) will be overridden when
15253# loading this file, other *unset* `ac_cv_foo' will be assigned the
15254# following values.
15255
15256_ACEOF
15257
15258# The following way of writing the cache mishandles newlines in values,
15259# but we know of no workaround that is simple, portable, and efficient.
15260# So, don't put newlines in cache variables' values.
15261# Ultrix sh set writes to stderr and can't be redirected directly,
15262# and sets the high bit in the cache file unless we assign to the vars.
15263{
15264 (set) 2>&1 |
15265 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15266 *ac_space=\ *)
15267 # `set' does not quote correctly, so add quotes (double-quote
15268 # substitution turns \\\\ into \\, and sed turns \\ into \).
15269 sed -n \
15270 "s/'/'\\\\''/g;
15271 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15272 ;;
15273 *)
15274 # `set' quotes correctly as required by POSIX, so do not add quotes.
15275 sed -n \
15276 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15277 ;;
15278 esac;
15279} |
15280 sed '
15281 t clear
15282 : clear
15283 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15284 t end
15285 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15286 : end' >>confcache
15287if diff $cache_file confcache >/dev/null 2>&1; then :; else
15288 if test -w $cache_file; then
15289 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15290 cat confcache >$cache_file
15291 else
15292 echo "not updating unwritable cache $cache_file"
15293 fi
15294fi
15295rm -f confcache
15296
15297test "x$prefix" = xNONE && prefix=$ac_default_prefix
15298# Let make expand exec_prefix.
15299test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15300
15301# VPATH may cause trouble with some makes, so we remove $(srcdir),
15302# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15303# trailing colons and then remove the whole line if VPATH becomes empty
15304# (actually we leave an empty line to preserve line numbers).
15305if test "x$srcdir" = x.; then
15306 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15307s/:*\$(srcdir):*/:/;
15308s/:*\${srcdir}:*/:/;
15309s/:*@srcdir@:*/:/;
15310s/^\([^=]*=[ ]*\):*/\1/;
15311s/:*$//;
15312s/^[^=]*=[ ]*$//;
15313}'
15314fi
15315
15316DEFS=-DHAVE_CONFIG_H
15317
15318ac_libobjs=
15319ac_ltlibobjs=
15320for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15321 # 1. Remove the extension, and $U if already installed.
15322 ac_i=`echo "$ac_i" |
15323 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15324 # 2. Add them.
15325 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15326 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15327done
15328LIBOBJS=$ac_libobjs
15329
15330LTLIBOBJS=$ac_ltlibobjs
15331
15332
15333if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15334 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
15335Usually this means the macro was only invoked conditionally." >&5
15336echo "$as_me: error: conditional \"AMDEP\" was never defined.
15337Usually this means the macro was only invoked conditionally." >&2;}
15338 { (exit 1); exit 1; }; }
15339fi
15340if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15341 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
15342Usually this means the macro was only invoked conditionally." >&5
15343echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
15344Usually this means the macro was only invoked conditionally." >&2;}
15345 { (exit 1); exit 1; }; }
15346fi
15347if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15348 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
15349Usually this means the macro was only invoked conditionally." >&5
15350echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
15351Usually this means the macro was only invoked conditionally." >&2;}
15352 { (exit 1); exit 1; }; }
15353fi
d5fbea21
DJ
15354if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
15355 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
15356Usually this means the macro was only invoked conditionally." >&5
15357echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
15358Usually this means the macro was only invoked conditionally." >&2;}
15359 { (exit 1); exit 1; }; }
15360fi
42ecbf5e
DJ
15361
15362: ${CONFIG_STATUS=./config.status}
15363ac_clean_files_save=$ac_clean_files
15364ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15365{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15366echo "$as_me: creating $CONFIG_STATUS" >&6;}
15367cat >$CONFIG_STATUS <<_ACEOF
15368#! $SHELL
15369# Generated by $as_me.
15370# Run this file to recreate the current configuration.
15371# Compiler output produced by configure, useful for debugging
15372# configure, is in config.log if it exists.
15373
15374debug=false
15375ac_cs_recheck=false
15376ac_cs_silent=false
15377SHELL=\${CONFIG_SHELL-$SHELL}
15378_ACEOF
252b5132 15379
42ecbf5e
DJ
15380cat >>$CONFIG_STATUS <<\_ACEOF
15381## --------------------- ##
15382## M4sh Initialization. ##
15383## --------------------- ##
252b5132 15384
42ecbf5e
DJ
15385# Be Bourne compatible
15386if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15387 emulate sh
15388 NULLCMD=:
15389 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15390 # is contrary to our usage. Disable this feature.
15391 alias -g '${1+"$@"}'='"$@"'
15392elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15393 set -o posix
15394fi
15395DUALCASE=1; export DUALCASE # for MKS sh
252b5132 15396
42ecbf5e
DJ
15397# Support unset when possible.
15398if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15399 as_unset=unset
15400else
15401 as_unset=false
15402fi
252b5132
RH
15403
15404
42ecbf5e
DJ
15405# Work around bugs in pre-3.0 UWIN ksh.
15406$as_unset ENV MAIL MAILPATH
15407PS1='$ '
15408PS2='> '
15409PS4='+ '
252b5132 15410
42ecbf5e
DJ
15411# NLS nuisances.
15412for as_var in \
15413 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15414 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15415 LC_TELEPHONE LC_TIME
15416do
15417 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15418 eval $as_var=C; export $as_var
15419 else
15420 $as_unset $as_var
15421 fi
15422done
252b5132 15423
42ecbf5e
DJ
15424# Required to use basename.
15425if expr a : '\(a\)' >/dev/null 2>&1; then
15426 as_expr=expr
15427else
15428 as_expr=false
15429fi
252b5132 15430
42ecbf5e
DJ
15431if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
15432 as_basename=basename
15433else
15434 as_basename=false
15435fi
252b5132 15436
8b1e6df3 15437
42ecbf5e
DJ
15438# Name of the executable.
15439as_me=`$as_basename "$0" ||
15440$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15441 X"$0" : 'X\(//\)$' \| \
15442 X"$0" : 'X\(/\)$' \| \
15443 . : '\(.\)' 2>/dev/null ||
15444echo X/"$0" |
15445 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15446 /^X\/\(\/\/\)$/{ s//\1/; q; }
15447 /^X\/\(\/\).*/{ s//\1/; q; }
15448 s/.*/./; q'`
0218d1e4 15449
252b5132 15450
42ecbf5e
DJ
15451# PATH needs CR, and LINENO needs CR and PATH.
15452# Avoid depending upon Character Ranges.
15453as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15454as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15455as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15456as_cr_digits='0123456789'
15457as_cr_alnum=$as_cr_Letters$as_cr_digits
252b5132 15458
42ecbf5e
DJ
15459# The user is always right.
15460if test "${PATH_SEPARATOR+set}" != set; then
15461 echo "#! /bin/sh" >conf$$.sh
15462 echo "exit 0" >>conf$$.sh
15463 chmod +x conf$$.sh
15464 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15465 PATH_SEPARATOR=';'
15466 else
15467 PATH_SEPARATOR=:
15468 fi
15469 rm -f conf$$.sh
252b5132
RH
15470fi
15471
15472
42ecbf5e
DJ
15473 as_lineno_1=$LINENO
15474 as_lineno_2=$LINENO
15475 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15476 test "x$as_lineno_1" != "x$as_lineno_2" &&
15477 test "x$as_lineno_3" = "x$as_lineno_2" || {
15478 # Find who we are. Look in the path if we contain no path at all
15479 # relative or not.
15480 case $0 in
15481 *[\\/]* ) as_myself=$0 ;;
15482 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15483for as_dir in $PATH
eb1e0e80 15484do
42ecbf5e
DJ
15485 IFS=$as_save_IFS
15486 test -z "$as_dir" && as_dir=.
15487 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15488done
eb1e0e80 15489
42ecbf5e
DJ
15490 ;;
15491 esac
15492 # We did not find ourselves, most probably we were run as `sh COMMAND'
15493 # in which case we are not to be found in the path.
15494 if test "x$as_myself" = x; then
15495 as_myself=$0
15496 fi
15497 if test ! -f "$as_myself"; then
15498 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15499echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15500 { (exit 1); exit 1; }; }
15501 fi
15502 case $CONFIG_SHELL in
15503 '')
15504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15505for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15506do
15507 IFS=$as_save_IFS
15508 test -z "$as_dir" && as_dir=.
15509 for as_base in sh bash ksh sh5; do
15510 case $as_dir in
15511 /*)
15512 if ("$as_dir/$as_base" -c '
15513 as_lineno_1=$LINENO
15514 as_lineno_2=$LINENO
15515 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15516 test "x$as_lineno_1" != "x$as_lineno_2" &&
15517 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
15518 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
15519 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
15520 CONFIG_SHELL=$as_dir/$as_base
15521 export CONFIG_SHELL
15522 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15523 fi;;
15524 esac
15525 done
eb1e0e80 15526done
42ecbf5e
DJ
15527;;
15528 esac
eb1e0e80 15529
42ecbf5e
DJ
15530 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15531 # uniformly replaced by the line number. The first 'sed' inserts a
15532 # line-number line before each line; the second 'sed' does the real
15533 # work. The second script uses 'N' to pair each line-number line
15534 # with the numbered line, and appends trailing '-' during
15535 # substitution so that $LINENO is not a special case at line end.
15536 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15537 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
15538 sed '=' <$as_myself |
15539 sed '
15540 N
15541 s,$,-,
15542 : loop
15543 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15544 t loop
15545 s,-$,,
15546 s,^['$as_cr_digits']*\n,,
15547 ' >$as_me.lineno &&
15548 chmod +x $as_me.lineno ||
15549 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15550echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15551 { (exit 1); exit 1; }; }
15552
15553 # Don't try to exec as it changes $[0], causing all sort of problems
15554 # (the dirname of $[0] is not the place where we might find the
15555 # original and so on. Autoconf is especially sensible to this).
15556 . ./$as_me.lineno
15557 # Exit status is that of the last command.
15558 exit
15559}
eb1e0e80
NC
15560
15561
42ecbf5e
DJ
15562case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15563 *c*,-n*) ECHO_N= ECHO_C='
15564' ECHO_T=' ' ;;
15565 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15566 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
15567esac
eb1e0e80 15568
42ecbf5e
DJ
15569if expr a : '\(a\)' >/dev/null 2>&1; then
15570 as_expr=expr
d15b04bd 15571else
42ecbf5e
DJ
15572 as_expr=false
15573fi
15574
15575rm -f conf$$ conf$$.exe conf$$.file
15576echo >conf$$.file
15577if ln -s conf$$.file conf$$ 2>/dev/null; then
15578 # We could just check for DJGPP; but this test a) works b) is more generic
15579 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15580 if test -f conf$$.exe; then
15581 # Don't use ln at all; we don't have any links
15582 as_ln_s='cp -p'
252b5132 15583 else
42ecbf5e 15584 as_ln_s='ln -s'
252b5132 15585 fi
42ecbf5e
DJ
15586elif ln conf$$.file conf$$ 2>/dev/null; then
15587 as_ln_s=ln
15588else
15589 as_ln_s='cp -p'
252b5132 15590fi
42ecbf5e 15591rm -f conf$$ conf$$.exe conf$$.file
252b5132 15592
42ecbf5e
DJ
15593if mkdir -p . 2>/dev/null; then
15594 as_mkdir_p=:
15595else
15596 test -d ./-p && rmdir ./-p
15597 as_mkdir_p=false
15598fi
d15b04bd 15599
42ecbf5e 15600as_executable_p="test -f"
252b5132 15601
42ecbf5e
DJ
15602# Sed expression to map a string onto a valid CPP name.
15603as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15604
15605# Sed expression to map a string onto a valid variable name.
15606as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15607
15608
15609# IFS
15610# We need space, tab and new line, in precisely that order.
15611as_nl='
15612'
15613IFS=" $as_nl"
15614
15615# CDPATH.
15616$as_unset CDPATH
15617
15618exec 6>&1
15619
15620# Open the log real soon, to keep \$[0] and so on meaningful, and to
15621# report actual input values of CONFIG_FILES etc. instead of their
15622# values after options handling. Logging --version etc. is OK.
15623exec 5>>config.log
15624{
15625 echo
15626 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15627## Running $as_me. ##
15628_ASBOX
15629} >&5
15630cat >&5 <<_CSEOF
15631
15632This file was extended by $as_me, which was
15633generated by GNU Autoconf 2.59. Invocation command line was
15634
15635 CONFIG_FILES = $CONFIG_FILES
15636 CONFIG_HEADERS = $CONFIG_HEADERS
15637 CONFIG_LINKS = $CONFIG_LINKS
15638 CONFIG_COMMANDS = $CONFIG_COMMANDS
15639 $ $0 $@
15640
15641_CSEOF
15642echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15643echo >&5
15644_ACEOF
15645
15646# Files that config.status was made for.
15647if test -n "$ac_config_files"; then
15648 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
252b5132
RH
15649fi
15650
42ecbf5e
DJ
15651if test -n "$ac_config_headers"; then
15652 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15653fi
e5a52504 15654
42ecbf5e
DJ
15655if test -n "$ac_config_links"; then
15656 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15657fi
e5a52504 15658
42ecbf5e
DJ
15659if test -n "$ac_config_commands"; then
15660 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15661fi
d15b04bd 15662
42ecbf5e
DJ
15663cat >>$CONFIG_STATUS <<\_ACEOF
15664
15665ac_cs_usage="\
15666\`$as_me' instantiates files from templates according to the
15667current configuration.
15668
15669Usage: $0 [OPTIONS] [FILE]...
15670
15671 -h, --help print this help, then exit
15672 -V, --version print version number, then exit
15673 -q, --quiet do not print progress messages
15674 -d, --debug don't remove temporary files
15675 --recheck update $as_me by reconfiguring in the same conditions
15676 --file=FILE[:TEMPLATE]
15677 instantiate the configuration file FILE
15678 --header=FILE[:TEMPLATE]
15679 instantiate the configuration header FILE
15680
15681Configuration files:
15682$config_files
15683
15684Configuration headers:
15685$config_headers
15686
15687Configuration commands:
15688$config_commands
15689
15690Report bugs to <bug-autoconf@gnu.org>."
15691_ACEOF
15692
15693cat >>$CONFIG_STATUS <<_ACEOF
15694ac_cs_version="\\
15695config.status
15696configured by $0, generated by GNU Autoconf 2.59,
15697 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15698
15699Copyright (C) 2003 Free Software Foundation, Inc.
15700This config.status script is free software; the Free Software Foundation
15701gives unlimited permission to copy, distribute and modify it."
15702srcdir=$srcdir
15703INSTALL="$INSTALL"
15704_ACEOF
15705
15706cat >>$CONFIG_STATUS <<\_ACEOF
15707# If no file are specified by the user, then we need to provide default
15708# value. By we need to know if files were specified by the user.
15709ac_need_defaults=:
15710while test $# != 0
15711do
15712 case $1 in
15713 --*=*)
15714 ac_option=`expr "x$1" : 'x\([^=]*\)='`
15715 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15716 ac_shift=:
15717 ;;
15718 -*)
15719 ac_option=$1
15720 ac_optarg=$2
15721 ac_shift=shift
15722 ;;
15723 *) # This is not an option, so the user has probably given explicit
15724 # arguments.
15725 ac_option=$1
15726 ac_need_defaults=false;;
15727 esac
15728
15729 case $ac_option in
15730 # Handling of the options.
15731_ACEOF
15732cat >>$CONFIG_STATUS <<\_ACEOF
15733 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15734 ac_cs_recheck=: ;;
15735 --version | --vers* | -V )
15736 echo "$ac_cs_version"; exit 0 ;;
15737 --he | --h)
15738 # Conflict between --help and --header
15739 { { echo "$as_me:$LINENO: error: ambiguous option: $1
15740Try \`$0 --help' for more information." >&5
15741echo "$as_me: error: ambiguous option: $1
15742Try \`$0 --help' for more information." >&2;}
15743 { (exit 1); exit 1; }; };;
15744 --help | --hel | -h )
15745 echo "$ac_cs_usage"; exit 0 ;;
15746 --debug | --d* | -d )
15747 debug=: ;;
15748 --file | --fil | --fi | --f )
15749 $ac_shift
15750 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15751 ac_need_defaults=false;;
15752 --header | --heade | --head | --hea )
15753 $ac_shift
15754 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15755 ac_need_defaults=false;;
15756 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15757 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15758 ac_cs_silent=: ;;
15759
15760 # This is an error.
15761 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15762Try \`$0 --help' for more information." >&5
15763echo "$as_me: error: unrecognized option: $1
15764Try \`$0 --help' for more information." >&2;}
15765 { (exit 1); exit 1; }; } ;;
15766
15767 *) ac_config_targets="$ac_config_targets $1" ;;
15768
15769 esac
15770 shift
15771done
15772
15773ac_configure_extra_args=
15774
15775if $ac_cs_silent; then
15776 exec 6>/dev/null
15777 ac_configure_extra_args="$ac_configure_extra_args --silent"
15778fi
15779
15780_ACEOF
15781cat >>$CONFIG_STATUS <<_ACEOF
15782if \$ac_cs_recheck; then
15783 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15784 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15785fi
15786
15787_ACEOF
15788
15789cat >>$CONFIG_STATUS <<_ACEOF
d15b04bd 15790#
42ecbf5e 15791# INIT-COMMANDS section.
d15b04bd 15792#
e5a52504 15793
42ecbf5e 15794AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
15795
15796
15797# The HP-UX ksh and POSIX shell print the target directory to stdout
15798# if CDPATH is set.
15799(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15800
15801sed_quote_subst='$sed_quote_subst'
15802double_quote_subst='$double_quote_subst'
15803delay_variable_subst='$delay_variable_subst'
15804macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
15805macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
15806enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
15807enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
15808pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
15809enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
15810host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
15811host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
15812host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
15813build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
15814build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
15815build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
15816SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
15817Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
15818GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
15819EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
15820FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
15821LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
15822NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
15823LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
15824max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
15825ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
15826exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
15827lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
15828lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
15829lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
15830reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
15831reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15832deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
15833file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
15834AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
15835AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15836STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
15837RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
15838old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15839old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15840old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15841CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
15842CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15843compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
15844GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
15845lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
15846lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
15847lt_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"`'
15848objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
15849SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
15850ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
15851MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
15852lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
15853lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
15854lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
15855lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
15856lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
15857need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
15858libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
15859shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15860extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15861archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
15862enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
15863export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15864whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15865compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
15866old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15867old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15868archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15869archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15870module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15871module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15872with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
15873allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15874no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15875hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15876hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
15877hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
15878hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
15879hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
15880hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
15881hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15882hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
15883inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
15884link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
15885fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
15886always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
15887export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15888exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15889include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15890prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15891file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
15892variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
15893need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15894need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
15895version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
15896runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15897shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15898shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
15899libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15900library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
15901soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15902postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15903postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15904finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15905finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
15906hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
15907sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15908sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15909hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
15910enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
15911enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
15912enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
15913old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
15914striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
15915
15916LTCC='$LTCC'
15917LTCFLAGS='$LTCFLAGS'
15918compiler='$compiler_DEFAULT'
15919
15920# Quote evaled strings.
15921for var in SED \
15922GREP \
15923EGREP \
15924FGREP \
15925LD \
15926NM \
15927LN_S \
15928lt_SP2NL \
15929lt_NL2SP \
15930reload_flag \
15931deplibs_check_method \
15932file_magic_cmd \
15933AR \
15934AR_FLAGS \
15935STRIP \
15936RANLIB \
15937CC \
15938CFLAGS \
15939compiler \
15940lt_cv_sys_global_symbol_pipe \
15941lt_cv_sys_global_symbol_to_cdecl \
15942lt_cv_sys_global_symbol_to_c_name_address \
15943SHELL \
15944ECHO \
15945lt_prog_compiler_no_builtin_flag \
15946lt_prog_compiler_wl \
15947lt_prog_compiler_pic \
15948lt_prog_compiler_static \
15949lt_cv_prog_compiler_c_o \
15950need_locks \
15951shrext_cmds \
15952export_dynamic_flag_spec \
15953whole_archive_flag_spec \
15954compiler_needs_object \
15955with_gnu_ld \
15956allow_undefined_flag \
15957no_undefined_flag \
15958hardcode_libdir_flag_spec \
15959hardcode_libdir_flag_spec_ld \
15960hardcode_libdir_separator \
15961fix_srcfile_path \
15962exclude_expsyms \
15963include_expsyms \
15964file_list_spec \
15965variables_saved_for_relink \
15966libname_spec \
15967library_names_spec \
15968soname_spec \
15969finish_eval \
15970old_striplib \
15971striplib; do
15972 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15973 *[\\\\\\\`\\"\\\$]*)
15974 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15975 ;;
15976 *)
15977 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15978 ;;
15979 esac
15980done
15981
15982# Double-quote double-evaled strings.
15983for var in reload_cmds \
15984old_postinstall_cmds \
15985old_postuninstall_cmds \
15986old_archive_cmds \
15987extract_expsyms_cmds \
15988old_archive_from_new_cmds \
15989old_archive_from_expsyms_cmds \
15990archive_cmds \
15991archive_expsym_cmds \
15992module_cmds \
15993module_expsym_cmds \
15994export_symbols_cmds \
15995prelink_cmds \
15996postinstall_cmds \
15997postuninstall_cmds \
15998finish_cmds \
15999sys_lib_search_path_spec \
16000sys_lib_dlsearch_path_spec; do
16001 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16002 *[\\\\\\\`\\"\\\$]*)
16003 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16004 ;;
16005 *)
16006 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16007 ;;
16008 esac
16009done
16010
16011# Fix-up fallback echo if it was mangled by the above quoting rules.
16012case \$lt_ECHO in
16013*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
16014 ;;
16015esac
16016
16017ac_aux_dir='$ac_aux_dir'
16018xsi_shell='$xsi_shell'
16019lt_shell_append='$lt_shell_append'
16020
16021# See if we are running on zsh, and set the options which allow our
16022# commands through without removal of \ escapes INIT.
16023if test -n "\${ZSH_VERSION+set}" ; then
16024 setopt NO_GLOB_SUBST
16025fi
16026
16027
16028 PACKAGE='$PACKAGE'
16029 VERSION='$VERSION'
16030 TIMESTAMP='$TIMESTAMP'
16031 RM='$RM'
16032 ofile='$ofile'
16033
16034
16035
20e95c23
DJ
16036# Capture the value of obsolete ALL_LINGUAS because we need it to compute
16037 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
16038 # from automake.
16039 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
16040 # Capture the value of LINGUAS because we need it to compute CATALOGS.
16041 LINGUAS="${LINGUAS-%UNSET%}"
16042
42ecbf5e
DJ
16043
16044_ACEOF
16045
16046
16047
16048cat >>$CONFIG_STATUS <<\_ACEOF
16049for ac_config_target in $ac_config_targets
252b5132 16050do
42ecbf5e
DJ
16051 case "$ac_config_target" in
16052 # Handling of arguments.
16053 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16054 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16055 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
16056 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
d7040cdb 16057 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20e95c23 16058 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
42ecbf5e
DJ
16059 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
16060 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16061echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16062 { (exit 1); exit 1; }; };;
d15b04bd 16063 esac
252b5132
RH
16064done
16065
42ecbf5e
DJ
16066# If the user did not use the arguments to specify the items to instantiate,
16067# then the envvar interface is used. Set only those that are not.
16068# We use the long form for the default assignment because of an extremely
16069# bizarre bug on SunOS 4.1.3.
16070if $ac_need_defaults; then
16071 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16072 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16073 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16074fi
16075
16076# Have a temporary directory for convenience. Make it in the build tree
16077# simply because there is no reason to put it here, and in addition,
16078# creating and moving files from /tmp can sometimes cause problems.
16079# Create a temporary directory, and hook for its removal unless debugging.
16080$debug ||
16081{
16082 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16083 trap '{ (exit 1); exit 1; }' 1 2 13 15
16084}
252b5132 16085
42ecbf5e 16086# Create a (secure) tmp directory for tmp files.
e5a52504 16087
42ecbf5e
DJ
16088{
16089 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
16090 test -n "$tmp" && test -d "$tmp"
16091} ||
16092{
16093 tmp=./confstat$$-$RANDOM
16094 (umask 077 && mkdir $tmp)
16095} ||
16096{
16097 echo "$me: cannot create a temporary directory in ." >&2
16098 { (exit 1); exit 1; }
16099}
16100
16101_ACEOF
16102
16103cat >>$CONFIG_STATUS <<_ACEOF
16104
16105#
16106# CONFIG_FILES section.
16107#
e5a52504 16108
42ecbf5e
DJ
16109# No need to generate the scripts if there are no CONFIG_FILES.
16110# This happens for instance when ./config.status config.h
16111if test -n "\$CONFIG_FILES"; then
16112 # Protect against being on the right side of a sed subst in config.status.
16113 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16114 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16115s,@SHELL@,$SHELL,;t t
16116s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16117s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16118s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16119s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16120s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16121s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16122s,@exec_prefix@,$exec_prefix,;t t
16123s,@prefix@,$prefix,;t t
16124s,@program_transform_name@,$program_transform_name,;t t
16125s,@bindir@,$bindir,;t t
16126s,@sbindir@,$sbindir,;t t
16127s,@libexecdir@,$libexecdir,;t t
16128s,@datadir@,$datadir,;t t
16129s,@sysconfdir@,$sysconfdir,;t t
16130s,@sharedstatedir@,$sharedstatedir,;t t
16131s,@localstatedir@,$localstatedir,;t t
16132s,@libdir@,$libdir,;t t
16133s,@includedir@,$includedir,;t t
16134s,@oldincludedir@,$oldincludedir,;t t
16135s,@infodir@,$infodir,;t t
16136s,@mandir@,$mandir,;t t
16137s,@build_alias@,$build_alias,;t t
16138s,@host_alias@,$host_alias,;t t
16139s,@target_alias@,$target_alias,;t t
16140s,@DEFS@,$DEFS,;t t
16141s,@ECHO_C@,$ECHO_C,;t t
16142s,@ECHO_N@,$ECHO_N,;t t
16143s,@ECHO_T@,$ECHO_T,;t t
16144s,@LIBS@,$LIBS,;t t
16145s,@build@,$build,;t t
16146s,@build_cpu@,$build_cpu,;t t
16147s,@build_vendor@,$build_vendor,;t t
16148s,@build_os@,$build_os,;t t
16149s,@host@,$host,;t t
16150s,@host_cpu@,$host_cpu,;t t
16151s,@host_vendor@,$host_vendor,;t t
16152s,@host_os@,$host_os,;t t
16153s,@target@,$target,;t t
16154s,@target_cpu@,$target_cpu,;t t
16155s,@target_vendor@,$target_vendor,;t t
16156s,@target_os@,$target_os,;t t
16157s,@CC@,$CC,;t t
16158s,@CFLAGS@,$CFLAGS,;t t
16159s,@LDFLAGS@,$LDFLAGS,;t t
16160s,@CPPFLAGS@,$CPPFLAGS,;t t
16161s,@ac_ct_CC@,$ac_ct_CC,;t t
16162s,@EXEEXT@,$EXEEXT,;t t
16163s,@OBJEXT@,$OBJEXT,;t t
16164s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16165s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
16166s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16167s,@CYGPATH_W@,$CYGPATH_W,;t t
16168s,@PACKAGE@,$PACKAGE,;t t
16169s,@VERSION@,$VERSION,;t t
16170s,@ACLOCAL@,$ACLOCAL,;t t
16171s,@AUTOCONF@,$AUTOCONF,;t t
16172s,@AUTOMAKE@,$AUTOMAKE,;t t
16173s,@AUTOHEADER@,$AUTOHEADER,;t t
16174s,@MAKEINFO@,$MAKEINFO,;t t
16175s,@install_sh@,$install_sh,;t t
16176s,@STRIP@,$STRIP,;t t
16177s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
16178s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
16179s,@mkdir_p@,$mkdir_p,;t t
16180s,@AWK@,$AWK,;t t
16181s,@SET_MAKE@,$SET_MAKE,;t t
16182s,@am__leading_dot@,$am__leading_dot,;t t
16183s,@AMTAR@,$AMTAR,;t t
16184s,@am__tar@,$am__tar,;t t
16185s,@am__untar@,$am__untar,;t t
16186s,@DEPDIR@,$DEPDIR,;t t
16187s,@am__include@,$am__include,;t t
16188s,@am__quote@,$am__quote,;t t
16189s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
16190s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
16191s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
16192s,@CCDEPMODE@,$CCDEPMODE,;t t
16193s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
16194s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
7357c5b6
AM
16195s,@CPP@,$CPP,;t t
16196s,@EGREP@,$EGREP,;t t
d7040cdb
SE
16197s,@LIBTOOL@,$LIBTOOL,;t t
16198s,@SED@,$SED,;t t
d7040cdb
SE
16199s,@FGREP@,$FGREP,;t t
16200s,@GREP@,$GREP,;t t
16201s,@LD@,$LD,;t t
16202s,@DUMPBIN@,$DUMPBIN,;t t
16203s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
16204s,@NM@,$NM,;t t
42ecbf5e 16205s,@LN_S@,$LN_S,;t t
d7040cdb
SE
16206s,@AR@,$AR,;t t
16207s,@ac_ct_AR@,$ac_ct_AR,;t t
42ecbf5e
DJ
16208s,@RANLIB@,$RANLIB,;t t
16209s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
d7040cdb 16210s,@lt_ECHO@,$lt_ECHO,;t t
42ecbf5e
DJ
16211s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
16212s,@NO_WERROR@,$NO_WERROR,;t t
16213s,@YACC@,$YACC,;t t
16214s,@LEX@,$LEX,;t t
16215s,@LEXLIB@,$LEXLIB,;t t
16216s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
42ecbf5e 16217s,@USE_NLS@,$USE_NLS,;t t
20e95c23
DJ
16218s,@LIBINTL@,$LIBINTL,;t t
16219s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
16220s,@INCINTL@,$INCINTL,;t t
42ecbf5e 16221s,@XGETTEXT@,$XGETTEXT,;t t
20e95c23
DJ
16222s,@GMSGFMT@,$GMSGFMT,;t t
16223s,@POSUB@,$POSUB,;t t
42ecbf5e 16224s,@CATALOGS@,$CATALOGS,;t t
42ecbf5e 16225s,@DATADIRNAME@,$DATADIRNAME,;t t
42ecbf5e 16226s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20e95c23
DJ
16227s,@GENCAT@,$GENCAT,;t t
16228s,@CATOBJEXT@,$CATOBJEXT,;t t
42ecbf5e 16229s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
20e95c23
DJ
16230s,@MSGFMT@,$MSGFMT,;t t
16231s,@MSGMERGE@,$MSGMERGE,;t t
42ecbf5e
DJ
16232s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
16233s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
16234s,@MAINT@,$MAINT,;t t
d5fbea21
DJ
16235s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
16236s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
42ecbf5e 16237s,@HDEFINES@,$HDEFINES,;t t
42ecbf5e
DJ
16238s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
16239s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
16240s,@DEMANGLER_NAME@,$DEMANGLER_NAME,;t t
20e95c23 16241s,@ALLOCA@,$ALLOCA,;t t
5ba684e2
NC
16242s,@LIBICONV@,$LIBICONV,;t t
16243s,@LTLIBICONV@,$LTLIBICONV,;t t
42ecbf5e
DJ
16244s,@NLMCONV_DEFS@,$NLMCONV_DEFS,;t t
16245s,@BUILD_NLMCONV@,$BUILD_NLMCONV,;t t
16246s,@BUILD_SRCONV@,$BUILD_SRCONV,;t t
16247s,@BUILD_DLLTOOL@,$BUILD_DLLTOOL,;t t
16248s,@DLLTOOL_DEFS@,$DLLTOOL_DEFS,;t t
16249s,@BUILD_WINDRES@,$BUILD_WINDRES,;t t
692ed3e7 16250s,@BUILD_WINDMC@,$BUILD_WINDMC,;t t
42ecbf5e
DJ
16251s,@BUILD_DLLWRAP@,$BUILD_DLLWRAP,;t t
16252s,@BUILD_MISC@,$BUILD_MISC,;t t
1d97d67f 16253s,@BUILD_INSTALL_MISC@,$BUILD_INSTALL_MISC,;t t
42ecbf5e
DJ
16254s,@OBJDUMP_DEFS@,$OBJDUMP_DEFS,;t t
16255s,@EMULATION@,$EMULATION,;t t
16256s,@EMULATION_VECTOR@,$EMULATION_VECTOR,;t t
108a6f8e
CD
16257s,@datarootdir@,$datarootdir,;t t
16258s,@docdir@,$docdir,;t t
16259s,@htmldir@,$htmldir,;t t
42ecbf5e
DJ
16260s,@LIBOBJS@,$LIBOBJS,;t t
16261s,@LTLIBOBJS@,$LTLIBOBJS,;t t
d15b04bd 16262CEOF
252b5132 16263
42ecbf5e
DJ
16264_ACEOF
16265
16266 cat >>$CONFIG_STATUS <<\_ACEOF
16267 # Split the substitutions into bite-sized pieces for seds with
16268 # small command number limits, like on Digital OSF/1 and HP-UX.
16269 ac_max_sed_lines=48
16270 ac_sed_frag=1 # Number of current file.
16271 ac_beg=1 # First line for current file.
16272 ac_end=$ac_max_sed_lines # Line after last line for current file.
16273 ac_more_lines=:
16274 ac_sed_cmds=
16275 while $ac_more_lines; do
16276 if test $ac_beg -gt 1; then
16277 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16278 else
16279 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16280 fi
16281 if test ! -s $tmp/subs.frag; then
16282 ac_more_lines=false
d15b04bd 16283 else
42ecbf5e
DJ
16284 # The purpose of the label and of the branching condition is to
16285 # speed up the sed processing (if there are no `@' at all, there
16286 # is no need to browse any of the substitutions).
16287 # These are the two extra sed commands mentioned above.
16288 (echo ':t
16289 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16290 if test -z "$ac_sed_cmds"; then
16291 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16292 else
16293 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16294 fi
16295 ac_sed_frag=`expr $ac_sed_frag + 1`
16296 ac_beg=$ac_end
16297 ac_end=`expr $ac_end + $ac_max_sed_lines`
d15b04bd 16298 fi
42ecbf5e
DJ
16299 done
16300 if test -z "$ac_sed_cmds"; then
16301 ac_sed_cmds=cat
252b5132 16302 fi
42ecbf5e 16303fi # test -n "$CONFIG_FILES"
252b5132 16304
42ecbf5e
DJ
16305_ACEOF
16306cat >>$CONFIG_STATUS <<\_ACEOF
16307for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
e5a52504 16308 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42ecbf5e
DJ
16309 case $ac_file in
16310 - | *:- | *:-:* ) # input from stdin
16311 cat >$tmp/stdin
16312 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16313 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16314 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16315 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16316 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
16317 esac
16318
42ecbf5e
DJ
16319 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16320 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16321$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16322 X"$ac_file" : 'X\(//\)[^/]' \| \
16323 X"$ac_file" : 'X\(//\)$' \| \
16324 X"$ac_file" : 'X\(/\)' \| \
16325 . : '\(.\)' 2>/dev/null ||
16326echo X"$ac_file" |
16327 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16328 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16329 /^X\(\/\/\)$/{ s//\1/; q; }
16330 /^X\(\/\).*/{ s//\1/; q; }
16331 s/.*/./; q'`
16332 { if $as_mkdir_p; then
16333 mkdir -p "$ac_dir"
d15b04bd 16334 else
42ecbf5e
DJ
16335 as_dir="$ac_dir"
16336 as_dirs=
16337 while test ! -d "$as_dir"; do
16338 as_dirs="$as_dir $as_dirs"
16339 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16340$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16341 X"$as_dir" : 'X\(//\)[^/]' \| \
16342 X"$as_dir" : 'X\(//\)$' \| \
16343 X"$as_dir" : 'X\(/\)' \| \
16344 . : '\(.\)' 2>/dev/null ||
16345echo X"$as_dir" |
16346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16347 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16348 /^X\(\/\/\)$/{ s//\1/; q; }
16349 /^X\(\/\).*/{ s//\1/; q; }
16350 s/.*/./; q'`
16351 done
16352 test ! -n "$as_dirs" || mkdir $as_dirs
16353 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16354echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16355 { (exit 1); exit 1; }; }; }
16356
16357 ac_builddir=.
e5a52504 16358
42ecbf5e
DJ
16359if test "$ac_dir" != .; then
16360 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16361 # A "../" for each directory in $ac_dir_suffix.
16362 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16363else
16364 ac_dir_suffix= ac_top_builddir=
16365fi
16366
16367case $srcdir in
16368 .) # No --srcdir option. We are building in place.
16369 ac_srcdir=.
16370 if test -z "$ac_top_builddir"; then
16371 ac_top_srcdir=.
16372 else
16373 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16374 fi ;;
16375 [\\/]* | ?:[\\/]* ) # Absolute path.
16376 ac_srcdir=$srcdir$ac_dir_suffix;
16377 ac_top_srcdir=$srcdir ;;
e5a52504 16378 *) # Relative path.
42ecbf5e
DJ
16379 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16380 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16381esac
252b5132 16382
42ecbf5e
DJ
16383# Do not use `cd foo && pwd` to compute absolute paths, because
16384# the directories may not exist.
16385case `pwd` in
16386.) ac_abs_builddir="$ac_dir";;
16387*)
16388 case "$ac_dir" in
16389 .) ac_abs_builddir=`pwd`;;
16390 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16391 *) ac_abs_builddir=`pwd`/"$ac_dir";;
16392 esac;;
16393esac
16394case $ac_abs_builddir in
16395.) ac_abs_top_builddir=${ac_top_builddir}.;;
16396*)
16397 case ${ac_top_builddir}. in
16398 .) ac_abs_top_builddir=$ac_abs_builddir;;
16399 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16400 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16401 esac;;
16402esac
16403case $ac_abs_builddir in
16404.) ac_abs_srcdir=$ac_srcdir;;
16405*)
16406 case $ac_srcdir in
16407 .) ac_abs_srcdir=$ac_abs_builddir;;
16408 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16409 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16410 esac;;
16411esac
16412case $ac_abs_builddir in
16413.) ac_abs_top_srcdir=$ac_top_srcdir;;
16414*)
16415 case $ac_top_srcdir in
16416 .) ac_abs_top_srcdir=$ac_abs_builddir;;
16417 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16418 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16419 esac;;
16420esac
e5a52504 16421
42ecbf5e
DJ
16422
16423 case $INSTALL in
16424 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16425 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
d15b04bd 16426 esac
e5a52504 16427
7357c5b6
AM
16428 if test x"$ac_file" != x-; then
16429 { echo "$as_me:$LINENO: creating $ac_file" >&5
16430echo "$as_me: creating $ac_file" >&6;}
16431 rm -f "$ac_file"
16432 fi
42ecbf5e
DJ
16433 # Let's still pretend it is `configure' which instantiates (i.e., don't
16434 # use $as_me), people would be surprised to read:
16435 # /* config.h. Generated by config.status. */
16436 if test x"$ac_file" = x-; then
16437 configure_input=
16438 else
16439 configure_input="$ac_file. "
16440 fi
16441 configure_input=$configure_input"Generated from `echo $ac_file_in |
16442 sed 's,.*/,,'` by configure."
16443
16444 # First look for the input files in the build tree, otherwise in the
16445 # src tree.
16446 ac_file_inputs=`IFS=:
16447 for f in $ac_file_in; do
16448 case $f in
16449 -) echo $tmp/stdin ;;
16450 [\\/$]*)
16451 # Absolute (can't be DOS-style, as IFS=:)
16452 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16453echo "$as_me: error: cannot find input file: $f" >&2;}
16454 { (exit 1); exit 1; }; }
16455 echo "$f";;
16456 *) # Relative
16457 if test -f "$f"; then
16458 # Build tree
16459 echo "$f"
16460 elif test -f "$srcdir/$f"; then
16461 # Source tree
16462 echo "$srcdir/$f"
16463 else
16464 # /dev/null tree
16465 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16466echo "$as_me: error: cannot find input file: $f" >&2;}
16467 { (exit 1); exit 1; }; }
16468 fi;;
16469 esac
16470 done` || { (exit 1); exit 1; }
42ecbf5e
DJ
16471_ACEOF
16472cat >>$CONFIG_STATUS <<_ACEOF
16473 sed "$ac_vpsub
16474$extrasub
16475_ACEOF
16476cat >>$CONFIG_STATUS <<\_ACEOF
16477:t
16478/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16479s,@configure_input@,$configure_input,;t t
16480s,@srcdir@,$ac_srcdir,;t t
16481s,@abs_srcdir@,$ac_abs_srcdir,;t t
16482s,@top_srcdir@,$ac_top_srcdir,;t t
16483s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16484s,@builddir@,$ac_builddir,;t t
16485s,@abs_builddir@,$ac_abs_builddir,;t t
16486s,@top_builddir@,$ac_top_builddir,;t t
16487s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16488s,@INSTALL@,$ac_INSTALL,;t t
16489" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16490 rm -f $tmp/stdin
16491 if test x"$ac_file" != x-; then
16492 mv $tmp/out $ac_file
16493 else
16494 cat $tmp/out
16495 rm -f $tmp/out
16496 fi
16497
16498done
16499_ACEOF
16500cat >>$CONFIG_STATUS <<\_ACEOF
16501
16502#
16503# CONFIG_HEADER section.
16504#
252b5132
RH
16505
16506# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16507# NAME is the cpp macro being defined and VALUE is the value it is being given.
16508#
16509# ac_d sets the value in "#define NAME VALUE" lines.
42ecbf5e
DJ
16510ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16511ac_dB='[ ].*$,\1#\2'
16512ac_dC=' '
16513ac_dD=',;t'
16514# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16515ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16516ac_uB='$,\1#\2define\3'
252b5132 16517ac_uC=' '
42ecbf5e
DJ
16518ac_uD=',;t'
16519
16520for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
252b5132 16521 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42ecbf5e
DJ
16522 case $ac_file in
16523 - | *:- | *:-:* ) # input from stdin
16524 cat >$tmp/stdin
16525 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16526 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16527 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16528 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16529 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
16530 esac
16531
42ecbf5e
DJ
16532 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16533echo "$as_me: creating $ac_file" >&6;}
16534
16535 # First look for the input files in the build tree, otherwise in the
16536 # src tree.
16537 ac_file_inputs=`IFS=:
16538 for f in $ac_file_in; do
16539 case $f in
16540 -) echo $tmp/stdin ;;
16541 [\\/$]*)
16542 # Absolute (can't be DOS-style, as IFS=:)
16543 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16544echo "$as_me: error: cannot find input file: $f" >&2;}
16545 { (exit 1); exit 1; }; }
16546 # Do quote $f, to prevent DOS paths from being IFS'd.
16547 echo "$f";;
16548 *) # Relative
16549 if test -f "$f"; then
16550 # Build tree
16551 echo "$f"
16552 elif test -f "$srcdir/$f"; then
16553 # Source tree
16554 echo "$srcdir/$f"
16555 else
16556 # /dev/null tree
16557 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16558echo "$as_me: error: cannot find input file: $f" >&2;}
16559 { (exit 1); exit 1; }; }
16560 fi;;
16561 esac
16562 done` || { (exit 1); exit 1; }
16563 # Remove the trailing spaces.
16564 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
16565
16566_ACEOF
16567
16568# Transform confdefs.h into two sed scripts, `conftest.defines' and
16569# `conftest.undefs', that substitutes the proper values into
16570# config.h.in to produce config.h. The first handles `#define'
16571# templates, and the second `#undef' templates.
16572# And first: Protect against being on the right side of a sed subst in
16573# config.status. Protect against being in an unquoted here document
16574# in config.status.
16575rm -f conftest.defines conftest.undefs
16576# Using a here document instead of a string reduces the quoting nightmare.
16577# Putting comments in sed scripts is not portable.
16578#
16579# `end' is used to avoid that the second main sed command (meant for
16580# 0-ary CPP macros) applies to n-ary macro definitions.
16581# See the Autoconf documentation for `clear'.
16582cat >confdef2sed.sed <<\_ACEOF
16583s/[\\&,]/\\&/g
16584s,[\\$`],\\&,g
16585t clear
16586: clear
16587s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16588t end
16589s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16590: end
16591_ACEOF
16592# If some macros were called several times there might be several times
16593# the same #defines, which is useless. Nevertheless, we may not want to
16594# sort them, since we want the *last* AC-DEFINE to be honored.
16595uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16596sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16597rm -f confdef2sed.sed
252b5132
RH
16598
16599# This sed command replaces #undef with comments. This is necessary, for
16600# example, in the case of _POSIX_SOURCE, which is predefined and required
16601# on some systems where configure will not decide to define it.
42ecbf5e
DJ
16602cat >>conftest.undefs <<\_ACEOF
16603s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16604_ACEOF
16605
16606# Break up conftest.defines because some shells have a limit on the size
16607# of here documents, and old seds have small limits too (100 cmds).
16608echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16609echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16610echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16611echo ' :' >>$CONFIG_STATUS
16612rm -f conftest.tail
16613while grep . conftest.defines >/dev/null
16614do
16615 # Write a limited-size here document to $tmp/defines.sed.
16616 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16617 # Speed up: don't consider the non `#define' lines.
16618 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
16619 # Work around the forget-to-reset-the-flag bug.
16620 echo 't clr' >>$CONFIG_STATUS
16621 echo ': clr' >>$CONFIG_STATUS
16622 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16623 echo 'CEOF
16624 sed -f $tmp/defines.sed $tmp/in >$tmp/out
16625 rm -f $tmp/in
16626 mv $tmp/out $tmp/in
16627' >>$CONFIG_STATUS
16628 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16629 rm -f conftest.defines
16630 mv conftest.tail conftest.defines
16631done
16632rm -f conftest.defines
16633echo ' fi # grep' >>$CONFIG_STATUS
16634echo >>$CONFIG_STATUS
252b5132 16635
42ecbf5e
DJ
16636# Break up conftest.undefs because some shells have a limit on the size
16637# of here documents, and old seds have small limits too (100 cmds).
16638echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
252b5132 16639rm -f conftest.tail
42ecbf5e 16640while grep . conftest.undefs >/dev/null
252b5132 16641do
42ecbf5e
DJ
16642 # Write a limited-size here document to $tmp/undefs.sed.
16643 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16644 # Speed up: don't consider the non `#undef'
16645 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
16646 # Work around the forget-to-reset-the-flag bug.
16647 echo 't clr' >>$CONFIG_STATUS
16648 echo ': clr' >>$CONFIG_STATUS
16649 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
252b5132 16650 echo 'CEOF
42ecbf5e
DJ
16651 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16652 rm -f $tmp/in
16653 mv $tmp/out $tmp/in
16654' >>$CONFIG_STATUS
16655 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16656 rm -f conftest.undefs
16657 mv conftest.tail conftest.undefs
252b5132 16658done
42ecbf5e
DJ
16659rm -f conftest.undefs
16660
16661cat >>$CONFIG_STATUS <<\_ACEOF
16662 # Let's still pretend it is `configure' which instantiates (i.e., don't
16663 # use $as_me), people would be surprised to read:
16664 # /* config.h. Generated by config.status. */
16665 if test x"$ac_file" = x-; then
16666 echo "/* Generated by configure. */" >$tmp/config.h
16667 else
16668 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
16669 fi
16670 cat $tmp/in >>$tmp/config.h
16671 rm -f $tmp/in
16672 if test x"$ac_file" != x-; then
16673 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
16674 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16675echo "$as_me: $ac_file is unchanged" >&6;}
16676 else
16677 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16678$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16679 X"$ac_file" : 'X\(//\)[^/]' \| \
16680 X"$ac_file" : 'X\(//\)$' \| \
16681 X"$ac_file" : 'X\(/\)' \| \
16682 . : '\(.\)' 2>/dev/null ||
16683echo X"$ac_file" |
16684 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16685 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16686 /^X\(\/\/\)$/{ s//\1/; q; }
16687 /^X\(\/\).*/{ s//\1/; q; }
16688 s/.*/./; q'`
16689 { if $as_mkdir_p; then
16690 mkdir -p "$ac_dir"
252b5132 16691 else
42ecbf5e
DJ
16692 as_dir="$ac_dir"
16693 as_dirs=
16694 while test ! -d "$as_dir"; do
16695 as_dirs="$as_dir $as_dirs"
16696 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16697$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16698 X"$as_dir" : 'X\(//\)[^/]' \| \
16699 X"$as_dir" : 'X\(//\)$' \| \
16700 X"$as_dir" : 'X\(/\)' \| \
16701 . : '\(.\)' 2>/dev/null ||
16702echo X"$as_dir" |
16703 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16704 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16705 /^X\(\/\/\)$/{ s//\1/; q; }
16706 /^X\(\/\).*/{ s//\1/; q; }
16707 s/.*/./; q'`
16708 done
16709 test ! -n "$as_dirs" || mkdir $as_dirs
16710 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16711echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16712 { (exit 1); exit 1; }; }; }
16713
16714 rm -f $ac_file
16715 mv $tmp/config.h $ac_file
252b5132 16716 fi
42ecbf5e
DJ
16717 else
16718 cat $tmp/config.h
16719 rm -f $tmp/config.h
252b5132 16720 fi
42ecbf5e
DJ
16721# Compute $ac_file's index in $config_headers.
16722_am_stamp_count=1
16723for _am_header in $config_headers :; do
16724 case $_am_header in
16725 $ac_file | $ac_file:* )
16726 break ;;
16727 * )
16728 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16729 esac
16730done
16731echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
16732$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16733 X$ac_file : 'X\(//\)[^/]' \| \
16734 X$ac_file : 'X\(//\)$' \| \
16735 X$ac_file : 'X\(/\)' \| \
16736 . : '\(.\)' 2>/dev/null ||
16737echo X$ac_file |
16738 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16739 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16740 /^X\(\/\/\)$/{ s//\1/; q; }
16741 /^X\(\/\).*/{ s//\1/; q; }
16742 s/.*/./; q'`/stamp-h$_am_stamp_count
16743done
16744_ACEOF
16745cat >>$CONFIG_STATUS <<\_ACEOF
252b5132 16746
42ecbf5e
DJ
16747#
16748# CONFIG_COMMANDS section.
16749#
16750for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
16751 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
16752 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
16753 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
16754$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16755 X"$ac_dest" : 'X\(//\)[^/]' \| \
16756 X"$ac_dest" : 'X\(//\)$' \| \
16757 X"$ac_dest" : 'X\(/\)' \| \
16758 . : '\(.\)' 2>/dev/null ||
16759echo X"$ac_dest" |
16760 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16761 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16762 /^X\(\/\/\)$/{ s//\1/; q; }
16763 /^X\(\/\).*/{ s//\1/; q; }
16764 s/.*/./; q'`
16765 { if $as_mkdir_p; then
16766 mkdir -p "$ac_dir"
16767 else
16768 as_dir="$ac_dir"
16769 as_dirs=
16770 while test ! -d "$as_dir"; do
16771 as_dirs="$as_dir $as_dirs"
16772 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16773$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16774 X"$as_dir" : 'X\(//\)[^/]' \| \
16775 X"$as_dir" : 'X\(//\)$' \| \
16776 X"$as_dir" : 'X\(/\)' \| \
16777 . : '\(.\)' 2>/dev/null ||
16778echo X"$as_dir" |
16779 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16780 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16781 /^X\(\/\/\)$/{ s//\1/; q; }
16782 /^X\(\/\).*/{ s//\1/; q; }
16783 s/.*/./; q'`
16784 done
16785 test ! -n "$as_dirs" || mkdir $as_dirs
16786 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16787echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16788 { (exit 1); exit 1; }; }; }
252b5132 16789
42ecbf5e 16790 ac_builddir=.
e5a52504 16791
42ecbf5e
DJ
16792if test "$ac_dir" != .; then
16793 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16794 # A "../" for each directory in $ac_dir_suffix.
16795 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16796else
16797 ac_dir_suffix= ac_top_builddir=
16798fi
16799
16800case $srcdir in
16801 .) # No --srcdir option. We are building in place.
16802 ac_srcdir=.
16803 if test -z "$ac_top_builddir"; then
16804 ac_top_srcdir=.
16805 else
16806 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16807 fi ;;
16808 [\\/]* | ?:[\\/]* ) # Absolute path.
16809 ac_srcdir=$srcdir$ac_dir_suffix;
16810 ac_top_srcdir=$srcdir ;;
16811 *) # Relative path.
16812 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16813 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16814esac
16815
16816# Do not use `cd foo && pwd` to compute absolute paths, because
16817# the directories may not exist.
16818case `pwd` in
16819.) ac_abs_builddir="$ac_dir";;
16820*)
16821 case "$ac_dir" in
16822 .) ac_abs_builddir=`pwd`;;
16823 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16824 *) ac_abs_builddir=`pwd`/"$ac_dir";;
16825 esac;;
16826esac
16827case $ac_abs_builddir in
16828.) ac_abs_top_builddir=${ac_top_builddir}.;;
16829*)
16830 case ${ac_top_builddir}. in
16831 .) ac_abs_top_builddir=$ac_abs_builddir;;
16832 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16833 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16834 esac;;
16835esac
16836case $ac_abs_builddir in
16837.) ac_abs_srcdir=$ac_srcdir;;
16838*)
16839 case $ac_srcdir in
16840 .) ac_abs_srcdir=$ac_abs_builddir;;
16841 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16842 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16843 esac;;
16844esac
16845case $ac_abs_builddir in
16846.) ac_abs_top_srcdir=$ac_top_srcdir;;
16847*)
16848 case $ac_top_srcdir in
16849 .) ac_abs_top_srcdir=$ac_abs_builddir;;
16850 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16851 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16852 esac;;
16853esac
e5a52504 16854
42ecbf5e
DJ
16855
16856 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
16857echo "$as_me: executing $ac_dest commands" >&6;}
16858 case $ac_dest in
16859 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
16860 # Strip MF so we end up with the name of the file.
16861 mf=`echo "$mf" | sed -e 's/:.*$//'`
16862 # Check whether this is an Automake generated Makefile or not.
16863 # We used to match only the files named `Makefile.in', but
16864 # some people rename them; so instead we look at the file content.
16865 # Grep'ing the first line is not enough: some people post-process
16866 # each Makefile.in and add a new line on top of each file to say so.
16867 # So let's grep whole file.
16868 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
16869 dirpart=`(dirname "$mf") 2>/dev/null ||
16870$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16871 X"$mf" : 'X\(//\)[^/]' \| \
16872 X"$mf" : 'X\(//\)$' \| \
16873 X"$mf" : 'X\(/\)' \| \
16874 . : '\(.\)' 2>/dev/null ||
16875echo X"$mf" |
16876 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16877 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16878 /^X\(\/\/\)$/{ s//\1/; q; }
16879 /^X\(\/\).*/{ s//\1/; q; }
16880 s/.*/./; q'`
16881 else
16882 continue
16883 fi
16884 # Extract the definition of DEPDIR, am__include, and am__quote
16885 # from the Makefile without running `make'.
16886 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16887 test -z "$DEPDIR" && continue
16888 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16889 test -z "am__include" && continue
16890 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16891 # When using ansi2knr, U may be empty or an underscore; expand it
16892 U=`sed -n 's/^U = //p' < "$mf"`
16893 # Find all dependency output files, they are included files with
16894 # $(DEPDIR) in their names. We invoke sed twice because it is the
16895 # simplest approach to changing $(DEPDIR) to its actual value in the
16896 # expansion.
16897 for file in `sed -n "
16898 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16899 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16900 # Make sure the directory exists.
16901 test -f "$dirpart/$file" && continue
16902 fdir=`(dirname "$file") 2>/dev/null ||
16903$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16904 X"$file" : 'X\(//\)[^/]' \| \
16905 X"$file" : 'X\(//\)$' \| \
16906 X"$file" : 'X\(/\)' \| \
16907 . : '\(.\)' 2>/dev/null ||
16908echo X"$file" |
16909 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16910 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16911 /^X\(\/\/\)$/{ s//\1/; q; }
16912 /^X\(\/\).*/{ s//\1/; q; }
16913 s/.*/./; q'`
16914 { if $as_mkdir_p; then
16915 mkdir -p $dirpart/$fdir
16916 else
16917 as_dir=$dirpart/$fdir
16918 as_dirs=
16919 while test ! -d "$as_dir"; do
16920 as_dirs="$as_dir $as_dirs"
16921 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16922$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16923 X"$as_dir" : 'X\(//\)[^/]' \| \
16924 X"$as_dir" : 'X\(//\)$' \| \
16925 X"$as_dir" : 'X\(/\)' \| \
16926 . : '\(.\)' 2>/dev/null ||
16927echo X"$as_dir" |
16928 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16929 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16930 /^X\(\/\/\)$/{ s//\1/; q; }
16931 /^X\(\/\).*/{ s//\1/; q; }
16932 s/.*/./; q'`
16933 done
16934 test ! -n "$as_dirs" || mkdir $as_dirs
16935 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
16936echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
16937 { (exit 1); exit 1; }; }; }
16938
16939 # echo "creating $dirpart/$file"
16940 echo '# dummy' > "$dirpart/$file"
16941 done
16942done
d7040cdb
SE
16943 ;;
16944 libtool )
16945
16946 # See if we are running on zsh, and set the options which allow our
16947 # commands through without removal of \ escapes.
16948 if test -n "${ZSH_VERSION+set}" ; then
16949 setopt NO_GLOB_SUBST
16950 fi
16951
16952 cfgfile="${ofile}T"
16953 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16954 $RM "$cfgfile"
16955
16956 cat <<_LT_EOF >> "$cfgfile"
16957#! $SHELL
16958
16959# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16960# Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
16961# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16962# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16963#
16964# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16965# 2006, 2007 Free Software Foundation, Inc.
16966#
16967# This file is part of GNU Libtool:
16968# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
16969#
16970# This program is free software; you can redistribute it and/or modify
16971# it under the terms of the GNU General Public License as published by
16972# the Free Software Foundation; either version 2 of the License, or
16973# (at your option) any later version.
16974#
16975# This program is distributed in the hope that it will be useful, but
16976# WITHOUT ANY WARRANTY; without even the implied warranty of
16977# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16978# General Public License for more details.
16979#
16980# You should have received a copy of the GNU General Public License
16981# along with this program; if not, a copy can be downloaded from
16982# http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
16983# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
16984# MA 02110-1301, USA.
16985#
16986# As a special exception to the GNU General Public License, if you
16987# distribute this file as part of a program that contains a
16988# configuration script generated by Autoconf, you may include it under
16989# the same distribution terms that you use for the rest of that program.
16990
16991
16992# The names of the tagged configurations supported by this script.
16993available_tags=""
16994
16995# ### BEGIN LIBTOOL CONFIG
16996
16997# Which release of libtool.m4 was used?
16998macro_version=$macro_version
16999macro_revision=$macro_revision
17000
17001# Whether or not to build shared libraries.
17002build_libtool_libs=$enable_shared
17003
17004# Whether or not to build static libraries.
17005build_old_libs=$enable_static
17006
17007# What type of objects to build.
17008pic_mode=$pic_mode
17009
17010# Whether or not to optimize for fast installation.
17011fast_install=$enable_fast_install
17012
17013# The host system.
17014host_alias=$host_alias
17015host=$host
17016host_os=$host_os
17017
17018# The build system.
17019build_alias=$build_alias
17020build=$build
17021build_os=$build_os
17022
17023# A sed program that does not truncate output.
17024SED=$lt_SED
17025
17026# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17027Xsed="\$SED -e 1s/^X//"
17028
17029# A grep program that handles long lines.
17030GREP=$lt_GREP
17031
17032# An ERE matcher.
17033EGREP=$lt_EGREP
17034
17035# A literal string matcher.
17036FGREP=$lt_FGREP
17037
17038# A BSD- or MS-compatible name lister.
17039NM=$lt_NM
17040
17041# Whether we need soft or hard links.
17042LN_S=$lt_LN_S
17043
17044# What is the maximum length of a command?
17045max_cmd_len=$max_cmd_len
17046
17047# Object file suffix (normally "o").
17048objext=$ac_objext
17049
17050# Executable file suffix (normally "").
17051exeext=$exeext
17052
17053# whether the shell understands "unset".
17054lt_unset=$lt_unset
17055
17056# turn spaces into newlines.
17057SP2NL=$lt_lt_SP2NL
17058
17059# turn newlines into spaces.
17060NL2SP=$lt_lt_NL2SP
17061
17062# How to create reloadable object files.
17063reload_flag=$lt_reload_flag
17064reload_cmds=$lt_reload_cmds
17065
17066# Method to check whether dependent libraries are shared objects.
17067deplibs_check_method=$lt_deplibs_check_method
17068
17069# Command to use when deplibs_check_method == "file_magic".
17070file_magic_cmd=$lt_file_magic_cmd
17071
17072# The archiver.
17073AR=$lt_AR
17074AR_FLAGS=$lt_AR_FLAGS
17075
17076# A symbol stripping program.
17077STRIP=$lt_STRIP
17078
17079# Commands used to install an old-style archive.
17080RANLIB=$lt_RANLIB
17081old_postinstall_cmds=$lt_old_postinstall_cmds
17082old_postuninstall_cmds=$lt_old_postuninstall_cmds
17083
17084# A C compiler.
17085LTCC=$lt_CC
17086
17087# LTCC compiler flags.
17088LTCFLAGS=$lt_CFLAGS
17089
17090# Take the output of nm and produce a listing of raw symbols and C names.
17091global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17092
17093# Transform the output of nm in a proper C declaration.
17094global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17095
17096# Transform the output of nm in a C name address pair.
17097global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17098
17099# The name of the directory that contains temporary libtool files.
17100objdir=$objdir
17101
17102# Shell to use when invoking shell scripts.
17103SHELL=$lt_SHELL
17104
17105# An echo program that does not interpret backslashes.
17106ECHO=$lt_ECHO
17107
17108# Used to examine libraries when file_magic_cmd begins with "file".
17109MAGIC_CMD=$MAGIC_CMD
17110
17111# Must we lock files when doing compilation?
17112need_locks=$lt_need_locks
17113
17114# Old archive suffix (normally "a").
17115libext=$libext
17116
17117# Shared library suffix (normally ".so").
17118shrext_cmds=$lt_shrext_cmds
17119
17120# The commands to extract the exported symbol list from a shared archive.
17121extract_expsyms_cmds=$lt_extract_expsyms_cmds
17122
17123# Variables whose values should be saved in libtool wrapper scripts and
17124# restored at link time.
17125variables_saved_for_relink=$lt_variables_saved_for_relink
17126
17127# Do we need the "lib" prefix for modules?
17128need_lib_prefix=$need_lib_prefix
17129
17130# Do we need a version for libraries?
17131need_version=$need_version
17132
17133# Library versioning type.
17134version_type=$version_type
17135
17136# Shared library runtime path variable.
17137runpath_var=$runpath_var
17138
17139# Shared library path variable.
17140shlibpath_var=$shlibpath_var
17141
17142# Is shlibpath searched before the hard-coded library search path?
17143shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17144
17145# Format of library name prefix.
17146libname_spec=$lt_libname_spec
17147
17148# List of archive names. First name is the real one, the rest are links.
17149# The last name is the one that the linker finds with -lNAME
17150library_names_spec=$lt_library_names_spec
17151
17152# The coded name of the library, if different from the real name.
17153soname_spec=$lt_soname_spec
17154
17155# Command to use after installation of a shared archive.
17156postinstall_cmds=$lt_postinstall_cmds
17157
17158# Command to use after uninstallation of a shared archive.
17159postuninstall_cmds=$lt_postuninstall_cmds
17160
17161# Commands used to finish a libtool library installation in a directory.
17162finish_cmds=$lt_finish_cmds
17163
17164# As "finish_cmds", except a single script fragment to be evaled but
17165# not shown.
17166finish_eval=$lt_finish_eval
17167
17168# Whether we should hardcode library paths into libraries.
17169hardcode_into_libs=$hardcode_into_libs
17170
17171# Compile-time system search path for libraries.
17172sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17173
17174# Run-time system search path for libraries.
17175sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17176
17177# Whether dlopen is supported.
17178dlopen_support=$enable_dlopen
17179
17180# Whether dlopen of programs is supported.
17181dlopen_self=$enable_dlopen_self
17182
17183# Whether dlopen of statically linked programs is supported.
17184dlopen_self_static=$enable_dlopen_self_static
17185
17186# Commands to strip libraries.
17187old_striplib=$lt_old_striplib
17188striplib=$lt_striplib
17189
17190
17191# The linker used to build libraries.
17192LD=$lt_LD
17193
17194# Commands used to build an old-style archive.
17195old_archive_cmds=$lt_old_archive_cmds
17196
17197# A language specific compiler.
17198CC=$lt_compiler
17199
17200# Is the compiler the GNU compiler?
17201with_gcc=$GCC
17202
17203# Compiler flag to turn off builtin functions.
17204no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17205
17206# How to pass a linker flag through the compiler.
17207wl=$lt_lt_prog_compiler_wl
17208
17209# Additional compiler flags for building library objects.
17210pic_flag=$lt_lt_prog_compiler_pic
17211
17212# Compiler flag to prevent dynamic linking.
17213link_static_flag=$lt_lt_prog_compiler_static
17214
17215# Does compiler simultaneously support -c and -o options?
17216compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17217
17218# Whether or not to add -lc for building shared libraries.
17219build_libtool_need_lc=$archive_cmds_need_lc
17220
17221# Whether or not to disallow shared libs when runtime libs are static.
17222allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17223
17224# Compiler flag to allow reflexive dlopens.
17225export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17226
17227# Compiler flag to generate shared objects directly from archives.
17228whole_archive_flag_spec=$lt_whole_archive_flag_spec
17229
17230# Whether the compiler copes with passing no objects directly.
17231compiler_needs_object=$lt_compiler_needs_object
17232
17233# Create an old-style archive from a shared archive.
17234old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17235
17236# Create a temporary old-style archive to link instead of a shared archive.
17237old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17238
17239# Commands used to build a shared archive.
17240archive_cmds=$lt_archive_cmds
17241archive_expsym_cmds=$lt_archive_expsym_cmds
17242
17243# Commands used to build a loadable module if different from building
17244# a shared archive.
17245module_cmds=$lt_module_cmds
17246module_expsym_cmds=$lt_module_expsym_cmds
17247
17248# Whether we are building with GNU ld or not.
17249with_gnu_ld=$lt_with_gnu_ld
17250
17251# Flag that allows shared libraries with undefined symbols to be built.
17252allow_undefined_flag=$lt_allow_undefined_flag
17253
17254# Flag that enforces no undefined symbols.
17255no_undefined_flag=$lt_no_undefined_flag
17256
17257# Flag to hardcode \$libdir into a binary during linking.
17258# This must work even if \$libdir does not exist
17259hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17260
17261# If ld is used when linking, flag to hardcode \$libdir into a binary
17262# during linking. This must work even if \$libdir does not exist.
17263hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17264
17265# Whether we need a single "-rpath" flag with a separated argument.
17266hardcode_libdir_separator=$lt_hardcode_libdir_separator
17267
17268# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17269# DIR into the resulting binary.
17270hardcode_direct=$hardcode_direct
17271
17272# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17273# DIR into the resulting binary and the resulting library dependency is
17274# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17275# library is relocated.
17276hardcode_direct_absolute=$hardcode_direct_absolute
17277
17278# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17279# into the resulting binary.
17280hardcode_minus_L=$hardcode_minus_L
17281
17282# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17283# into the resulting binary.
17284hardcode_shlibpath_var=$hardcode_shlibpath_var
17285
17286# Set to "yes" if building a shared library automatically hardcodes DIR
17287# into the library and all subsequent libraries and executables linked
17288# against it.
17289hardcode_automatic=$hardcode_automatic
17290
17291# Set to yes if linker adds runtime paths of dependent libraries
17292# to runtime path list.
17293inherit_rpath=$inherit_rpath
17294
17295# Whether libtool must link a program against all its dependency libraries.
17296link_all_deplibs=$link_all_deplibs
17297
17298# Fix the shell variable \$srcfile for the compiler.
17299fix_srcfile_path=$lt_fix_srcfile_path
17300
17301# Set to "yes" if exported symbols are required.
17302always_export_symbols=$always_export_symbols
17303
17304# The commands to list exported symbols.
17305export_symbols_cmds=$lt_export_symbols_cmds
17306
17307# Symbols that should not be listed in the preloaded symbols.
17308exclude_expsyms=$lt_exclude_expsyms
17309
17310# Symbols that must always be exported.
17311include_expsyms=$lt_include_expsyms
17312
17313# Commands necessary for linking programs (against libraries) with templates.
17314prelink_cmds=$lt_prelink_cmds
17315
17316# Specify filename containing input files.
17317file_list_spec=$lt_file_list_spec
17318
17319# How to hardcode a shared library path into an executable.
17320hardcode_action=$hardcode_action
17321
17322# ### END LIBTOOL CONFIG
17323
17324_LT_EOF
17325
17326 case $host_os in
17327 aix3*)
17328 cat <<\_LT_EOF >> "$cfgfile"
17329# AIX sometimes has problems with the GCC collect2 program. For some
17330# reason, if we set the COLLECT_NAMES environment variable, the problems
17331# vanish in a puff of smoke.
17332if test "X${COLLECT_NAMES+set}" != Xset; then
17333 COLLECT_NAMES=
17334 export COLLECT_NAMES
17335fi
17336_LT_EOF
17337 ;;
17338 esac
17339
17340
17341ltmain="$ac_aux_dir/ltmain.sh"
17342
17343
17344 # We use sed instead of cat because bash on DJGPP gets confused if
17345 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17346 # text mode, it properly converts lines to CR/LF. This bash problem
17347 # is reportedly fixed, but why not run on old versions too?
17348 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17349 || (rm -f "$cfgfile"; exit 1)
17350
17351 case $xsi_shell in
17352 yes)
17353 cat << \_LT_EOF >> "$cfgfile"
17354# func_dirname file append nondir_replacement
17355# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17356# otherwise set result to NONDIR_REPLACEMENT.
17357func_dirname ()
17358{
17359 case ${1} in
17360 */*) func_dirname_result="${1%/*}${2}" ;;
17361 * ) func_dirname_result="${3}" ;;
17362 esac
17363}
17364
17365# func_basename file
17366func_basename ()
17367{
17368 func_basename_result="${1##*/}"
17369}
17370
17371# func_stripname prefix suffix name
17372# strip PREFIX and SUFFIX off of NAME.
17373# PREFIX and SUFFIX must not contain globbing or regex special
17374# characters, hashes, percent signs, but SUFFIX may contain a leading
17375# dot (in which case that matches only a dot).
17376func_stripname ()
17377{
17378 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17379 # positional parameters, so assign one to ordinary parameter first.
17380 func_stripname_result=${3}
17381 func_stripname_result=${func_stripname_result#"${1}"}
17382 func_stripname_result=${func_stripname_result%"${2}"}
17383}
17384
17385# func_opt_split
17386func_opt_split ()
17387{
17388 func_opt_split_opt=${1%%=*}
17389 func_opt_split_arg=${1#*=}
17390}
17391
17392# func_lo2o object
17393func_lo2o ()
17394{
17395 case ${1} in
17396 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17397 *) func_lo2o_result=${1} ;;
17398 esac
17399}
17400_LT_EOF
17401 ;;
17402 *) # Bourne compatible functions.
17403 cat << \_LT_EOF >> "$cfgfile"
17404# func_dirname file append nondir_replacement
17405# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17406# otherwise set result to NONDIR_REPLACEMENT.
17407func_dirname ()
17408{
17409 # Extract subdirectory from the argument.
17410 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
17411 if test "X$func_dirname_result" = "X${1}"; then
17412 func_dirname_result="${3}"
17413 else
17414 func_dirname_result="$func_dirname_result${2}"
17415 fi
17416}
17417
17418# func_basename file
17419func_basename ()
17420{
17421 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
17422}
17423
17424# func_stripname prefix suffix name
17425# strip PREFIX and SUFFIX off of NAME.
17426# PREFIX and SUFFIX must not contain globbing or regex special
17427# characters, hashes, percent signs, but SUFFIX may contain a leading
17428# dot (in which case that matches only a dot).
17429# func_strip_suffix prefix name
17430func_stripname ()
17431{
17432 case ${2} in
17433 .*) func_stripname_result=`$ECHO "X${3}" \
17434 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
17435 *) func_stripname_result=`$ECHO "X${3}" \
17436 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
17437 esac
17438}
17439
17440# sed scripts:
17441my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17442my_sed_long_arg='1s/^-[^=]*=//'
17443
17444# func_opt_split
17445func_opt_split ()
17446{
17447 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
17448 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
17449}
17450
17451# func_lo2o object
17452func_lo2o ()
17453{
17454 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
17455}
17456_LT_EOF
17457esac
17458
17459case $lt_shell_append in
17460 yes)
17461 cat << \_LT_EOF >> "$cfgfile"
17462
17463# func_append var value
17464# Append VALUE to the end of shell variable VAR.
17465func_append ()
17466{
17467 eval "$1+=\$2"
17468}
17469_LT_EOF
17470 ;;
17471 *)
17472 cat << \_LT_EOF >> "$cfgfile"
17473
17474# func_append var value
17475# Append VALUE to the end of shell variable VAR.
17476func_append ()
17477{
17478 eval "$1=\$$1\$2"
17479}
17480_LT_EOF
17481 ;;
17482 esac
17483
17484
17485 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17486 || (rm -f "$cfgfile"; exit 1)
17487
17488 mv -f "$cfgfile" "$ofile" ||
17489 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17490 chmod +x "$ofile"
17491
42ecbf5e 17492 ;;
20e95c23
DJ
17493 default-1 )
17494 for ac_file in $CONFIG_FILES; do
17495 # Support "outfile[:infile[:infile...]]"
17496 case "$ac_file" in
17497 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17498 esac
17499 # PO directories have a Makefile.in generated from Makefile.in.in.
17500 case "$ac_file" in */Makefile.in)
17501 # Adjust a relative srcdir.
17502 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17503 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
17504 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17505 # In autoconf-2.13 it is called $ac_given_srcdir.
17506 # In autoconf-2.50 it is called $srcdir.
17507 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17508 case "$ac_given_srcdir" in
17509 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17510 /*) top_srcdir="$ac_given_srcdir" ;;
17511 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
17512 esac
17513 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17514 rm -f "$ac_dir/POTFILES"
17515 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17516 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17517 POMAKEFILEDEPS="POTFILES.in"
17518 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
17519 # on $ac_dir but don't depend on user-specified configuration
17520 # parameters.
17521 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17522 # The LINGUAS file contains the set of available languages.
17523 if test -n "$OBSOLETE_ALL_LINGUAS"; then
17524 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
17525 fi
17526 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17527 # Hide the ALL_LINGUAS assigment from automake.
17528 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17529 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
17530 else
17531 # The set of available languages was given in configure.in.
17532 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
17533 fi
17534 case "$ac_given_srcdir" in
17535 .) srcdirpre= ;;
17536 *) srcdirpre='$(srcdir)/' ;;
17537 esac
17538 POFILES=
17539 GMOFILES=
17540 UPDATEPOFILES=
17541 DUMMYPOFILES=
17542 for lang in $ALL_LINGUAS; do
17543 POFILES="$POFILES $srcdirpre$lang.po"
17544 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17545 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17546 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17547 done
17548 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17549 # environment variable.
17550 INST_LINGUAS=
17551 if test -n "$ALL_LINGUAS"; then
17552 for presentlang in $ALL_LINGUAS; do
17553 useit=no
17554 if test "%UNSET%" != "$LINGUAS"; then
17555 desiredlanguages="$LINGUAS"
17556 else
17557 desiredlanguages="$ALL_LINGUAS"
17558 fi
17559 for desiredlang in $desiredlanguages; do
17560 # Use the presentlang catalog if desiredlang is
17561 # a. equal to presentlang, or
17562 # b. a variant of presentlang (because in this case,
17563 # presentlang can be used as a fallback for messages
17564 # which are not translated in the desiredlang catalog).
17565 case "$desiredlang" in
17566 "$presentlang"*) useit=yes;;
17567 esac
17568 done
17569 if test $useit = yes; then
17570 INST_LINGUAS="$INST_LINGUAS $presentlang"
17571 fi
17572 done
17573 fi
17574 CATALOGS=
17575 if test -n "$INST_LINGUAS"; then
17576 for lang in $INST_LINGUAS; do
17577 CATALOGS="$CATALOGS $lang.gmo"
17578 done
17579 fi
17580 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17581 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"
17582 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17583 if test -f "$f"; then
17584 case "$f" in
17585 *.orig | *.bak | *~) ;;
17586 *) cat "$f" >> "$ac_dir/Makefile" ;;
17587 esac
17588 fi
17589 done
17590 fi
17591 ;;
17592 esac
17593 done ;;
42ecbf5e
DJ
17594 esac
17595done
17596_ACEOF
e5a52504 17597
42ecbf5e
DJ
17598cat >>$CONFIG_STATUS <<\_ACEOF
17599
17600{ (exit 0); exit 0; }
17601_ACEOF
252b5132 17602chmod +x $CONFIG_STATUS
42ecbf5e
DJ
17603ac_clean_files=$ac_clean_files_save
17604
17605
17606# configure is writing to config.log, and then calls config.status.
17607# config.status does its own redirection, appending to config.log.
17608# Unfortunately, on DOS this fails, as config.log is still kept open
17609# by configure, so config.status won't be able to write to it; its
17610# output is simply discarded. So we exec the FD to /dev/null,
17611# effectively closing config.log, so it can be properly (re)opened and
17612# appended to by config.status. When coming back to configure, we
17613# need to make the FD available again.
17614if test "$no_create" != yes; then
17615 ac_cs_success=:
17616 ac_config_status_args=
17617 test "$silent" = yes &&
17618 ac_config_status_args="$ac_config_status_args --quiet"
17619 exec 5>/dev/null
17620 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17621 exec 5>>config.log
17622 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17623 # would make configure fail if this is the last instruction.
17624 $ac_cs_success || { (exit 1); exit 1; }
17625fi
252b5132 17626
This page took 1.272963 seconds and 4 git commands to generate.