]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - opcodes/configure
Minor fixes in sim, gold, gdb for Autoconf 2.64, Automake 1.11.
[thirdparty/binutils-gdb.git] / opcodes / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
979273e3 3# Generated by GNU Autoconf 2.59.
252b5132 4#
979273e3 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.
979273e3
NN
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
979273e3
NN
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
979273e3
NN
398exec 6>&1
399
400#
401# Initializations.
402#
252b5132 403ac_default_prefix=/usr/local
979273e3
NN
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="z8k-dis.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
51dec227 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 AR ac_ct_AR RANLIB ac_ct_RANLIB LIBTOOL SED FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S OBJDUMP ac_ct_OBJDUMP lt_ECHO DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT LIPO ac_ct_LIPO OTOOL ac_ct_OTOOL OTOOL64 ac_ct_OTOOL64 WARN_CFLAGS NO_WERROR MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT INSTALL_LIBBFD_TRUE INSTALL_LIBBFD_FALSE host_noncanonical target_noncanonical bfdlibdir bfdincludedir USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE CC_FOR_BUILD EXEEXT_FOR_BUILD HDEFINES CGEN_MAINT_TRUE CGEN_MAINT_FALSE cgendir LIBM SHARED_LDFLAGS SHARED_LIBADD SHARED_DEPENDENCIES archdefs BFD_MACHINES LIBOBJS LTLIBOBJS'
979273e3 462ac_subst_files=''
7a283e07 463ac_pwd=`pwd`
252b5132
RH
464
465# Initialize some variables set by options.
979273e3
NN
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.
979273e3 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
979273e3
NN
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
979273e3 513 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
252b5132
RH
514
515 # Accept the important Cygnus configure options, so we can diagnose typos.
516
979273e3 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=*)
979273e3 522 bindir=$ac_optarg ;;
252b5132
RH
523
524 -build | --build | --buil | --bui | --bu)
979273e3 525 ac_prev=build_alias ;;
252b5132 526 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
979273e3 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=*)
979273e3
NN
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=*)
979273e3 543 datadir=$ac_optarg ;;
252b5132
RH
544
545 -disable-* | --disable-*)
979273e3 546 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 547 # Reject names that are not valid shell variable names.
979273e3
NN
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-*)
979273e3 555 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 556 # Reject names that are not valid shell variable names.
979273e3
NN
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
979273e3 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=*)
979273e3 574 exec_prefix=$ac_optarg ;;
252b5132
RH
575
576 -gas | --gas | --ga | --g)
577 # Obsolete; use --with-gas.
578 with_gas=yes ;;
579
979273e3
NN
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)
979273e3 588 ac_prev=host_alias ;;
252b5132 589 -host=* | --host=* | --hos=* | --ho=*)
979273e3 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=*)
979273e3 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=*)
979273e3 602 infodir=$ac_optarg ;;
252b5132
RH
603
604 -libdir | --libdir | --libdi | --libd)
605 ac_prev=libdir ;;
606 -libdir=* | --libdir=* | --libdi=* | --libd=*)
979273e3 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=*)
979273e3 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=*)
979273e3 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=*)
979273e3 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 \
979273e3 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=*)
979273e3 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=*)
979273e3 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=*)
979273e3 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=*)
979273e3 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=*)
979273e3 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=*)
979273e3 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=*)
979273e3 706 sharedstatedir=$ac_optarg ;;
252b5132
RH
707
708 -site | --site | --sit)
709 ac_prev=site ;;
710 -site=* | --site=* | --sit=*)
979273e3 711 site=$ac_optarg ;;
1fe1f39c 712
252b5132
RH
713 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
714 ac_prev=srcdir ;;
715 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
979273e3 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=*)
979273e3 723 sysconfdir=$ac_optarg ;;
252b5132
RH
724
725 -target | --target | --targe | --targ | --tar | --ta | --t)
979273e3 726 ac_prev=target_alias ;;
252b5132 727 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
979273e3 728 target_alias=$ac_optarg ;;
252b5132
RH
729
730 -v | -verbose | --verbose | --verbos | --verbo | --verb)
731 verbose=yes ;;
732
979273e3
NN
733 -version | --version | --versio | --versi | --vers | -V)
734 ac_init_version=: ;;
252b5132
RH
735
736 -with-* | --with-*)
979273e3 737 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 738 # Reject names that are not valid shell variable names.
979273e3
NN
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'`
979273e3
NN
743 case $ac_option in
744 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252b5132
RH
745 *) ac_optarg=yes ;;
746 esac
979273e3 747 eval "with_$ac_package='$ac_optarg'" ;;
252b5132
RH
748
749 -without-* | --without-*)
979273e3 750 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 751 # Reject names that are not valid shell variable names.
979273e3
NN
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=*)
979273e3 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=*)
979273e3 774 x_libraries=$ac_optarg ;;
252b5132 775
979273e3
NN
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
979273e3
NN
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 *)
979273e3
NN
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
979273e3
NN
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 806fi
252b5132 807
979273e3
NN
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
979273e3
NN
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
979273e3
NN
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
979273e3
NN
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
252b5132 848
979273e3
NN
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.
979273e3
NN
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
979273e3
NN
880 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
881 { (exit 1); exit 1; }; }
252b5132 882 else
979273e3
NN
883 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
884 { (exit 1); exit 1; }; }
252b5132
RH
885 fi
886fi
979273e3
NN
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
979273e3
NN
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
979273e3 933Usage: $0 [OPTION]... [VAR=VALUE]...
252b5132 934
979273e3
NN
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
979273e3 938Defaults for the options are specified in brackets.
ac48eca1 939
979273e3
NN
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
979273e3
NN
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
979273e3 965For better control, use the options below.
ac48eca1 966
979273e3
NN
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
979273e3 982 cat <<\_ACEOF
252b5132 983
979273e3
NN
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
979273e3
NN
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
979273e3 996if test -n "$ac_init_help"; then
252b5132 997
979273e3 998 cat <<\_ACEOF
252b5132 999
979273e3
NN
1000Optional Features:
1001 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1002 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
8ae85421
AM
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=no]
1007 --enable-static[=PKGS]
1008 build static libraries [default=yes]
1009 --enable-fast-install[=PKGS]
1010 optimize for fast installation [default=yes]
979273e3
NN
1011 --disable-libtool-lock avoid locking (might break parallel builds)
1012 --enable-targets alternative target configurations
241a6c40
AM
1013 --enable-werror treat compile warnings as errors
1014 --enable-build-warnings enable build-time compiler warnings
8ae85421
AM
1015 --enable-maintainer-mode enable make rules and dependencies not useful
1016 (and sometimes confusing) to the casual installer
979273e3
NN
1017 --enable-install-libbfd controls installation of libbfd and related headers
1018 --disable-nls do not use Native Language Support
1019 --enable-cgen-maint=dir build cgen generated files
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]
252b5132 1027
979273e3
NN
1028Some influential environment variables:
1029 CC C compiler command
1030 CFLAGS C compiler flags
1031 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1032 nonstandard directory <lib dir>
1033 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1034 headers in a nonstandard directory <include dir>
1035 CPP C preprocessor
a2d91340 1036
979273e3
NN
1037Use these variables to override the choices made by `configure' or to help
1038it to find libraries and programs with nonstandard names/locations.
1039
1040_ACEOF
a2d91340
AC
1041fi
1042
979273e3
NN
1043if test "$ac_init_help" = "recursive"; then
1044 # If there are subdirs, report their specific --help.
1045 ac_popdir=`pwd`
1046 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1047 test -d $ac_dir || continue
1048 ac_builddir=.
1049
1050if test "$ac_dir" != .; then
1051 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1052 # A "../" for each directory in $ac_dir_suffix.
1053 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1054else
1055 ac_dir_suffix= ac_top_builddir=
1056fi
a2d91340 1057
979273e3
NN
1058case $srcdir in
1059 .) # No --srcdir option. We are building in place.
1060 ac_srcdir=.
1061 if test -z "$ac_top_builddir"; then
1062 ac_top_srcdir=.
1063 else
1064 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
a2d91340 1065 fi ;;
979273e3
NN
1066 [\\/]* | ?:[\\/]* ) # Absolute path.
1067 ac_srcdir=$srcdir$ac_dir_suffix;
1068 ac_top_srcdir=$srcdir ;;
1069 *) # Relative path.
1070 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1071 ac_top_srcdir=$ac_top_builddir$srcdir ;;
a2d91340
AC
1072esac
1073
979273e3
NN
1074# Do not use `cd foo && pwd` to compute absolute paths, because
1075# the directories may not exist.
1076case `pwd` in
1077.) ac_abs_builddir="$ac_dir";;
1078*)
1079 case "$ac_dir" in
1080 .) ac_abs_builddir=`pwd`;;
1081 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1082 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1083 esac;;
a2d91340 1084esac
979273e3
NN
1085case $ac_abs_builddir in
1086.) ac_abs_top_builddir=${ac_top_builddir}.;;
1087*)
1088 case ${ac_top_builddir}. in
1089 .) ac_abs_top_builddir=$ac_abs_builddir;;
1090 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1091 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1092 esac;;
1093esac
1094case $ac_abs_builddir in
1095.) ac_abs_srcdir=$ac_srcdir;;
1096*)
1097 case $ac_srcdir in
1098 .) ac_abs_srcdir=$ac_abs_builddir;;
1099 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1100 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1101 esac;;
1102esac
1103case $ac_abs_builddir in
1104.) ac_abs_top_srcdir=$ac_top_srcdir;;
1105*)
1106 case $ac_top_srcdir in
1107 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1108 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1109 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1110 esac;;
a2d91340
AC
1111esac
1112
979273e3
NN
1113 cd $ac_dir
1114 # Check for guested configure; otherwise get Cygnus style configure.
1115 if test -f $ac_srcdir/configure.gnu; then
1116 echo
1117 $SHELL $ac_srcdir/configure.gnu --help=recursive
1118 elif test -f $ac_srcdir/configure; then
1119 echo
1120 $SHELL $ac_srcdir/configure --help=recursive
1121 elif test -f $ac_srcdir/configure.ac ||
1122 test -f $ac_srcdir/configure.in; then
1123 echo
1124 $ac_configure --help
1125 else
1126 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1127 fi
8ae85421 1128 cd $ac_popdir
979273e3
NN
1129 done
1130fi
a2d91340 1131
979273e3
NN
1132test -n "$ac_init_help" && exit 0
1133if $ac_init_version; then
1134 cat <<\_ACEOF
252b5132 1135
979273e3
NN
1136Copyright (C) 2003 Free Software Foundation, Inc.
1137This configure script is free software; the Free Software Foundation
1138gives unlimited permission to copy, distribute and modify it.
1139_ACEOF
1140 exit 0
1141fi
1142exec 5>config.log
1143cat >&5 <<_ACEOF
1144This file contains any messages produced by compilers while
1145running configure, to aid debugging if configure makes a mistake.
2c73f9d8 1146
979273e3
NN
1147It was created by $as_me, which was
1148generated by GNU Autoconf 2.59. Invocation command line was
252b5132 1149
979273e3 1150 $ $0 $@
252b5132 1151
979273e3
NN
1152_ACEOF
1153{
1154cat <<_ASUNAME
1155## --------- ##
1156## Platform. ##
1157## --------- ##
1158
1159hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1160uname -m = `(uname -m) 2>/dev/null || echo unknown`
1161uname -r = `(uname -r) 2>/dev/null || echo unknown`
1162uname -s = `(uname -s) 2>/dev/null || echo unknown`
1163uname -v = `(uname -v) 2>/dev/null || echo unknown`
1164
1165/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1166/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1167
1168/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1169/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1170/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1171hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1172/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1173/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1174/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1175
1176_ASUNAME
1177
1178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1179for as_dir in $PATH
1180do
1181 IFS=$as_save_IFS
1182 test -z "$as_dir" && as_dir=.
1183 echo "PATH: $as_dir"
1184done
252b5132 1185
979273e3 1186} >&5
75798298 1187
979273e3 1188cat >&5 <<_ACEOF
252b5132 1189
252b5132 1190
979273e3
NN
1191## ----------- ##
1192## Core tests. ##
1193## ----------- ##
1194
1195_ACEOF
1196
1197
1198# Keep a trace of the command line.
1199# Strip out --no-create and --no-recursion so they do not pile up.
1200# Strip out --silent because we don't want to record it for future runs.
1201# Also quote any args containing shell meta-characters.
1202# Make two passes to allow for proper duplicate-argument suppression.
1203ac_configure_args=
1204ac_configure_args0=
1205ac_configure_args1=
1206ac_sep=
1207ac_must_keep_next=false
1208for ac_pass in 1 2
1209do
1210 for ac_arg
1211 do
1212 case $ac_arg in
1213 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1214 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1215 | -silent | --silent | --silen | --sile | --sil)
1216 continue ;;
1217 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1218 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1219 esac
1220 case $ac_pass in
1221 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1222 2)
1223 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1224 if test $ac_must_keep_next = true; then
1225 ac_must_keep_next=false # Got value, back to normal.
1226 else
1227 case $ac_arg in
1228 *=* | --config-cache | -C | -disable-* | --disable-* \
1229 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1230 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1231 | -with-* | --with-* | -without-* | --without-* | --x)
1232 case "$ac_configure_args0 " in
1233 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1234 esac
1235 ;;
1236 -* ) ac_must_keep_next=true ;;
1237 esac
1238 fi
1239 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1240 # Get rid of the leading space.
1241 ac_sep=" "
1242 ;;
1243 esac
1244 done
1245done
1246$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1247$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1248
1249# When interrupted or exit'd, cleanup temporary files, and complete
1250# config.log. We remove comments because anyway the quotes in there
1251# would cause problems or look ugly.
1252# WARNING: Be sure not to use single quotes in there, as some shells,
1253# such as our DU 5.0 friend, will then `close' the trap.
1254trap 'exit_status=$?
1255 # Save into config.log some information that might help in debugging.
1256 {
1257 echo
1258
1259 cat <<\_ASBOX
1260## ---------------- ##
1261## Cache variables. ##
1262## ---------------- ##
1263_ASBOX
1264 echo
1265 # The following way of writing the cache mishandles newlines in values,
1266{
1267 (set) 2>&1 |
1268 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1269 *ac_space=\ *)
1270 sed -n \
1271 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1272 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1273 ;;
1274 *)
1275 sed -n \
1276 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1277 ;;
1278 esac;
1279}
1280 echo
1281
1282 cat <<\_ASBOX
1283## ----------------- ##
1284## Output variables. ##
1285## ----------------- ##
1286_ASBOX
1287 echo
1288 for ac_var in $ac_subst_vars
1289 do
1290 eval ac_val=$`echo $ac_var`
1291 echo "$ac_var='"'"'$ac_val'"'"'"
1292 done | sort
1293 echo
1294
1295 if test -n "$ac_subst_files"; then
1296 cat <<\_ASBOX
1297## ------------- ##
1298## Output files. ##
1299## ------------- ##
1300_ASBOX
1301 echo
1302 for ac_var in $ac_subst_files
1303 do
1304 eval ac_val=$`echo $ac_var`
1305 echo "$ac_var='"'"'$ac_val'"'"'"
1306 done | sort
1307 echo
1308 fi
1309
1310 if test -s confdefs.h; then
1311 cat <<\_ASBOX
1312## ----------- ##
1313## confdefs.h. ##
1314## ----------- ##
1315_ASBOX
1316 echo
1317 sed "/^$/d" confdefs.h | sort
1318 echo
1319 fi
1320 test "$ac_signal" != 0 &&
1321 echo "$as_me: caught signal $ac_signal"
1322 echo "$as_me: exit $exit_status"
1323 } >&5
1324 rm -f core *.core &&
1325 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1326 exit $exit_status
1327 ' 0
1328for ac_signal in 1 2 13 15; do
1329 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1330done
1331ac_signal=0
1332
1333# confdefs.h avoids OS command line length limits that DEFS can exceed.
1334rm -rf conftest* confdefs.h
1335# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1336echo >confdefs.h
1337
1338# Predefined preprocessor variables.
1339
1340cat >>confdefs.h <<_ACEOF
1341#define PACKAGE_NAME "$PACKAGE_NAME"
1342_ACEOF
1343
1344
1345cat >>confdefs.h <<_ACEOF
1346#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1347_ACEOF
1348
1349
1350cat >>confdefs.h <<_ACEOF
1351#define PACKAGE_VERSION "$PACKAGE_VERSION"
1352_ACEOF
1353
1354
1355cat >>confdefs.h <<_ACEOF
1356#define PACKAGE_STRING "$PACKAGE_STRING"
1357_ACEOF
1358
1359
1360cat >>confdefs.h <<_ACEOF
1361#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1362_ACEOF
1363
1364
1365# Let the site file select an alternate cache file if it wants to.
1366# Prefer explicitly selected file to automatically selected ones.
1367if test -z "$CONFIG_SITE"; then
1368 if test "x$prefix" != xNONE; then
1369 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1370 else
1371 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1372 fi
1373fi
1374for ac_site_file in $CONFIG_SITE; do
1375 if test -r "$ac_site_file"; then
1376 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1377echo "$as_me: loading site script $ac_site_file" >&6;}
1378 sed 's/^/| /' "$ac_site_file" >&5
1379 . "$ac_site_file"
1380 fi
1381done
1382
1383if test -r "$cache_file"; then
1384 # Some versions of bash will fail to source /dev/null (special
1385 # files actually), so we avoid doing that.
1386 if test -f "$cache_file"; then
1387 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1388echo "$as_me: loading cache $cache_file" >&6;}
1389 case $cache_file in
1390 [\\/]* | ?:[\\/]* ) . $cache_file;;
1391 *) . ./$cache_file;;
1392 esac
1393 fi
1394else
1395 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1396echo "$as_me: creating cache $cache_file" >&6;}
1397 >$cache_file
1398fi
1399
1400# Check that the precious variables saved in the cache have kept the same
1401# value.
1402ac_cache_corrupted=false
1403for ac_var in `(set) 2>&1 |
1404 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1405 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1406 eval ac_new_set=\$ac_env_${ac_var}_set
1407 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1408 eval ac_new_val="\$ac_env_${ac_var}_value"
1409 case $ac_old_set,$ac_new_set in
1410 set,)
1411 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1412echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1413 ac_cache_corrupted=: ;;
1414 ,set)
1415 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1416echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1417 ac_cache_corrupted=: ;;
1418 ,);;
1419 *)
1420 if test "x$ac_old_val" != "x$ac_new_val"; then
6194aaab
L
1421 # differences in whitespace do not lead to failure.
1422 ac_old_val_w=`echo x $ac_old_val`
1423 ac_new_val_w=`echo x $ac_new_val`
1424 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1425 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
979273e3 1426echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
6194aaab
L
1427 ac_cache_corrupted=:
1428 else
1429 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1430echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1431 eval $ac_var=\$ac_old_val
1432 fi
1433 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1434echo "$as_me: former value: \`$ac_old_val'" >&2;}
1435 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1436echo "$as_me: current value: \`$ac_new_val'" >&2;}
979273e3
NN
1437 fi;;
1438 esac
1439 # Pass precious variables to config.status.
1440 if test "$ac_new_set" = set; then
1441 case $ac_new_val in
1442 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1443 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1444 *) ac_arg=$ac_var=$ac_new_val ;;
1445 esac
1446 case " $ac_configure_args " in
1447 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1448 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1449 esac
1450 fi
1451done
1452if $ac_cache_corrupted; then
7a283e07
RW
1453 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1454echo "$as_me: error: in \`$ac_pwd':" >&2;}
979273e3
NN
1455 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1456echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1457 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1458echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1459 { (exit 1); exit 1; }; }
1460fi
1461
1462ac_ext=c
1463ac_cpp='$CPP $CPPFLAGS'
1464ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1465ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1466ac_compiler_gnu=$ac_cv_c_compiler_gnu
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
7a283e07
RW
1484
1485
1486
979273e3
NN
1487
1488
1489
1490
1491ac_aux_dir=
1492for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1493 if test -f $ac_dir/install-sh; then
1494 ac_aux_dir=$ac_dir
1495 ac_install_sh="$ac_aux_dir/install-sh -c"
1496 break
1497 elif test -f $ac_dir/install.sh; then
1498 ac_aux_dir=$ac_dir
1499 ac_install_sh="$ac_aux_dir/install.sh -c"
1500 break
1501 elif test -f $ac_dir/shtool; then
1502 ac_aux_dir=$ac_dir
1503 ac_install_sh="$ac_aux_dir/shtool install -c"
1504 break
1505 fi
1506done
1507if test -z "$ac_aux_dir"; then
1508 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1509echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1510 { (exit 1); exit 1; }; }
1511fi
1512ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1513ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1514ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1515
1516# Make sure we can run config.sub.
1517$ac_config_sub sun4 >/dev/null 2>&1 ||
1518 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1519echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1520 { (exit 1); exit 1; }; }
1521
1522echo "$as_me:$LINENO: checking build system type" >&5
1523echo $ECHO_N "checking build system type... $ECHO_C" >&6
1524if test "${ac_cv_build+set}" = set; then
1525 echo $ECHO_N "(cached) $ECHO_C" >&6
1526else
1527 ac_cv_build_alias=$build_alias
1528test -z "$ac_cv_build_alias" &&
1529 ac_cv_build_alias=`$ac_config_guess`
1530test -z "$ac_cv_build_alias" &&
1531 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1532echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1533 { (exit 1); exit 1; }; }
1534ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1535 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1536echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1537 { (exit 1); exit 1; }; }
1538
1539fi
1540echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1541echo "${ECHO_T}$ac_cv_build" >&6
1542build=$ac_cv_build
1543build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1544build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1545build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1546
1547
1548echo "$as_me:$LINENO: checking host system type" >&5
1549echo $ECHO_N "checking host system type... $ECHO_C" >&6
1550if test "${ac_cv_host+set}" = set; then
1551 echo $ECHO_N "(cached) $ECHO_C" >&6
1552else
1553 ac_cv_host_alias=$host_alias
1554test -z "$ac_cv_host_alias" &&
1555 ac_cv_host_alias=$ac_cv_build_alias
1556ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1557 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1558echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1559 { (exit 1); exit 1; }; }
1560
1561fi
1562echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1563echo "${ECHO_T}$ac_cv_host" >&6
1564host=$ac_cv_host
1565host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1566host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1567host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1568
1569
1570echo "$as_me:$LINENO: checking target system type" >&5
1571echo $ECHO_N "checking target system type... $ECHO_C" >&6
1572if test "${ac_cv_target+set}" = set; then
1573 echo $ECHO_N "(cached) $ECHO_C" >&6
1574else
1575 ac_cv_target_alias=$target_alias
1576test "x$ac_cv_target_alias" = "x" &&
1577 ac_cv_target_alias=$ac_cv_host_alias
1578ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1579 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1580echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1581 { (exit 1); exit 1; }; }
1582
1583fi
1584echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1585echo "${ECHO_T}$ac_cv_target" >&6
1586target=$ac_cv_target
1587target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1588target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1589target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1590
1591
1592# The aliases save the names the user supplied, while $host etc.
1593# will get canonicalized.
1594test -n "$target_alias" &&
1595 test "$program_prefix$program_suffix$program_transform_name" = \
1596 NONENONEs,x,x, &&
1597 program_prefix=${target_alias}-
1598ac_ext=c
1599ac_cpp='$CPP $CPPFLAGS'
1600ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1601ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1602ac_compiler_gnu=$ac_cv_c_compiler_gnu
1603if test -n "$ac_tool_prefix"; then
1604 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1605set dummy ${ac_tool_prefix}gcc; ac_word=$2
1606echo "$as_me:$LINENO: checking for $ac_word" >&5
1607echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1608if test "${ac_cv_prog_CC+set}" = set; then
1609 echo $ECHO_N "(cached) $ECHO_C" >&6
1610else
1611 if test -n "$CC"; then
1612 ac_cv_prog_CC="$CC" # Let the user override the test.
1613else
1614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1615for as_dir in $PATH
1616do
1617 IFS=$as_save_IFS
1618 test -z "$as_dir" && as_dir=.
1619 for ac_exec_ext in '' $ac_executable_extensions; do
1620 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1621 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1623 break 2
1624 fi
1625done
1626done
1627
1628fi
1629fi
1630CC=$ac_cv_prog_CC
1631if test -n "$CC"; then
1632 echo "$as_me:$LINENO: result: $CC" >&5
1633echo "${ECHO_T}$CC" >&6
1634else
1635 echo "$as_me:$LINENO: result: no" >&5
1636echo "${ECHO_T}no" >&6
1637fi
1638
1639fi
1640if test -z "$ac_cv_prog_CC"; then
1641 ac_ct_CC=$CC
1642 # Extract the first word of "gcc", so it can be a program name with args.
1643set dummy gcc; ac_word=$2
1644echo "$as_me:$LINENO: checking for $ac_word" >&5
1645echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1646if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1647 echo $ECHO_N "(cached) $ECHO_C" >&6
1648else
1649 if test -n "$ac_ct_CC"; then
1650 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1651else
1652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1653for as_dir in $PATH
1654do
1655 IFS=$as_save_IFS
1656 test -z "$as_dir" && as_dir=.
1657 for ac_exec_ext in '' $ac_executable_extensions; do
1658 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1659 ac_cv_prog_ac_ct_CC="gcc"
1660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1661 break 2
1662 fi
1663done
1664done
1665
1666fi
1667fi
1668ac_ct_CC=$ac_cv_prog_ac_ct_CC
1669if test -n "$ac_ct_CC"; then
1670 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1671echo "${ECHO_T}$ac_ct_CC" >&6
1672else
1673 echo "$as_me:$LINENO: result: no" >&5
1674echo "${ECHO_T}no" >&6
1675fi
1676
1677 CC=$ac_ct_CC
1678else
1679 CC="$ac_cv_prog_CC"
1680fi
1681
1682if test -z "$CC"; then
1683 if test -n "$ac_tool_prefix"; then
1684 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1685set dummy ${ac_tool_prefix}cc; ac_word=$2
1686echo "$as_me:$LINENO: checking for $ac_word" >&5
1687echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1688if test "${ac_cv_prog_CC+set}" = set; then
1689 echo $ECHO_N "(cached) $ECHO_C" >&6
1690else
1691 if test -n "$CC"; then
1692 ac_cv_prog_CC="$CC" # Let the user override the test.
1693else
1694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1695for as_dir in $PATH
1696do
1697 IFS=$as_save_IFS
1698 test -z "$as_dir" && as_dir=.
1699 for ac_exec_ext in '' $ac_executable_extensions; do
1700 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1701 ac_cv_prog_CC="${ac_tool_prefix}cc"
1702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1703 break 2
1704 fi
1705done
1706done
1707
1708fi
1709fi
1710CC=$ac_cv_prog_CC
1711if test -n "$CC"; then
1712 echo "$as_me:$LINENO: result: $CC" >&5
1713echo "${ECHO_T}$CC" >&6
1714else
1715 echo "$as_me:$LINENO: result: no" >&5
1716echo "${ECHO_T}no" >&6
1717fi
1718
1719fi
1720if test -z "$ac_cv_prog_CC"; then
1721 ac_ct_CC=$CC
1722 # Extract the first word of "cc", so it can be a program name with args.
1723set dummy cc; ac_word=$2
1724echo "$as_me:$LINENO: checking for $ac_word" >&5
1725echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1726if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1727 echo $ECHO_N "(cached) $ECHO_C" >&6
1728else
1729 if test -n "$ac_ct_CC"; then
1730 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1731else
1732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1733for as_dir in $PATH
1734do
1735 IFS=$as_save_IFS
1736 test -z "$as_dir" && as_dir=.
1737 for ac_exec_ext in '' $ac_executable_extensions; do
1738 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1739 ac_cv_prog_ac_ct_CC="cc"
1740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1741 break 2
1742 fi
1743done
1744done
1745
1746fi
1747fi
1748ac_ct_CC=$ac_cv_prog_ac_ct_CC
1749if test -n "$ac_ct_CC"; then
1750 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1751echo "${ECHO_T}$ac_ct_CC" >&6
1752else
1753 echo "$as_me:$LINENO: result: no" >&5
1754echo "${ECHO_T}no" >&6
1755fi
1756
1757 CC=$ac_ct_CC
1758else
1759 CC="$ac_cv_prog_CC"
1760fi
1761
1762fi
1763if test -z "$CC"; then
1764 # Extract the first word of "cc", so it can be a program name with args.
1765set dummy cc; ac_word=$2
1766echo "$as_me:$LINENO: checking for $ac_word" >&5
1767echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1768if test "${ac_cv_prog_CC+set}" = set; then
1769 echo $ECHO_N "(cached) $ECHO_C" >&6
1770else
1771 if test -n "$CC"; then
1772 ac_cv_prog_CC="$CC" # Let the user override the test.
1773else
1774 ac_prog_rejected=no
1775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1776for as_dir in $PATH
1777do
1778 IFS=$as_save_IFS
1779 test -z "$as_dir" && as_dir=.
1780 for ac_exec_ext in '' $ac_executable_extensions; do
1781 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1782 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1783 ac_prog_rejected=yes
1784 continue
1785 fi
1786 ac_cv_prog_CC="cc"
1787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1788 break 2
1789 fi
1790done
1791done
1792
1793if test $ac_prog_rejected = yes; then
1794 # We found a bogon in the path, so make sure we never use it.
1795 set dummy $ac_cv_prog_CC
1796 shift
1797 if test $# != 0; then
1798 # We chose a different compiler from the bogus one.
1799 # However, it has the same basename, so the bogon will be chosen
1800 # first if we set CC to just the basename; use the full file name.
1801 shift
1802 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1803 fi
1804fi
1805fi
1806fi
1807CC=$ac_cv_prog_CC
1808if test -n "$CC"; then
1809 echo "$as_me:$LINENO: result: $CC" >&5
1810echo "${ECHO_T}$CC" >&6
1811else
1812 echo "$as_me:$LINENO: result: no" >&5
1813echo "${ECHO_T}no" >&6
1814fi
1815
1816fi
1817if test -z "$CC"; then
1818 if test -n "$ac_tool_prefix"; then
1819 for ac_prog in cl
1820 do
1821 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1822set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1823echo "$as_me:$LINENO: checking for $ac_word" >&5
1824echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1825if test "${ac_cv_prog_CC+set}" = set; then
1826 echo $ECHO_N "(cached) $ECHO_C" >&6
1827else
1828 if test -n "$CC"; then
1829 ac_cv_prog_CC="$CC" # Let the user override the test.
1830else
1831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1832for as_dir in $PATH
1833do
1834 IFS=$as_save_IFS
1835 test -z "$as_dir" && as_dir=.
1836 for ac_exec_ext in '' $ac_executable_extensions; do
1837 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1838 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1840 break 2
1841 fi
1842done
1843done
1844
1845fi
1846fi
1847CC=$ac_cv_prog_CC
1848if test -n "$CC"; then
1849 echo "$as_me:$LINENO: result: $CC" >&5
1850echo "${ECHO_T}$CC" >&6
1851else
1852 echo "$as_me:$LINENO: result: no" >&5
1853echo "${ECHO_T}no" >&6
1854fi
1855
1856 test -n "$CC" && break
1857 done
1858fi
1859if test -z "$CC"; then
1860 ac_ct_CC=$CC
1861 for ac_prog in cl
1862do
1863 # Extract the first word of "$ac_prog", so it can be a program name with args.
1864set dummy $ac_prog; ac_word=$2
1865echo "$as_me:$LINENO: checking for $ac_word" >&5
1866echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1867if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1868 echo $ECHO_N "(cached) $ECHO_C" >&6
1869else
1870 if test -n "$ac_ct_CC"; then
1871 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1872else
1873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1874for as_dir in $PATH
1875do
1876 IFS=$as_save_IFS
1877 test -z "$as_dir" && as_dir=.
1878 for ac_exec_ext in '' $ac_executable_extensions; do
1879 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1880 ac_cv_prog_ac_ct_CC="$ac_prog"
1881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1882 break 2
1883 fi
1884done
1885done
1886
1887fi
1888fi
1889ac_ct_CC=$ac_cv_prog_ac_ct_CC
1890if test -n "$ac_ct_CC"; then
1891 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1892echo "${ECHO_T}$ac_ct_CC" >&6
1893else
1894 echo "$as_me:$LINENO: result: no" >&5
1895echo "${ECHO_T}no" >&6
1896fi
1897
1898 test -n "$ac_ct_CC" && break
1899done
1900
1901 CC=$ac_ct_CC
1902fi
1903
1904fi
1905
1906
7a283e07
RW
1907test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1908echo "$as_me: error: in \`$ac_pwd':" >&2;}
1909{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
979273e3
NN
1910See \`config.log' for more details." >&5
1911echo "$as_me: error: no acceptable C compiler found in \$PATH
1912See \`config.log' for more details." >&2;}
7a283e07 1913 { (exit 1); exit 1; }; }; }
979273e3
NN
1914
1915# Provide some information about the compiler.
1916echo "$as_me:$LINENO:" \
1917 "checking for C compiler version" >&5
1918ac_compiler=`set X $ac_compile; echo $2`
1919{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1920 (eval $ac_compiler --version </dev/null >&5) 2>&5
1921 ac_status=$?
1922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1923 (exit $ac_status); }
1924{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1925 (eval $ac_compiler -v </dev/null >&5) 2>&5
1926 ac_status=$?
1927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1928 (exit $ac_status); }
1929{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1930 (eval $ac_compiler -V </dev/null >&5) 2>&5
1931 ac_status=$?
1932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1933 (exit $ac_status); }
1934
1935cat >conftest.$ac_ext <<_ACEOF
1936/* confdefs.h. */
1937_ACEOF
1938cat confdefs.h >>conftest.$ac_ext
1939cat >>conftest.$ac_ext <<_ACEOF
1940/* end confdefs.h. */
1941
1942int
1943main ()
1944{
1945
1946 ;
1947 return 0;
1948}
1949_ACEOF
1950ac_clean_files_save=$ac_clean_files
1951ac_clean_files="$ac_clean_files a.out a.exe b.out"
1952# Try to create an executable without -o first, disregard a.out.
1953# It will help us diagnose broken compilers, and finding out an intuition
1954# of exeext.
1955echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1956echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1957ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1958if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1959 (eval $ac_link_default) 2>&5
1960 ac_status=$?
1961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1962 (exit $ac_status); }; then
1963 # Find the output, starting from the most likely. This scheme is
1964# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1965# resort.
1966
1967# Be careful to initialize this variable, since it used to be cached.
1968# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1969ac_cv_exeext=
1970# b.out is created by i960 compilers.
1971for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1972do
1973 test -f "$ac_file" || continue
1974 case $ac_file in
1975 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1976 ;;
1977 conftest.$ac_ext )
1978 # This is the source file.
1979 ;;
1980 [ab].out )
1981 # We found the default executable, but exeext='' is most
1982 # certainly right.
1983 break;;
1984 *.* )
1985 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1986 # FIXME: I believe we export ac_cv_exeext for Libtool,
1987 # but it would be cool to find out if it's true. Does anybody
1988 # maintain Libtool? --akim.
1989 export ac_cv_exeext
1990 break;;
1991 * )
1992 break;;
1993 esac
1994done
1995else
1996 echo "$as_me: failed program was:" >&5
1997sed 's/^/| /' conftest.$ac_ext >&5
1998
7a283e07
RW
1999{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2000echo "$as_me: error: in \`$ac_pwd':" >&2;}
979273e3
NN
2001{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2002See \`config.log' for more details." >&5
2003echo "$as_me: error: C compiler cannot create executables
2004See \`config.log' for more details." >&2;}
7a283e07 2005 { (exit 77); exit 77; }; }; }
979273e3
NN
2006fi
2007
2008ac_exeext=$ac_cv_exeext
2009echo "$as_me:$LINENO: result: $ac_file" >&5
2010echo "${ECHO_T}$ac_file" >&6
2011
2012# Check the compiler produces executables we can run. If not, either
2013# the compiler is broken, or we cross compile.
2014echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2015echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2016# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2017# If not cross compiling, check that we can run a simple program.
2018if test "$cross_compiling" != yes; then
2019 if { ac_try='./$ac_file'
2020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2021 (eval $ac_try) 2>&5
2022 ac_status=$?
2023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2024 (exit $ac_status); }; }; then
2025 cross_compiling=no
2026 else
2027 if test "$cross_compiling" = maybe; then
2028 cross_compiling=yes
2029 else
7a283e07
RW
2030 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2031echo "$as_me: error: in \`$ac_pwd':" >&2;}
2032{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
979273e3
NN
2033If you meant to cross compile, use \`--host'.
2034See \`config.log' for more details." >&5
2035echo "$as_me: error: cannot run C compiled programs.
2036If you meant to cross compile, use \`--host'.
2037See \`config.log' for more details." >&2;}
7a283e07 2038 { (exit 1); exit 1; }; }; }
979273e3
NN
2039 fi
2040 fi
2041fi
2042echo "$as_me:$LINENO: result: yes" >&5
2043echo "${ECHO_T}yes" >&6
2044
2045rm -f a.out a.exe conftest$ac_cv_exeext b.out
2046ac_clean_files=$ac_clean_files_save
2047# Check the compiler produces executables we can run. If not, either
2048# the compiler is broken, or we cross compile.
2049echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2050echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2051echo "$as_me:$LINENO: result: $cross_compiling" >&5
2052echo "${ECHO_T}$cross_compiling" >&6
2053
2054echo "$as_me:$LINENO: checking for suffix of executables" >&5
2055echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2056if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2057 (eval $ac_link) 2>&5
2058 ac_status=$?
2059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2060 (exit $ac_status); }; then
2061 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2062# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2063# work properly (i.e., refer to `conftest.exe'), while it won't with
2064# `rm'.
2065for ac_file in conftest.exe conftest conftest.*; do
2066 test -f "$ac_file" || continue
2067 case $ac_file in
2068 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2069 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2070 export ac_cv_exeext
2071 break;;
2072 * ) break;;
2073 esac
2074done
2075else
7a283e07
RW
2076 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2077echo "$as_me: error: in \`$ac_pwd':" >&2;}
2078{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
979273e3
NN
2079See \`config.log' for more details." >&5
2080echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2081See \`config.log' for more details." >&2;}
7a283e07 2082 { (exit 1); exit 1; }; }; }
979273e3
NN
2083fi
2084
2085rm -f conftest$ac_cv_exeext
2086echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2087echo "${ECHO_T}$ac_cv_exeext" >&6
2088
2089rm -f conftest.$ac_ext
2090EXEEXT=$ac_cv_exeext
2091ac_exeext=$EXEEXT
2092echo "$as_me:$LINENO: checking for suffix of object files" >&5
2093echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2094if test "${ac_cv_objext+set}" = set; then
2095 echo $ECHO_N "(cached) $ECHO_C" >&6
2096else
2097 cat >conftest.$ac_ext <<_ACEOF
2098/* confdefs.h. */
2099_ACEOF
2100cat confdefs.h >>conftest.$ac_ext
2101cat >>conftest.$ac_ext <<_ACEOF
2102/* end confdefs.h. */
2103
2104int
2105main ()
2106{
2107
2108 ;
2109 return 0;
2110}
2111_ACEOF
2112rm -f conftest.o conftest.obj
2113if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2114 (eval $ac_compile) 2>&5
2115 ac_status=$?
2116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2117 (exit $ac_status); }; then
2118 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2119 case $ac_file in
2120 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2121 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2122 break;;
2123 esac
2124done
2125else
2126 echo "$as_me: failed program was:" >&5
2127sed 's/^/| /' conftest.$ac_ext >&5
2128
7a283e07
RW
2129{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2130echo "$as_me: error: in \`$ac_pwd':" >&2;}
979273e3
NN
2131{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2132See \`config.log' for more details." >&5
2133echo "$as_me: error: cannot compute suffix of object files: cannot compile
2134See \`config.log' for more details." >&2;}
7a283e07 2135 { (exit 1); exit 1; }; }; }
979273e3
NN
2136fi
2137
2138rm -f conftest.$ac_cv_objext conftest.$ac_ext
2139fi
2140echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2141echo "${ECHO_T}$ac_cv_objext" >&6
2142OBJEXT=$ac_cv_objext
2143ac_objext=$OBJEXT
2144echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2145echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2146if test "${ac_cv_c_compiler_gnu+set}" = set; then
2147 echo $ECHO_N "(cached) $ECHO_C" >&6
2148else
2149 cat >conftest.$ac_ext <<_ACEOF
2150/* confdefs.h. */
2151_ACEOF
2152cat confdefs.h >>conftest.$ac_ext
2153cat >>conftest.$ac_ext <<_ACEOF
2154/* end confdefs.h. */
2155
2156int
2157main ()
2158{
2159#ifndef __GNUC__
2160 choke me
2161#endif
2162
2163 ;
2164 return 0;
2165}
2166_ACEOF
2167rm -f conftest.$ac_objext
2168if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2169 (eval $ac_compile) 2>conftest.er1
2170 ac_status=$?
2171 grep -v '^ *+' conftest.er1 >conftest.err
2172 rm -f conftest.er1
2173 cat conftest.err >&5
2174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175 (exit $ac_status); } &&
8ae85421
AM
2176 { ac_try='test -z "$ac_c_werror_flag"
2177 || test ! -s conftest.err'
979273e3
NN
2178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2179 (eval $ac_try) 2>&5
2180 ac_status=$?
2181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182 (exit $ac_status); }; } &&
2183 { ac_try='test -s conftest.$ac_objext'
2184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2185 (eval $ac_try) 2>&5
2186 ac_status=$?
2187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2188 (exit $ac_status); }; }; then
2189 ac_compiler_gnu=yes
2190else
2191 echo "$as_me: failed program was:" >&5
2192sed 's/^/| /' conftest.$ac_ext >&5
2193
2194ac_compiler_gnu=no
2195fi
2196rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2197ac_cv_c_compiler_gnu=$ac_compiler_gnu
2198
2199fi
2200echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2201echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2202GCC=`test $ac_compiler_gnu = yes && echo yes`
2203ac_test_CFLAGS=${CFLAGS+set}
2204ac_save_CFLAGS=$CFLAGS
2205CFLAGS="-g"
2206echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2207echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2208if test "${ac_cv_prog_cc_g+set}" = set; then
2209 echo $ECHO_N "(cached) $ECHO_C" >&6
2210else
2211 cat >conftest.$ac_ext <<_ACEOF
2212/* confdefs.h. */
2213_ACEOF
2214cat confdefs.h >>conftest.$ac_ext
2215cat >>conftest.$ac_ext <<_ACEOF
2216/* end confdefs.h. */
2217
2218int
2219main ()
2220{
2221
2222 ;
2223 return 0;
2224}
2225_ACEOF
2226rm -f conftest.$ac_objext
2227if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2228 (eval $ac_compile) 2>conftest.er1
2229 ac_status=$?
2230 grep -v '^ *+' conftest.er1 >conftest.err
2231 rm -f conftest.er1
2232 cat conftest.err >&5
2233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234 (exit $ac_status); } &&
8ae85421
AM
2235 { ac_try='test -z "$ac_c_werror_flag"
2236 || test ! -s conftest.err'
979273e3
NN
2237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2238 (eval $ac_try) 2>&5
2239 ac_status=$?
2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 (exit $ac_status); }; } &&
2242 { ac_try='test -s conftest.$ac_objext'
2243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2244 (eval $ac_try) 2>&5
2245 ac_status=$?
2246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247 (exit $ac_status); }; }; then
2248 ac_cv_prog_cc_g=yes
2249else
2250 echo "$as_me: failed program was:" >&5
2251sed 's/^/| /' conftest.$ac_ext >&5
2252
2253ac_cv_prog_cc_g=no
2254fi
2255rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2256fi
2257echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2258echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2259if test "$ac_test_CFLAGS" = set; then
2260 CFLAGS=$ac_save_CFLAGS
2261elif test $ac_cv_prog_cc_g = yes; then
2262 if test "$GCC" = yes; then
2263 CFLAGS="-g -O2"
2264 else
2265 CFLAGS="-g"
2266 fi
2267else
2268 if test "$GCC" = yes; then
2269 CFLAGS="-O2"
2270 else
2271 CFLAGS=
2272 fi
2273fi
2274echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2275echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2276if test "${ac_cv_prog_cc_stdc+set}" = set; then
2277 echo $ECHO_N "(cached) $ECHO_C" >&6
2278else
2279 ac_cv_prog_cc_stdc=no
2280ac_save_CC=$CC
2281cat >conftest.$ac_ext <<_ACEOF
2282/* confdefs.h. */
2283_ACEOF
2284cat confdefs.h >>conftest.$ac_ext
2285cat >>conftest.$ac_ext <<_ACEOF
2286/* end confdefs.h. */
2287#include <stdarg.h>
2288#include <stdio.h>
2289#include <sys/types.h>
2290#include <sys/stat.h>
2291/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2292struct buf { int x; };
2293FILE * (*rcsopen) (struct buf *, struct stat *, int);
2294static char *e (p, i)
2295 char **p;
2296 int i;
2297{
2298 return p[i];
2299}
2300static char *f (char * (*g) (char **, int), char **p, ...)
2301{
2302 char *s;
2303 va_list v;
2304 va_start (v,p);
2305 s = g (p, va_arg (v,int));
2306 va_end (v);
2307 return s;
2308}
2309
2310/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2311 function prototypes and stuff, but not '\xHH' hex character constants.
2312 These don't provoke an error unfortunately, instead are silently treated
2313 as 'x'. The following induces an error, until -std1 is added to get
2314 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2315 array size at least. It's necessary to write '\x00'==0 to get something
2316 that's true only with -std1. */
2317int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2318
2319int test (int i, double x);
2320struct s1 {int (*f) (int a);};
2321struct s2 {int (*f) (double a);};
2322int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2323int argc;
2324char **argv;
2325int
2326main ()
2327{
2328return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2329 ;
2330 return 0;
2331}
2332_ACEOF
2333# Don't try gcc -ansi; that turns off useful extensions and
2334# breaks some systems' header files.
2335# AIX -qlanglvl=ansi
2336# Ultrix and OSF/1 -std1
2337# HP-UX 10.20 and later -Ae
2338# HP-UX older versions -Aa -D_HPUX_SOURCE
2339# SVR4 -Xc -D__EXTENSIONS__
2340for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2341do
2342 CC="$ac_save_CC $ac_arg"
2343 rm -f conftest.$ac_objext
2344if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2345 (eval $ac_compile) 2>conftest.er1
2346 ac_status=$?
2347 grep -v '^ *+' conftest.er1 >conftest.err
2348 rm -f conftest.er1
2349 cat conftest.err >&5
2350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351 (exit $ac_status); } &&
8ae85421
AM
2352 { ac_try='test -z "$ac_c_werror_flag"
2353 || test ! -s conftest.err'
979273e3
NN
2354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2355 (eval $ac_try) 2>&5
2356 ac_status=$?
2357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358 (exit $ac_status); }; } &&
2359 { ac_try='test -s conftest.$ac_objext'
2360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2361 (eval $ac_try) 2>&5
2362 ac_status=$?
2363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2364 (exit $ac_status); }; }; then
2365 ac_cv_prog_cc_stdc=$ac_arg
2366break
2367else
2368 echo "$as_me: failed program was:" >&5
2369sed 's/^/| /' conftest.$ac_ext >&5
2370
2371fi
2372rm -f conftest.err conftest.$ac_objext
2373done
2374rm -f conftest.$ac_ext conftest.$ac_objext
2375CC=$ac_save_CC
2376
2377fi
2378
2379case "x$ac_cv_prog_cc_stdc" in
2380 x|xno)
2381 echo "$as_me:$LINENO: result: none needed" >&5
2382echo "${ECHO_T}none needed" >&6 ;;
2383 *)
2384 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2385echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2386 CC="$CC $ac_cv_prog_cc_stdc" ;;
2387esac
2388
2389# Some people use a C++ compiler to compile C. Since we use `exit',
2390# in C++ we need to declare it. In case someone uses the same compiler
2391# for both compiling C and C++ we need to have the C++ compiler decide
2392# the declaration of exit, since it's the most demanding environment.
2393cat >conftest.$ac_ext <<_ACEOF
2394#ifndef __cplusplus
2395 choke me
2396#endif
2397_ACEOF
2398rm -f conftest.$ac_objext
2399if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2400 (eval $ac_compile) 2>conftest.er1
2401 ac_status=$?
2402 grep -v '^ *+' conftest.er1 >conftest.err
2403 rm -f conftest.er1
2404 cat conftest.err >&5
2405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406 (exit $ac_status); } &&
8ae85421
AM
2407 { ac_try='test -z "$ac_c_werror_flag"
2408 || test ! -s conftest.err'
979273e3
NN
2409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2410 (eval $ac_try) 2>&5
2411 ac_status=$?
2412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413 (exit $ac_status); }; } &&
2414 { ac_try='test -s conftest.$ac_objext'
2415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2416 (eval $ac_try) 2>&5
2417 ac_status=$?
2418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419 (exit $ac_status); }; }; then
2420 for ac_declaration in \
2421 '' \
2422 'extern "C" void std::exit (int) throw (); using std::exit;' \
2423 'extern "C" void std::exit (int); using std::exit;' \
2424 'extern "C" void exit (int) throw ();' \
2425 'extern "C" void exit (int);' \
2426 'void exit (int);'
2427do
2428 cat >conftest.$ac_ext <<_ACEOF
2429/* confdefs.h. */
2430_ACEOF
2431cat confdefs.h >>conftest.$ac_ext
2432cat >>conftest.$ac_ext <<_ACEOF
2433/* end confdefs.h. */
2434$ac_declaration
2435#include <stdlib.h>
2436int
2437main ()
2438{
2439exit (42);
2440 ;
2441 return 0;
2442}
2443_ACEOF
2444rm -f conftest.$ac_objext
2445if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2446 (eval $ac_compile) 2>conftest.er1
2447 ac_status=$?
2448 grep -v '^ *+' conftest.er1 >conftest.err
2449 rm -f conftest.er1
2450 cat conftest.err >&5
2451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452 (exit $ac_status); } &&
8ae85421
AM
2453 { ac_try='test -z "$ac_c_werror_flag"
2454 || test ! -s conftest.err'
979273e3
NN
2455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2456 (eval $ac_try) 2>&5
2457 ac_status=$?
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); }; } &&
2460 { ac_try='test -s conftest.$ac_objext'
2461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2462 (eval $ac_try) 2>&5
2463 ac_status=$?
2464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465 (exit $ac_status); }; }; then
2466 :
2467else
2468 echo "$as_me: failed program was:" >&5
2469sed 's/^/| /' conftest.$ac_ext >&5
2470
2471continue
2472fi
2473rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2474 cat >conftest.$ac_ext <<_ACEOF
2475/* confdefs.h. */
2476_ACEOF
2477cat confdefs.h >>conftest.$ac_ext
2478cat >>conftest.$ac_ext <<_ACEOF
2479/* end confdefs.h. */
2480$ac_declaration
2481int
2482main ()
2483{
2484exit (42);
2485 ;
2486 return 0;
2487}
2488_ACEOF
2489rm -f conftest.$ac_objext
2490if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2491 (eval $ac_compile) 2>conftest.er1
2492 ac_status=$?
2493 grep -v '^ *+' conftest.er1 >conftest.err
2494 rm -f conftest.er1
2495 cat conftest.err >&5
2496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497 (exit $ac_status); } &&
8ae85421
AM
2498 { ac_try='test -z "$ac_c_werror_flag"
2499 || test ! -s conftest.err'
979273e3
NN
2500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2501 (eval $ac_try) 2>&5
2502 ac_status=$?
2503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504 (exit $ac_status); }; } &&
2505 { ac_try='test -s conftest.$ac_objext'
2506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2507 (eval $ac_try) 2>&5
2508 ac_status=$?
2509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510 (exit $ac_status); }; }; then
2511 break
2512else
2513 echo "$as_me: failed program was:" >&5
2514sed 's/^/| /' conftest.$ac_ext >&5
2515
2516fi
2517rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2518done
2519rm -f conftest*
2520if test -n "$ac_declaration"; then
2521 echo '#ifdef __cplusplus' >>confdefs.h
2522 echo $ac_declaration >>confdefs.h
2523 echo '#endif' >>confdefs.h
2524fi
2525
2526else
2527 echo "$as_me: failed program was:" >&5
2528sed 's/^/| /' conftest.$ac_ext >&5
2529
2530fi
2531rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2532ac_ext=c
2533ac_cpp='$CPP $CPPFLAGS'
2534ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2535ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2536ac_compiler_gnu=$ac_cv_c_compiler_gnu
2537
2538
8ae85421
AM
2539echo "$as_me:$LINENO: checking for library containing strerror" >&5
2540echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2541if test "${ac_cv_search_strerror+set}" = set; then
979273e3
NN
2542 echo $ECHO_N "(cached) $ECHO_C" >&6
2543else
8ae85421
AM
2544 ac_func_search_save_LIBS=$LIBS
2545ac_cv_search_strerror=no
979273e3
NN
2546cat >conftest.$ac_ext <<_ACEOF
2547/* confdefs.h. */
2548_ACEOF
2549cat confdefs.h >>conftest.$ac_ext
2550cat >>conftest.$ac_ext <<_ACEOF
2551/* end confdefs.h. */
2552
2553/* Override any gcc2 internal prototype to avoid an error. */
2554#ifdef __cplusplus
2555extern "C"
2556#endif
2557/* We use char because int might match the return type of a gcc2
2558 builtin and then its argument prototype would still apply. */
2559char strerror ();
2560int
2561main ()
2562{
2563strerror ();
2564 ;
2565 return 0;
2566}
2567_ACEOF
2568rm -f conftest.$ac_objext conftest$ac_exeext
2569if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2570 (eval $ac_link) 2>conftest.er1
2571 ac_status=$?
2572 grep -v '^ *+' conftest.er1 >conftest.err
2573 rm -f conftest.er1
2574 cat conftest.err >&5
2575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576 (exit $ac_status); } &&
8ae85421
AM
2577 { ac_try='test -z "$ac_c_werror_flag"
2578 || test ! -s conftest.err'
979273e3
NN
2579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2580 (eval $ac_try) 2>&5
2581 ac_status=$?
2582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583 (exit $ac_status); }; } &&
2584 { ac_try='test -s conftest$ac_exeext'
2585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2586 (eval $ac_try) 2>&5
2587 ac_status=$?
2588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589 (exit $ac_status); }; }; then
8ae85421 2590 ac_cv_search_strerror="none required"
979273e3
NN
2591else
2592 echo "$as_me: failed program was:" >&5
2593sed 's/^/| /' conftest.$ac_ext >&5
2594
979273e3
NN
2595fi
2596rm -f conftest.err conftest.$ac_objext \
2597 conftest$ac_exeext conftest.$ac_ext
8ae85421
AM
2598if test "$ac_cv_search_strerror" = no; then
2599 for ac_lib in cposix; do
2600 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2601 cat >conftest.$ac_ext <<_ACEOF
2602/* confdefs.h. */
2603_ACEOF
2604cat confdefs.h >>conftest.$ac_ext
2605cat >>conftest.$ac_ext <<_ACEOF
2606/* end confdefs.h. */
2607
2608/* Override any gcc2 internal prototype to avoid an error. */
2609#ifdef __cplusplus
2610extern "C"
2611#endif
2612/* We use char because int might match the return type of a gcc2
2613 builtin and then its argument prototype would still apply. */
2614char strerror ();
2615int
2616main ()
2617{
2618strerror ();
2619 ;
2620 return 0;
2621}
2622_ACEOF
2623rm -f conftest.$ac_objext conftest$ac_exeext
2624if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2625 (eval $ac_link) 2>conftest.er1
2626 ac_status=$?
2627 grep -v '^ *+' conftest.er1 >conftest.err
2628 rm -f conftest.er1
2629 cat conftest.err >&5
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); } &&
2632 { ac_try='test -z "$ac_c_werror_flag"
2633 || test ! -s conftest.err'
2634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2635 (eval $ac_try) 2>&5
2636 ac_status=$?
2637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638 (exit $ac_status); }; } &&
2639 { ac_try='test -s conftest$ac_exeext'
2640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2641 (eval $ac_try) 2>&5
2642 ac_status=$?
2643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644 (exit $ac_status); }; }; then
2645 ac_cv_search_strerror="-l$ac_lib"
2646break
2647else
2648 echo "$as_me: failed program was:" >&5
2649sed 's/^/| /' conftest.$ac_ext >&5
2650
979273e3 2651fi
8ae85421
AM
2652rm -f conftest.err conftest.$ac_objext \
2653 conftest$ac_exeext conftest.$ac_ext
2654 done
979273e3 2655fi
8ae85421
AM
2656LIBS=$ac_func_search_save_LIBS
2657fi
2658echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2659echo "${ECHO_T}$ac_cv_search_strerror" >&6
2660if test "$ac_cv_search_strerror" != no; then
2661 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
979273e3 2662
8ae85421 2663fi
979273e3
NN
2664
2665
2666# We currently only use the version number for the name of any shared
2667# library. For user convenience, we always use the same version
2668# number that BFD is using.
2669BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2670
8ae85421 2671am__api_version="1.9"
979273e3
NN
2672# Find a good install program. We prefer a C program (faster),
2673# so one script is as good as another. But avoid the broken or
2674# incompatible versions:
2675# SysV /etc/install, /usr/sbin/install
2676# SunOS /usr/etc/install
2677# IRIX /sbin/install
2678# AIX /bin/install
2679# AmigaOS /C/install, which installs bootblocks on floppy discs
2680# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2681# AFS /usr/afsws/bin/install, which mishandles nonexistent args
252b5132 2682# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
979273e3 2683# OS/2's system install, which has a completely different semantic
252b5132 2684# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 2685# Reject install programs that cannot install multiple files.
979273e3
NN
2686echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2687echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
252b5132 2688if test -z "$INSTALL"; then
979273e3
NN
2689if test "${ac_cv_path_install+set}" = set; then
2690 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 2691else
979273e3
NN
2692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2693for as_dir in $PATH
2694do
2695 IFS=$as_save_IFS
2696 test -z "$as_dir" && as_dir=.
2697 # Account for people who put trailing slashes in PATH elements.
2698case $as_dir/ in
2699 ./ | .// | /cC/* | \
2700 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2701 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2702 /usr/ucb/* ) ;;
2703 *)
2704 # OSF1 and SCO ODT 3.0 have their own names for install.
2705 # Don't use installbsd from OSF since it installs stuff as root
2706 # by default.
2707 for ac_prog in ginstall scoinst install; do
2708 for ac_exec_ext in '' $ac_executable_extensions; do
2709 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
252b5132 2710 if test $ac_prog = install &&
979273e3 2711 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
2712 # AIX install. It has an incompatible calling convention.
2713 :
979273e3
NN
2714 elif test $ac_prog = install &&
2715 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2716 # program-specific install script used by HP pwplus--don't use.
2717 :
252b5132 2718 else
58c85be7
RW
2719 rm -rf conftest.one conftest.two conftest.dir
2720 echo one > conftest.one
2721 echo two > conftest.two
2722 mkdir conftest.dir
2723 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2724 test -s conftest.one && test -s conftest.two &&
2725 test -s conftest.dir/conftest.one &&
2726 test -s conftest.dir/conftest.two
2727 then
2728 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2729 break 3
2730 fi
252b5132
RH
2731 fi
2732 fi
2733 done
979273e3
NN
2734 done
2735 ;;
2736esac
2737done
2738
58c85be7 2739rm -rf conftest.one conftest.two conftest.dir
252b5132
RH
2740
2741fi
2742 if test "${ac_cv_path_install+set}" = set; then
979273e3 2743 INSTALL=$ac_cv_path_install
252b5132 2744 else
58c85be7
RW
2745 # As a last resort, use the slow shell script. Don't cache a
2746 # value for INSTALL within a source directory, because that will
252b5132 2747 # break other packages using the cache if that directory is
58c85be7 2748 # removed, or if the value is a relative name.
979273e3 2749 INSTALL=$ac_install_sh
252b5132
RH
2750 fi
2751fi
979273e3
NN
2752echo "$as_me:$LINENO: result: $INSTALL" >&5
2753echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
2754
2755# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2756# It thinks the first close brace ends the variable substitution.
2757test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2758
979273e3 2759test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
2760
2761test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2762
979273e3
NN
2763echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2764echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
252b5132
RH
2765# Just in case
2766sleep 1
8ae85421 2767echo timestamp > conftest.file
252b5132
RH
2768# Do `set' in a subshell so we don't clobber the current shell's
2769# arguments. Must try -L first in case configure is actually a
2770# symlink; some systems play weird games with the mod time of symlinks
2771# (eg FreeBSD returns the mod time of the symlink's containing
2772# directory).
2773if (
8ae85421 2774 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
252b5132
RH
2775 if test "$*" = "X"; then
2776 # -L didn't work.
8ae85421 2777 set X `ls -t $srcdir/configure conftest.file`
252b5132 2778 fi
8ae85421
AM
2779 rm -f conftest.file
2780 if test "$*" != "X $srcdir/configure conftest.file" \
2781 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
2782
2783 # If neither matched, then we have a broken ls. This can happen
2784 # if, for instance, CONFIG_SHELL is bash and it inherits a
2785 # broken ls alias from the environment. This has actually
2786 # happened. Such a system could not be considered "sane".
979273e3
NN
2787 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2788alias in your environment" >&5
2789echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2790alias in your environment" >&2;}
2791 { (exit 1); exit 1; }; }
252b5132
RH
2792 fi
2793
8ae85421 2794 test "$2" = conftest.file
252b5132
RH
2795 )
2796then
2797 # Ok.
2798 :
2799else
979273e3
NN
2800 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2801Check your system clock" >&5
2802echo "$as_me: error: newly created file is older than distributed files!
2803Check your system clock" >&2;}
2804 { (exit 1); exit 1; }; }
252b5132 2805fi
979273e3
NN
2806echo "$as_me:$LINENO: result: yes" >&5
2807echo "${ECHO_T}yes" >&6
252b5132 2808test "$program_prefix" != NONE &&
979273e3 2809 program_transform_name="s,^,$program_prefix,;$program_transform_name"
252b5132
RH
2810# Use a double $ so make ignores it.
2811test "$program_suffix" != NONE &&
979273e3
NN
2812 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2813# Double any \ or $. echo might interpret backslashes.
2814# By default was `s,x,x', remove it if useless.
2815cat <<\_ACEOF >conftest.sed
2816s/[\\$]/&&/g;s/;s,x,x,$//
2817_ACEOF
2818program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2819rm conftest.sed
2820
8ae85421
AM
2821# expand $ac_aux_dir to an absolute path
2822am_aux_dir=`cd $ac_aux_dir && pwd`
2823
2824test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2825# Use eval to expand $SHELL
2826if eval "$MISSING --run true"; then
2827 am_missing_run="$MISSING --run "
2828else
2829 am_missing_run=
2830 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2831echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2832fi
2833
2834if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2835 # We used to keeping the `.' as first argument, in order to
2836 # allow $(mkdir_p) to be used without argument. As in
2837 # $(mkdir_p) $(somedir)
2838 # where $(somedir) is conditionally defined. However this is wrong
2839 # for two reasons:
2840 # 1. if the package is installed by a user who cannot write `.'
2841 # make install will fail,
2842 # 2. the above comment should most certainly read
2843 # $(mkdir_p) $(DESTDIR)$(somedir)
2844 # so it does not work when $(somedir) is undefined and
2845 # $(DESTDIR) is not.
2846 # To support the latter case, we have to write
2847 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2848 # so the `.' trick is pointless.
2849 mkdir_p='mkdir -p --'
2850else
2851 # On NextStep and OpenStep, the `mkdir' command does not
2852 # recognize any option. It will interpret all options as
2853 # directories to create, and then abort because `.' already
2854 # exists.
2855 for d in ./-p ./--version;
2856 do
2857 test -d $d && rmdir $d
2858 done
2859 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2860 if test -f "$ac_aux_dir/mkinstalldirs"; then
2861 mkdir_p='$(mkinstalldirs)'
2862 else
2863 mkdir_p='$(install_sh) -d'
2864 fi
2865fi
2866
2867for ac_prog in gawk mawk nawk awk
2868do
2869 # Extract the first word of "$ac_prog", so it can be a program name with args.
2870set dummy $ac_prog; ac_word=$2
2871echo "$as_me:$LINENO: checking for $ac_word" >&5
2872echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2873if test "${ac_cv_prog_AWK+set}" = set; then
2874 echo $ECHO_N "(cached) $ECHO_C" >&6
2875else
2876 if test -n "$AWK"; then
2877 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2878else
2879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2880for as_dir in $PATH
2881do
2882 IFS=$as_save_IFS
2883 test -z "$as_dir" && as_dir=.
2884 for ac_exec_ext in '' $ac_executable_extensions; do
2885 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2886 ac_cv_prog_AWK="$ac_prog"
2887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2888 break 2
2889 fi
2890done
2891done
2892
2893fi
2894fi
2895AWK=$ac_cv_prog_AWK
2896if test -n "$AWK"; then
2897 echo "$as_me:$LINENO: result: $AWK" >&5
2898echo "${ECHO_T}$AWK" >&6
2899else
2900 echo "$as_me:$LINENO: result: no" >&5
2901echo "${ECHO_T}no" >&6
2902fi
2903
2904 test -n "$AWK" && break
2905done
2906
979273e3
NN
2907echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2908echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2909set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2910if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2911 echo $ECHO_N "(cached) $ECHO_C" >&6
2912else
2913 cat >conftest.make <<\_ACEOF
252b5132 2914all:
979273e3
NN
2915 @echo 'ac_maketemp="$(MAKE)"'
2916_ACEOF
252b5132 2917# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
979273e3 2918eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
252b5132
RH
2919if test -n "$ac_maketemp"; then
2920 eval ac_cv_prog_make_${ac_make}_set=yes
2921else
2922 eval ac_cv_prog_make_${ac_make}_set=no
2923fi
979273e3 2924rm -f conftest.make
252b5132
RH
2925fi
2926if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
979273e3
NN
2927 echo "$as_me:$LINENO: result: yes" >&5
2928echo "${ECHO_T}yes" >&6
252b5132
RH
2929 SET_MAKE=
2930else
979273e3
NN
2931 echo "$as_me:$LINENO: result: no" >&5
2932echo "${ECHO_T}no" >&6
252b5132
RH
2933 SET_MAKE="MAKE=${MAKE-make}"
2934fi
2935
8ae85421
AM
2936rm -rf .tst 2>/dev/null
2937mkdir .tst 2>/dev/null
2938if test -d .tst; then
2939 am__leading_dot=.
2940else
2941 am__leading_dot=_
2942fi
2943rmdir .tst 2>/dev/null
2944
2945DEPDIR="${am__leading_dot}deps"
2946
2947 ac_config_commands="$ac_config_commands depfiles"
2948
2949
2950am_make=${MAKE-make}
2951cat > confinc << 'END'
2952am__doit:
2953 @echo done
2954.PHONY: am__doit
2955END
2956# If we don't find an include directive, just comment out the code.
2957echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2958echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2959am__include="#"
2960am__quote=
2961_am_result=none
2962# First try GNU make style include.
2963echo "include confinc" > confmf
2964# We grep out `Entering directory' and `Leaving directory'
2965# messages which can occur if `w' ends up in MAKEFLAGS.
2966# In particular we don't look at `^make:' because GNU make might
2967# be invoked under some other name (usually "gmake"), in which
2968# case it prints its new name instead of `make'.
2969if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2970 am__include=include
2971 am__quote=
2972 _am_result=GNU
2973fi
2974# Now try BSD make style include.
2975if test "$am__include" = "#"; then
2976 echo '.include "confinc"' > confmf
2977 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2978 am__include=.include
2979 am__quote="\""
2980 _am_result=BSD
2981 fi
2982fi
2983
2984
2985echo "$as_me:$LINENO: result: $_am_result" >&5
2986echo "${ECHO_T}$_am_result" >&6
2987rm -f confinc confmf
2988
2989# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2990if test "${enable_dependency_tracking+set}" = set; then
2991 enableval="$enable_dependency_tracking"
2992
2993fi;
2994if test "x$enable_dependency_tracking" != xno; then
2995 am_depcomp="$ac_aux_dir/depcomp"
2996 AMDEPBACKSLASH='\'
2997fi
2998
2999
3000if test "x$enable_dependency_tracking" != xno; then
3001 AMDEP_TRUE=
3002 AMDEP_FALSE='#'
3003else
3004 AMDEP_TRUE='#'
3005 AMDEP_FALSE=
3006fi
252b5132 3007
252b5132 3008
252b5132 3009
8ae85421
AM
3010# test to see if srcdir already configured
3011if test "`cd $srcdir && pwd`" != "`pwd`" &&
3012 test -f $srcdir/config.status; then
979273e3
NN
3013 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3014echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3015 { (exit 1); exit 1; }; }
252b5132 3016fi
979273e3 3017
8ae85421
AM
3018# test whether we have cygpath
3019if test -z "$CYGPATH_W"; then
3020 if (cygpath --version) >/dev/null 2>/dev/null; then
3021 CYGPATH_W='cygpath -w'
3022 else
3023 CYGPATH_W=echo
3024 fi
3025fi
3026
3027
3028# Define the identity of the package.
3029 PACKAGE=opcodes
3030 VERSION=${BFD_VERSION}
3031
3032
979273e3 3033cat >>confdefs.h <<_ACEOF
252b5132 3034#define PACKAGE "$PACKAGE"
979273e3 3035_ACEOF
252b5132 3036
979273e3
NN
3037
3038cat >>confdefs.h <<_ACEOF
252b5132 3039#define VERSION "$VERSION"
979273e3 3040_ACEOF
252b5132 3041
8ae85421 3042# Some tools Automake needs.
252b5132 3043
8ae85421 3044ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
252b5132 3045
8ae85421
AM
3046
3047AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3048
3049
3050AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3051
3052
3053AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3054
3055
3056MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3057
3058install_sh=${install_sh-"$am_aux_dir/install-sh"}
3059
3060# Installed binaries are usually stripped using `strip' when the user
3061# run `make install-strip'. However `strip' might not be the right
3062# tool to use in cross-compilation environments, therefore Automake
3063# will honor the `STRIP' environment variable to overrule this program.
3064if test "$cross_compiling" != no; then
3065 if test -n "$ac_tool_prefix"; then
3066 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3067set dummy ${ac_tool_prefix}strip; ac_word=$2
3068echo "$as_me:$LINENO: checking for $ac_word" >&5
3069echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3070if test "${ac_cv_prog_STRIP+set}" = set; then
3071 echo $ECHO_N "(cached) $ECHO_C" >&6
3072else
3073 if test -n "$STRIP"; then
3074 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3075else
3076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3077for as_dir in $PATH
3078do
3079 IFS=$as_save_IFS
3080 test -z "$as_dir" && as_dir=.
3081 for ac_exec_ext in '' $ac_executable_extensions; do
3082 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3083 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3085 break 2
3086 fi
3087done
3088done
3089
3090fi
3091fi
3092STRIP=$ac_cv_prog_STRIP
3093if test -n "$STRIP"; then
3094 echo "$as_me:$LINENO: result: $STRIP" >&5
3095echo "${ECHO_T}$STRIP" >&6
252b5132 3096else
8ae85421
AM
3097 echo "$as_me:$LINENO: result: no" >&5
3098echo "${ECHO_T}no" >&6
252b5132
RH
3099fi
3100
8ae85421
AM
3101fi
3102if test -z "$ac_cv_prog_STRIP"; then
3103 ac_ct_STRIP=$STRIP
3104 # Extract the first word of "strip", so it can be a program name with args.
3105set dummy strip; ac_word=$2
3106echo "$as_me:$LINENO: checking for $ac_word" >&5
3107echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3108if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3109 echo $ECHO_N "(cached) $ECHO_C" >&6
3110else
3111 if test -n "$ac_ct_STRIP"; then
3112 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3113else
3114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3115for as_dir in $PATH
3116do
3117 IFS=$as_save_IFS
3118 test -z "$as_dir" && as_dir=.
3119 for ac_exec_ext in '' $ac_executable_extensions; do
3120 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3121 ac_cv_prog_ac_ct_STRIP="strip"
3122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3123 break 2
3124 fi
3125done
3126done
3127
3128 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3129fi
3130fi
3131ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3132if test -n "$ac_ct_STRIP"; then
3133 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3134echo "${ECHO_T}$ac_ct_STRIP" >&6
252b5132 3135else
8ae85421
AM
3136 echo "$as_me:$LINENO: result: no" >&5
3137echo "${ECHO_T}no" >&6
252b5132
RH
3138fi
3139
8ae85421 3140 STRIP=$ac_ct_STRIP
252b5132 3141else
8ae85421 3142 STRIP="$ac_cv_prog_STRIP"
252b5132
RH
3143fi
3144
8ae85421
AM
3145fi
3146INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3147
3148# We need awk for the "check" target. The system "awk" is bad on
3149# some platforms.
3150# Always define AMTAR for backward compatibility.
3151
3152AMTAR=${AMTAR-"${am_missing_run}tar"}
3153
3154am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3155
3156
3157
3158
3159depcc="$CC" am_compiler_list=
3160
3161echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3162echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3163if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3164 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3165else
8ae85421
AM
3166 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3167 # We make a subdir and do the tests there. Otherwise we can end up
3168 # making bogus files that we don't know about and never remove. For
3169 # instance it was reported that on HP-UX the gcc test will end up
3170 # making a dummy file named `D' -- because `-MD' means `put the output
3171 # in D'.
3172 mkdir conftest.dir
3173 # Copy depcomp to subdir because otherwise we won't find it if we're
3174 # using a relative directory.
3175 cp "$am_depcomp" conftest.dir
3176 cd conftest.dir
3177 # We will build objects and dependencies in a subdirectory because
3178 # it helps to detect inapplicable dependency modes. For instance
3179 # both Tru64's cc and ICC support -MD to output dependencies as a
3180 # side effect of compilation, but ICC will put the dependencies in
3181 # the current directory while Tru64 will put them in the object
3182 # directory.
3183 mkdir sub
3184
3185 am_cv_CC_dependencies_compiler_type=none
3186 if test "$am_compiler_list" = ""; then
3187 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3188 fi
3189 for depmode in $am_compiler_list; do
3190 # Setup a source with many dependencies, because some compilers
3191 # like to wrap large dependency lists on column 80 (with \), and
3192 # we should not choose a depcomp mode which is confused by this.
3193 #
3194 # We need to recreate these files for each test, as the compiler may
3195 # overwrite some of them when testing with obscure command lines.
3196 # This happens at least with the AIX C compiler.
3197 : > sub/conftest.c
3198 for i in 1 2 3 4 5 6; do
3199 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3200 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3201 # Solaris 8's {/usr,}/bin/sh.
3202 touch sub/conftst$i.h
3203 done
3204 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3205
3206 case $depmode in
3207 nosideeffect)
3208 # after this tag, mechanisms are not by side-effect, so they'll
3209 # only be used when explicitly requested
3210 if test "x$enable_dependency_tracking" = xyes; then
3211 continue
3212 else
3213 break
3214 fi
3215 ;;
3216 none) break ;;
3217 esac
3218 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3219 # mode. It turns out that the SunPro C++ compiler does not properly
3220 # handle `-M -o', and we need to detect this.
3221 if depmode=$depmode \
3222 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3223 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3224 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3225 >/dev/null 2>conftest.err &&
3226 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3227 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3228 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3229 # icc doesn't choke on unknown options, it will just issue warnings
3230 # or remarks (even with -Werror). So we grep stderr for any message
3231 # that says an option was ignored or not supported.
3232 # When given -MP, icc 7.0 and 7.1 complain thusly:
3233 # icc: Command line warning: ignoring option '-M'; no argument required
3234 # The diagnosis changed in icc 8.0:
3235 # icc: Command line remark: option '-MP' not supported
3236 if (grep 'ignoring option' conftest.err ||
3237 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3238 am_cv_CC_dependencies_compiler_type=$depmode
3239 break
3240 fi
3241 fi
3242 done
3243
3244 cd ..
3245 rm -rf conftest.dir
3246else
3247 am_cv_CC_dependencies_compiler_type=none
3248fi
3249
252b5132 3250fi
8ae85421
AM
3251echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3252echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3253CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3254
3255
252b5132 3256
8ae85421
AM
3257if
3258 test "x$enable_dependency_tracking" != xno \
3259 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3260 am__fastdepCC_TRUE=
3261 am__fastdepCC_FALSE='#'
252b5132 3262else
8ae85421
AM
3263 am__fastdepCC_TRUE='#'
3264 am__fastdepCC_FALSE=
252b5132
RH
3265fi
3266
3267
3268
8ae85421 3269
dabbade6
L
3270ac_ext=c
3271ac_cpp='$CPP $CPPFLAGS'
3272ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3273ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3274ac_compiler_gnu=$ac_cv_c_compiler_gnu
979273e3 3275if test -n "$ac_tool_prefix"; then
dabbade6
L
3276 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3277set dummy ${ac_tool_prefix}gcc; ac_word=$2
979273e3
NN
3278echo "$as_me:$LINENO: checking for $ac_word" >&5
3279echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
dabbade6 3280if test "${ac_cv_prog_CC+set}" = set; then
979273e3 3281 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3282else
dabbade6
L
3283 if test -n "$CC"; then
3284 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 3285else
979273e3
NN
3286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3287for as_dir in $PATH
3288do
3289 IFS=$as_save_IFS
3290 test -z "$as_dir" && as_dir=.
3291 for ac_exec_ext in '' $ac_executable_extensions; do
3292 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dabbade6 3293 ac_cv_prog_CC="${ac_tool_prefix}gcc"
979273e3
NN
3294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3295 break 2
3296 fi
3297done
3298done
3299
252b5132
RH
3300fi
3301fi
dabbade6
L
3302CC=$ac_cv_prog_CC
3303if test -n "$CC"; then
3304 echo "$as_me:$LINENO: result: $CC" >&5
3305echo "${ECHO_T}$CC" >&6
252b5132 3306else
979273e3
NN
3307 echo "$as_me:$LINENO: result: no" >&5
3308echo "${ECHO_T}no" >&6
3309fi
3310
252b5132 3311fi
dabbade6
L
3312if test -z "$ac_cv_prog_CC"; then
3313 ac_ct_CC=$CC
3314 # Extract the first word of "gcc", so it can be a program name with args.
3315set dummy gcc; ac_word=$2
979273e3
NN
3316echo "$as_me:$LINENO: checking for $ac_word" >&5
3317echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
dabbade6 3318if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
979273e3
NN
3319 echo $ECHO_N "(cached) $ECHO_C" >&6
3320else
dabbade6
L
3321 if test -n "$ac_ct_CC"; then
3322 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
979273e3
NN
3323else
3324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3325for as_dir in $PATH
3326do
3327 IFS=$as_save_IFS
3328 test -z "$as_dir" && as_dir=.
3329 for ac_exec_ext in '' $ac_executable_extensions; do
3330 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dabbade6 3331 ac_cv_prog_ac_ct_CC="gcc"
979273e3
NN
3332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3333 break 2
3334 fi
3335done
3336done
252b5132 3337
979273e3
NN
3338fi
3339fi
dabbade6
L
3340ac_ct_CC=$ac_cv_prog_ac_ct_CC
3341if test -n "$ac_ct_CC"; then
3342 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3343echo "${ECHO_T}$ac_ct_CC" >&6
979273e3
NN
3344else
3345 echo "$as_me:$LINENO: result: no" >&5
3346echo "${ECHO_T}no" >&6
3347fi
252b5132 3348
dabbade6 3349 CC=$ac_ct_CC
979273e3 3350else
dabbade6 3351 CC="$ac_cv_prog_CC"
979273e3 3352fi
252b5132 3353
dabbade6
L
3354if test -z "$CC"; then
3355 if test -n "$ac_tool_prefix"; then
3356 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3357set dummy ${ac_tool_prefix}cc; ac_word=$2
979273e3
NN
3358echo "$as_me:$LINENO: checking for $ac_word" >&5
3359echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
dabbade6 3360if test "${ac_cv_prog_CC+set}" = set; then
979273e3 3361 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3362else
dabbade6
L
3363 if test -n "$CC"; then
3364 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 3365else
979273e3
NN
3366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3367for as_dir in $PATH
3368do
3369 IFS=$as_save_IFS
3370 test -z "$as_dir" && as_dir=.
3371 for ac_exec_ext in '' $ac_executable_extensions; do
3372 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dabbade6 3373 ac_cv_prog_CC="${ac_tool_prefix}cc"
979273e3
NN
3374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3375 break 2
3376 fi
3377done
3378done
3379
252b5132
RH
3380fi
3381fi
dabbade6
L
3382CC=$ac_cv_prog_CC
3383if test -n "$CC"; then
3384 echo "$as_me:$LINENO: result: $CC" >&5
3385echo "${ECHO_T}$CC" >&6
252b5132 3386else
979273e3
NN
3387 echo "$as_me:$LINENO: result: no" >&5
3388echo "${ECHO_T}no" >&6
252b5132
RH
3389fi
3390
979273e3 3391fi
dabbade6
L
3392if test -z "$ac_cv_prog_CC"; then
3393 ac_ct_CC=$CC
3394 # Extract the first word of "cc", so it can be a program name with args.
3395set dummy cc; ac_word=$2
979273e3
NN
3396echo "$as_me:$LINENO: checking for $ac_word" >&5
3397echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
dabbade6 3398if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
979273e3 3399 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3400else
dabbade6
L
3401 if test -n "$ac_ct_CC"; then
3402 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
252b5132 3403else
979273e3
NN
3404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3405for as_dir in $PATH
3406do
3407 IFS=$as_save_IFS
3408 test -z "$as_dir" && as_dir=.
3409 for ac_exec_ext in '' $ac_executable_extensions; do
3410 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dabbade6 3411 ac_cv_prog_ac_ct_CC="cc"
979273e3
NN
3412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3413 break 2
3414 fi
3415done
3416done
3417
252b5132
RH
3418fi
3419fi
dabbade6
L
3420ac_ct_CC=$ac_cv_prog_ac_ct_CC
3421if test -n "$ac_ct_CC"; then
3422 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3423echo "${ECHO_T}$ac_ct_CC" >&6
252b5132 3424else
979273e3
NN
3425 echo "$as_me:$LINENO: result: no" >&5
3426echo "${ECHO_T}no" >&6
252b5132
RH
3427fi
3428
dabbade6 3429 CC=$ac_ct_CC
252b5132 3430else
dabbade6 3431 CC="$ac_cv_prog_CC"
252b5132
RH
3432fi
3433
dabbade6
L
3434fi
3435if test -z "$CC"; then
3436 # Extract the first word of "cc", so it can be a program name with args.
3437set dummy cc; ac_word=$2
3438echo "$as_me:$LINENO: checking for $ac_word" >&5
3439echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3440if test "${ac_cv_prog_CC+set}" = set; then
3441 echo $ECHO_N "(cached) $ECHO_C" >&6
3442else
3443 if test -n "$CC"; then
3444 ac_cv_prog_CC="$CC" # Let the user override the test.
3445else
3446 ac_prog_rejected=no
3447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3448for as_dir in $PATH
3449do
3450 IFS=$as_save_IFS
3451 test -z "$as_dir" && as_dir=.
3452 for ac_exec_ext in '' $ac_executable_extensions; do
3453 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3454 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3455 ac_prog_rejected=yes
3456 continue
3457 fi
3458 ac_cv_prog_CC="cc"
3459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3460 break 2
3461 fi
3462done
3463done
252b5132 3464
dabbade6
L
3465if test $ac_prog_rejected = yes; then
3466 # We found a bogon in the path, so make sure we never use it.
3467 set dummy $ac_cv_prog_CC
3468 shift
3469 if test $# != 0; then
3470 # We chose a different compiler from the bogus one.
3471 # However, it has the same basename, so the bogon will be chosen
3472 # first if we set CC to just the basename; use the full file name.
3473 shift
3474 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3475 fi
3476fi
3477fi
3478fi
3479CC=$ac_cv_prog_CC
3480if test -n "$CC"; then
3481 echo "$as_me:$LINENO: result: $CC" >&5
3482echo "${ECHO_T}$CC" >&6
252b5132 3483else
dabbade6
L
3484 echo "$as_me:$LINENO: result: no" >&5
3485echo "${ECHO_T}no" >&6
3486fi
252b5132 3487
dabbade6
L
3488fi
3489if test -z "$CC"; then
3490 if test -n "$ac_tool_prefix"; then
3491 for ac_prog in cl
3492 do
3493 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3494set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3495echo "$as_me:$LINENO: checking for $ac_word" >&5
3496echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3497if test "${ac_cv_prog_CC+set}" = set; then
3498 echo $ECHO_N "(cached) $ECHO_C" >&6
3499else
3500 if test -n "$CC"; then
3501 ac_cv_prog_CC="$CC" # Let the user override the test.
3502else
3503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3504for as_dir in $PATH
3505do
3506 IFS=$as_save_IFS
3507 test -z "$as_dir" && as_dir=.
3508 for ac_exec_ext in '' $ac_executable_extensions; do
3509 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3510 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3512 break 2
3513 fi
3514done
3515done
d7040cdb 3516
dabbade6
L
3517fi
3518fi
3519CC=$ac_cv_prog_CC
3520if test -n "$CC"; then
3521 echo "$as_me:$LINENO: result: $CC" >&5
3522echo "${ECHO_T}$CC" >&6
3523else
3524 echo "$as_me:$LINENO: result: no" >&5
3525echo "${ECHO_T}no" >&6
3526fi
d7040cdb 3527
dabbade6
L
3528 test -n "$CC" && break
3529 done
3530fi
3531if test -z "$CC"; then
3532 ac_ct_CC=$CC
3533 for ac_prog in cl
3534do
3535 # Extract the first word of "$ac_prog", so it can be a program name with args.
3536set dummy $ac_prog; ac_word=$2
3537echo "$as_me:$LINENO: checking for $ac_word" >&5
3538echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3539if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3540 echo $ECHO_N "(cached) $ECHO_C" >&6
3541else
3542 if test -n "$ac_ct_CC"; then
3543 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3544else
3545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3546for as_dir in $PATH
3547do
3548 IFS=$as_save_IFS
3549 test -z "$as_dir" && as_dir=.
3550 for ac_exec_ext in '' $ac_executable_extensions; do
3551 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3552 ac_cv_prog_ac_ct_CC="$ac_prog"
3553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3554 break 2
3555 fi
3556done
3557done
d7040cdb 3558
dabbade6
L
3559fi
3560fi
3561ac_ct_CC=$ac_cv_prog_ac_ct_CC
3562if test -n "$ac_ct_CC"; then
3563 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3564echo "${ECHO_T}$ac_ct_CC" >&6
3565else
3566 echo "$as_me:$LINENO: result: no" >&5
3567echo "${ECHO_T}no" >&6
3568fi
d7040cdb 3569
dabbade6
L
3570 test -n "$ac_ct_CC" && break
3571done
d7040cdb 3572
dabbade6
L
3573 CC=$ac_ct_CC
3574fi
d7040cdb 3575
dabbade6 3576fi
d7040cdb
SE
3577
3578
7a283e07
RW
3579test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3580echo "$as_me: error: in \`$ac_pwd':" >&2;}
3581{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
dabbade6
L
3582See \`config.log' for more details." >&5
3583echo "$as_me: error: no acceptable C compiler found in \$PATH
3584See \`config.log' for more details." >&2;}
7a283e07 3585 { (exit 1); exit 1; }; }; }
d7040cdb 3586
dabbade6
L
3587# Provide some information about the compiler.
3588echo "$as_me:$LINENO:" \
3589 "checking for C compiler version" >&5
3590ac_compiler=`set X $ac_compile; echo $2`
3591{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3592 (eval $ac_compiler --version </dev/null >&5) 2>&5
3593 ac_status=$?
3594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595 (exit $ac_status); }
3596{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3597 (eval $ac_compiler -v </dev/null >&5) 2>&5
3598 ac_status=$?
3599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600 (exit $ac_status); }
3601{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3602 (eval $ac_compiler -V </dev/null >&5) 2>&5
3603 ac_status=$?
3604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605 (exit $ac_status); }
d7040cdb 3606
dabbade6
L
3607echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3608echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3609if test "${ac_cv_c_compiler_gnu+set}" = set; then
3610 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3611else
dabbade6
L
3612 cat >conftest.$ac_ext <<_ACEOF
3613/* confdefs.h. */
3614_ACEOF
3615cat confdefs.h >>conftest.$ac_ext
3616cat >>conftest.$ac_ext <<_ACEOF
3617/* end confdefs.h. */
d7040cdb 3618
dabbade6
L
3619int
3620main ()
3621{
3622#ifndef __GNUC__
3623 choke me
3624#endif
d7040cdb 3625
dabbade6
L
3626 ;
3627 return 0;
3628}
3629_ACEOF
3630rm -f conftest.$ac_objext
3631if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3632 (eval $ac_compile) 2>conftest.er1
3633 ac_status=$?
3634 grep -v '^ *+' conftest.er1 >conftest.err
3635 rm -f conftest.er1
3636 cat conftest.err >&5
3637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3638 (exit $ac_status); } &&
3639 { ac_try='test -z "$ac_c_werror_flag"
3640 || test ! -s conftest.err'
3641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3642 (eval $ac_try) 2>&5
3643 ac_status=$?
3644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645 (exit $ac_status); }; } &&
3646 { ac_try='test -s conftest.$ac_objext'
3647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3648 (eval $ac_try) 2>&5
3649 ac_status=$?
3650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3651 (exit $ac_status); }; }; then
3652 ac_compiler_gnu=yes
d7040cdb 3653else
dabbade6
L
3654 echo "$as_me: failed program was:" >&5
3655sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 3656
dabbade6
L
3657ac_compiler_gnu=no
3658fi
3659rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3660ac_cv_c_compiler_gnu=$ac_compiler_gnu
d7040cdb 3661
dabbade6
L
3662fi
3663echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3664echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3665GCC=`test $ac_compiler_gnu = yes && echo yes`
3666ac_test_CFLAGS=${CFLAGS+set}
3667ac_save_CFLAGS=$CFLAGS
3668CFLAGS="-g"
3669echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3670echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3671if test "${ac_cv_prog_cc_g+set}" = set; then
3672 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3673else
dabbade6
L
3674 cat >conftest.$ac_ext <<_ACEOF
3675/* confdefs.h. */
3676_ACEOF
3677cat confdefs.h >>conftest.$ac_ext
3678cat >>conftest.$ac_ext <<_ACEOF
3679/* end confdefs.h. */
d7040cdb 3680
dabbade6
L
3681int
3682main ()
3683{
d7040cdb 3684
dabbade6
L
3685 ;
3686 return 0;
3687}
3688_ACEOF
3689rm -f conftest.$ac_objext
3690if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3691 (eval $ac_compile) 2>conftest.er1
3692 ac_status=$?
3693 grep -v '^ *+' conftest.er1 >conftest.err
3694 rm -f conftest.er1
3695 cat conftest.err >&5
3696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697 (exit $ac_status); } &&
3698 { ac_try='test -z "$ac_c_werror_flag"
3699 || test ! -s conftest.err'
3700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3701 (eval $ac_try) 2>&5
3702 ac_status=$?
3703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704 (exit $ac_status); }; } &&
3705 { ac_try='test -s conftest.$ac_objext'
3706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3707 (eval $ac_try) 2>&5
3708 ac_status=$?
3709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710 (exit $ac_status); }; }; then
3711 ac_cv_prog_cc_g=yes
3712else
3713 echo "$as_me: failed program was:" >&5
3714sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 3715
dabbade6
L
3716ac_cv_prog_cc_g=no
3717fi
3718rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3719fi
3720echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3721echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3722if test "$ac_test_CFLAGS" = set; then
3723 CFLAGS=$ac_save_CFLAGS
3724elif test $ac_cv_prog_cc_g = yes; then
3725 if test "$GCC" = yes; then
3726 CFLAGS="-g -O2"
3727 else
3728 CFLAGS="-g"
3729 fi
3730else
3731 if test "$GCC" = yes; then
3732 CFLAGS="-O2"
3733 else
3734 CFLAGS=
3735 fi
3736fi
3737echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3738echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3739if test "${ac_cv_prog_cc_stdc+set}" = set; then
d7040cdb
SE
3740 echo $ECHO_N "(cached) $ECHO_C" >&6
3741else
dabbade6
L
3742 ac_cv_prog_cc_stdc=no
3743ac_save_CC=$CC
3744cat >conftest.$ac_ext <<_ACEOF
3745/* confdefs.h. */
3746_ACEOF
3747cat confdefs.h >>conftest.$ac_ext
3748cat >>conftest.$ac_ext <<_ACEOF
3749/* end confdefs.h. */
3750#include <stdarg.h>
3751#include <stdio.h>
3752#include <sys/types.h>
3753#include <sys/stat.h>
3754/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3755struct buf { int x; };
3756FILE * (*rcsopen) (struct buf *, struct stat *, int);
3757static char *e (p, i)
3758 char **p;
3759 int i;
3760{
3761 return p[i];
3762}
3763static char *f (char * (*g) (char **, int), char **p, ...)
3764{
3765 char *s;
3766 va_list v;
3767 va_start (v,p);
3768 s = g (p, va_arg (v,int));
3769 va_end (v);
3770 return s;
3771}
d7040cdb 3772
dabbade6
L
3773/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3774 function prototypes and stuff, but not '\xHH' hex character constants.
3775 These don't provoke an error unfortunately, instead are silently treated
3776 as 'x'. The following induces an error, until -std1 is added to get
3777 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3778 array size at least. It's necessary to write '\x00'==0 to get something
3779 that's true only with -std1. */
3780int osf4_cc_array ['\x00' == 0 ? 1 : -1];
d7040cdb 3781
dabbade6
L
3782int test (int i, double x);
3783struct s1 {int (*f) (int a);};
3784struct s2 {int (*f) (double a);};
3785int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3786int argc;
3787char **argv;
3788int
3789main ()
3790{
3791return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3792 ;
3793 return 0;
3794}
3795_ACEOF
3796# Don't try gcc -ansi; that turns off useful extensions and
3797# breaks some systems' header files.
3798# AIX -qlanglvl=ansi
3799# Ultrix and OSF/1 -std1
3800# HP-UX 10.20 and later -Ae
3801# HP-UX older versions -Aa -D_HPUX_SOURCE
3802# SVR4 -Xc -D__EXTENSIONS__
3803for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3804do
3805 CC="$ac_save_CC $ac_arg"
3806 rm -f conftest.$ac_objext
3807if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3808 (eval $ac_compile) 2>conftest.er1
3809 ac_status=$?
3810 grep -v '^ *+' conftest.er1 >conftest.err
3811 rm -f conftest.er1
3812 cat conftest.err >&5
3813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814 (exit $ac_status); } &&
3815 { ac_try='test -z "$ac_c_werror_flag"
3816 || test ! -s conftest.err'
3817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3818 (eval $ac_try) 2>&5
3819 ac_status=$?
3820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821 (exit $ac_status); }; } &&
3822 { ac_try='test -s conftest.$ac_objext'
3823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3824 (eval $ac_try) 2>&5
3825 ac_status=$?
3826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827 (exit $ac_status); }; }; then
3828 ac_cv_prog_cc_stdc=$ac_arg
3829break
d7040cdb 3830else
dabbade6
L
3831 echo "$as_me: failed program was:" >&5
3832sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 3833
d7040cdb 3834fi
dabbade6
L
3835rm -f conftest.err conftest.$ac_objext
3836done
3837rm -f conftest.$ac_ext conftest.$ac_objext
3838CC=$ac_save_CC
d7040cdb 3839
dabbade6 3840fi
d7040cdb 3841
dabbade6
L
3842case "x$ac_cv_prog_cc_stdc" in
3843 x|xno)
3844 echo "$as_me:$LINENO: result: none needed" >&5
3845echo "${ECHO_T}none needed" >&6 ;;
252b5132 3846 *)
dabbade6
L
3847 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3848echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3849 CC="$CC $ac_cv_prog_cc_stdc" ;;
3850esac
252b5132 3851
dabbade6
L
3852# Some people use a C++ compiler to compile C. Since we use `exit',
3853# in C++ we need to declare it. In case someone uses the same compiler
3854# for both compiling C and C++ we need to have the C++ compiler decide
3855# the declaration of exit, since it's the most demanding environment.
3856cat >conftest.$ac_ext <<_ACEOF
3857#ifndef __cplusplus
3858 choke me
3859#endif
3860_ACEOF
3861rm -f conftest.$ac_objext
3862if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3863 (eval $ac_compile) 2>conftest.er1
3864 ac_status=$?
3865 grep -v '^ *+' conftest.er1 >conftest.err
3866 rm -f conftest.er1
3867 cat conftest.err >&5
3868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869 (exit $ac_status); } &&
3870 { ac_try='test -z "$ac_c_werror_flag"
3871 || test ! -s conftest.err'
3872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3873 (eval $ac_try) 2>&5
3874 ac_status=$?
3875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876 (exit $ac_status); }; } &&
3877 { ac_try='test -s conftest.$ac_objext'
3878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3879 (eval $ac_try) 2>&5
3880 ac_status=$?
3881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3882 (exit $ac_status); }; }; then
3883 for ac_declaration in \
3884 '' \
3885 'extern "C" void std::exit (int) throw (); using std::exit;' \
3886 'extern "C" void std::exit (int); using std::exit;' \
3887 'extern "C" void exit (int) throw ();' \
3888 'extern "C" void exit (int);' \
3889 'void exit (int);'
3890do
3891 cat >conftest.$ac_ext <<_ACEOF
3892/* confdefs.h. */
3893_ACEOF
3894cat confdefs.h >>conftest.$ac_ext
3895cat >>conftest.$ac_ext <<_ACEOF
3896/* end confdefs.h. */
3897$ac_declaration
3898#include <stdlib.h>
3899int
3900main ()
3901{
3902exit (42);
3903 ;
3904 return 0;
3905}
3906_ACEOF
3907rm -f conftest.$ac_objext
3908if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3909 (eval $ac_compile) 2>conftest.er1
3910 ac_status=$?
3911 grep -v '^ *+' conftest.er1 >conftest.err
3912 rm -f conftest.er1
3913 cat conftest.err >&5
3914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915 (exit $ac_status); } &&
3916 { ac_try='test -z "$ac_c_werror_flag"
3917 || test ! -s conftest.err'
3918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3919 (eval $ac_try) 2>&5
3920 ac_status=$?
3921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922 (exit $ac_status); }; } &&
3923 { ac_try='test -s conftest.$ac_objext'
3924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3925 (eval $ac_try) 2>&5
3926 ac_status=$?
3927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3928 (exit $ac_status); }; }; then
3929 :
252b5132 3930else
dabbade6
L
3931 echo "$as_me: failed program was:" >&5
3932sed 's/^/| /' conftest.$ac_ext >&5
3933
3934continue
252b5132 3935fi
dabbade6
L
3936rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3937 cat >conftest.$ac_ext <<_ACEOF
3938/* confdefs.h. */
3939_ACEOF
3940cat confdefs.h >>conftest.$ac_ext
3941cat >>conftest.$ac_ext <<_ACEOF
3942/* end confdefs.h. */
3943$ac_declaration
3944int
3945main ()
3946{
3947exit (42);
3948 ;
3949 return 0;
3950}
3951_ACEOF
3952rm -f conftest.$ac_objext
3953if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3954 (eval $ac_compile) 2>conftest.er1
3955 ac_status=$?
3956 grep -v '^ *+' conftest.er1 >conftest.err
3957 rm -f conftest.er1
3958 cat conftest.err >&5
3959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960 (exit $ac_status); } &&
3961 { ac_try='test -z "$ac_c_werror_flag"
3962 || test ! -s conftest.err'
3963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3964 (eval $ac_try) 2>&5
3965 ac_status=$?
3966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967 (exit $ac_status); }; } &&
3968 { ac_try='test -s conftest.$ac_objext'
3969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3970 (eval $ac_try) 2>&5
3971 ac_status=$?
3972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973 (exit $ac_status); }; }; then
3974 break
252b5132 3975else
dabbade6
L
3976 echo "$as_me: failed program was:" >&5
3977sed 's/^/| /' conftest.$ac_ext >&5
ac48eca1 3978
dabbade6
L
3979fi
3980rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3981done
3982rm -f conftest*
3983if test -n "$ac_declaration"; then
3984 echo '#ifdef __cplusplus' >>confdefs.h
3985 echo $ac_declaration >>confdefs.h
3986 echo '#endif' >>confdefs.h
3987fi
ac48eca1 3988
dabbade6
L
3989else
3990 echo "$as_me: failed program was:" >&5
3991sed 's/^/| /' conftest.$ac_ext >&5
252b5132 3992
dabbade6
L
3993fi
3994rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3995ac_ext=c
3996ac_cpp='$CPP $CPPFLAGS'
3997ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3998ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3999ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb
SE
4000
4001
dabbade6
L
4002cat >>confdefs.h <<\_ACEOF
4003#define _GNU_SOURCE 1
4004_ACEOF
d7040cdb
SE
4005
4006
7357c5b6
AM
4007ac_ext=c
4008ac_cpp='$CPP $CPPFLAGS'
4009ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4010ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4011ac_compiler_gnu=$ac_cv_c_compiler_gnu
4012echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4013echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4014# On Suns, sometimes $CPP names a directory.
4015if test -n "$CPP" && test -d "$CPP"; then
4016 CPP=
4017fi
4018if test -z "$CPP"; then
4019 if test "${ac_cv_prog_CPP+set}" = set; then
dabbade6
L
4020 echo $ECHO_N "(cached) $ECHO_C" >&6
4021else
7357c5b6
AM
4022 # Double quotes because CPP needs to be expanded
4023 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4024 do
4025 ac_preproc_ok=false
4026for ac_c_preproc_warn_flag in '' yes
dabbade6 4027do
7357c5b6
AM
4028 # Use a header file that comes with gcc, so configuring glibc
4029 # with a fresh cross-compiler works.
4030 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4031 # <limits.h> exists even on freestanding compilers.
4032 # On the NeXT, cc -E runs the code through the compiler's parser,
4033 # not just through cpp. "Syntax error" is here to catch this case.
4034 cat >conftest.$ac_ext <<_ACEOF
4035/* confdefs.h. */
4036_ACEOF
4037cat confdefs.h >>conftest.$ac_ext
4038cat >>conftest.$ac_ext <<_ACEOF
4039/* end confdefs.h. */
4040#ifdef __STDC__
4041# include <limits.h>
4042#else
4043# include <assert.h>
4044#endif
4045 Syntax error
4046_ACEOF
4047if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4048 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4049 ac_status=$?
4050 grep -v '^ *+' conftest.er1 >conftest.err
4051 rm -f conftest.er1
4052 cat conftest.err >&5
4053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054 (exit $ac_status); } >/dev/null; then
4055 if test -s conftest.err; then
4056 ac_cpp_err=$ac_c_preproc_warn_flag
4057 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4058 else
4059 ac_cpp_err=
dabbade6 4060 fi
dabbade6 4061else
7357c5b6 4062 ac_cpp_err=yes
dabbade6 4063fi
7357c5b6
AM
4064if test -z "$ac_cpp_err"; then
4065 :
252b5132 4066else
7357c5b6
AM
4067 echo "$as_me: failed program was:" >&5
4068sed 's/^/| /' conftest.$ac_ext >&5
dabbade6 4069
7357c5b6
AM
4070 # Broken: fails on valid input.
4071continue
252b5132 4072fi
7357c5b6
AM
4073rm -f conftest.err conftest.$ac_ext
4074
4075 # OK, works on sane cases. Now check whether non-existent headers
4076 # can be detected and how.
4077 cat >conftest.$ac_ext <<_ACEOF
4078/* confdefs.h. */
4079_ACEOF
4080cat confdefs.h >>conftest.$ac_ext
4081cat >>conftest.$ac_ext <<_ACEOF
4082/* end confdefs.h. */
4083#include <ac_nonexistent.h>
4084_ACEOF
4085if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4086 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4087 ac_status=$?
4088 grep -v '^ *+' conftest.er1 >conftest.err
4089 rm -f conftest.er1
4090 cat conftest.err >&5
4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092 (exit $ac_status); } >/dev/null; then
4093 if test -s conftest.err; then
4094 ac_cpp_err=$ac_c_preproc_warn_flag
4095 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4096 else
4097 ac_cpp_err=
4098 fi
252b5132 4099else
7357c5b6 4100 ac_cpp_err=yes
dabbade6 4101fi
7357c5b6
AM
4102if test -z "$ac_cpp_err"; then
4103 # Broken: success on invalid input.
4104continue
dabbade6 4105else
7357c5b6
AM
4106 echo "$as_me: failed program was:" >&5
4107sed 's/^/| /' conftest.$ac_ext >&5
4108
4109 # Passes both tests.
4110ac_preproc_ok=:
4111break
dabbade6 4112fi
7357c5b6 4113rm -f conftest.err conftest.$ac_ext
dabbade6 4114
d7040cdb 4115done
7357c5b6
AM
4116# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4117rm -f conftest.err conftest.$ac_ext
4118if $ac_preproc_ok; then
4119 break
4120fi
4121
4122 done
4123 ac_cv_prog_CPP=$CPP
d7040cdb
SE
4124
4125fi
7357c5b6
AM
4126 CPP=$ac_cv_prog_CPP
4127else
4128 ac_cv_prog_CPP=$CPP
d7040cdb 4129fi
7357c5b6
AM
4130echo "$as_me:$LINENO: result: $CPP" >&5
4131echo "${ECHO_T}$CPP" >&6
4132ac_preproc_ok=false
4133for ac_c_preproc_warn_flag in '' yes
4134do
4135 # Use a header file that comes with gcc, so configuring glibc
4136 # with a fresh cross-compiler works.
4137 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4138 # <limits.h> exists even on freestanding compilers.
4139 # On the NeXT, cc -E runs the code through the compiler's parser,
4140 # not just through cpp. "Syntax error" is here to catch this case.
4141 cat >conftest.$ac_ext <<_ACEOF
4142/* confdefs.h. */
4143_ACEOF
4144cat confdefs.h >>conftest.$ac_ext
4145cat >>conftest.$ac_ext <<_ACEOF
4146/* end confdefs.h. */
4147#ifdef __STDC__
4148# include <limits.h>
4149#else
4150# include <assert.h>
4151#endif
4152 Syntax error
4153_ACEOF
4154if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4155 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4156 ac_status=$?
4157 grep -v '^ *+' conftest.er1 >conftest.err
4158 rm -f conftest.er1
4159 cat conftest.err >&5
4160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161 (exit $ac_status); } >/dev/null; then
4162 if test -s conftest.err; then
4163 ac_cpp_err=$ac_c_preproc_warn_flag
4164 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4165 else
4166 ac_cpp_err=
4167 fi
d7040cdb 4168else
7357c5b6 4169 ac_cpp_err=yes
d7040cdb 4170fi
7357c5b6
AM
4171if test -z "$ac_cpp_err"; then
4172 :
4173else
4174 echo "$as_me: failed program was:" >&5
4175sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4176
7357c5b6
AM
4177 # Broken: fails on valid input.
4178continue
d7040cdb 4179fi
7357c5b6 4180rm -f conftest.err conftest.$ac_ext
d7040cdb 4181
7357c5b6
AM
4182 # OK, works on sane cases. Now check whether non-existent headers
4183 # can be detected and how.
4184 cat >conftest.$ac_ext <<_ACEOF
4185/* confdefs.h. */
4186_ACEOF
4187cat confdefs.h >>conftest.$ac_ext
4188cat >>conftest.$ac_ext <<_ACEOF
4189/* end confdefs.h. */
4190#include <ac_nonexistent.h>
4191_ACEOF
4192if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4193 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4194 ac_status=$?
4195 grep -v '^ *+' conftest.er1 >conftest.err
4196 rm -f conftest.er1
4197 cat conftest.err >&5
4198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199 (exit $ac_status); } >/dev/null; then
4200 if test -s conftest.err; then
4201 ac_cpp_err=$ac_c_preproc_warn_flag
4202 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4203 else
4204 ac_cpp_err=
4205 fi
d7040cdb 4206else
7357c5b6 4207 ac_cpp_err=yes
d7040cdb 4208fi
7357c5b6
AM
4209if test -z "$ac_cpp_err"; then
4210 # Broken: success on invalid input.
4211continue
dabbade6 4212else
7357c5b6
AM
4213 echo "$as_me: failed program was:" >&5
4214sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4215
7357c5b6
AM
4216 # Passes both tests.
4217ac_preproc_ok=:
4218break
4219fi
4220rm -f conftest.err conftest.$ac_ext
d7040cdb 4221
7357c5b6
AM
4222done
4223# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4224rm -f conftest.err conftest.$ac_ext
4225if $ac_preproc_ok; then
4226 :
dabbade6 4227else
7357c5b6
AM
4228 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4229echo "$as_me: error: in \`$ac_pwd':" >&2;}
4230{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4231See \`config.log' for more details." >&5
4232echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4233See \`config.log' for more details." >&2;}
4234 { (exit 1); exit 1; }; }; }
4235fi
d7040cdb 4236
7357c5b6
AM
4237ac_ext=c
4238ac_cpp='$CPP $CPPFLAGS'
4239ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4240ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4241ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb
SE
4242
4243
7357c5b6
AM
4244echo "$as_me:$LINENO: checking for egrep" >&5
4245echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4246if test "${ac_cv_prog_egrep+set}" = set; then
4247 echo $ECHO_N "(cached) $ECHO_C" >&6
4248else
4249 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4250 then ac_cv_prog_egrep='grep -E'
4251 else ac_cv_prog_egrep='egrep'
4252 fi
4253fi
4254echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4255echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4256 EGREP=$ac_cv_prog_egrep
d7040cdb
SE
4257
4258
7357c5b6
AM
4259echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4260echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4261if test "${ac_cv_header_stdc+set}" = set; then
4262 echo $ECHO_N "(cached) $ECHO_C" >&6
4263else
4264 cat >conftest.$ac_ext <<_ACEOF
4265/* confdefs.h. */
4266_ACEOF
4267cat confdefs.h >>conftest.$ac_ext
4268cat >>conftest.$ac_ext <<_ACEOF
4269/* end confdefs.h. */
4270#include <stdlib.h>
4271#include <stdarg.h>
4272#include <string.h>
4273#include <float.h>
d7040cdb 4274
7357c5b6
AM
4275int
4276main ()
4277{
d7040cdb 4278
7357c5b6
AM
4279 ;
4280 return 0;
4281}
4282_ACEOF
4283rm -f conftest.$ac_objext
4284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4285 (eval $ac_compile) 2>conftest.er1
4286 ac_status=$?
4287 grep -v '^ *+' conftest.er1 >conftest.err
4288 rm -f conftest.er1
4289 cat conftest.err >&5
4290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291 (exit $ac_status); } &&
4292 { ac_try='test -z "$ac_c_werror_flag"
4293 || test ! -s conftest.err'
4294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4295 (eval $ac_try) 2>&5
4296 ac_status=$?
4297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298 (exit $ac_status); }; } &&
4299 { ac_try='test -s conftest.$ac_objext'
4300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4301 (eval $ac_try) 2>&5
4302 ac_status=$?
4303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304 (exit $ac_status); }; }; then
4305 ac_cv_header_stdc=yes
4306else
4307 echo "$as_me: failed program was:" >&5
4308sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4309
7357c5b6
AM
4310ac_cv_header_stdc=no
4311fi
4312rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d7040cdb 4313
7357c5b6
AM
4314if test $ac_cv_header_stdc = yes; then
4315 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4316 cat >conftest.$ac_ext <<_ACEOF
4317/* confdefs.h. */
4318_ACEOF
4319cat confdefs.h >>conftest.$ac_ext
4320cat >>conftest.$ac_ext <<_ACEOF
4321/* end confdefs.h. */
4322#include <string.h>
d7040cdb 4323
7357c5b6
AM
4324_ACEOF
4325if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4326 $EGREP "memchr" >/dev/null 2>&1; then
4327 :
4328else
4329 ac_cv_header_stdc=no
4330fi
4331rm -f conftest*
d7040cdb 4332
7357c5b6 4333fi
d7040cdb 4334
7357c5b6
AM
4335if test $ac_cv_header_stdc = yes; then
4336 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4337 cat >conftest.$ac_ext <<_ACEOF
4338/* confdefs.h. */
4339_ACEOF
4340cat confdefs.h >>conftest.$ac_ext
4341cat >>conftest.$ac_ext <<_ACEOF
4342/* end confdefs.h. */
4343#include <stdlib.h>
d7040cdb 4344
7357c5b6
AM
4345_ACEOF
4346if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4347 $EGREP "free" >/dev/null 2>&1; then
4348 :
4349else
4350 ac_cv_header_stdc=no
4351fi
4352rm -f conftest*
d7040cdb 4353
7357c5b6 4354fi
d7040cdb 4355
7357c5b6
AM
4356if test $ac_cv_header_stdc = yes; then
4357 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4358 if test "$cross_compiling" = yes; then
4359 :
4360else
4361 cat >conftest.$ac_ext <<_ACEOF
4362/* confdefs.h. */
4363_ACEOF
4364cat confdefs.h >>conftest.$ac_ext
4365cat >>conftest.$ac_ext <<_ACEOF
4366/* end confdefs.h. */
4367#include <ctype.h>
4368#if ((' ' & 0x0FF) == 0x020)
4369# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4370# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4371#else
4372# define ISLOWER(c) \
4373 (('a' <= (c) && (c) <= 'i') \
4374 || ('j' <= (c) && (c) <= 'r') \
4375 || ('s' <= (c) && (c) <= 'z'))
4376# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4377#endif
d7040cdb 4378
7357c5b6
AM
4379#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4380int
4381main ()
4382{
4383 int i;
4384 for (i = 0; i < 256; i++)
4385 if (XOR (islower (i), ISLOWER (i))
4386 || toupper (i) != TOUPPER (i))
4387 exit(2);
4388 exit (0);
4389}
4390_ACEOF
4391rm -f conftest$ac_exeext
4392if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4393 (eval $ac_link) 2>&5
4394 ac_status=$?
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4398 (eval $ac_try) 2>&5
4399 ac_status=$?
4400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401 (exit $ac_status); }; }; then
4402 :
4403else
4404 echo "$as_me: program exited with status $ac_status" >&5
4405echo "$as_me: failed program was:" >&5
4406sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4407
7357c5b6
AM
4408( exit $ac_status )
4409ac_cv_header_stdc=no
4410fi
4411rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4412fi
4413fi
4414fi
4415echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4416echo "${ECHO_T}$ac_cv_header_stdc" >&6
4417if test $ac_cv_header_stdc = yes; then
d7040cdb 4418
7357c5b6
AM
4419cat >>confdefs.h <<\_ACEOF
4420#define STDC_HEADERS 1
4421_ACEOF
d7040cdb 4422
7357c5b6 4423fi
d7040cdb 4424
7357c5b6 4425# On IRIX 5.3, sys/types and inttypes.h are conflicting.
d7040cdb
SE
4426
4427
4428
d7040cdb 4429
d7040cdb
SE
4430
4431
d7040cdb
SE
4432
4433
dabbade6 4434
7357c5b6
AM
4435for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4436 inttypes.h stdint.h unistd.h
4437do
4438as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4439echo "$as_me:$LINENO: checking for $ac_header" >&5
4440echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4441if eval "test \"\${$as_ac_Header+set}\" = set"; then
4442 echo $ECHO_N "(cached) $ECHO_C" >&6
d7040cdb 4443else
7357c5b6
AM
4444 cat >conftest.$ac_ext <<_ACEOF
4445/* confdefs.h. */
4446_ACEOF
4447cat confdefs.h >>conftest.$ac_ext
4448cat >>conftest.$ac_ext <<_ACEOF
4449/* end confdefs.h. */
4450$ac_includes_default
d7040cdb 4451
7357c5b6
AM
4452#include <$ac_header>
4453_ACEOF
4454rm -f conftest.$ac_objext
4455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4456 (eval $ac_compile) 2>conftest.er1
4457 ac_status=$?
4458 grep -v '^ *+' conftest.er1 >conftest.err
4459 rm -f conftest.er1
4460 cat conftest.err >&5
4461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462 (exit $ac_status); } &&
4463 { ac_try='test -z "$ac_c_werror_flag"
4464 || test ! -s conftest.err'
4465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4466 (eval $ac_try) 2>&5
4467 ac_status=$?
4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469 (exit $ac_status); }; } &&
4470 { ac_try='test -s conftest.$ac_objext'
4471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4472 (eval $ac_try) 2>&5
4473 ac_status=$?
4474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475 (exit $ac_status); }; }; then
4476 eval "$as_ac_Header=yes"
4477else
4478 echo "$as_me: failed program was:" >&5
4479sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4480
7357c5b6
AM
4481eval "$as_ac_Header=no"
4482fi
4483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4484fi
4485echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4486echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4487if test `eval echo '${'$as_ac_Header'}'` = yes; then
4488 cat >>confdefs.h <<_ACEOF
4489#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4490_ACEOF
d7040cdb 4491
7357c5b6 4492fi
d7040cdb 4493
7357c5b6 4494done
d7040cdb
SE
4495
4496
4497
7357c5b6
AM
4498 if test "${ac_cv_header_minix_config_h+set}" = set; then
4499 echo "$as_me:$LINENO: checking for minix/config.h" >&5
4500echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4501if test "${ac_cv_header_minix_config_h+set}" = set; then
4502 echo $ECHO_N "(cached) $ECHO_C" >&6
4503fi
4504echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4505echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
dabbade6 4506else
7357c5b6
AM
4507 # Is the header compilable?
4508echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4509echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
4510cat >conftest.$ac_ext <<_ACEOF
4511/* confdefs.h. */
4512_ACEOF
4513cat confdefs.h >>conftest.$ac_ext
4514cat >>conftest.$ac_ext <<_ACEOF
4515/* end confdefs.h. */
4516$ac_includes_default
4517#include <minix/config.h>
4518_ACEOF
4519rm -f conftest.$ac_objext
4520if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4521 (eval $ac_compile) 2>conftest.er1
4522 ac_status=$?
4523 grep -v '^ *+' conftest.er1 >conftest.err
4524 rm -f conftest.er1
4525 cat conftest.err >&5
4526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527 (exit $ac_status); } &&
4528 { ac_try='test -z "$ac_c_werror_flag"
4529 || test ! -s conftest.err'
4530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4531 (eval $ac_try) 2>&5
4532 ac_status=$?
4533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534 (exit $ac_status); }; } &&
4535 { ac_try='test -s conftest.$ac_objext'
4536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4537 (eval $ac_try) 2>&5
4538 ac_status=$?
4539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540 (exit $ac_status); }; }; then
4541 ac_header_compiler=yes
4542else
4543 echo "$as_me: failed program was:" >&5
4544sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4545
7357c5b6
AM
4546ac_header_compiler=no
4547fi
4548rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4549echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4550echo "${ECHO_T}$ac_header_compiler" >&6
d7040cdb 4551
7357c5b6
AM
4552# Is the header present?
4553echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4554echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
4555cat >conftest.$ac_ext <<_ACEOF
4556/* confdefs.h. */
4557_ACEOF
4558cat confdefs.h >>conftest.$ac_ext
4559cat >>conftest.$ac_ext <<_ACEOF
4560/* end confdefs.h. */
4561#include <minix/config.h>
4562_ACEOF
4563if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4564 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4565 ac_status=$?
4566 grep -v '^ *+' conftest.er1 >conftest.err
4567 rm -f conftest.er1
4568 cat conftest.err >&5
4569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570 (exit $ac_status); } >/dev/null; then
4571 if test -s conftest.err; then
4572 ac_cpp_err=$ac_c_preproc_warn_flag
4573 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4574 else
4575 ac_cpp_err=
4576 fi
4577else
4578 ac_cpp_err=yes
4579fi
4580if test -z "$ac_cpp_err"; then
4581 ac_header_preproc=yes
4582else
4583 echo "$as_me: failed program was:" >&5
4584sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4585
7357c5b6
AM
4586 ac_header_preproc=no
4587fi
4588rm -f conftest.err conftest.$ac_ext
4589echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4590echo "${ECHO_T}$ac_header_preproc" >&6
d7040cdb 4591
7357c5b6
AM
4592# So? What about this header?
4593case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4594 yes:no: )
4595 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4596echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4597 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4598echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4599 ac_header_preproc=yes
4600 ;;
4601 no:yes:* )
4602 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4603echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4604 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4605echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4606 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4607echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4608 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4609echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4610 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4611echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4612 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4613echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4614 (
4615 cat <<\_ASBOX
4616## ------------------------------------------ ##
4617## Report this to the AC_PACKAGE_NAME lists. ##
4618## ------------------------------------------ ##
4619_ASBOX
4620 ) |
4621 sed "s/^/$as_me: WARNING: /" >&2
4622 ;;
4623esac
4624echo "$as_me:$LINENO: checking for minix/config.h" >&5
4625echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4626if test "${ac_cv_header_minix_config_h+set}" = set; then
4627 echo $ECHO_N "(cached) $ECHO_C" >&6
4628else
4629 ac_cv_header_minix_config_h=$ac_header_preproc
4630fi
4631echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4632echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
d7040cdb 4633
7357c5b6
AM
4634fi
4635if test $ac_cv_header_minix_config_h = yes; then
4636 MINIX=yes
4637else
4638 MINIX=
4639fi
d7040cdb
SE
4640
4641
7357c5b6 4642 if test "$MINIX" = yes; then
d7040cdb 4643
7357c5b6
AM
4644cat >>confdefs.h <<\_ACEOF
4645#define _POSIX_SOURCE 1
4646_ACEOF
dabbade6 4647
252b5132 4648
7357c5b6
AM
4649cat >>confdefs.h <<\_ACEOF
4650#define _POSIX_1_SOURCE 2
4651_ACEOF
d7040cdb
SE
4652
4653
7357c5b6
AM
4654cat >>confdefs.h <<\_ACEOF
4655#define _MINIX 1
4656_ACEOF
d7040cdb 4657
7357c5b6 4658 fi
d7040cdb
SE
4659
4660
4661
7357c5b6
AM
4662 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4663echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
4664if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
979273e3 4665 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 4666else
7357c5b6
AM
4667 cat >conftest.$ac_ext <<_ACEOF
4668/* confdefs.h. */
4669_ACEOF
4670cat confdefs.h >>conftest.$ac_ext
4671cat >>conftest.$ac_ext <<_ACEOF
4672/* end confdefs.h. */
ac48eca1 4673
7357c5b6
AM
4674# define __EXTENSIONS__ 1
4675 $ac_includes_default
4676int
4677main ()
4678{
87e6d782 4679
7357c5b6
AM
4680 ;
4681 return 0;
4682}
4683_ACEOF
4684rm -f conftest.$ac_objext
4685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4686 (eval $ac_compile) 2>conftest.er1
4687 ac_status=$?
4688 grep -v '^ *+' conftest.er1 >conftest.err
4689 rm -f conftest.er1
4690 cat conftest.err >&5
4691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692 (exit $ac_status); } &&
4693 { ac_try='test -z "$ac_c_werror_flag"
4694 || test ! -s conftest.err'
4695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4696 (eval $ac_try) 2>&5
4697 ac_status=$?
4698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699 (exit $ac_status); }; } &&
4700 { ac_try='test -s conftest.$ac_objext'
4701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4702 (eval $ac_try) 2>&5
4703 ac_status=$?
4704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705 (exit $ac_status); }; }; then
4706 ac_cv_safe_to_define___extensions__=yes
4707else
4708 echo "$as_me: failed program was:" >&5
4709sed 's/^/| /' conftest.$ac_ext >&5
ac48eca1 4710
7357c5b6
AM
4711ac_cv_safe_to_define___extensions__=no
4712fi
4713rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4714fi
4715echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4716echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
4717 test $ac_cv_safe_to_define___extensions__ = yes &&
4718 cat >>confdefs.h <<\_ACEOF
4719#define __EXTENSIONS__ 1
4720_ACEOF
ac48eca1 4721
7357c5b6
AM
4722 cat >>confdefs.h <<\_ACEOF
4723#define _ALL_SOURCE 1
4724_ACEOF
d7040cdb 4725
7357c5b6
AM
4726 cat >>confdefs.h <<\_ACEOF
4727#define _GNU_SOURCE 1
4728_ACEOF
d7040cdb 4729
7357c5b6
AM
4730 cat >>confdefs.h <<\_ACEOF
4731#define _POSIX_PTHREAD_SEMANTICS 1
4732_ACEOF
ac48eca1 4733
7357c5b6
AM
4734 cat >>confdefs.h <<\_ACEOF
4735#define _TANDEM_SOURCE 1
4736_ACEOF
ac48eca1 4737
ac48eca1 4738
87e6d782 4739
7357c5b6
AM
4740if test -n "$ac_tool_prefix"; then
4741 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4742set dummy ${ac_tool_prefix}ar; ac_word=$2
4743echo "$as_me:$LINENO: checking for $ac_word" >&5
4744echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4745if test "${ac_cv_prog_AR+set}" = set; then
dabbade6
L
4746 echo $ECHO_N "(cached) $ECHO_C" >&6
4747else
7357c5b6
AM
4748 if test -n "$AR"; then
4749 ac_cv_prog_AR="$AR" # Let the user override the test.
4750else
4751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4752for as_dir in $PATH
4753do
4754 IFS=$as_save_IFS
4755 test -z "$as_dir" && as_dir=.
4756 for ac_exec_ext in '' $ac_executable_extensions; do
4757 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4758 ac_cv_prog_AR="${ac_tool_prefix}ar"
4759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4760 break 2
4761 fi
4762done
4763done
ac48eca1 4764
7357c5b6
AM
4765fi
4766fi
4767AR=$ac_cv_prog_AR
4768if test -n "$AR"; then
4769 echo "$as_me:$LINENO: result: $AR" >&5
4770echo "${ECHO_T}$AR" >&6
dabbade6 4771else
7357c5b6
AM
4772 echo "$as_me:$LINENO: result: no" >&5
4773echo "${ECHO_T}no" >&6
dabbade6 4774fi
6be7c12c 4775
7357c5b6
AM
4776fi
4777if test -z "$ac_cv_prog_AR"; then
4778 ac_ct_AR=$AR
4779 # Extract the first word of "ar", so it can be a program name with args.
4780set dummy ar; ac_word=$2
4781echo "$as_me:$LINENO: checking for $ac_word" >&5
4782echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4783if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4784 echo $ECHO_N "(cached) $ECHO_C" >&6
4785else
4786 if test -n "$ac_ct_AR"; then
4787 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4788else
4789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4790for as_dir in $PATH
4791do
4792 IFS=$as_save_IFS
4793 test -z "$as_dir" && as_dir=.
4794 for ac_exec_ext in '' $ac_executable_extensions; do
4795 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4796 ac_cv_prog_ac_ct_AR="ar"
4797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4798 break 2
4799 fi
4800done
4801done
4802
4803fi
4804fi
4805ac_ct_AR=$ac_cv_prog_ac_ct_AR
4806if test -n "$ac_ct_AR"; then
4807 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4808echo "${ECHO_T}$ac_ct_AR" >&6
4809else
4810 echo "$as_me:$LINENO: result: no" >&5
4811echo "${ECHO_T}no" >&6
4812fi
4813
4814 AR=$ac_ct_AR
4815else
4816 AR="$ac_cv_prog_AR"
4817fi
4818
4819if test -n "$ac_tool_prefix"; then
4820 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4821set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4822echo "$as_me:$LINENO: checking for $ac_word" >&5
4823echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4824if test "${ac_cv_prog_RANLIB+set}" = set; then
4825 echo $ECHO_N "(cached) $ECHO_C" >&6
4826else
4827 if test -n "$RANLIB"; then
4828 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4829else
4830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4831for as_dir in $PATH
4832do
4833 IFS=$as_save_IFS
4834 test -z "$as_dir" && as_dir=.
4835 for ac_exec_ext in '' $ac_executable_extensions; do
4836 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4837 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4839 break 2
4840 fi
4841done
4842done
4843
4844fi
4845fi
4846RANLIB=$ac_cv_prog_RANLIB
4847if test -n "$RANLIB"; then
4848 echo "$as_me:$LINENO: result: $RANLIB" >&5
4849echo "${ECHO_T}$RANLIB" >&6
4850else
4851 echo "$as_me:$LINENO: result: no" >&5
4852echo "${ECHO_T}no" >&6
4853fi
4854
4855fi
4856if test -z "$ac_cv_prog_RANLIB"; then
4857 ac_ct_RANLIB=$RANLIB
4858 # Extract the first word of "ranlib", so it can be a program name with args.
4859set dummy ranlib; ac_word=$2
4860echo "$as_me:$LINENO: checking for $ac_word" >&5
4861echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4862if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4863 echo $ECHO_N "(cached) $ECHO_C" >&6
4864else
4865 if test -n "$ac_ct_RANLIB"; then
4866 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4867else
4868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4869for as_dir in $PATH
4870do
4871 IFS=$as_save_IFS
4872 test -z "$as_dir" && as_dir=.
4873 for ac_exec_ext in '' $ac_executable_extensions; do
4874 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4875 ac_cv_prog_ac_ct_RANLIB="ranlib"
4876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4877 break 2
4878 fi
4879done
4880done
4881
4882 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4883fi
4884fi
4885ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4886if test -n "$ac_ct_RANLIB"; then
4887 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4888echo "${ECHO_T}$ac_ct_RANLIB" >&6
4889else
4890 echo "$as_me:$LINENO: result: no" >&5
4891echo "${ECHO_T}no" >&6
4892fi
4893
4894 RANLIB=$ac_ct_RANLIB
4895else
4896 RANLIB="$ac_cv_prog_RANLIB"
4897fi
4898
4899
4900# Check whether --enable-shared or --disable-shared was given.
4901if test "${enable_shared+set}" = set; then
4902 enableval="$enable_shared"
4903 p=${PACKAGE-default}
4904 case $enableval in
4905 yes) enable_shared=yes ;;
4906 no) enable_shared=no ;;
4907 *)
4908 enable_shared=no
4909 # Look at the argument we got. We use all the common list separators.
4910 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4911 for pkg in $enableval; do
4912 IFS="$lt_save_ifs"
4913 if test "X$pkg" = "X$p"; then
4914 enable_shared=yes
4915 fi
4916 done
4917 IFS="$lt_save_ifs"
4918 ;;
4919 esac
4920else
4921 enable_shared=no
4922fi;
4923
4924
4925
4926
4927
4928
4929
4930
4931
1927a18f
L
4932case `pwd` in
4933 *\ * | *\ *)
4934 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4935echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4936esac
7357c5b6
AM
4937
4938
7357c5b6 4939
1927a18f
L
4940macro_version='2.2.6'
4941macro_revision='1.3012'
7357c5b6
AM
4942
4943
4944
4945
4946
4947
7357c5b6
AM
4948
4949
4950
4951
4952
4953
4954
1927a18f 4955ltmain="$ac_aux_dir/ltmain.sh"
7357c5b6
AM
4956
4957echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4958echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4959if test "${lt_cv_path_SED+set}" = set; then
4960 echo $ECHO_N "(cached) $ECHO_C" >&6
4961else
4962 # Loop through the user's path and test for sed and gsed.
4963# Then use that list of sed's as ones to test for truncation.
4964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4965for as_dir in $PATH
4966do
4967 IFS=$as_save_IFS
4968 test -z "$as_dir" && as_dir=.
4969 for lt_ac_prog in sed gsed; do
4970 for ac_exec_ext in '' $ac_executable_extensions; do
4971 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4972 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4973 fi
4974 done
4975 done
4976done
4977IFS=$as_save_IFS
4978lt_ac_max=0
4979lt_ac_count=0
4980# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4981# along with /bin/sed that truncates output.
4982for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4983 test ! -f $lt_ac_sed && continue
4984 cat /dev/null > conftest.in
4985 lt_ac_count=0
4986 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4987 # Check for GNU sed and select it if it is found.
4988 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4989 lt_cv_path_SED=$lt_ac_sed
4990 break
4991 fi
4992 while true; do
4993 cat conftest.in conftest.in >conftest.tmp
4994 mv conftest.tmp conftest.in
4995 cp conftest.in conftest.nl
4996 echo >>conftest.nl
4997 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4998 cmp -s conftest.out conftest.nl || break
4999 # 10000 chars as input seems more than enough
5000 test $lt_ac_count -gt 10 && break
5001 lt_ac_count=`expr $lt_ac_count + 1`
5002 if test $lt_ac_count -gt $lt_ac_max; then
5003 lt_ac_max=$lt_ac_count
5004 lt_cv_path_SED=$lt_ac_sed
5005 fi
5006 done
5007done
5008
5009fi
5010
5011SED=$lt_cv_path_SED
5012
5013echo "$as_me:$LINENO: result: $SED" >&5
5014echo "${ECHO_T}$SED" >&6
5015
5016test -z "$SED" && SED=sed
5017Xsed="$SED -e 1s/^X//"
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029echo "$as_me:$LINENO: checking for fgrep" >&5
5030echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
5031if test "${ac_cv_prog_fgrep+set}" = set; then
5032 echo $ECHO_N "(cached) $ECHO_C" >&6
5033else
5034 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
5035 then ac_cv_prog_fgrep='grep -F'
5036 else ac_cv_prog_fgrep='fgrep'
5037 fi
5038fi
5039echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
5040echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
5041 FGREP=$ac_cv_prog_fgrep
5042
5043
5044test -z "$GREP" && GREP=grep
d7040cdb 5045
d7040cdb 5046
d7040cdb 5047
ac48eca1
AO
5048
5049
5050
ac48eca1 5051
ac48eca1 5052
ac48eca1 5053
ac48eca1 5054
ac48eca1 5055
ac48eca1 5056
ac48eca1 5057
ac48eca1 5058
ac48eca1 5059
ac48eca1 5060
dabbade6
L
5061
5062
5063
5064# Check whether --with-gnu-ld or --without-gnu-ld was given.
5065if test "${with_gnu_ld+set}" = set; then
5066 withval="$with_gnu_ld"
5067 test "$withval" = no || with_gnu_ld=yes
5068else
5069 with_gnu_ld=no
5070fi;
5071ac_prog=ld
5072if test "$GCC" = yes; then
5073 # Check if gcc -print-prog-name=ld gives a path.
5074 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5075echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5076 case $host in
5077 *-*-mingw*)
5078 # gcc leaves a trailing carriage return which upsets mingw
5079 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5080 *)
5081 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5082 esac
5083 case $ac_prog in
5084 # Accept absolute paths.
5085 [\\/]* | ?:[\\/]*)
5086 re_direlt='/[^/][^/]*/\.\./'
5087 # Canonicalize the pathname of ld
5088 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5089 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5090 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5091 done
5092 test -z "$LD" && LD="$ac_prog"
5093 ;;
5094 "")
5095 # If it fails, then pretend we aren't using GCC.
5096 ac_prog=ld
5097 ;;
5098 *)
5099 # If it is relative, then search for the first ld in PATH.
5100 with_gnu_ld=unknown
5101 ;;
5102 esac
5103elif test "$with_gnu_ld" = yes; then
5104 echo "$as_me:$LINENO: checking for GNU ld" >&5
5105echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5106else
5107 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5108echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5109fi
5110if test "${lt_cv_path_LD+set}" = set; then
979273e3 5111 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 5112else
dabbade6
L
5113 if test -z "$LD"; then
5114 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5115 for ac_dir in $PATH; do
5116 IFS="$lt_save_ifs"
5117 test -z "$ac_dir" && ac_dir=.
5118 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5119 lt_cv_path_LD="$ac_dir/$ac_prog"
5120 # Check to see if the program is GNU ld. I'd rather use --version,
5121 # but apparently some variants of GNU ld only accept -v.
5122 # Break only if it was the GNU/non-GNU ld that we prefer.
5123 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5124 *GNU* | *'with BFD'*)
5125 test "$with_gnu_ld" != no && break
5126 ;;
5127 *)
5128 test "$with_gnu_ld" != yes && break
5129 ;;
5130 esac
5131 fi
5132 done
5133 IFS="$lt_save_ifs"
ac48eca1 5134else
dabbade6 5135 lt_cv_path_LD="$LD" # Let the user override the test with a path.
ac48eca1
AO
5136fi
5137fi
dabbade6
L
5138
5139LD="$lt_cv_path_LD"
5140if test -n "$LD"; then
5141 echo "$as_me:$LINENO: result: $LD" >&5
5142echo "${ECHO_T}$LD" >&6
ac48eca1 5143else
979273e3
NN
5144 echo "$as_me:$LINENO: result: no" >&5
5145echo "${ECHO_T}no" >&6
ac48eca1 5146fi
dabbade6
L
5147test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5148echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5149 { (exit 1); exit 1; }; }
5150echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5151echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5152if test "${lt_cv_prog_gnu_ld+set}" = set; then
979273e3 5153 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 5154else
dabbade6
L
5155 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5156case `$LD -v 2>&1 </dev/null` in
5157*GNU* | *'with BFD'*)
5158 lt_cv_prog_gnu_ld=yes
5159 ;;
5160*)
5161 lt_cv_prog_gnu_ld=no
5162 ;;
5163esac
ac48eca1 5164fi
dabbade6
L
5165echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5166echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5167with_gnu_ld=$lt_cv_prog_gnu_ld
d7040cdb
SE
5168
5169
5170
5171
5172
5173
5174
5175
5176
dabbade6
L
5177echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5178echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
5179if test "${lt_cv_path_NM+set}" = set; then
979273e3 5180 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 5181else
dabbade6
L
5182 if test -n "$NM"; then
5183 # Let the user override the test.
5184 lt_cv_path_NM="$NM"
ac48eca1 5185else
dabbade6
L
5186 lt_nm_to_check="${ac_tool_prefix}nm"
5187 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5188 lt_nm_to_check="$lt_nm_to_check nm"
979273e3 5189 fi
dabbade6
L
5190 for lt_tmp_nm in $lt_nm_to_check; do
5191 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5192 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5193 IFS="$lt_save_ifs"
5194 test -z "$ac_dir" && ac_dir=.
5195 tmp_nm="$ac_dir/$lt_tmp_nm"
5196 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5197 # Check to see if the nm accepts a BSD-compat flag.
5198 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5199 # nm: unknown option "B" ignored
5200 # Tru64's nm complains that /dev/null is an invalid object file
5201 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5202 */dev/null* | *'Invalid file or object type'*)
5203 lt_cv_path_NM="$tmp_nm -B"
5204 break
5205 ;;
5206 *)
5207 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5208 */dev/null*)
5209 lt_cv_path_NM="$tmp_nm -p"
5210 break
5211 ;;
5212 *)
5213 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5214 continue # so that we can try to find one that supports BSD flags
5215 ;;
5216 esac
5217 ;;
5218 esac
5219 fi
5220 done
5221 IFS="$lt_save_ifs"
5222 done
5223 : ${lt_cv_path_NM=no}
ac48eca1
AO
5224fi
5225fi
dabbade6
L
5226echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5227echo "${ECHO_T}$lt_cv_path_NM" >&6
5228if test "$lt_cv_path_NM" != "no"; then
5229 NM="$lt_cv_path_NM"
ac48eca1 5230else
dabbade6
L
5231 # Didn't find any BSD compatible name lister, look for dumpbin.
5232 if test -n "$ac_tool_prefix"; then
5233 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5234 do
5235 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5236set dummy $ac_tool_prefix$ac_prog; ac_word=$2
979273e3
NN
5237echo "$as_me:$LINENO: checking for $ac_word" >&5
5238echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
dabbade6 5239if test "${ac_cv_prog_DUMPBIN+set}" = set; then
979273e3 5240 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 5241else
dabbade6
L
5242 if test -n "$DUMPBIN"; then
5243 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
ac48eca1 5244else
979273e3
NN
5245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5246for as_dir in $PATH
5247do
5248 IFS=$as_save_IFS
5249 test -z "$as_dir" && as_dir=.
5250 for ac_exec_ext in '' $ac_executable_extensions; do
5251 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dabbade6 5252 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
979273e3
NN
5253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5254 break 2
5255 fi
5256done
5257done
5258
ac48eca1
AO
5259fi
5260fi
dabbade6
L
5261DUMPBIN=$ac_cv_prog_DUMPBIN
5262if test -n "$DUMPBIN"; then
5263 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5264echo "${ECHO_T}$DUMPBIN" >&6
ac48eca1 5265else
979273e3
NN
5266 echo "$as_me:$LINENO: result: no" >&5
5267echo "${ECHO_T}no" >&6
ac48eca1
AO
5268fi
5269
dabbade6
L
5270 test -n "$DUMPBIN" && break
5271 done
ac48eca1 5272fi
dabbade6
L
5273if test -z "$DUMPBIN"; then
5274 ac_ct_DUMPBIN=$DUMPBIN
5275 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5276do
5277 # Extract the first word of "$ac_prog", so it can be a program name with args.
5278set dummy $ac_prog; ac_word=$2
d7040cdb
SE
5279echo "$as_me:$LINENO: checking for $ac_word" >&5
5280echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
dabbade6 5281if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
d7040cdb 5282 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 5283else
dabbade6
L
5284 if test -n "$ac_ct_DUMPBIN"; then
5285 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
d7040cdb
SE
5286else
5287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5288for as_dir in $PATH
5289do
5290 IFS=$as_save_IFS
5291 test -z "$as_dir" && as_dir=.
5292 for ac_exec_ext in '' $ac_executable_extensions; do
5293 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dabbade6 5294 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
d7040cdb
SE
5295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5296 break 2
252b5132 5297 fi
d7040cdb
SE
5298done
5299done
252b5132 5300
d7040cdb
SE
5301fi
5302fi
dabbade6
L
5303ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5304if test -n "$ac_ct_DUMPBIN"; then
5305 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5306echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
d7040cdb
SE
5307else
5308 echo "$as_me:$LINENO: result: no" >&5
5309echo "${ECHO_T}no" >&6
5310fi
4867be41 5311
dabbade6 5312 test -n "$ac_ct_DUMPBIN" && break
d7040cdb 5313done
dabbade6 5314test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
32fba81d 5315
dabbade6 5316 DUMPBIN=$ac_ct_DUMPBIN
d7040cdb 5317fi
979273e3
NN
5318
5319
dabbade6
L
5320 if test "$DUMPBIN" != ":"; then
5321 NM="$DUMPBIN"
5322 fi
5323fi
5324test -z "$NM" && NM=nm
ac48eca1 5325
252b5132 5326
252b5132 5327
979273e3 5328
ac48eca1 5329
d7040cdb 5330
dabbade6
L
5331echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5332echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
5333if test "${lt_cv_nm_interface+set}" = set; then
5334 echo $ECHO_N "(cached) $ECHO_C" >&6
5335else
5336 lt_cv_nm_interface="BSD nm"
5337 echo "int some_variable = 0;" > conftest.$ac_ext
29670fb9 5338 (eval echo "\"\$as_me:5338: $ac_compile\"" >&5)
dabbade6
L
5339 (eval "$ac_compile" 2>conftest.err)
5340 cat conftest.err >&5
29670fb9 5341 (eval echo "\"\$as_me:5341: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
dabbade6
L
5342 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5343 cat conftest.err >&5
29670fb9 5344 (eval echo "\"\$as_me:5344: output\"" >&5)
dabbade6
L
5345 cat conftest.out >&5
5346 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5347 lt_cv_nm_interface="MS dumpbin"
5348 fi
5349 rm -f conftest*
5350fi
5351echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5352echo "${ECHO_T}$lt_cv_nm_interface" >&6
d7040cdb 5353
dabbade6
L
5354echo "$as_me:$LINENO: checking whether ln -s works" >&5
5355echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5356LN_S=$as_ln_s
5357if test "$LN_S" = "ln -s"; then
5358 echo "$as_me:$LINENO: result: yes" >&5
5359echo "${ECHO_T}yes" >&6
5360else
5361 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5362echo "${ECHO_T}no, using $LN_S" >&6
5363fi
5364
5365# find the maximum length of command line arguments
5366echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5367echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5368if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5369 echo $ECHO_N "(cached) $ECHO_C" >&6
5370else
5371 i=0
5372 teststring="ABCD"
5373
5374 case $build_os in
5375 msdosdjgpp*)
5376 # On DJGPP, this test can blow up pretty badly due to problems in libc
5377 # (any single argument exceeding 2000 bytes causes a buffer overrun
5378 # during glob expansion). Even if it were fixed, the result of this
5379 # check would be larger than it should be.
5380 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5381 ;;
5382
5383 gnu*)
5384 # Under GNU Hurd, this test is not required because there is
5385 # no limit to the length of command line arguments.
5386 # Libtool will interpret -1 as no limit whatsoever
5387 lt_cv_sys_max_cmd_len=-1;
5388 ;;
5389
1927a18f 5390 cygwin* | mingw* | cegcc*)
dabbade6
L
5391 # On Win9x/ME, this test blows up -- it succeeds, but takes
5392 # about 5 minutes as the teststring grows exponentially.
5393 # Worse, since 9x/ME are not pre-emptively multitasking,
5394 # you end up with a "frozen" computer, even though with patience
5395 # the test eventually succeeds (with a max line length of 256k).
5396 # Instead, let's just punt: use the minimum linelength reported by
5397 # all of the supported platforms: 8192 (on NT/2K/XP).
5398 lt_cv_sys_max_cmd_len=8192;
5399 ;;
5400
5401 amigaos*)
5402 # On AmigaOS with pdksh, this test takes hours, literally.
5403 # So we just punt and use a minimum line length of 8192.
5404 lt_cv_sys_max_cmd_len=8192;
5405 ;;
5406
5407 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5408 # This has been around since 386BSD, at least. Likely further.
5409 if test -x /sbin/sysctl; then
5410 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5411 elif test -x /usr/sbin/sysctl; then
5412 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5413 else
5414 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5415 fi
5416 # And add a safety zone
5417 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5418 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5419 ;;
5420
5421 interix*)
5422 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5423 lt_cv_sys_max_cmd_len=196608
5424 ;;
5425
5426 osf*)
5427 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5428 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5429 # nice to cause kernel panics so lets avoid the loop below.
5430 # First set a reasonable default.
5431 lt_cv_sys_max_cmd_len=16384
5432 #
5433 if test -x /sbin/sysconfig; then
5434 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5435 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5436 esac
5437 fi
5438 ;;
5439 sco3.2v5*)
5440 lt_cv_sys_max_cmd_len=102400
5441 ;;
5442 sysv5* | sco5v6* | sysv4.2uw2*)
5443 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5444 if test -n "$kargmax"; then
5445 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5446 else
5447 lt_cv_sys_max_cmd_len=32768
5448 fi
d7040cdb
SE
5449 ;;
5450 *)
1927a18f
L
5451 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5452 if test -n "$lt_cv_sys_max_cmd_len"; then
dabbade6
L
5453 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5454 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5455 else
5456 # Make teststring a little bigger before we do anything with it.
5457 # a 1K string should be a reasonable start.
5458 for i in 1 2 3 4 5 6 7 8 ; do
5459 teststring=$teststring$teststring
5460 done
5461 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5462 # If test is not a shell built-in, we'll probably end up computing a
5463 # maximum length that is only half of the actual maximum length, but
5464 # we can't tell.
5465 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5466 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5467 test $i != 17 # 1/2 MB should be enough
5468 do
5469 i=`expr $i + 1`
5470 teststring=$teststring$teststring
5471 done
5472 # Only check the string length outside the loop.
5473 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5474 teststring=
5475 # Add a significant safety factor because C++ compilers can tack on
5476 # massive amounts of additional arguments before passing them to the
5477 # linker. It appears as though 1/2 is a usable value.
5478 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5479 fi
d7040cdb
SE
5480 ;;
5481 esac
252b5132 5482
dabbade6 5483fi
252b5132 5484
dabbade6
L
5485if test -n $lt_cv_sys_max_cmd_len ; then
5486 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5487echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5488else
5489 echo "$as_me:$LINENO: result: none" >&5
5490echo "${ECHO_T}none" >&6
5491fi
5492max_cmd_len=$lt_cv_sys_max_cmd_len
252b5132 5493
252b5132 5494
979273e3 5495
979273e3 5496
252b5132 5497
252b5132 5498
dabbade6
L
5499: ${CP="cp -f"}
5500: ${MV="mv -f"}
5501: ${RM="rm -f"}
252b5132 5502
dabbade6
L
5503echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5504echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
5505# Try some XSI features
5506xsi_shell=no
5507( _lt_dummy="a/b/c"
5508 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
1927a18f
L
5509 = c,a/b,, \
5510 && eval 'test $(( 1 + 1 )) -eq 2 \
5511 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
dabbade6
L
5512 && xsi_shell=yes
5513echo "$as_me:$LINENO: result: $xsi_shell" >&5
5514echo "${ECHO_T}$xsi_shell" >&6
252b5132 5515
252b5132 5516
dabbade6
L
5517echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5518echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
5519lt_shell_append=no
5520( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5521 >/dev/null 2>&1 \
5522 && lt_shell_append=yes
5523echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5524echo "${ECHO_T}$lt_shell_append" >&6
252b5132 5525
ac48eca1 5526
dabbade6
L
5527if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5528 lt_unset=unset
5529else
5530 lt_unset=false
5531fi
979273e3
NN
5532
5533
5534
5535
ac48eca1 5536
dabbade6
L
5537# test EBCDIC or ASCII
5538case `echo X|tr X '\101'` in
5539 A) # ASCII based system
5540 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5541 lt_SP2NL='tr \040 \012'
5542 lt_NL2SP='tr \015\012 \040\040'
5543 ;;
5544 *) # EBCDIC based system
5545 lt_SP2NL='tr \100 \n'
5546 lt_NL2SP='tr \r\n \100\100'
5547 ;;
5548esac
9e9b66a9 5549
1ad12f97 5550
1ad12f97 5551
9e9b66a9 5552
1ad12f97 5553
a541e3ce 5554
9e9b66a9 5555
a2d91340
AC
5556
5557
dabbade6
L
5558echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5559echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5560if test "${lt_cv_ld_reload_flag+set}" = set; then
5561 echo $ECHO_N "(cached) $ECHO_C" >&6
5562else
5563 lt_cv_ld_reload_flag='-r'
5564fi
5565echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5566echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5567reload_flag=$lt_cv_ld_reload_flag
5568case $reload_flag in
5569"" | " "*) ;;
5570*) reload_flag=" $reload_flag" ;;
5571esac
5572reload_cmds='$LD$reload_flag -o $output$reload_objs'
5573case $host_os in
5574 darwin*)
5575 if test "$GCC" = yes; then
5576 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5577 else
5578 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5579 fi
5580 ;;
5581esac
9e9b66a9
AM
5582
5583
5584
252b5132 5585
252b5132 5586
252b5132 5587
252b5132 5588
252b5132 5589
d7040cdb 5590
1927a18f
L
5591if test -n "$ac_tool_prefix"; then
5592 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5593set dummy ${ac_tool_prefix}objdump; ac_word=$2
5594echo "$as_me:$LINENO: checking for $ac_word" >&5
5595echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5596if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5597 echo $ECHO_N "(cached) $ECHO_C" >&6
5598else
5599 if test -n "$OBJDUMP"; then
5600 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5601else
5602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5603for as_dir in $PATH
5604do
5605 IFS=$as_save_IFS
5606 test -z "$as_dir" && as_dir=.
5607 for ac_exec_ext in '' $ac_executable_extensions; do
5608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5609 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5611 break 2
5612 fi
5613done
5614done
5615
5616fi
5617fi
5618OBJDUMP=$ac_cv_prog_OBJDUMP
5619if test -n "$OBJDUMP"; then
5620 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5621echo "${ECHO_T}$OBJDUMP" >&6
5622else
5623 echo "$as_me:$LINENO: result: no" >&5
5624echo "${ECHO_T}no" >&6
5625fi
5626
5627fi
5628if test -z "$ac_cv_prog_OBJDUMP"; then
5629 ac_ct_OBJDUMP=$OBJDUMP
5630 # Extract the first word of "objdump", so it can be a program name with args.
5631set dummy objdump; ac_word=$2
5632echo "$as_me:$LINENO: checking for $ac_word" >&5
5633echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5634if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5635 echo $ECHO_N "(cached) $ECHO_C" >&6
5636else
5637 if test -n "$ac_ct_OBJDUMP"; then
5638 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5639else
5640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5641for as_dir in $PATH
5642do
5643 IFS=$as_save_IFS
5644 test -z "$as_dir" && as_dir=.
5645 for ac_exec_ext in '' $ac_executable_extensions; do
5646 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5647 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5649 break 2
5650 fi
5651done
5652done
5653
5654 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
5655fi
5656fi
5657ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5658if test -n "$ac_ct_OBJDUMP"; then
5659 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5660echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
5661else
5662 echo "$as_me:$LINENO: result: no" >&5
5663echo "${ECHO_T}no" >&6
5664fi
5665
5666 OBJDUMP=$ac_ct_OBJDUMP
5667else
5668 OBJDUMP="$ac_cv_prog_OBJDUMP"
5669fi
5670
5671test -z "$OBJDUMP" && OBJDUMP=objdump
5672
5673
5674
5675
5676
5677
5678
5679
d7040cdb 5680
dabbade6
L
5681echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5682echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
5683if test "${lt_cv_deplibs_check_method+set}" = set; then
d7040cdb 5684 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5685else
dabbade6
L
5686 lt_cv_file_magic_cmd='$MAGIC_CMD'
5687lt_cv_file_magic_test_file=
5688lt_cv_deplibs_check_method='unknown'
5689# Need to set the preceding variable on all platforms that support
5690# interlibrary dependencies.
5691# 'none' -- dependencies not supported.
5692# `unknown' -- same as none, but documents that we really don't know.
5693# 'pass_all' -- all dependencies passed with no checks.
5694# 'test_compile' -- check by making test program.
5695# 'file_magic [[regex]]' -- check by looking for files in library path
5696# which responds to the $file_magic_cmd with a given extended regex.
5697# If you have `file' or equivalent on your system and you're not sure
5698# whether `pass_all' will *always* work, you probably want this one.
8ae85421 5699
dabbade6 5700case $host_os in
50e7d84b 5701aix[4-9]*)
dabbade6
L
5702 lt_cv_deplibs_check_method=pass_all
5703 ;;
979273e3 5704
dabbade6
L
5705beos*)
5706 lt_cv_deplibs_check_method=pass_all
5707 ;;
24443139 5708
dabbade6
L
5709bsdi[45]*)
5710 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5711 lt_cv_file_magic_cmd='/usr/bin/file -L'
5712 lt_cv_file_magic_test_file=/shlib/libc.so
d7040cdb 5713 ;;
dabbade6
L
5714
5715cygwin*)
5716 # func_win32_libid is a shell function defined in ltmain.sh
5717 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5718 lt_cv_file_magic_cmd='func_win32_libid'
d7040cdb 5719 ;;
dabbade6
L
5720
5721mingw* | pw32*)
5722 # Base MSYS/MinGW do not provide the 'file' command needed by
5723 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5724 # unless we find 'file', for example because we are cross-compiling.
5725 if ( file / ) >/dev/null 2>&1; then
5726 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5727 lt_cv_file_magic_cmd='func_win32_libid'
5728 else
5729 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5730 lt_cv_file_magic_cmd='$OBJDUMP -f'
d7040cdb
SE
5731 fi
5732 ;;
dabbade6 5733
1927a18f
L
5734cegcc)
5735 # use the weaker test based on 'objdump'. See mingw*.
5736 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5737 lt_cv_file_magic_cmd='$OBJDUMP -f'
5738 ;;
5739
dabbade6
L
5740darwin* | rhapsody*)
5741 lt_cv_deplibs_check_method=pass_all
d7040cdb 5742 ;;
dabbade6
L
5743
5744freebsd* | dragonfly*)
5745 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5746 case $host_cpu in
5747 i*86 )
5748 # Not sure whether the presence of OpenBSD here was a mistake.
5749 # Let's accept both of them until this is cleared up.
5750 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5751 lt_cv_file_magic_cmd=/usr/bin/file
5752 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5753 ;;
5754 esac
5755 else
5756 lt_cv_deplibs_check_method=pass_all
5757 fi
d7040cdb 5758 ;;
dabbade6
L
5759
5760gnu*)
5761 lt_cv_deplibs_check_method=pass_all
d7040cdb 5762 ;;
dabbade6
L
5763
5764hpux10.20* | hpux11*)
5765 lt_cv_file_magic_cmd=/usr/bin/file
5766 case $host_cpu in
5767 ia64*)
5768 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5769 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5770 ;;
5771 hppa*64*)
5772 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]'
5773 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5774 ;;
5775 *)
5776 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5777 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5778 ;;
5779 esac
d7040cdb 5780 ;;
24443139 5781
dabbade6
L
5782interix[3-9]*)
5783 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5784 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5785 ;;
24443139 5786
dabbade6
L
5787irix5* | irix6* | nonstopux*)
5788 case $LD in
5789 *-32|*"-32 ") libmagic=32-bit;;
5790 *-n32|*"-n32 ") libmagic=N32;;
5791 *-64|*"-64 ") libmagic=64-bit;;
5792 *) libmagic=never-match;;
5793 esac
5794 lt_cv_deplibs_check_method=pass_all
5795 ;;
8ae85421 5796
dabbade6 5797# This must be Linux ELF.
58e24671 5798linux* | k*bsd*-gnu | kopensolaris*-gnu)
dabbade6
L
5799 lt_cv_deplibs_check_method=pass_all
5800 ;;
24443139 5801
dabbade6
L
5802netbsd*)
5803 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5804 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5805 else
5806 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5807 fi
d7040cdb 5808 ;;
24443139 5809
dabbade6
L
5810newos6*)
5811 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5812 lt_cv_file_magic_cmd=/usr/bin/file
5813 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5814 ;;
d7040cdb 5815
dabbade6
L
5816*nto* | *qnx*)
5817 lt_cv_deplibs_check_method=pass_all
5818 ;;
d7040cdb 5819
dabbade6
L
5820openbsd*)
5821 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5822 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
d7040cdb 5823 else
dabbade6 5824 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
d7040cdb 5825 fi
dabbade6 5826 ;;
24443139 5827
dabbade6
L
5828osf3* | osf4* | osf5*)
5829 lt_cv_deplibs_check_method=pass_all
5830 ;;
24443139 5831
dabbade6
L
5832rdos*)
5833 lt_cv_deplibs_check_method=pass_all
5834 ;;
81172ff2 5835
dabbade6
L
5836solaris*)
5837 lt_cv_deplibs_check_method=pass_all
5838 ;;
81172ff2 5839
dabbade6
L
5840sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5841 lt_cv_deplibs_check_method=pass_all
5842 ;;
252b5132 5843
dabbade6
L
5844sysv4 | sysv4.3*)
5845 case $host_vendor in
5846 motorola)
5847 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]'
5848 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5849 ;;
5850 ncr)
5851 lt_cv_deplibs_check_method=pass_all
5852 ;;
5853 sequent)
5854 lt_cv_file_magic_cmd='/bin/file'
5855 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5856 ;;
5857 sni)
5858 lt_cv_file_magic_cmd='/bin/file'
5859 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5860 lt_cv_file_magic_test_file=/lib/libc.so
5861 ;;
5862 siemens)
5863 lt_cv_deplibs_check_method=pass_all
5864 ;;
5865 pc)
5866 lt_cv_deplibs_check_method=pass_all
5867 ;;
5868 esac
5869 ;;
252b5132 5870
dabbade6
L
5871tpf*)
5872 lt_cv_deplibs_check_method=pass_all
5873 ;;
5874esac
979273e3 5875
dabbade6
L
5876fi
5877echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5878echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5879file_magic_cmd=$lt_cv_file_magic_cmd
5880deplibs_check_method=$lt_cv_deplibs_check_method
5881test -z "$deplibs_check_method" && deplibs_check_method=unknown
d7040cdb 5882
979273e3 5883
979273e3 5884
dabbade6
L
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894if test -n "$ac_tool_prefix"; then
5895 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5896set dummy ${ac_tool_prefix}ar; ac_word=$2
5897echo "$as_me:$LINENO: checking for $ac_word" >&5
5898echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5899if test "${ac_cv_prog_AR+set}" = set; then
5900 echo $ECHO_N "(cached) $ECHO_C" >&6
5901else
5902 if test -n "$AR"; then
5903 ac_cv_prog_AR="$AR" # Let the user override the test.
5904else
5905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5906for as_dir in $PATH
5907do
5908 IFS=$as_save_IFS
5909 test -z "$as_dir" && as_dir=.
5910 for ac_exec_ext in '' $ac_executable_extensions; do
5911 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5912 ac_cv_prog_AR="${ac_tool_prefix}ar"
5913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5914 break 2
252b5132 5915 fi
979273e3 5916done
dabbade6 5917done
979273e3 5918
dabbade6
L
5919fi
5920fi
5921AR=$ac_cv_prog_AR
5922if test -n "$AR"; then
5923 echo "$as_me:$LINENO: result: $AR" >&5
5924echo "${ECHO_T}$AR" >&6
5925else
5926 echo "$as_me:$LINENO: result: no" >&5
5927echo "${ECHO_T}no" >&6
979273e3 5928fi
d7040cdb 5929
252b5132 5930fi
dabbade6
L
5931if test -z "$ac_cv_prog_AR"; then
5932 ac_ct_AR=$AR
5933 # Extract the first word of "ar", so it can be a program name with args.
5934set dummy ar; ac_word=$2
5935echo "$as_me:$LINENO: checking for $ac_word" >&5
5936echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5937if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5938 echo $ECHO_N "(cached) $ECHO_C" >&6
979273e3 5939else
dabbade6
L
5940 if test -n "$ac_ct_AR"; then
5941 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5942else
5943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5944for as_dir in $PATH
5945do
5946 IFS=$as_save_IFS
5947 test -z "$as_dir" && as_dir=.
5948 for ac_exec_ext in '' $ac_executable_extensions; do
5949 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5950 ac_cv_prog_ac_ct_AR="ar"
5951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5952 break 2
5953 fi
5954done
5955done
5956
5957 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5958fi
5959fi
5960ac_ct_AR=$ac_cv_prog_ac_ct_AR
5961if test -n "$ac_ct_AR"; then
5962 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5963echo "${ECHO_T}$ac_ct_AR" >&6
5964else
5965 echo "$as_me:$LINENO: result: no" >&5
5966echo "${ECHO_T}no" >&6
252b5132
RH
5967fi
5968
dabbade6
L
5969 AR=$ac_ct_AR
5970else
5971 AR="$ac_cv_prog_AR"
5972fi
252b5132 5973
dabbade6
L
5974test -z "$AR" && AR=ar
5975test -z "$AR_FLAGS" && AR_FLAGS=cru
252b5132 5976
979273e3 5977
979273e3 5978
979273e3 5979
252b5132 5980
979273e3 5981
979273e3 5982
252b5132 5983
979273e3 5984
979273e3 5985
979273e3 5986
dabbade6
L
5987if test -n "$ac_tool_prefix"; then
5988 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5989set dummy ${ac_tool_prefix}strip; ac_word=$2
5990echo "$as_me:$LINENO: checking for $ac_word" >&5
5991echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5992if test "${ac_cv_prog_STRIP+set}" = set; then
5993 echo $ECHO_N "(cached) $ECHO_C" >&6
5994else
5995 if test -n "$STRIP"; then
5996 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5997else
5998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5999for as_dir in $PATH
6000do
6001 IFS=$as_save_IFS
6002 test -z "$as_dir" && as_dir=.
6003 for ac_exec_ext in '' $ac_executable_extensions; do
6004 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6005 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6007 break 2
6008 fi
6009done
6010done
979273e3 6011
dabbade6
L
6012fi
6013fi
6014STRIP=$ac_cv_prog_STRIP
6015if test -n "$STRIP"; then
6016 echo "$as_me:$LINENO: result: $STRIP" >&5
6017echo "${ECHO_T}$STRIP" >&6
6018else
6019 echo "$as_me:$LINENO: result: no" >&5
6020echo "${ECHO_T}no" >&6
6021fi
979273e3 6022
dabbade6
L
6023fi
6024if test -z "$ac_cv_prog_STRIP"; then
6025 ac_ct_STRIP=$STRIP
6026 # Extract the first word of "strip", so it can be a program name with args.
6027set dummy strip; ac_word=$2
6028echo "$as_me:$LINENO: checking for $ac_word" >&5
6029echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6030if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6031 echo $ECHO_N "(cached) $ECHO_C" >&6
6032else
6033 if test -n "$ac_ct_STRIP"; then
6034 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6035else
6036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6037for as_dir in $PATH
6038do
6039 IFS=$as_save_IFS
6040 test -z "$as_dir" && as_dir=.
6041 for ac_exec_ext in '' $ac_executable_extensions; do
6042 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6043 ac_cv_prog_ac_ct_STRIP="strip"
6044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6045 break 2
6046 fi
6047done
6048done
979273e3 6049
dabbade6
L
6050 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6051fi
6052fi
6053ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6054if test -n "$ac_ct_STRIP"; then
6055 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6056echo "${ECHO_T}$ac_ct_STRIP" >&6
6057else
6058 echo "$as_me:$LINENO: result: no" >&5
6059echo "${ECHO_T}no" >&6
6060fi
979273e3 6061
dabbade6
L
6062 STRIP=$ac_ct_STRIP
6063else
6064 STRIP="$ac_cv_prog_STRIP"
6065fi
979273e3 6066
dabbade6 6067test -z "$STRIP" && STRIP=:
979273e3 6068
d7040cdb 6069
979273e3 6070
d7040cdb 6071
979273e3 6072
979273e3 6073
dabbade6
L
6074if test -n "$ac_tool_prefix"; then
6075 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6076set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6077echo "$as_me:$LINENO: checking for $ac_word" >&5
6078echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6079if test "${ac_cv_prog_RANLIB+set}" = set; then
6080 echo $ECHO_N "(cached) $ECHO_C" >&6
979273e3 6081else
dabbade6
L
6082 if test -n "$RANLIB"; then
6083 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6084else
6085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6086for as_dir in $PATH
6087do
6088 IFS=$as_save_IFS
6089 test -z "$as_dir" && as_dir=.
6090 for ac_exec_ext in '' $ac_executable_extensions; do
6091 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6092 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6094 break 2
6095 fi
6096done
6097done
979273e3 6098
979273e3 6099fi
979273e3 6100fi
dabbade6
L
6101RANLIB=$ac_cv_prog_RANLIB
6102if test -n "$RANLIB"; then
6103 echo "$as_me:$LINENO: result: $RANLIB" >&5
6104echo "${ECHO_T}$RANLIB" >&6
6105else
6106 echo "$as_me:$LINENO: result: no" >&5
6107echo "${ECHO_T}no" >&6
6108fi
d7040cdb 6109
d7040cdb 6110fi
dabbade6
L
6111if test -z "$ac_cv_prog_RANLIB"; then
6112 ac_ct_RANLIB=$RANLIB
6113 # Extract the first word of "ranlib", so it can be a program name with args.
6114set dummy ranlib; ac_word=$2
6115echo "$as_me:$LINENO: checking for $ac_word" >&5
6116echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6117if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
979273e3
NN
6118 echo $ECHO_N "(cached) $ECHO_C" >&6
6119else
dabbade6
L
6120 if test -n "$ac_ct_RANLIB"; then
6121 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6122else
6123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6124for as_dir in $PATH
d7040cdb 6125do
dabbade6
L
6126 IFS=$as_save_IFS
6127 test -z "$as_dir" && as_dir=.
6128 for ac_exec_ext in '' $ac_executable_extensions; do
6129 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6130 ac_cv_prog_ac_ct_RANLIB="ranlib"
6131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6132 break 2
979273e3 6133 fi
dabbade6
L
6134done
6135done
6136
6137 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
979273e3 6138fi
dabbade6
L
6139fi
6140ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6141if test -n "$ac_ct_RANLIB"; then
6142 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6143echo "${ECHO_T}$ac_ct_RANLIB" >&6
979273e3 6144else
dabbade6
L
6145 echo "$as_me:$LINENO: result: no" >&5
6146echo "${ECHO_T}no" >&6
d7040cdb 6147fi
d7040cdb 6148
dabbade6 6149 RANLIB=$ac_ct_RANLIB
d7040cdb 6150else
dabbade6 6151 RANLIB="$ac_cv_prog_RANLIB"
d7040cdb 6152fi
979273e3 6153
dabbade6 6154test -z "$RANLIB" && RANLIB=:
979273e3 6155
252b5132 6156
252b5132 6157
d7040cdb 6158
d7040cdb 6159
d7040cdb 6160
dabbade6 6161# Determine commands to create old-style static archives.
1927a18f 6162old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
dabbade6
L
6163old_postinstall_cmds='chmod 644 $oldlib'
6164old_postuninstall_cmds=
d7040cdb 6165
dabbade6
L
6166if test -n "$RANLIB"; then
6167 case $host_os in
6168 openbsd*)
6169 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6170 ;;
6171 *)
6172 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6173 ;;
6174 esac
6175 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
d7040cdb
SE
6176fi
6177
d7040cdb
SE
6178
6179
d7040cdb 6180
d7040cdb 6181
252b5132 6182
d7040cdb 6183
d7040cdb 6184
d7040cdb
SE
6185
6186
6187
d7040cdb 6188
d7040cdb 6189
d7040cdb 6190
252b5132 6191
d7040cdb
SE
6192
6193
6194
d7040cdb 6195
d7040cdb
SE
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
dabbade6
L
6211# If no C compiler was specified, use CC.
6212LTCC=${LTCC-"$CC"}
d7040cdb 6213
dabbade6
L
6214# If no C compiler flags were specified, use CFLAGS.
6215LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d7040cdb 6216
dabbade6
L
6217# Allow CC to be a program name with arguments.
6218compiler=$CC
d7040cdb
SE
6219
6220
dabbade6
L
6221# Check for command to grab the raw symbol name followed by C symbol from nm.
6222echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6223echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6224if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6225 echo $ECHO_N "(cached) $ECHO_C" >&6
6226else
d7040cdb 6227
dabbade6
L
6228# These are sane defaults that work on at least a few old systems.
6229# [They come from Ultrix. What could be older than Ultrix?!! ;)]
d7040cdb 6230
dabbade6
L
6231# Character class describing NM global symbol codes.
6232symcode='[BCDEGRST]'
d7040cdb 6233
dabbade6
L
6234# Regexp to match symbols that can be accessed directly from C.
6235sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
d7040cdb 6236
dabbade6
L
6237# Define system-specific variables.
6238case $host_os in
6239aix*)
6240 symcode='[BCDT]'
6241 ;;
1927a18f 6242cygwin* | mingw* | pw32* | cegcc*)
dabbade6
L
6243 symcode='[ABCDGISTW]'
6244 ;;
6245hpux*)
6246 if test "$host_cpu" = ia64; then
6247 symcode='[ABCDEGRST]'
6248 fi
6249 ;;
6250irix* | nonstopux*)
6251 symcode='[BCDEGRST]'
6252 ;;
6253osf*)
6254 symcode='[BCDEGQRST]'
6255 ;;
6256solaris*)
6257 symcode='[BDRT]'
6258 ;;
6259sco3.2v5*)
6260 symcode='[DT]'
6261 ;;
6262sysv4.2uw2*)
6263 symcode='[DT]'
6264 ;;
6265sysv5* | sco5v6* | unixware* | OpenUNIX*)
6266 symcode='[ABDT]'
6267 ;;
6268sysv4)
6269 symcode='[DFNSTU]'
6270 ;;
6271esac
6272
6273# If we're using GNU nm, then use its standard symbol codes.
6274case `$NM -V 2>&1` in
6275*GNU* | *'with BFD'*)
6276 symcode='[ABCDGIRSTW]' ;;
6277esac
d7040cdb 6278
dabbade6
L
6279# Transform an extracted symbol line into a proper C declaration.
6280# Some systems (esp. on ia64) link data and code symbols differently,
6281# so use this general approach.
6282lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
d7040cdb 6283
dabbade6 6284# Transform an extracted symbol line into symbol name and symbol address
7357c5b6 6285lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
1927a18f 6286lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
d7040cdb 6287
7357c5b6
AM
6288# Handle CRLF in mingw tool chain
6289opt_cr=
6290case $build_os in
6291mingw*)
6292 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6293 ;;
6294esac
d7040cdb 6295
7357c5b6
AM
6296# Try without a prefix underscore, then with it.
6297for ac_symprfx in "" "_"; do
d7040cdb 6298
7357c5b6
AM
6299 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6300 symxfrm="\\1 $ac_symprfx\\2 \\2"
d7040cdb 6301
7357c5b6
AM
6302 # Write the raw and C identifiers.
6303 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6304 # Fake it for dumpbin and say T for any non-static function
6305 # and D for any global variable.
6306 # Also find C++ and __fastcall symbols from MSVC++,
6307 # which start with @ or ?.
6308 lt_cv_sys_global_symbol_pipe="$AWK '"\
6309" {last_section=section; section=\$ 3};"\
6310" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6311" \$ 0!~/External *\|/{next};"\
6312" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6313" {if(hide[section]) next};"\
6314" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6315" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6316" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6317" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6318" ' prfx=^$ac_symprfx"
6319 else
6320 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6321 fi
d7040cdb 6322
7357c5b6
AM
6323 # Check to see that the pipe works correctly.
6324 pipe_works=no
d7040cdb 6325
7357c5b6
AM
6326 rm -f conftest*
6327 cat > conftest.$ac_ext <<_LT_EOF
6328#ifdef __cplusplus
6329extern "C" {
6330#endif
6331char nm_test_var;
6332void nm_test_func(void);
6333void nm_test_func(void){}
6334#ifdef __cplusplus
dabbade6 6335}
7357c5b6
AM
6336#endif
6337int main(){nm_test_var='a';nm_test_func();return(0);}
6338_LT_EOF
6339
6340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6341 (eval $ac_compile) 2>&5
dabbade6
L
6342 ac_status=$?
6343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357c5b6
AM
6344 (exit $ac_status); }; then
6345 # Now try to grab the symbols.
6346 nlist=conftest.nm
6347 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6348 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
dabbade6
L
6349 ac_status=$?
6350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357c5b6
AM
6351 (exit $ac_status); } && test -s "$nlist"; then
6352 # Try sorting and uniquifying the output.
6353 if sort "$nlist" | uniq > "$nlist"T; then
6354 mv -f "$nlist"T "$nlist"
6355 else
6356 rm -f "$nlist"T
6357 fi
d7040cdb 6358
7357c5b6
AM
6359 # Make sure that we snagged all the symbols we need.
6360 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6361 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6362 cat <<_LT_EOF > conftest.$ac_ext
6363#ifdef __cplusplus
6364extern "C" {
6365#endif
d7040cdb 6366
7357c5b6
AM
6367_LT_EOF
6368 # Now generate the symbol file.
6369 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
d7040cdb 6370
7357c5b6 6371 cat <<_LT_EOF >> conftest.$ac_ext
d7040cdb 6372
7357c5b6
AM
6373/* The mapping between symbol names and symbols. */
6374const struct {
6375 const char *name;
6376 void *address;
6377}
6378lt__PROGRAM__LTX_preloaded_symbols[] =
6379{
6380 { "@PROGRAM@", (void *) 0 },
6381_LT_EOF
6382 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6383 cat <<\_LT_EOF >> conftest.$ac_ext
6384 {0, (void *) 0}
6385};
d7040cdb 6386
7357c5b6
AM
6387/* This works around a problem in FreeBSD linker */
6388#ifdef FREEBSD_WORKAROUND
6389static const void *lt_preloaded_setup() {
6390 return lt__PROGRAM__LTX_preloaded_symbols;
6391}
dabbade6 6392#endif
d7040cdb 6393
7357c5b6 6394#ifdef __cplusplus
dabbade6 6395}
7357c5b6
AM
6396#endif
6397_LT_EOF
6398 # Now try linking the two files.
6399 mv conftest.$ac_objext conftstm.$ac_objext
6400 lt_save_LIBS="$LIBS"
6401 lt_save_CFLAGS="$CFLAGS"
6402 LIBS="conftstm.$ac_objext"
6403 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
dabbade6
L
6405 (eval $ac_link) 2>&5
6406 ac_status=$?
6407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357c5b6
AM
6408 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6409 pipe_works=yes
6410 fi
6411 LIBS="$lt_save_LIBS"
6412 CFLAGS="$lt_save_CFLAGS"
6413 else
6414 echo "cannot find nm_test_func in $nlist" >&5
6415 fi
6416 else
6417 echo "cannot find nm_test_var in $nlist" >&5
6418 fi
6419 else
6420 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6421 fi
6422 else
6423 echo "$progname: failed program was:" >&5
6424 cat conftest.$ac_ext >&5
6425 fi
1927a18f 6426 rm -rf conftest* conftst*
7357c5b6
AM
6427
6428 # Do not use the global_symbol_pipe unless it works.
6429 if test "$pipe_works" = yes; then
6430 break
6431 else
6432 lt_cv_sys_global_symbol_pipe=
6433 fi
6434done
d7040cdb 6435
dabbade6 6436fi
7357c5b6
AM
6437
6438if test -z "$lt_cv_sys_global_symbol_pipe"; then
6439 lt_cv_sys_global_symbol_to_cdecl=
dabbade6 6440fi
7357c5b6
AM
6441if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6442 echo "$as_me:$LINENO: result: failed" >&5
6443echo "${ECHO_T}failed" >&6
6444else
6445 echo "$as_me:$LINENO: result: ok" >&5
6446echo "${ECHO_T}ok" >&6
dabbade6 6447fi
d7040cdb 6448
d7040cdb 6449
d7040cdb 6450
d7040cdb 6451
d7040cdb 6452
d7040cdb 6453
d7040cdb 6454
d7040cdb 6455
d7040cdb 6456
d7040cdb 6457
d7040cdb 6458
d7040cdb 6459
7357c5b6
AM
6460
6461
6462
1927a18f
L
6463
6464
6465
6466
6467
7357c5b6
AM
6468
6469
6470# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6471if test "${enable_libtool_lock+set}" = set; then
6472 enableval="$enable_libtool_lock"
6473
6474fi;
6475test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6476
6477# Some flags need to be propagated to the compiler or linker for good
6478# libtool support.
6479case $host in
6480ia64-*-hpux*)
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.$ac_objext` in
6489 *ELF-32*)
6490 HPUX_IA64_MODE="32"
6491 ;;
6492 *ELF-64*)
6493 HPUX_IA64_MODE="64"
6494 ;;
6495 esac
6496 fi
6497 rm -rf conftest*
6498 ;;
6499*-*-irix6*)
6500 # Find out which ABI we are using.
29670fb9 6501 echo '#line 6501 "configure"' > conftest.$ac_ext
7357c5b6
AM
6502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6503 (eval $ac_compile) 2>&5
6504 ac_status=$?
6505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6506 (exit $ac_status); }; then
6507 if test "$lt_cv_prog_gnu_ld" = yes; then
6508 case `/usr/bin/file conftest.$ac_objext` in
6509 *32-bit*)
6510 LD="${LD-ld} -melf32bsmip"
6511 ;;
6512 *N32*)
6513 LD="${LD-ld} -melf32bmipn32"
6514 ;;
6515 *64-bit*)
6516 LD="${LD-ld} -melf64bmip"
6517 ;;
6518 esac
6519 else
6520 case `/usr/bin/file conftest.$ac_objext` in
6521 *32-bit*)
6522 LD="${LD-ld} -32"
6523 ;;
6524 *N32*)
6525 LD="${LD-ld} -n32"
6526 ;;
6527 *64-bit*)
6528 LD="${LD-ld} -64"
6529 ;;
6530 esac
6531 fi
6532 fi
6533 rm -rf conftest*
6534 ;;
6535
6536x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6537s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6538 # Find out which ABI we are using.
6539 echo 'int i;' > conftest.$ac_ext
6540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6541 (eval $ac_compile) 2>&5
6542 ac_status=$?
6543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544 (exit $ac_status); }; then
6545 case `/usr/bin/file conftest.o` in
6546 *32-bit*)
6547 case $host in
6548 x86_64-*kfreebsd*-gnu)
6549 LD="${LD-ld} -m elf_i386_fbsd"
6550 ;;
6551 x86_64-*linux*)
6552 LD="${LD-ld} -m elf_i386"
6553 ;;
6554 ppc64-*linux*|powerpc64-*linux*)
6555 LD="${LD-ld} -m elf32ppclinux"
6556 ;;
6557 s390x-*linux*)
6558 LD="${LD-ld} -m elf_s390"
6559 ;;
6560 sparc64-*linux*)
6561 LD="${LD-ld} -m elf32_sparc"
6562 ;;
6563 esac
6564 ;;
6565 *64-bit*)
6566 case $host in
6567 x86_64-*kfreebsd*-gnu)
6568 LD="${LD-ld} -m elf_x86_64_fbsd"
6569 ;;
6570 x86_64-*linux*)
6571 LD="${LD-ld} -m elf_x86_64"
6572 ;;
6573 ppc*-*linux*|powerpc*-*linux*)
6574 LD="${LD-ld} -m elf64ppc"
6575 ;;
6576 s390*-*linux*|s390*-*tpf*)
6577 LD="${LD-ld} -m elf64_s390"
6578 ;;
6579 sparc*-*linux*)
6580 LD="${LD-ld} -m elf64_sparc"
6581 ;;
6582 esac
6583 ;;
6584 esac
6585 fi
6586 rm -rf conftest*
6587 ;;
6588
6589*-*-sco3.2v5*)
6590 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6591 SAVE_CFLAGS="$CFLAGS"
6592 CFLAGS="$CFLAGS -belf"
6593 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6594echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6595if test "${lt_cv_cc_needs_belf+set}" = set; then
dabbade6
L
6596 echo $ECHO_N "(cached) $ECHO_C" >&6
6597else
7357c5b6
AM
6598 ac_ext=c
6599ac_cpp='$CPP $CPPFLAGS'
6600ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6601ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6602ac_compiler_gnu=$ac_cv_c_compiler_gnu
6603
6604 cat >conftest.$ac_ext <<_ACEOF
dabbade6
L
6605/* confdefs.h. */
6606_ACEOF
6607cat confdefs.h >>conftest.$ac_ext
6608cat >>conftest.$ac_ext <<_ACEOF
6609/* end confdefs.h. */
d7040cdb 6610
7357c5b6
AM
6611int
6612main ()
6613{
6614
6615 ;
6616 return 0;
6617}
dabbade6 6618_ACEOF
7357c5b6
AM
6619rm -f conftest.$ac_objext conftest$ac_exeext
6620if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6621 (eval $ac_link) 2>conftest.er1
dabbade6
L
6622 ac_status=$?
6623 grep -v '^ *+' conftest.er1 >conftest.err
6624 rm -f conftest.er1
6625 cat conftest.err >&5
6626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627 (exit $ac_status); } &&
6628 { ac_try='test -z "$ac_c_werror_flag"
6629 || test ! -s conftest.err'
6630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6631 (eval $ac_try) 2>&5
6632 ac_status=$?
6633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634 (exit $ac_status); }; } &&
7357c5b6 6635 { ac_try='test -s conftest$ac_exeext'
dabbade6
L
6636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6637 (eval $ac_try) 2>&5
6638 ac_status=$?
6639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640 (exit $ac_status); }; }; then
7357c5b6 6641 lt_cv_cc_needs_belf=yes
dabbade6
L
6642else
6643 echo "$as_me: failed program was:" >&5
6644sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 6645
7357c5b6 6646lt_cv_cc_needs_belf=no
dabbade6 6647fi
7357c5b6
AM
6648rm -f conftest.err conftest.$ac_objext \
6649 conftest$ac_exeext conftest.$ac_ext
6650 ac_ext=c
6651ac_cpp='$CPP $CPPFLAGS'
6652ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6653ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6654ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 6655
dabbade6 6656fi
7357c5b6
AM
6657echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6658echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6659 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6660 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6661 CFLAGS="$SAVE_CFLAGS"
6662 fi
6663 ;;
6664sparc*-*solaris*)
6665 # Find out which ABI we are using.
6666 echo 'int i;' > conftest.$ac_ext
6667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6668 (eval $ac_compile) 2>&5
6669 ac_status=$?
6670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6671 (exit $ac_status); }; then
6672 case `/usr/bin/file conftest.o` in
6673 *64-bit*)
6674 case $lt_cv_prog_gnu_ld in
6675 yes*) LD="${LD-ld} -m elf64_sparc" ;;
1927a18f
L
6676 *)
6677 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6678 LD="${LD-ld} -64"
6679 fi
6680 ;;
7357c5b6
AM
6681 esac
6682 ;;
6683 esac
6684 fi
6685 rm -rf conftest*
6686 ;;
6687esac
d7040cdb 6688
7357c5b6 6689need_locks="$enable_libtool_lock"
d7040cdb 6690
d7040cdb 6691
1927a18f
L
6692 case $host_os in
6693 rhapsody* | darwin*)
6694 if test -n "$ac_tool_prefix"; then
6695 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6696set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6697echo "$as_me:$LINENO: checking for $ac_word" >&5
6698echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6699if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6700 echo $ECHO_N "(cached) $ECHO_C" >&6
6701else
6702 if test -n "$DSYMUTIL"; then
6703 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6704else
6705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6706for as_dir in $PATH
6707do
6708 IFS=$as_save_IFS
6709 test -z "$as_dir" && as_dir=.
6710 for ac_exec_ext in '' $ac_executable_extensions; do
6711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6712 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6714 break 2
6715 fi
6716done
6717done
6718
6719fi
6720fi
6721DSYMUTIL=$ac_cv_prog_DSYMUTIL
6722if test -n "$DSYMUTIL"; then
6723 echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6724echo "${ECHO_T}$DSYMUTIL" >&6
6725else
6726 echo "$as_me:$LINENO: result: no" >&5
6727echo "${ECHO_T}no" >&6
6728fi
6729
6730fi
6731if test -z "$ac_cv_prog_DSYMUTIL"; then
6732 ac_ct_DSYMUTIL=$DSYMUTIL
6733 # Extract the first word of "dsymutil", so it can be a program name with args.
6734set dummy dsymutil; ac_word=$2
6735echo "$as_me:$LINENO: checking for $ac_word" >&5
6736echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6737if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6738 echo $ECHO_N "(cached) $ECHO_C" >&6
6739else
6740 if test -n "$ac_ct_DSYMUTIL"; then
6741 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6742else
6743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6744for as_dir in $PATH
6745do
6746 IFS=$as_save_IFS
6747 test -z "$as_dir" && as_dir=.
6748 for ac_exec_ext in '' $ac_executable_extensions; do
6749 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6750 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6752 break 2
6753 fi
6754done
6755done
6756
6757 test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
6758fi
6759fi
6760ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6761if test -n "$ac_ct_DSYMUTIL"; then
6762 echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6763echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
6764else
6765 echo "$as_me:$LINENO: result: no" >&5
6766echo "${ECHO_T}no" >&6
6767fi
6768
6769 DSYMUTIL=$ac_ct_DSYMUTIL
6770else
6771 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6772fi
6773
6774 if test -n "$ac_tool_prefix"; then
6775 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6776set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6777echo "$as_me:$LINENO: checking for $ac_word" >&5
6778echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6779if test "${ac_cv_prog_NMEDIT+set}" = set; then
6780 echo $ECHO_N "(cached) $ECHO_C" >&6
6781else
6782 if test -n "$NMEDIT"; then
6783 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6784else
6785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6786for as_dir in $PATH
6787do
6788 IFS=$as_save_IFS
6789 test -z "$as_dir" && as_dir=.
6790 for ac_exec_ext in '' $ac_executable_extensions; do
6791 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6792 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6794 break 2
6795 fi
6796done
6797done
6798
6799fi
6800fi
6801NMEDIT=$ac_cv_prog_NMEDIT
6802if test -n "$NMEDIT"; then
6803 echo "$as_me:$LINENO: result: $NMEDIT" >&5
6804echo "${ECHO_T}$NMEDIT" >&6
6805else
6806 echo "$as_me:$LINENO: result: no" >&5
6807echo "${ECHO_T}no" >&6
6808fi
6809
6810fi
6811if test -z "$ac_cv_prog_NMEDIT"; then
6812 ac_ct_NMEDIT=$NMEDIT
6813 # Extract the first word of "nmedit", so it can be a program name with args.
6814set dummy nmedit; ac_word=$2
6815echo "$as_me:$LINENO: checking for $ac_word" >&5
6816echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6817if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6818 echo $ECHO_N "(cached) $ECHO_C" >&6
6819else
6820 if test -n "$ac_ct_NMEDIT"; then
6821 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6822else
6823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6824for as_dir in $PATH
6825do
6826 IFS=$as_save_IFS
6827 test -z "$as_dir" && as_dir=.
6828 for ac_exec_ext in '' $ac_executable_extensions; do
6829 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6830 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6832 break 2
6833 fi
6834done
6835done
6836
6837 test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
6838fi
6839fi
6840ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6841if test -n "$ac_ct_NMEDIT"; then
6842 echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6843echo "${ECHO_T}$ac_ct_NMEDIT" >&6
6844else
6845 echo "$as_me:$LINENO: result: no" >&5
6846echo "${ECHO_T}no" >&6
6847fi
6848
6849 NMEDIT=$ac_ct_NMEDIT
6850else
6851 NMEDIT="$ac_cv_prog_NMEDIT"
6852fi
6853
6854 if test -n "$ac_tool_prefix"; then
6855 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6856set dummy ${ac_tool_prefix}lipo; ac_word=$2
6857echo "$as_me:$LINENO: checking for $ac_word" >&5
6858echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6859if test "${ac_cv_prog_LIPO+set}" = set; then
6860 echo $ECHO_N "(cached) $ECHO_C" >&6
6861else
6862 if test -n "$LIPO"; then
6863 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6864else
6865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6866for as_dir in $PATH
6867do
6868 IFS=$as_save_IFS
6869 test -z "$as_dir" && as_dir=.
6870 for ac_exec_ext in '' $ac_executable_extensions; do
6871 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6872 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6874 break 2
6875 fi
6876done
6877done
6878
6879fi
6880fi
6881LIPO=$ac_cv_prog_LIPO
6882if test -n "$LIPO"; then
6883 echo "$as_me:$LINENO: result: $LIPO" >&5
6884echo "${ECHO_T}$LIPO" >&6
6885else
6886 echo "$as_me:$LINENO: result: no" >&5
6887echo "${ECHO_T}no" >&6
6888fi
6889
6890fi
6891if test -z "$ac_cv_prog_LIPO"; then
6892 ac_ct_LIPO=$LIPO
6893 # Extract the first word of "lipo", so it can be a program name with args.
6894set dummy lipo; ac_word=$2
6895echo "$as_me:$LINENO: checking for $ac_word" >&5
6896echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6897if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6898 echo $ECHO_N "(cached) $ECHO_C" >&6
6899else
6900 if test -n "$ac_ct_LIPO"; then
6901 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6902else
6903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6904for as_dir in $PATH
6905do
6906 IFS=$as_save_IFS
6907 test -z "$as_dir" && as_dir=.
6908 for ac_exec_ext in '' $ac_executable_extensions; do
6909 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6910 ac_cv_prog_ac_ct_LIPO="lipo"
6911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6912 break 2
6913 fi
6914done
6915done
6916
6917 test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
6918fi
6919fi
6920ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6921if test -n "$ac_ct_LIPO"; then
6922 echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6923echo "${ECHO_T}$ac_ct_LIPO" >&6
6924else
6925 echo "$as_me:$LINENO: result: no" >&5
6926echo "${ECHO_T}no" >&6
6927fi
6928
6929 LIPO=$ac_ct_LIPO
6930else
6931 LIPO="$ac_cv_prog_LIPO"
6932fi
6933
6934 if test -n "$ac_tool_prefix"; then
6935 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6936set dummy ${ac_tool_prefix}otool; ac_word=$2
6937echo "$as_me:$LINENO: checking for $ac_word" >&5
6938echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6939if test "${ac_cv_prog_OTOOL+set}" = set; then
6940 echo $ECHO_N "(cached) $ECHO_C" >&6
6941else
6942 if test -n "$OTOOL"; then
6943 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6944else
6945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6946for as_dir in $PATH
6947do
6948 IFS=$as_save_IFS
6949 test -z "$as_dir" && as_dir=.
6950 for ac_exec_ext in '' $ac_executable_extensions; do
6951 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6952 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6954 break 2
6955 fi
6956done
6957done
6958
6959fi
6960fi
6961OTOOL=$ac_cv_prog_OTOOL
6962if test -n "$OTOOL"; then
6963 echo "$as_me:$LINENO: result: $OTOOL" >&5
6964echo "${ECHO_T}$OTOOL" >&6
6965else
6966 echo "$as_me:$LINENO: result: no" >&5
6967echo "${ECHO_T}no" >&6
6968fi
6969
6970fi
6971if test -z "$ac_cv_prog_OTOOL"; then
6972 ac_ct_OTOOL=$OTOOL
6973 # Extract the first word of "otool", so it can be a program name with args.
6974set dummy otool; ac_word=$2
6975echo "$as_me:$LINENO: checking for $ac_word" >&5
6976echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6977if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6978 echo $ECHO_N "(cached) $ECHO_C" >&6
6979else
6980 if test -n "$ac_ct_OTOOL"; then
6981 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6982else
6983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6984for as_dir in $PATH
6985do
6986 IFS=$as_save_IFS
6987 test -z "$as_dir" && as_dir=.
6988 for ac_exec_ext in '' $ac_executable_extensions; do
6989 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6990 ac_cv_prog_ac_ct_OTOOL="otool"
6991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6992 break 2
6993 fi
6994done
6995done
6996
6997 test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
6998fi
6999fi
7000ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7001if test -n "$ac_ct_OTOOL"; then
7002 echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7003echo "${ECHO_T}$ac_ct_OTOOL" >&6
7004else
7005 echo "$as_me:$LINENO: result: no" >&5
7006echo "${ECHO_T}no" >&6
7007fi
7008
7009 OTOOL=$ac_ct_OTOOL
7010else
7011 OTOOL="$ac_cv_prog_OTOOL"
7012fi
7013
7014 if test -n "$ac_tool_prefix"; then
7015 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7016set dummy ${ac_tool_prefix}otool64; ac_word=$2
7017echo "$as_me:$LINENO: checking for $ac_word" >&5
7018echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7019if test "${ac_cv_prog_OTOOL64+set}" = set; then
7020 echo $ECHO_N "(cached) $ECHO_C" >&6
7021else
7022 if test -n "$OTOOL64"; then
7023 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7024else
7025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7026for as_dir in $PATH
7027do
7028 IFS=$as_save_IFS
7029 test -z "$as_dir" && as_dir=.
7030 for ac_exec_ext in '' $ac_executable_extensions; do
7031 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7032 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7034 break 2
7035 fi
7036done
7037done
7038
7039fi
7040fi
7041OTOOL64=$ac_cv_prog_OTOOL64
7042if test -n "$OTOOL64"; then
7043 echo "$as_me:$LINENO: result: $OTOOL64" >&5
7044echo "${ECHO_T}$OTOOL64" >&6
7045else
7046 echo "$as_me:$LINENO: result: no" >&5
7047echo "${ECHO_T}no" >&6
7048fi
7049
7050fi
7051if test -z "$ac_cv_prog_OTOOL64"; then
7052 ac_ct_OTOOL64=$OTOOL64
7053 # Extract the first word of "otool64", so it can be a program name with args.
7054set dummy otool64; ac_word=$2
7055echo "$as_me:$LINENO: checking for $ac_word" >&5
7056echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7057if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7058 echo $ECHO_N "(cached) $ECHO_C" >&6
7059else
7060 if test -n "$ac_ct_OTOOL64"; then
7061 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7062else
7063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7064for as_dir in $PATH
7065do
7066 IFS=$as_save_IFS
7067 test -z "$as_dir" && as_dir=.
7068 for ac_exec_ext in '' $ac_executable_extensions; do
7069 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7070 ac_cv_prog_ac_ct_OTOOL64="otool64"
7071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7072 break 2
7073 fi
7074done
7075done
7076
7077 test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
7078fi
7079fi
7080ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7081if test -n "$ac_ct_OTOOL64"; then
7082 echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7083echo "${ECHO_T}$ac_ct_OTOOL64" >&6
7084else
7085 echo "$as_me:$LINENO: result: no" >&5
7086echo "${ECHO_T}no" >&6
7087fi
7088
7089 OTOOL64=$ac_ct_OTOOL64
7090else
7091 OTOOL64="$ac_cv_prog_OTOOL64"
7092fi
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120 echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7121echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
7122if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7123 echo $ECHO_N "(cached) $ECHO_C" >&6
7124else
7125 lt_cv_apple_cc_single_mod=no
7126 if test -z "${LT_MULTI_MODULE}"; then
7127 # By default we will add the -single_module flag. You can override
7128 # by either setting the environment variable LT_MULTI_MODULE
7129 # non-empty at configure time, or by adding -multi_module to the
7130 # link flags.
7131 rm -rf libconftest.dylib*
7132 echo "int foo(void){return 1;}" > conftest.c
7133 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7134-dynamiclib -Wl,-single_module conftest.c" >&5
7135 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7136 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7137 _lt_result=$?
7138 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7139 lt_cv_apple_cc_single_mod=yes
7140 else
7141 cat conftest.err >&5
7142 fi
7143 rm -rf libconftest.dylib*
7144 rm -f conftest.*
7145 fi
7146fi
7147echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7148echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
7149 echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7150echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
7151if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7152 echo $ECHO_N "(cached) $ECHO_C" >&6
7153else
7154 lt_cv_ld_exported_symbols_list=no
7155 save_LDFLAGS=$LDFLAGS
7156 echo "_main" > conftest.sym
7157 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7158 cat >conftest.$ac_ext <<_ACEOF
7159/* confdefs.h. */
7160_ACEOF
7161cat confdefs.h >>conftest.$ac_ext
7162cat >>conftest.$ac_ext <<_ACEOF
7163/* end confdefs.h. */
7164
7165int
7166main ()
7167{
7168
7169 ;
7170 return 0;
7171}
7172_ACEOF
7173rm -f conftest.$ac_objext conftest$ac_exeext
7174if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7175 (eval $ac_link) 2>conftest.er1
7176 ac_status=$?
7177 grep -v '^ *+' conftest.er1 >conftest.err
7178 rm -f conftest.er1
7179 cat conftest.err >&5
7180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7181 (exit $ac_status); } &&
7182 { ac_try='test -z "$ac_c_werror_flag"
7183 || test ! -s conftest.err'
7184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7185 (eval $ac_try) 2>&5
7186 ac_status=$?
7187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7188 (exit $ac_status); }; } &&
7189 { ac_try='test -s conftest$ac_exeext'
7190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7191 (eval $ac_try) 2>&5
7192 ac_status=$?
7193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194 (exit $ac_status); }; }; then
7195 lt_cv_ld_exported_symbols_list=yes
7196else
7197 echo "$as_me: failed program was:" >&5
7198sed 's/^/| /' conftest.$ac_ext >&5
7199
7200lt_cv_ld_exported_symbols_list=no
7201fi
7202rm -f conftest.err conftest.$ac_objext \
7203 conftest$ac_exeext conftest.$ac_ext
7204 LDFLAGS="$save_LDFLAGS"
7205
7206fi
7207echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7208echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
7209 case $host_os in
7210 rhapsody* | darwin1.[012])
7211 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7212 darwin1.*)
7213 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7214 darwin*) # darwin 5.x on
7215 # if running on 10.5 or later, the deployment target defaults
7216 # to the OS version, if on x86, and 10.4, the deployment
7217 # target defaults to 10.4. Don't you love it?
7218 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7219 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7220 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7221 10.[012]*)
7222 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7223 10.*)
7224 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7225 esac
7226 ;;
7227 esac
7228 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7229 _lt_dar_single_mod='$single_module'
7230 fi
7231 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7232 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7233 else
7234 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7235 fi
7236 if test "$DSYMUTIL" != ":"; then
7237 _lt_dsymutil='~$DSYMUTIL $lib || :'
7238 else
7239 _lt_dsymutil=
7240 fi
7241 ;;
7242 esac
7243
7244
dabbade6
L
7245for ac_header in dlfcn.h
7246do
7247as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7248echo "$as_me:$LINENO: checking for $ac_header" >&5
7249echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7250if eval "test \"\${$as_ac_Header+set}\" = set"; then
7251 echo $ECHO_N "(cached) $ECHO_C" >&6
7252else
7253 cat >conftest.$ac_ext <<_ACEOF
7254/* confdefs.h. */
7255_ACEOF
7256cat confdefs.h >>conftest.$ac_ext
7257cat >>conftest.$ac_ext <<_ACEOF
7258/* end confdefs.h. */
7259$ac_includes_default
d7040cdb 7260
dabbade6
L
7261#include <$ac_header>
7262_ACEOF
7263rm -f conftest.$ac_objext
7264if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7265 (eval $ac_compile) 2>conftest.er1
7266 ac_status=$?
7267 grep -v '^ *+' conftest.er1 >conftest.err
7268 rm -f conftest.er1
7269 cat conftest.err >&5
7270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271 (exit $ac_status); } &&
7272 { ac_try='test -z "$ac_c_werror_flag"
7273 || test ! -s conftest.err'
7274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7275 (eval $ac_try) 2>&5
7276 ac_status=$?
7277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278 (exit $ac_status); }; } &&
7279 { ac_try='test -s conftest.$ac_objext'
7280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7281 (eval $ac_try) 2>&5
7282 ac_status=$?
7283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7284 (exit $ac_status); }; }; then
7285 eval "$as_ac_Header=yes"
7286else
7287 echo "$as_me: failed program was:" >&5
7288sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 7289
dabbade6
L
7290eval "$as_ac_Header=no"
7291fi
7292rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7293fi
7294echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7295echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7296if test `eval echo '${'$as_ac_Header'}'` = yes; then
7297 cat >>confdefs.h <<_ACEOF
7298#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7299_ACEOF
d7040cdb 7300
dabbade6 7301fi
d7040cdb 7302
dabbade6 7303done
d7040cdb 7304
d7040cdb 7305
d7040cdb 7306
1927a18f
L
7307# Set options
7308
7309
7310
7311 enable_dlopen=no
7312
7313
7314 enable_win32_dll=no
7315
7316
7317
7318 # Check whether --enable-static or --disable-static was given.
7319if test "${enable_static+set}" = set; then
7320 enableval="$enable_static"
7321 p=${PACKAGE-default}
7322 case $enableval in
7323 yes) enable_static=yes ;;
7324 no) enable_static=no ;;
7325 *)
7326 enable_static=no
7327 # Look at the argument we got. We use all the common list separators.
7328 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7329 for pkg in $enableval; do
7330 IFS="$lt_save_ifs"
7331 if test "X$pkg" = "X$p"; then
7332 enable_static=yes
7333 fi
7334 done
7335 IFS="$lt_save_ifs"
7336 ;;
7337 esac
7338else
7339 enable_static=yes
7340fi;
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350# Check whether --with-pic or --without-pic was given.
7351if test "${with_pic+set}" = set; then
7352 withval="$with_pic"
7353 pic_mode="$withval"
7354else
7355 pic_mode=default
7356fi;
7357
7358test -z "$pic_mode" && pic_mode=default
7359
7360
7361
7362
7363
7364
7365
7366 # Check whether --enable-fast-install or --disable-fast-install was given.
7367if test "${enable_fast_install+set}" = set; then
7368 enableval="$enable_fast_install"
7369 p=${PACKAGE-default}
7370 case $enableval in
7371 yes) enable_fast_install=yes ;;
7372 no) enable_fast_install=no ;;
7373 *)
7374 enable_fast_install=no
7375 # Look at the argument we got. We use all the common list separators.
7376 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7377 for pkg in $enableval; do
7378 IFS="$lt_save_ifs"
7379 if test "X$pkg" = "X$p"; then
7380 enable_fast_install=yes
7381 fi
7382 done
7383 IFS="$lt_save_ifs"
7384 ;;
7385 esac
7386else
7387 enable_fast_install=yes
7388fi;
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
dabbade6
L
7399# This can be used to rebuild libtool when needed
7400LIBTOOL_DEPS="$ltmain"
d7040cdb 7401
dabbade6
L
7402# Always use our own libtool.
7403LIBTOOL='$(SHELL) $(top_builddir)/libtool'
d7040cdb 7404
d7040cdb 7405
d7040cdb 7406
d7040cdb
SE
7407
7408
7409
7410
7411
7412
d7040cdb 7413
d7040cdb 7414
d7040cdb 7415
d7040cdb
SE
7416
7417
7418
7419
7420
7421
d7040cdb 7422
d7040cdb 7423
d7040cdb
SE
7424
7425
7426
7427
7428
dabbade6 7429test -z "$LN_S" && LN_S="ln -s"
d7040cdb
SE
7430
7431
d7040cdb 7432
d7040cdb 7433
d7040cdb
SE
7434
7435
7436
7437
7438
7439
dabbade6
L
7440
7441
7442
7443
7444if test -n "${ZSH_VERSION+set}" ; then
7445 setopt NO_GLOB_SUBST
7446fi
7447
7448echo "$as_me:$LINENO: checking for objdir" >&5
7449echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7450if test "${lt_cv_objdir+set}" = set; then
d7040cdb
SE
7451 echo $ECHO_N "(cached) $ECHO_C" >&6
7452else
dabbade6
L
7453 rm -f .libs 2>/dev/null
7454mkdir .libs 2>/dev/null
7455if test -d .libs; then
7456 lt_cv_objdir=.libs
7457else
7458 # MS-DOS does not allow filenames that begin with a dot.
7459 lt_cv_objdir=_libs
d7040cdb 7460fi
dabbade6
L
7461rmdir .libs 2>/dev/null
7462fi
7463echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7464echo "${ECHO_T}$lt_cv_objdir" >&6
7465objdir=$lt_cv_objdir
d7040cdb
SE
7466
7467
7468
7469
d7040cdb 7470
dabbade6
L
7471cat >>confdefs.h <<_ACEOF
7472#define LT_OBJDIR "$lt_cv_objdir/"
7473_ACEOF
d7040cdb
SE
7474
7475
7476
7477
7478
d7040cdb 7479
d7040cdb 7480
d7040cdb 7481
d7040cdb 7482
d7040cdb 7483
d7040cdb 7484
d7040cdb 7485
d7040cdb 7486
d7040cdb 7487
d7040cdb 7488
d7040cdb 7489
d7040cdb 7490
dabbade6
L
7491case $host_os in
7492aix3*)
7493 # AIX sometimes has problems with the GCC collect2 program. For some
7494 # reason, if we set the COLLECT_NAMES environment variable, the problems
7495 # vanish in a puff of smoke.
7496 if test "X${COLLECT_NAMES+set}" != Xset; then
7497 COLLECT_NAMES=
7498 export COLLECT_NAMES
7499 fi
7500 ;;
7501esac
d7040cdb 7502
dabbade6
L
7503# Sed substitution that helps us do robust quoting. It backslashifies
7504# metacharacters that are still active within double-quoted strings.
7505sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
d7040cdb 7506
dabbade6
L
7507# Same as above, but do not quote variable references.
7508double_quote_subst='s/\(["`\\]\)/\\\1/g'
d7040cdb 7509
dabbade6
L
7510# Sed substitution to delay expansion of an escaped shell variable in a
7511# double_quote_subst'ed string.
7512delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
d7040cdb 7513
dabbade6
L
7514# Sed substitution to delay expansion of an escaped single quote.
7515delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
d7040cdb 7516
dabbade6
L
7517# Sed substitution to avoid accidental globbing in evaled expressions
7518no_glob_subst='s/\*/\\\*/g'
d7040cdb 7519
dabbade6
L
7520# Global variables:
7521ofile=libtool
7522can_build_shared=yes
d7040cdb 7523
dabbade6
L
7524# All known linkers require a `.a' archive for static linking (except MSVC,
7525# which needs '.lib').
7526libext=a
d7040cdb 7527
dabbade6 7528with_gnu_ld="$lt_cv_prog_gnu_ld"
d7040cdb 7529
dabbade6
L
7530old_CC="$CC"
7531old_CFLAGS="$CFLAGS"
d7040cdb 7532
dabbade6
L
7533# Set sane defaults for various variables
7534test -z "$CC" && CC=cc
7535test -z "$LTCC" && LTCC=$CC
7536test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7537test -z "$LD" && LD=ld
7538test -z "$ac_objext" && ac_objext=o
7539
7540for cc_temp in $compiler""; do
7541 case $cc_temp in
7542 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7543 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7544 \-*) ;;
7545 *) break;;
7546 esac
7547done
7548cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7549
7550
7551# Only perform the check for file, if the check method requires it
7552test -z "$MAGIC_CMD" && MAGIC_CMD=file
7553case $deplibs_check_method in
7554file_magic*)
7555 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7556 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7557echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7558if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7559 echo $ECHO_N "(cached) $ECHO_C" >&6
7560else
7561 case $MAGIC_CMD in
7562[\\/*] | ?:[\\/]*)
7563 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7564 ;;
7565*)
7566 lt_save_MAGIC_CMD="$MAGIC_CMD"
7567 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7568 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7569 for ac_dir in $ac_dummy; do
7570 IFS="$lt_save_ifs"
7571 test -z "$ac_dir" && ac_dir=.
7572 if test -f $ac_dir/${ac_tool_prefix}file; then
7573 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7574 if test -n "$file_magic_test_file"; then
7575 case $deplibs_check_method in
7576 "file_magic "*)
7577 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7578 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7579 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7580 $EGREP "$file_magic_regex" > /dev/null; then
7581 :
d7040cdb 7582 else
dabbade6 7583 cat <<_LT_EOF 1>&2
d7040cdb 7584
dabbade6
L
7585*** Warning: the command libtool uses to detect shared libraries,
7586*** $file_magic_cmd, produces output that libtool cannot recognize.
7587*** The result is that libtool may fail to recognize shared libraries
7588*** as such. This will affect the creation of libtool libraries that
7589*** depend on shared libraries, but programs linked with such libtool
7590*** libraries will work regardless of this problem. Nevertheless, you
7591*** may want to report the problem to your system manager and/or to
7592*** bug-libtool@gnu.org
d7040cdb 7593
dabbade6
L
7594_LT_EOF
7595 fi ;;
7596 esac
d7040cdb 7597 fi
dabbade6 7598 break
d7040cdb 7599 fi
dabbade6
L
7600 done
7601 IFS="$lt_save_ifs"
7602 MAGIC_CMD="$lt_save_MAGIC_CMD"
7603 ;;
7604esac
7605fi
d7040cdb 7606
dabbade6
L
7607MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7608if test -n "$MAGIC_CMD"; then
7609 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7610echo "${ECHO_T}$MAGIC_CMD" >&6
7611else
7612 echo "$as_me:$LINENO: result: no" >&5
7613echo "${ECHO_T}no" >&6
7614fi
d7040cdb 7615
d7040cdb 7616
d7040cdb 7617
d7040cdb 7618
d7040cdb 7619
dabbade6
L
7620if test -z "$lt_cv_path_MAGIC_CMD"; then
7621 if test -n "$ac_tool_prefix"; then
7622 echo "$as_me:$LINENO: checking for file" >&5
7623echo $ECHO_N "checking for file... $ECHO_C" >&6
7624if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7625 echo $ECHO_N "(cached) $ECHO_C" >&6
7626else
7627 case $MAGIC_CMD in
7628[\\/*] | ?:[\\/]*)
7629 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7630 ;;
7631*)
7632 lt_save_MAGIC_CMD="$MAGIC_CMD"
7633 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7634 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7635 for ac_dir in $ac_dummy; do
7636 IFS="$lt_save_ifs"
7637 test -z "$ac_dir" && ac_dir=.
7638 if test -f $ac_dir/file; then
7639 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7640 if test -n "$file_magic_test_file"; then
7641 case $deplibs_check_method in
7642 "file_magic "*)
7643 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7644 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7645 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7646 $EGREP "$file_magic_regex" > /dev/null; then
7647 :
d7040cdb 7648 else
dabbade6 7649 cat <<_LT_EOF 1>&2
d7040cdb 7650
dabbade6
L
7651*** Warning: the command libtool uses to detect shared libraries,
7652*** $file_magic_cmd, produces output that libtool cannot recognize.
7653*** The result is that libtool may fail to recognize shared libraries
7654*** as such. This will affect the creation of libtool libraries that
7655*** depend on shared libraries, but programs linked with such libtool
7656*** libraries will work regardless of this problem. Nevertheless, you
7657*** may want to report the problem to your system manager and/or to
7658*** bug-libtool@gnu.org
d7040cdb 7659
dabbade6
L
7660_LT_EOF
7661 fi ;;
7662 esac
7663 fi
7664 break
7665 fi
7666 done
7667 IFS="$lt_save_ifs"
7668 MAGIC_CMD="$lt_save_MAGIC_CMD"
7669 ;;
7670esac
d7040cdb 7671fi
dabbade6
L
7672
7673MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7674if test -n "$MAGIC_CMD"; then
7675 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7676echo "${ECHO_T}$MAGIC_CMD" >&6
d7040cdb 7677else
dabbade6
L
7678 echo "$as_me:$LINENO: result: no" >&5
7679echo "${ECHO_T}no" >&6
7680fi
7681
d7040cdb 7682
dabbade6
L
7683 else
7684 MAGIC_CMD=:
7685 fi
d7040cdb 7686fi
d7040cdb 7687
dabbade6
L
7688 fi
7689 ;;
7690esac
d7040cdb 7691
dabbade6 7692# Use C for the default configuration in the libtool script
d7040cdb 7693
dabbade6
L
7694lt_save_CC="$CC"
7695ac_ext=c
7696ac_cpp='$CPP $CPPFLAGS'
7697ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7698ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7699ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 7700
d7040cdb 7701
dabbade6
L
7702# Source file extension for C test sources.
7703ac_ext=c
d7040cdb 7704
dabbade6
L
7705# Object file extension for compiled C test sources.
7706objext=o
7707objext=$objext
7708
7709# Code to be used in simple compile tests
7710lt_simple_compile_test_code="int some_variable = 0;"
7711
7712# Code to be used in simple link tests
7713lt_simple_link_test_code='int main(){return(0);}'
7714
7715
7716
7717
7718
7719
7720
7721# If no C compiler was specified, use CC.
7722LTCC=${LTCC-"$CC"}
7723
7724# If no C compiler flags were specified, use CFLAGS.
7725LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7726
7727# Allow CC to be a program name with arguments.
7728compiler=$CC
7729
7730# Save the default compiler, since it gets overwritten when the other
7731# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7732compiler_DEFAULT=$CC
7733
7734# save warnings/boilerplate of simple test code
7735ac_outfile=conftest.$ac_objext
7736echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7737eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7738_lt_compiler_boilerplate=`cat conftest.err`
7739$RM conftest*
7740
7741ac_outfile=conftest.$ac_objext
7742echo "$lt_simple_link_test_code" >conftest.$ac_ext
7743eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7744_lt_linker_boilerplate=`cat conftest.err`
1927a18f 7745$RM -r conftest*
dabbade6
L
7746
7747
7748## CAVEAT EMPTOR:
7749## There is no encapsulation within the following macros, do not change
7750## the running order or otherwise move them around unless you know exactly
7751## what you are doing...
7752if test -n "$compiler"; then
7753
7754lt_prog_compiler_no_builtin_flag=
7755
7756if test "$GCC" = yes; then
7757 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7758
7759 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7760echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7761if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7762 echo $ECHO_N "(cached) $ECHO_C" >&6
7763else
7764 lt_cv_prog_compiler_rtti_exceptions=no
7765 ac_outfile=conftest.$ac_objext
7766 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7767 lt_compiler_flag="-fno-rtti -fno-exceptions"
7768 # Insert the option either (1) after the last *FLAGS variable, or
7769 # (2) before a word containing "conftest.", or (3) at the end.
7770 # Note that $ac_compile itself does not contain backslashes and begins
7771 # with a dollar sign (not a hyphen), so the echo should work correctly.
7772 # The option is referenced via a variable to avoid confusing sed.
7773 lt_compile=`echo "$ac_compile" | $SED \
7774 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7775 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7776 -e 's:$: $lt_compiler_flag:'`
29670fb9 7777 (eval echo "\"\$as_me:7777: $lt_compile\"" >&5)
dabbade6
L
7778 (eval "$lt_compile" 2>conftest.err)
7779 ac_status=$?
7780 cat conftest.err >&5
29670fb9 7781 echo "$as_me:7781: \$? = $ac_status" >&5
dabbade6
L
7782 if (exit $ac_status) && test -s "$ac_outfile"; then
7783 # The compiler can only warn and ignore the option if not recognized
7784 # So say no if there are warnings other than the usual output.
7785 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7786 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7787 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7788 lt_cv_prog_compiler_rtti_exceptions=yes
7789 fi
7790 fi
7791 $RM conftest*
7792
7793fi
7794echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7795echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7796
7797if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7798 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7799else
7800 :
7801fi
7802
7803fi
7804
7805
7806
7807
7808
7809
7810 lt_prog_compiler_wl=
7811lt_prog_compiler_pic=
7812lt_prog_compiler_static=
7813
7814echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7815echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7816
7817 if test "$GCC" = yes; then
7818 lt_prog_compiler_wl='-Wl,'
7819 lt_prog_compiler_static='-static'
7820
7821 case $host_os in
7822 aix*)
7823 # All AIX code is PIC.
7824 if test "$host_cpu" = ia64; then
7825 # AIX 5 now supports IA64 processor
7826 lt_prog_compiler_static='-Bstatic'
7827 fi
7828 ;;
d7040cdb
SE
7829
7830 amigaos*)
1927a18f
L
7831 case $host_cpu in
7832 powerpc)
7833 # see comment about AmigaOS4 .so support
7834 lt_prog_compiler_pic='-fPIC'
7835 ;;
7836 m68k)
7837 # FIXME: we need at least 68020 code to build shared libraries, but
7838 # adding the `-m68020' flag to GCC prevents building anything better,
7839 # like `-m68040'.
7840 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7841 ;;
7842 esac
d7040cdb
SE
7843 ;;
7844
dabbade6
L
7845 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7846 # PIC is the default for these OSes.
d7040cdb
SE
7847 ;;
7848
1927a18f 7849 mingw* | cygwin* | pw32* | os2* | cegcc*)
dabbade6
L
7850 # This hack is so that the source file can tell whether it is being
7851 # built for inclusion in a dll (and should export symbols for example).
7852 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7853 # (--disable-auto-import) libraries
7854 lt_prog_compiler_pic='-DDLL_EXPORT'
d7040cdb
SE
7855 ;;
7856
7857 darwin* | rhapsody*)
dabbade6
L
7858 # PIC is the default on this platform
7859 # Common symbols not allowed in MH_DYLIB files
7860 lt_prog_compiler_pic='-fno-common'
7861 ;;
7862
7863 hpux*)
1927a18f
L
7864 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7865 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7866 # sets the default TLS model and affects inlining.
dabbade6 7867 case $host_cpu in
1927a18f 7868 hppa*64*)
dabbade6 7869 # +Z the default
d7040cdb 7870 ;;
dabbade6
L
7871 *)
7872 lt_prog_compiler_pic='-fPIC'
d7040cdb
SE
7873 ;;
7874 esac
dabbade6 7875 ;;
d7040cdb 7876
dabbade6
L
7877 interix[3-9]*)
7878 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7879 # Instead, we relocate shared libraries at runtime.
d7040cdb
SE
7880 ;;
7881
dabbade6
L
7882 msdosdjgpp*)
7883 # Just because we use GCC doesn't mean we suddenly get shared libraries
7884 # on systems that don't support them.
7885 lt_prog_compiler_can_build_shared=no
7886 enable_shared=no
d7040cdb
SE
7887 ;;
7888
dabbade6
L
7889 *nto* | *qnx*)
7890 # QNX uses GNU C++, but need to define -shared option too, otherwise
7891 # it will coredump.
7892 lt_prog_compiler_pic='-fPIC -shared'
d7040cdb
SE
7893 ;;
7894
dabbade6
L
7895 sysv4*MP*)
7896 if test -d /usr/nec; then
7897 lt_prog_compiler_pic=-Kconform_pic
7898 fi
d7040cdb
SE
7899 ;;
7900
dabbade6
L
7901 *)
7902 lt_prog_compiler_pic='-fPIC'
d7040cdb 7903 ;;
dabbade6
L
7904 esac
7905 else
7906 # PORTME Check for flag to pass linker flags through the system compiler.
7907 case $host_os in
7908 aix*)
7909 lt_prog_compiler_wl='-Wl,'
7910 if test "$host_cpu" = ia64; then
7911 # AIX 5 now supports IA64 processor
7912 lt_prog_compiler_static='-Bstatic'
d7040cdb 7913 else
dabbade6 7914 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
d7040cdb 7915 fi
dabbade6 7916 ;;
d7040cdb 7917
1927a18f 7918 mingw* | cygwin* | pw32* | os2* | cegcc*)
dabbade6
L
7919 # This hack is so that the source file can tell whether it is being
7920 # built for inclusion in a dll (and should export symbols for example).
7921 lt_prog_compiler_pic='-DDLL_EXPORT'
d7040cdb
SE
7922 ;;
7923
dabbade6
L
7924 hpux9* | hpux10* | hpux11*)
7925 lt_prog_compiler_wl='-Wl,'
7926 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7927 # not for PA HP-UX.
7928 case $host_cpu in
7929 hppa*64*|ia64*)
7930 # +Z the default
7931 ;;
7932 *)
7933 lt_prog_compiler_pic='+Z'
7934 ;;
7935 esac
7936 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7937 lt_prog_compiler_static='${wl}-a ${wl}archive'
d7040cdb
SE
7938 ;;
7939
dabbade6
L
7940 irix5* | irix6* | nonstopux*)
7941 lt_prog_compiler_wl='-Wl,'
7942 # PIC (with -KPIC) is the default.
7943 lt_prog_compiler_static='-non_shared'
7944 ;;
d7040cdb 7945
58e24671 7946 linux* | k*bsd*-gnu | kopensolaris*-gnu)
dabbade6 7947 case $cc_basename in
1927a18f
L
7948 # old Intel for x86_64 which still supported -KPIC.
7949 ecc*)
dabbade6
L
7950 lt_prog_compiler_wl='-Wl,'
7951 lt_prog_compiler_pic='-KPIC'
7952 lt_prog_compiler_static='-static'
7953 ;;
1927a18f
L
7954 # icc used to be incompatible with GCC.
7955 # ICC 10 doesn't accept -KPIC any more.
7956 icc* | ifort*)
7957 lt_prog_compiler_wl='-Wl,'
7958 lt_prog_compiler_pic='-fPIC'
7959 lt_prog_compiler_static='-static'
7960 ;;
7961 # Lahey Fortran 8.1.
7962 lf95*)
7963 lt_prog_compiler_wl='-Wl,'
7964 lt_prog_compiler_pic='--shared'
7965 lt_prog_compiler_static='--static'
7966 ;;
dabbade6
L
7967 pgcc* | pgf77* | pgf90* | pgf95*)
7968 # Portland Group compilers (*not* the Pentium gcc compiler,
7969 # which looks to be a dead project)
7970 lt_prog_compiler_wl='-Wl,'
7971 lt_prog_compiler_pic='-fpic'
7972 lt_prog_compiler_static='-Bstatic'
7973 ;;
7974 ccc*)
7975 lt_prog_compiler_wl='-Wl,'
7976 # All Alpha code is PIC.
7977 lt_prog_compiler_static='-non_shared'
7978 ;;
1927a18f
L
7979 xl*)
7980 # IBM XL C 8.0/Fortran 10.1 on PPC
7981 lt_prog_compiler_wl='-Wl,'
7982 lt_prog_compiler_pic='-qpic'
7983 lt_prog_compiler_static='-qstaticlink'
7984 ;;
dabbade6
L
7985 *)
7986 case `$CC -V 2>&1 | sed 5q` in
7987 *Sun\ C*)
7988 # Sun C 5.9
7989 lt_prog_compiler_pic='-KPIC'
7990 lt_prog_compiler_static='-Bstatic'
7991 lt_prog_compiler_wl='-Wl,'
d7040cdb 7992 ;;
dabbade6
L
7993 *Sun\ F*)
7994 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7995 lt_prog_compiler_pic='-KPIC'
7996 lt_prog_compiler_static='-Bstatic'
7997 lt_prog_compiler_wl=''
d7040cdb
SE
7998 ;;
7999 esac
dabbade6
L
8000 ;;
8001 esac
d7040cdb
SE
8002 ;;
8003
dabbade6
L
8004 newsos6)
8005 lt_prog_compiler_pic='-KPIC'
8006 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8007 ;;
8008
dabbade6
L
8009 *nto* | *qnx*)
8010 # QNX uses GNU C++, but need to define -shared option too, otherwise
8011 # it will coredump.
8012 lt_prog_compiler_pic='-fPIC -shared'
d7040cdb
SE
8013 ;;
8014
dabbade6
L
8015 osf3* | osf4* | osf5*)
8016 lt_prog_compiler_wl='-Wl,'
8017 # All OSF/1 code is PIC.
8018 lt_prog_compiler_static='-non_shared'
d7040cdb
SE
8019 ;;
8020
dabbade6
L
8021 rdos*)
8022 lt_prog_compiler_static='-non_shared'
d7040cdb
SE
8023 ;;
8024
8025 solaris*)
dabbade6
L
8026 lt_prog_compiler_pic='-KPIC'
8027 lt_prog_compiler_static='-Bstatic'
8028 case $cc_basename in
8029 f77* | f90* | f95*)
8030 lt_prog_compiler_wl='-Qoption ld ';;
d7040cdb 8031 *)
dabbade6 8032 lt_prog_compiler_wl='-Wl,';;
d7040cdb 8033 esac
d7040cdb
SE
8034 ;;
8035
8036 sunos4*)
dabbade6
L
8037 lt_prog_compiler_wl='-Qoption ld '
8038 lt_prog_compiler_pic='-PIC'
8039 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8040 ;;
8041
dabbade6
L
8042 sysv4 | sysv4.2uw2* | sysv4.3*)
8043 lt_prog_compiler_wl='-Wl,'
8044 lt_prog_compiler_pic='-KPIC'
8045 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8046 ;;
8047
8048 sysv4*MP*)
dabbade6
L
8049 if test -d /usr/nec ;then
8050 lt_prog_compiler_pic='-Kconform_pic'
8051 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8052 fi
8053 ;;
8054
dabbade6
L
8055 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8056 lt_prog_compiler_wl='-Wl,'
8057 lt_prog_compiler_pic='-KPIC'
8058 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8059 ;;
8060
dabbade6
L
8061 unicos*)
8062 lt_prog_compiler_wl='-Wl,'
8063 lt_prog_compiler_can_build_shared=no
d7040cdb
SE
8064 ;;
8065
8066 uts4*)
dabbade6
L
8067 lt_prog_compiler_pic='-pic'
8068 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8069 ;;
8070
8071 *)
dabbade6 8072 lt_prog_compiler_can_build_shared=no
d7040cdb
SE
8073 ;;
8074 esac
d7040cdb
SE
8075 fi
8076
dabbade6
L
8077case $host_os in
8078 # For platforms which do not support PIC, -DPIC is meaningless:
8079 *djgpp*)
8080 lt_prog_compiler_pic=
8081 ;;
8082 *)
8083 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8084 ;;
8085esac
8086echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8087echo "${ECHO_T}$lt_prog_compiler_pic" >&6
d7040cdb
SE
8088
8089
8090
8091
8092
8093
8094#
dabbade6 8095# Check to make sure the PIC flag actually works.
d7040cdb 8096#
dabbade6
L
8097if test -n "$lt_prog_compiler_pic"; then
8098 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8099echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
1927a18f 8100if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
dabbade6
L
8101 echo $ECHO_N "(cached) $ECHO_C" >&6
8102else
1927a18f 8103 lt_cv_prog_compiler_pic_works=no
dabbade6
L
8104 ac_outfile=conftest.$ac_objext
8105 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8106 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8107 # Insert the option either (1) after the last *FLAGS variable, or
8108 # (2) before a word containing "conftest.", or (3) at the end.
8109 # Note that $ac_compile itself does not contain backslashes and begins
8110 # with a dollar sign (not a hyphen), so the echo should work correctly.
8111 # The option is referenced via a variable to avoid confusing sed.
8112 lt_compile=`echo "$ac_compile" | $SED \
8113 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8114 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8115 -e 's:$: $lt_compiler_flag:'`
29670fb9 8116 (eval echo "\"\$as_me:8116: $lt_compile\"" >&5)
dabbade6
L
8117 (eval "$lt_compile" 2>conftest.err)
8118 ac_status=$?
8119 cat conftest.err >&5
29670fb9 8120 echo "$as_me:8120: \$? = $ac_status" >&5
dabbade6
L
8121 if (exit $ac_status) && test -s "$ac_outfile"; then
8122 # The compiler can only warn and ignore the option if not recognized
8123 # So say no if there are warnings other than the usual output.
8124 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8125 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8126 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1927a18f 8127 lt_cv_prog_compiler_pic_works=yes
dabbade6
L
8128 fi
8129 fi
8130 $RM conftest*
d7040cdb 8131
dabbade6 8132fi
1927a18f
L
8133echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8134echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
d7040cdb 8135
1927a18f 8136if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
dabbade6
L
8137 case $lt_prog_compiler_pic in
8138 "" | " "*) ;;
8139 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8140 esac
8141else
8142 lt_prog_compiler_pic=
8143 lt_prog_compiler_can_build_shared=no
8144fi
d7040cdb 8145
dabbade6 8146fi
d7040cdb
SE
8147
8148
8149
8150
8151
8152
dabbade6
L
8153#
8154# Check to make sure the static flag actually works.
8155#
8156wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8157echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8158echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
1927a18f 8159if test "${lt_cv_prog_compiler_static_works+set}" = set; then
dabbade6
L
8160 echo $ECHO_N "(cached) $ECHO_C" >&6
8161else
1927a18f 8162 lt_cv_prog_compiler_static_works=no
dabbade6
L
8163 save_LDFLAGS="$LDFLAGS"
8164 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8165 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8166 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8167 # The linker can only warn and ignore the option if not recognized
8168 # So say no if there are warnings
8169 if test -s conftest.err; then
8170 # Append any errors to the config.log.
8171 cat conftest.err 1>&5
8172 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8173 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8174 if diff conftest.exp conftest.er2 >/dev/null; then
1927a18f 8175 lt_cv_prog_compiler_static_works=yes
dabbade6
L
8176 fi
8177 else
1927a18f 8178 lt_cv_prog_compiler_static_works=yes
dabbade6
L
8179 fi
8180 fi
1927a18f 8181 $RM -r conftest*
dabbade6 8182 LDFLAGS="$save_LDFLAGS"
d7040cdb 8183
dabbade6 8184fi
1927a18f
L
8185echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8186echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
d7040cdb 8187
1927a18f 8188if test x"$lt_cv_prog_compiler_static_works" = xyes; then
dabbade6
L
8189 :
8190else
8191 lt_prog_compiler_static=
8192fi
d7040cdb
SE
8193
8194
8195
8196
8197
8198
8199
dabbade6
L
8200 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8201echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8202if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8203 echo $ECHO_N "(cached) $ECHO_C" >&6
8204else
8205 lt_cv_prog_compiler_c_o=no
8206 $RM -r conftest 2>/dev/null
8207 mkdir conftest
8208 cd conftest
8209 mkdir out
8210 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 8211
dabbade6
L
8212 lt_compiler_flag="-o out/conftest2.$ac_objext"
8213 # Insert the option either (1) after the last *FLAGS variable, or
8214 # (2) before a word containing "conftest.", or (3) at the end.
8215 # Note that $ac_compile itself does not contain backslashes and begins
8216 # with a dollar sign (not a hyphen), so the echo should work correctly.
8217 lt_compile=`echo "$ac_compile" | $SED \
8218 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8219 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8220 -e 's:$: $lt_compiler_flag:'`
29670fb9 8221 (eval echo "\"\$as_me:8221: $lt_compile\"" >&5)
dabbade6
L
8222 (eval "$lt_compile" 2>out/conftest.err)
8223 ac_status=$?
8224 cat out/conftest.err >&5
29670fb9 8225 echo "$as_me:8225: \$? = $ac_status" >&5
dabbade6
L
8226 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8227 then
8228 # The compiler can only warn and ignore the option if not recognized
8229 # So say no if there are warnings
8230 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8231 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8232 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8233 lt_cv_prog_compiler_c_o=yes
8234 fi
8235 fi
8236 chmod u+w . 2>&5
8237 $RM conftest*
8238 # SGI C++ compiler will create directory out/ii_files/ for
8239 # template instantiation
8240 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8241 $RM out/* && rmdir out
8242 cd ..
8243 $RM -r conftest
8244 $RM conftest*
d7040cdb 8245
dabbade6
L
8246fi
8247echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8248echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
d7040cdb
SE
8249
8250
8251
8252
8253
8254
dabbade6
L
8255 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8256echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8257if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8258 echo $ECHO_N "(cached) $ECHO_C" >&6
8259else
8260 lt_cv_prog_compiler_c_o=no
8261 $RM -r conftest 2>/dev/null
8262 mkdir conftest
8263 cd conftest
8264 mkdir out
8265 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 8266
dabbade6
L
8267 lt_compiler_flag="-o out/conftest2.$ac_objext"
8268 # Insert the option either (1) after the last *FLAGS variable, or
8269 # (2) before a word containing "conftest.", or (3) at the end.
8270 # Note that $ac_compile itself does not contain backslashes and begins
8271 # with a dollar sign (not a hyphen), so the echo should work correctly.
8272 lt_compile=`echo "$ac_compile" | $SED \
8273 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8274 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8275 -e 's:$: $lt_compiler_flag:'`
29670fb9 8276 (eval echo "\"\$as_me:8276: $lt_compile\"" >&5)
dabbade6
L
8277 (eval "$lt_compile" 2>out/conftest.err)
8278 ac_status=$?
8279 cat out/conftest.err >&5
29670fb9 8280 echo "$as_me:8280: \$? = $ac_status" >&5
dabbade6
L
8281 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8282 then
8283 # The compiler can only warn and ignore the option if not recognized
8284 # So say no if there are warnings
8285 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8286 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8287 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8288 lt_cv_prog_compiler_c_o=yes
8289 fi
8290 fi
8291 chmod u+w . 2>&5
8292 $RM conftest*
8293 # SGI C++ compiler will create directory out/ii_files/ for
8294 # template instantiation
8295 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8296 $RM out/* && rmdir out
8297 cd ..
8298 $RM -r conftest
8299 $RM conftest*
d7040cdb 8300
dabbade6
L
8301fi
8302echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8303echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
d7040cdb
SE
8304
8305
8306
8307
dabbade6
L
8308hard_links="nottested"
8309if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8310 # do not overwrite the value of need_locks provided by the user
8311 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8312echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8313 hard_links=yes
8314 $RM conftest*
8315 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8316 touch conftest.a
8317 ln conftest.a conftest.b 2>&5 || hard_links=no
8318 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8319 echo "$as_me:$LINENO: result: $hard_links" >&5
8320echo "${ECHO_T}$hard_links" >&6
8321 if test "$hard_links" = no; then
8322 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8323echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8324 need_locks=warn
8325 fi
8326else
8327 need_locks=no
8328fi
d7040cdb
SE
8329
8330
8331
8332
8333
8334
dabbade6
L
8335 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8336echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
d7040cdb 8337
dabbade6
L
8338 runpath_var=
8339 allow_undefined_flag=
8340 always_export_symbols=no
8341 archive_cmds=
8342 archive_expsym_cmds=
8343 compiler_needs_object=no
8344 enable_shared_with_static_runtimes=no
8345 export_dynamic_flag_spec=
8346 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8347 hardcode_automatic=no
8348 hardcode_direct=no
8349 hardcode_direct_absolute=no
8350 hardcode_libdir_flag_spec=
8351 hardcode_libdir_flag_spec_ld=
8352 hardcode_libdir_separator=
8353 hardcode_minus_L=no
8354 hardcode_shlibpath_var=unsupported
8355 inherit_rpath=no
8356 link_all_deplibs=unknown
8357 module_cmds=
8358 module_expsym_cmds=
8359 old_archive_from_new_cmds=
8360 old_archive_from_expsyms_cmds=
8361 thread_safe_flag_spec=
8362 whole_archive_flag_spec=
8363 # include_expsyms should be a list of space-separated symbols to be *always*
8364 # included in the symbol list
8365 include_expsyms=
8366 # exclude_expsyms can be an extended regexp of symbols to exclude
8367 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8368 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8369 # as well as any symbol that contains `d'.
1927a18f 8370 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
dabbade6
L
8371 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8372 # platforms (ab)use it in PIC code, but their linkers get confused if
8373 # the symbol is explicitly referenced. Since portable code cannot
8374 # rely on this symbol name, it's probably fine to never include it in
8375 # preloaded symbol tables.
1927a18f 8376 # Exclude shared library initialization/finalization symbols.
dabbade6 8377 extract_expsyms_cmds=
d7040cdb 8378
dabbade6 8379 case $host_os in
1927a18f 8380 cygwin* | mingw* | pw32* | cegcc*)
dabbade6
L
8381 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8382 # When not using gcc, we currently assume that we are using
8383 # Microsoft Visual C++.
8384 if test "$GCC" != yes; then
8385 with_gnu_ld=no
8386 fi
8387 ;;
8388 interix*)
8389 # we just hope/assume this is gcc and not c89 (= MSVC++)
8390 with_gnu_ld=yes
8391 ;;
8392 openbsd*)
8393 with_gnu_ld=no
8394 ;;
8395 esac
d7040cdb 8396
dabbade6
L
8397 ld_shlibs=yes
8398 if test "$with_gnu_ld" = yes; then
8399 # If archive_cmds runs LD, not CC, wlarc should be empty
8400 wlarc='${wl}'
d7040cdb 8401
dabbade6
L
8402 # Set some defaults for GNU ld with shared library support. These
8403 # are reset later if shared libraries are not supported. Putting them
8404 # here allows them to be overridden if necessary.
8405 runpath_var=LD_RUN_PATH
8406 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8407 export_dynamic_flag_spec='${wl}--export-dynamic'
8408 # ancient GNU ld didn't support --whole-archive et. al.
8409 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8410 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8411 else
8412 whole_archive_flag_spec=
8413 fi
8414 supports_anon_versioning=no
8415 case `$LD -v 2>&1` in
8416 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8417 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8418 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8419 *\ 2.11.*) ;; # other 2.11 versions
8420 *) supports_anon_versioning=yes ;;
8421 esac
d7040cdb 8422
dabbade6
L
8423 # See if GNU ld supports shared libraries.
8424 case $host_os in
50e7d84b 8425 aix[3-9]*)
dabbade6
L
8426 # On AIX/PPC, the GNU linker is very broken
8427 if test "$host_cpu" != ia64; then
8428 ld_shlibs=no
8429 cat <<_LT_EOF 1>&2
d7040cdb 8430
dabbade6
L
8431*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8432*** to be unable to reliably create shared libraries on AIX.
8433*** Therefore, libtool is disabling shared libraries support. If you
8434*** really care for shared libraries, you may want to modify your PATH
8435*** so that a non-GNU linker is found, and then restart.
d7040cdb 8436
dabbade6
L
8437_LT_EOF
8438 fi
8439 ;;
d7040cdb 8440
dabbade6 8441 amigaos*)
1927a18f
L
8442 case $host_cpu in
8443 powerpc)
8444 # see comment about AmigaOS4 .so support
8445 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8446 archive_expsym_cmds=''
8447 ;;
8448 m68k)
8449 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)'
8450 hardcode_libdir_flag_spec='-L$libdir'
8451 hardcode_minus_L=yes
8452 ;;
8453 esac
dabbade6 8454 ;;
d7040cdb 8455
dabbade6
L
8456 beos*)
8457 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8458 allow_undefined_flag=unsupported
8459 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8460 # support --undefined. This deserves some investigation. FIXME
8461 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8462 else
8463 ld_shlibs=no
8464 fi
8465 ;;
d7040cdb 8466
1927a18f 8467 cygwin* | mingw* | pw32* | cegcc*)
dabbade6
L
8468 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8469 # as there is no search path for DLLs.
8470 hardcode_libdir_flag_spec='-L$libdir'
8471 allow_undefined_flag=unsupported
8472 always_export_symbols=no
8473 enable_shared_with_static_runtimes=yes
8474 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
d7040cdb 8475
dabbade6
L
8476 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8477 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8478 # If the export-symbols file already is a .def file (1st line
8479 # is EXPORTS), use it as is; otherwise, prepend...
8480 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8481 cp $export_symbols $output_objdir/$soname.def;
8482 else
8483 echo EXPORTS > $output_objdir/$soname.def;
8484 cat $export_symbols >> $output_objdir/$soname.def;
8485 fi~
8486 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8487 else
8488 ld_shlibs=no
8489 fi
8490 ;;
d7040cdb 8491
dabbade6
L
8492 interix[3-9]*)
8493 hardcode_direct=no
8494 hardcode_shlibpath_var=no
8495 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8496 export_dynamic_flag_spec='${wl}-E'
8497 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8498 # Instead, shared libraries are loaded at an image base (0x10000000 by
8499 # default) and relocated if they conflict, which is a slow very memory
8500 # consuming and fragmenting process. To avoid this, we pick a random,
8501 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8502 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8503 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8504 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'
8505 ;;
d7040cdb 8506
58e24671 8507 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
dabbade6
L
8508 tmp_diet=no
8509 if test "$host_os" = linux-dietlibc; then
8510 case $cc_basename in
8511 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8512 esac
8513 fi
8514 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8515 && test "$tmp_diet" = no
8516 then
8517 tmp_addflag=
1927a18f 8518 tmp_sharedflag='-shared'
dabbade6
L
8519 case $cc_basename,$host_cpu in
8520 pgcc*) # Portland Group C compiler
8521 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'
8522 tmp_addflag=' $pic_flag'
8523 ;;
8524 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8525 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'
8526 tmp_addflag=' $pic_flag -Mnomain' ;;
8527 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8528 tmp_addflag=' -i_dynamic' ;;
8529 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8530 tmp_addflag=' -i_dynamic -nofor_main' ;;
8531 ifc* | ifort*) # Intel Fortran compiler
8532 tmp_addflag=' -nofor_main' ;;
1927a18f
L
8533 lf95*) # Lahey Fortran 8.1
8534 whole_archive_flag_spec=
8535 tmp_sharedflag='--shared' ;;
8536 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8537 tmp_sharedflag='-qmkshrobj'
8538 tmp_addflag= ;;
dabbade6
L
8539 esac
8540 case `$CC -V 2>&1 | sed 5q` in
8541 *Sun\ C*) # Sun C 5.9
8542 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'
8543 compiler_needs_object=yes
8544 tmp_sharedflag='-G' ;;
8545 *Sun\ F*) # Sun Fortran 8.3
8546 tmp_sharedflag='-G' ;;
dabbade6
L
8547 esac
8548 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d7040cdb 8549
dabbade6
L
8550 if test "x$supports_anon_versioning" = xyes; then
8551 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8552 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8553 echo "local: *; };" >> $output_objdir/$libname.ver~
8554 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8555 fi
1927a18f
L
8556
8557 case $cc_basename in
8558 xlf*)
8559 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8560 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8561 hardcode_libdir_flag_spec=
8562 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8563 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8564 if test "x$supports_anon_versioning" = xyes; then
8565 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8566 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8567 echo "local: *; };" >> $output_objdir/$libname.ver~
8568 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8569 fi
8570 ;;
8571 esac
dabbade6
L
8572 else
8573 ld_shlibs=no
8574 fi
8575 ;;
d7040cdb 8576
dabbade6
L
8577 netbsd*)
8578 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8579 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8580 wlarc=
8581 else
8582 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8583 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8584 fi
8585 ;;
d7040cdb 8586
dabbade6
L
8587 solaris*)
8588 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8589 ld_shlibs=no
8590 cat <<_LT_EOF 1>&2
d7040cdb 8591
dabbade6
L
8592*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8593*** create shared libraries on Solaris systems. Therefore, libtool
8594*** is disabling shared libraries support. We urge you to upgrade GNU
8595*** binutils to release 2.9.1 or newer. Another option is to modify
8596*** your PATH or compiler configuration so that the native linker is
8597*** used, and then restart.
d7040cdb 8598
dabbade6
L
8599_LT_EOF
8600 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8601 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8602 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8603 else
8604 ld_shlibs=no
8605 fi
8606 ;;
d7040cdb 8607
dabbade6
L
8608 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8609 case `$LD -v 2>&1` in
8610 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8611 ld_shlibs=no
8612 cat <<_LT_EOF 1>&2
d7040cdb 8613
dabbade6
L
8614*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8615*** reliably create shared libraries on SCO systems. Therefore, libtool
8616*** is disabling shared libraries support. We urge you to upgrade GNU
8617*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8618*** your PATH or compiler configuration so that the native linker is
8619*** used, and then restart.
d7040cdb 8620
dabbade6
L
8621_LT_EOF
8622 ;;
8623 *)
8624 # For security reasons, it is highly recommended that you always
8625 # use absolute paths for naming shared libraries, and exclude the
8626 # DT_RUNPATH tag from executables and libraries. But doing so
8627 # requires that you compile everything twice, which is a pain.
8628 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8629 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8630 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8631 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8632 else
8633 ld_shlibs=no
8634 fi
8635 ;;
8636 esac
8637 ;;
d7040cdb 8638
dabbade6
L
8639 sunos4*)
8640 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8641 wlarc=
8642 hardcode_direct=yes
8643 hardcode_shlibpath_var=no
8644 ;;
d7040cdb 8645
dabbade6
L
8646 *)
8647 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8648 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8649 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8650 else
8651 ld_shlibs=no
8652 fi
8653 ;;
8654 esac
d7040cdb 8655
dabbade6
L
8656 if test "$ld_shlibs" = no; then
8657 runpath_var=
8658 hardcode_libdir_flag_spec=
8659 export_dynamic_flag_spec=
8660 whole_archive_flag_spec=
8661 fi
8662 else
8663 # PORTME fill in a description of your system's linker (not GNU ld)
8664 case $host_os in
8665 aix3*)
8666 allow_undefined_flag=unsupported
8667 always_export_symbols=yes
8668 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'
8669 # Note: this linker hardcodes the directories in LIBPATH if there
8670 # are no directories specified by -L.
8671 hardcode_minus_L=yes
8672 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8673 # Neither direct hardcoding nor static linking is supported with a
8674 # broken collect2.
8675 hardcode_direct=unsupported
8676 fi
8677 ;;
d7040cdb 8678
50e7d84b 8679 aix[4-9]*)
dabbade6
L
8680 if test "$host_cpu" = ia64; then
8681 # On IA64, the linker does run time linking by default, so we don't
8682 # have to do anything special.
8683 aix_use_runtimelinking=no
8684 exp_sym_flag='-Bexport'
8685 no_entry_flag=""
8686 else
8687 # If we're using GNU nm, then we don't want the "-C" option.
8688 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8689 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8690 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'
8691 else
8692 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'
8693 fi
8694 aix_use_runtimelinking=no
d7040cdb 8695
dabbade6
L
8696 # Test if we are trying to use run time linking or normal
8697 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8698 # need to do runtime linking.
50e7d84b 8699 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
dabbade6
L
8700 for ld_flag in $LDFLAGS; do
8701 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8702 aix_use_runtimelinking=yes
8703 break
8704 fi
8705 done
8706 ;;
8707 esac
d7040cdb 8708
dabbade6
L
8709 exp_sym_flag='-bexport'
8710 no_entry_flag='-bnoentry'
8711 fi
d7040cdb 8712
dabbade6
L
8713 # When large executables or shared objects are built, AIX ld can
8714 # have problems creating the table of contents. If linking a library
8715 # or program results in "error TOC overflow" add -mminimal-toc to
8716 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8717 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
d7040cdb 8718
dabbade6
L
8719 archive_cmds=''
8720 hardcode_direct=yes
8721 hardcode_direct_absolute=yes
8722 hardcode_libdir_separator=':'
8723 link_all_deplibs=yes
8724 file_list_spec='${wl}-f,'
d7040cdb 8725
dabbade6
L
8726 if test "$GCC" = yes; then
8727 case $host_os in aix4.[012]|aix4.[012].*)
8728 # We only want to do this on AIX 4.2 and lower, the check
8729 # below for broken collect2 doesn't work under 4.3+
8730 collect2name=`${CC} -print-prog-name=collect2`
8731 if test -f "$collect2name" &&
8732 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8733 then
8734 # We have reworked collect2
8735 :
8736 else
8737 # We have old collect2
8738 hardcode_direct=unsupported
8739 # It fails to find uninstalled libraries when the uninstalled
8740 # path is not listed in the libpath. Setting hardcode_minus_L
8741 # to unsupported forces relinking
8742 hardcode_minus_L=yes
8743 hardcode_libdir_flag_spec='-L$libdir'
8744 hardcode_libdir_separator=
8745 fi
8746 ;;
8747 esac
8748 shared_flag='-shared'
8749 if test "$aix_use_runtimelinking" = yes; then
8750 shared_flag="$shared_flag "'${wl}-G'
8751 fi
8752 else
8753 # not using gcc
8754 if test "$host_cpu" = ia64; then
8755 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8756 # chokes on -Wl,-G. The following line is correct:
8757 shared_flag='-G'
8758 else
8759 if test "$aix_use_runtimelinking" = yes; then
8760 shared_flag='${wl}-G'
8761 else
8762 shared_flag='${wl}-bM:SRE'
8763 fi
8764 fi
8765 fi
d7040cdb 8766
1927a18f 8767 export_dynamic_flag_spec='${wl}-bexpall'
dabbade6
L
8768 # It seems that -bexpall does not export symbols beginning with
8769 # underscore (_), so it is better to generate a list of symbols to export.
8770 always_export_symbols=yes
8771 if test "$aix_use_runtimelinking" = yes; then
8772 # Warning - without using the other runtime loading flags (-brtl),
8773 # -berok will link without error, but may produce a broken library.
8774 allow_undefined_flag='-berok'
8775 # Determine the default libpath from the value encoded in an
8776 # empty executable.
8777 cat >conftest.$ac_ext <<_ACEOF
8778/* confdefs.h. */
8779_ACEOF
8780cat confdefs.h >>conftest.$ac_ext
8781cat >>conftest.$ac_ext <<_ACEOF
8782/* end confdefs.h. */
d7040cdb 8783
dabbade6
L
8784int
8785main ()
8786{
d7040cdb 8787
dabbade6
L
8788 ;
8789 return 0;
8790}
8791_ACEOF
8792rm -f conftest.$ac_objext conftest$ac_exeext
8793if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8794 (eval $ac_link) 2>conftest.er1
8795 ac_status=$?
8796 grep -v '^ *+' conftest.er1 >conftest.err
8797 rm -f conftest.er1
8798 cat conftest.err >&5
8799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8800 (exit $ac_status); } &&
8801 { ac_try='test -z "$ac_c_werror_flag"
8802 || test ! -s conftest.err'
8803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8804 (eval $ac_try) 2>&5
8805 ac_status=$?
8806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807 (exit $ac_status); }; } &&
8808 { ac_try='test -s conftest$ac_exeext'
8809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8810 (eval $ac_try) 2>&5
8811 ac_status=$?
8812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8813 (exit $ac_status); }; }; then
d7040cdb 8814
dabbade6
L
8815lt_aix_libpath_sed='
8816 /Import File Strings/,/^$/ {
8817 /^0/ {
8818 s/^0 *\(.*\)$/\1/
8819 p
8820 }
8821 }'
8822aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8823# Check for a 64-bit object if we didn't find anything.
8824if test -z "$aix_libpath"; then
8825 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8826fi
8827else
8828 echo "$as_me: failed program was:" >&5
8829sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 8830
dabbade6
L
8831fi
8832rm -f conftest.err conftest.$ac_objext \
8833 conftest$ac_exeext conftest.$ac_ext
8834if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 8835
dabbade6
L
8836 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8837 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"
8838 else
8839 if test "$host_cpu" = ia64; then
8840 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8841 allow_undefined_flag="-z nodefs"
8842 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"
8843 else
8844 # Determine the default libpath from the value encoded in an
8845 # empty executable.
8846 cat >conftest.$ac_ext <<_ACEOF
8847/* confdefs.h. */
8848_ACEOF
8849cat confdefs.h >>conftest.$ac_ext
8850cat >>conftest.$ac_ext <<_ACEOF
8851/* end confdefs.h. */
d7040cdb 8852
dabbade6
L
8853int
8854main ()
8855{
d7040cdb 8856
dabbade6
L
8857 ;
8858 return 0;
8859}
8860_ACEOF
8861rm -f conftest.$ac_objext conftest$ac_exeext
8862if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8863 (eval $ac_link) 2>conftest.er1
8864 ac_status=$?
8865 grep -v '^ *+' conftest.er1 >conftest.err
8866 rm -f conftest.er1
8867 cat conftest.err >&5
8868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869 (exit $ac_status); } &&
8870 { ac_try='test -z "$ac_c_werror_flag"
8871 || test ! -s conftest.err'
8872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8873 (eval $ac_try) 2>&5
8874 ac_status=$?
8875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8876 (exit $ac_status); }; } &&
8877 { ac_try='test -s conftest$ac_exeext'
8878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8879 (eval $ac_try) 2>&5
8880 ac_status=$?
8881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8882 (exit $ac_status); }; }; then
d7040cdb 8883
dabbade6
L
8884lt_aix_libpath_sed='
8885 /Import File Strings/,/^$/ {
8886 /^0/ {
8887 s/^0 *\(.*\)$/\1/
8888 p
8889 }
8890 }'
8891aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8892# Check for a 64-bit object if we didn't find anything.
8893if test -z "$aix_libpath"; then
8894 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8895fi
8896else
8897 echo "$as_me: failed program was:" >&5
8898sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 8899
dabbade6
L
8900fi
8901rm -f conftest.err conftest.$ac_objext \
8902 conftest$ac_exeext conftest.$ac_ext
8903if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 8904
dabbade6
L
8905 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8906 # Warning - without using the other run time loading flags,
8907 # -berok will link without error, but may produce a broken library.
8908 no_undefined_flag=' ${wl}-bernotok'
8909 allow_undefined_flag=' ${wl}-berok'
8910 # Exported symbols can be pulled into shared objects from archives
8911 whole_archive_flag_spec='$convenience'
8912 archive_cmds_need_lc=yes
8913 # This is similar to how AIX traditionally builds its shared libraries.
8914 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'
8915 fi
8916 fi
8917 ;;
d7040cdb 8918
dabbade6 8919 amigaos*)
1927a18f
L
8920 case $host_cpu in
8921 powerpc)
8922 # see comment about AmigaOS4 .so support
8923 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8924 archive_expsym_cmds=''
8925 ;;
8926 m68k)
8927 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)'
8928 hardcode_libdir_flag_spec='-L$libdir'
8929 hardcode_minus_L=yes
8930 ;;
8931 esac
dabbade6 8932 ;;
d7040cdb 8933
dabbade6
L
8934 bsdi[45]*)
8935 export_dynamic_flag_spec=-rdynamic
8936 ;;
d7040cdb 8937
1927a18f 8938 cygwin* | mingw* | pw32* | cegcc*)
dabbade6
L
8939 # When not using gcc, we currently assume that we are using
8940 # Microsoft Visual C++.
8941 # hardcode_libdir_flag_spec is actually meaningless, as there is
8942 # no search path for DLLs.
8943 hardcode_libdir_flag_spec=' '
8944 allow_undefined_flag=unsupported
8945 # Tell ltmain to make .lib files, not .a files.
8946 libext=lib
8947 # Tell ltmain to make .dll files, not .so files.
8948 shrext_cmds=".dll"
8949 # FIXME: Setting linknames here is a bad hack.
8950 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8951 # The linker will automatically build a .lib file if we build a DLL.
8952 old_archive_from_new_cmds='true'
8953 # FIXME: Should let the user specify the lib program.
8954 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8955 fix_srcfile_path='`cygpath -w "$srcfile"`'
8956 enable_shared_with_static_runtimes=yes
8957 ;;
d7040cdb 8958
dabbade6 8959 darwin* | rhapsody*)
d7040cdb 8960
1927a18f
L
8961
8962 archive_cmds_need_lc=no
8963 hardcode_direct=no
8964 hardcode_automatic=yes
8965 hardcode_shlibpath_var=unsupported
8966 whole_archive_flag_spec=''
8967 link_all_deplibs=yes
8968 allow_undefined_flag="$_lt_dar_allow_undefined"
8969 case $cc_basename in
8970 ifort*) _lt_dar_can_shared=yes ;;
8971 *) _lt_dar_can_shared=$GCC ;;
8972 esac
8973 if test "$_lt_dar_can_shared" = "yes"; then
8974 output_verbose_link_cmd=echo
8975 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8976 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8977 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 ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8978 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8979
8980 else
8981 ld_shlibs=no
8982 fi
8983
dabbade6 8984 ;;
d7040cdb 8985
dabbade6
L
8986 dgux*)
8987 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8988 hardcode_libdir_flag_spec='-L$libdir'
8989 hardcode_shlibpath_var=no
8990 ;;
d7040cdb 8991
dabbade6
L
8992 freebsd1*)
8993 ld_shlibs=no
8994 ;;
d7040cdb 8995
dabbade6
L
8996 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8997 # support. Future versions do this automatically, but an explicit c++rt0.o
8998 # does not break anything, and helps significantly (at the cost of a little
8999 # extra space).
9000 freebsd2.2*)
9001 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9002 hardcode_libdir_flag_spec='-R$libdir'
9003 hardcode_direct=yes
9004 hardcode_shlibpath_var=no
9005 ;;
d7040cdb 9006
dabbade6
L
9007 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9008 freebsd2*)
9009 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9010 hardcode_direct=yes
9011 hardcode_minus_L=yes
9012 hardcode_shlibpath_var=no
9013 ;;
d7040cdb 9014
dabbade6
L
9015 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9016 freebsd* | dragonfly*)
9017 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9018 hardcode_libdir_flag_spec='-R$libdir'
9019 hardcode_direct=yes
9020 hardcode_shlibpath_var=no
9021 ;;
d7040cdb 9022
dabbade6
L
9023 hpux9*)
9024 if test "$GCC" = yes; then
9025 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'
9026 else
9027 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'
9028 fi
9029 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9030 hardcode_libdir_separator=:
9031 hardcode_direct=yes
d7040cdb 9032
dabbade6
L
9033 # hardcode_minus_L: Not really in the search PATH,
9034 # but as the default location of the library.
9035 hardcode_minus_L=yes
9036 export_dynamic_flag_spec='${wl}-E'
9037 ;;
d7040cdb 9038
dabbade6
L
9039 hpux10*)
9040 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9041 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9042 else
9043 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9044 fi
9045 if test "$with_gnu_ld" = no; then
9046 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9047 hardcode_libdir_flag_spec_ld='+b $libdir'
9048 hardcode_libdir_separator=:
9049 hardcode_direct=yes
9050 hardcode_direct_absolute=yes
9051 export_dynamic_flag_spec='${wl}-E'
9052 # hardcode_minus_L: Not really in the search PATH,
9053 # but as the default location of the library.
9054 hardcode_minus_L=yes
9055 fi
9056 ;;
d7040cdb 9057
dabbade6
L
9058 hpux11*)
9059 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9060 case $host_cpu in
9061 hppa*64*)
9062 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9063 ;;
9064 ia64*)
1927a18f 9065 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
dabbade6
L
9066 ;;
9067 *)
9068 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9069 ;;
9070 esac
9071 else
9072 case $host_cpu in
9073 hppa*64*)
9074 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9075 ;;
9076 ia64*)
9077 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9078 ;;
9079 *)
9080 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9081 ;;
9082 esac
9083 fi
9084 if test "$with_gnu_ld" = no; then
9085 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9086 hardcode_libdir_separator=:
d7040cdb 9087
dabbade6
L
9088 case $host_cpu in
9089 hppa*64*|ia64*)
9090 hardcode_direct=no
9091 hardcode_shlibpath_var=no
9092 ;;
9093 *)
9094 hardcode_direct=yes
9095 hardcode_direct_absolute=yes
9096 export_dynamic_flag_spec='${wl}-E'
d7040cdb 9097
dabbade6
L
9098 # hardcode_minus_L: Not really in the search PATH,
9099 # but as the default location of the library.
9100 hardcode_minus_L=yes
9101 ;;
9102 esac
9103 fi
9104 ;;
d7040cdb 9105
dabbade6
L
9106 irix5* | irix6* | nonstopux*)
9107 if test "$GCC" = yes; then
9108 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'
9109 # Try to use the -exported_symbol ld option, if it does not
9110 # work, assume that -exports_file does not work either and
9111 # implicitly export all symbols.
9112 save_LDFLAGS="$LDFLAGS"
9113 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9114 cat >conftest.$ac_ext <<_ACEOF
9115int foo(void) {}
9116_ACEOF
9117rm -f conftest.$ac_objext conftest$ac_exeext
9118if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9119 (eval $ac_link) 2>conftest.er1
9120 ac_status=$?
9121 grep -v '^ *+' conftest.er1 >conftest.err
9122 rm -f conftest.er1
9123 cat conftest.err >&5
9124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9125 (exit $ac_status); } &&
9126 { ac_try='test -z "$ac_c_werror_flag"
9127 || test ! -s conftest.err'
9128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9129 (eval $ac_try) 2>&5
9130 ac_status=$?
9131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132 (exit $ac_status); }; } &&
9133 { ac_try='test -s conftest$ac_exeext'
9134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9135 (eval $ac_try) 2>&5
9136 ac_status=$?
9137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9138 (exit $ac_status); }; }; then
9139 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
d7040cdb 9140
d7040cdb 9141else
dabbade6
L
9142 echo "$as_me: failed program was:" >&5
9143sed 's/^/| /' conftest.$ac_ext >&5
9144
d7040cdb 9145fi
dabbade6
L
9146rm -f conftest.err conftest.$ac_objext \
9147 conftest$ac_exeext conftest.$ac_ext
9148 LDFLAGS="$save_LDFLAGS"
9149 else
9150 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'
9151 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'
9152 fi
9153 archive_cmds_need_lc='no'
9154 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9155 hardcode_libdir_separator=:
9156 inherit_rpath=yes
9157 link_all_deplibs=yes
9158 ;;
d7040cdb 9159
dabbade6
L
9160 netbsd*)
9161 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9162 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9163 else
9164 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9165 fi
9166 hardcode_libdir_flag_spec='-R$libdir'
9167 hardcode_direct=yes
9168 hardcode_shlibpath_var=no
9169 ;;
d7040cdb 9170
dabbade6
L
9171 newsos6)
9172 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9173 hardcode_direct=yes
9174 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9175 hardcode_libdir_separator=:
9176 hardcode_shlibpath_var=no
9177 ;;
d7040cdb 9178
dabbade6
L
9179 *nto* | *qnx*)
9180 ;;
d7040cdb 9181
dabbade6 9182 openbsd*)
1927a18f
L
9183 if test -f /usr/libexec/ld.so; then
9184 hardcode_direct=yes
9185 hardcode_shlibpath_var=no
9186 hardcode_direct_absolute=yes
9187 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
dabbade6 9188 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
1927a18f 9189 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
dabbade6 9190 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
1927a18f
L
9191 export_dynamic_flag_spec='${wl}-E'
9192 else
9193 case $host_os in
9194 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9195 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9196 hardcode_libdir_flag_spec='-R$libdir'
9197 ;;
9198 *)
9199 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9200 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9201 ;;
9202 esac
9203 fi
9204 else
9205 ld_shlibs=no
d7040cdb
SE
9206 fi
9207 ;;
d7040cdb 9208
dabbade6
L
9209 os2*)
9210 hardcode_libdir_flag_spec='-L$libdir'
9211 hardcode_minus_L=yes
9212 allow_undefined_flag=unsupported
9213 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'
9214 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9215 ;;
d7040cdb 9216
dabbade6
L
9217 osf3*)
9218 if test "$GCC" = yes; then
9219 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9220 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'
9221 else
9222 allow_undefined_flag=' -expect_unresolved \*'
9223 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'
9224 fi
9225 archive_cmds_need_lc='no'
9226 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9227 hardcode_libdir_separator=:
9228 ;;
d7040cdb 9229
dabbade6
L
9230 osf4* | osf5*) # as osf3* with the addition of -msym flag
9231 if test "$GCC" = yes; then
9232 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9233 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'
9234 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9235 else
9236 allow_undefined_flag=' -expect_unresolved \*'
9237 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'
9238 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~
9239 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
d7040cdb 9240
dabbade6
L
9241 # Both c and cxx compiler support -rpath directly
9242 hardcode_libdir_flag_spec='-rpath $libdir'
9243 fi
9244 archive_cmds_need_lc='no'
9245 hardcode_libdir_separator=:
9246 ;;
d7040cdb 9247
dabbade6
L
9248 solaris*)
9249 no_undefined_flag=' -z defs'
9250 if test "$GCC" = yes; then
9251 wlarc='${wl}'
9252 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9253 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9254 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9255 else
9256 case `$CC -V 2>&1` in
9257 *"Compilers 5.0"*)
9258 wlarc=''
9259 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9260 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9261 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9262 ;;
9263 *)
9264 wlarc='${wl}'
9265 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9266 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9267 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9268 ;;
9269 esac
9270 fi
9271 hardcode_libdir_flag_spec='-R$libdir'
9272 hardcode_shlibpath_var=no
9273 case $host_os in
9274 solaris2.[0-5] | solaris2.[0-5].*) ;;
9275 *)
9276 # The compiler driver will combine and reorder linker options,
9277 # but understands `-z linker_flag'. GCC discards it without `$wl',
9278 # but is careful enough not to reorder.
9279 # Supported since Solaris 2.6 (maybe 2.5.1?)
9280 if test "$GCC" = yes; then
9281 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9282 else
9283 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9284 fi
9285 ;;
9286 esac
9287 link_all_deplibs=yes
d7040cdb 9288 ;;
dabbade6
L
9289
9290 sunos4*)
9291 if test "x$host_vendor" = xsequent; then
9292 # Use $CC to link under sequent, because it throws in some extra .o
9293 # files that make .init and .fini sections work.
9294 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
d7040cdb 9295 else
dabbade6 9296 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
d7040cdb 9297 fi
dabbade6
L
9298 hardcode_libdir_flag_spec='-L$libdir'
9299 hardcode_direct=yes
9300 hardcode_minus_L=yes
9301 hardcode_shlibpath_var=no
d7040cdb 9302 ;;
dabbade6
L
9303
9304 sysv4)
9305 case $host_vendor in
9306 sni)
9307 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9308 hardcode_direct=yes # is this really true???
9309 ;;
9310 siemens)
9311 ## LD is ld it makes a PLAMLIB
9312 ## CC just makes a GrossModule.
9313 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9314 reload_cmds='$CC -r -o $output$reload_objs'
9315 hardcode_direct=no
9316 ;;
9317 motorola)
9318 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9319 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9320 ;;
9321 esac
9322 runpath_var='LD_RUN_PATH'
9323 hardcode_shlibpath_var=no
d7040cdb 9324 ;;
d7040cdb 9325
dabbade6
L
9326 sysv4.3*)
9327 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9328 hardcode_shlibpath_var=no
9329 export_dynamic_flag_spec='-Bexport'
9330 ;;
d7040cdb 9331
dabbade6
L
9332 sysv4*MP*)
9333 if test -d /usr/nec; then
9334 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9335 hardcode_shlibpath_var=no
9336 runpath_var=LD_RUN_PATH
9337 hardcode_runpath_var=yes
9338 ld_shlibs=yes
9339 fi
9340 ;;
d7040cdb 9341
dabbade6
L
9342 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9343 no_undefined_flag='${wl}-z,text'
9344 archive_cmds_need_lc=no
9345 hardcode_shlibpath_var=no
9346 runpath_var='LD_RUN_PATH'
d7040cdb 9347
dabbade6
L
9348 if test "$GCC" = yes; then
9349 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9350 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9351 else
9352 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9353 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9354 fi
9355 ;;
d7040cdb 9356
dabbade6
L
9357 sysv5* | sco3.2v5* | sco5v6*)
9358 # Note: We can NOT use -z defs as we might desire, because we do not
9359 # link with -lc, and that would cause any symbols used from libc to
9360 # always be unresolved, which means just about no library would
9361 # ever link correctly. If we're not using GNU ld we use -z text
9362 # though, which does catch some bad symbols but isn't as heavy-handed
9363 # as -z defs.
9364 no_undefined_flag='${wl}-z,text'
9365 allow_undefined_flag='${wl}-z,nodefs'
9366 archive_cmds_need_lc=no
9367 hardcode_shlibpath_var=no
9368 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9369 hardcode_libdir_separator=':'
9370 link_all_deplibs=yes
9371 export_dynamic_flag_spec='${wl}-Bexport'
9372 runpath_var='LD_RUN_PATH'
d7040cdb 9373
dabbade6
L
9374 if test "$GCC" = yes; then
9375 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9376 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9377 else
9378 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9379 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9380 fi
d7040cdb 9381 ;;
d7040cdb 9382
dabbade6
L
9383 uts4*)
9384 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9385 hardcode_libdir_flag_spec='-L$libdir'
9386 hardcode_shlibpath_var=no
9387 ;;
d7040cdb 9388
dabbade6
L
9389 *)
9390 ld_shlibs=no
9391 ;;
9392 esac
9393
9394 if test x$host_vendor = xsni; then
9395 case $host in
9396 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9397 export_dynamic_flag_spec='${wl}-Blargedynsym'
9398 ;;
9399 esac
d7040cdb 9400 fi
dabbade6 9401 fi
d7040cdb 9402
dabbade6
L
9403echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9404echo "${ECHO_T}$ld_shlibs" >&6
9405test "$ld_shlibs" = no && can_build_shared=no
d7040cdb 9406
dabbade6 9407with_gnu_ld=$with_gnu_ld
d7040cdb 9408
d7040cdb 9409
d7040cdb 9410
d7040cdb 9411
d7040cdb 9412
d7040cdb 9413
d7040cdb 9414
d7040cdb 9415
d7040cdb 9416
d7040cdb 9417
d7040cdb 9418
d7040cdb 9419
d7040cdb 9420
d7040cdb 9421
d7040cdb 9422
dabbade6
L
9423#
9424# Do we need to explicitly link libc?
9425#
9426case "x$archive_cmds_need_lc" in
9427x|xyes)
9428 # Assume -lc should be added
9429 archive_cmds_need_lc=yes
d7040cdb 9430
dabbade6
L
9431 if test "$enable_shared" = yes && test "$GCC" = yes; then
9432 case $archive_cmds in
9433 *'~'*)
9434 # FIXME: we may have to deal with multi-command sequences.
9435 ;;
9436 '$CC '*)
9437 # Test whether the compiler implicitly links with -lc since on some
9438 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9439 # to ld, don't add -lc before -lgcc.
9440 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9441echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
39144654
RW
9442if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
9443 echo $ECHO_N "(cached) $ECHO_C" >&6
9444else
9445 $RM conftest*
9446 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 9447
39144654 9448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
dabbade6
L
9449 (eval $ac_compile) 2>&5
9450 ac_status=$?
9451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452 (exit $ac_status); } 2>conftest.err; then
39144654
RW
9453 soname=conftest
9454 lib=conftest
9455 libobjs=conftest.$ac_objext
9456 deplibs=
9457 wl=$lt_prog_compiler_wl
9458 pic_flag=$lt_prog_compiler_pic
9459 compiler_flags=-v
9460 linker_flags=-v
9461 verstring=
9462 output_objdir=.
9463 libname=conftest
9464 lt_save_allow_undefined_flag=$allow_undefined_flag
9465 allow_undefined_flag=
9466 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
dabbade6
L
9467 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9468 ac_status=$?
9469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470 (exit $ac_status); }
39144654
RW
9471 then
9472 lt_cv_archive_cmds_need_lc=no
9473 else
9474 lt_cv_archive_cmds_need_lc=yes
9475 fi
9476 allow_undefined_flag=$lt_save_allow_undefined_flag
9477 else
9478 cat conftest.err 1>&5
9479 fi
9480 $RM conftest*
9481
9482fi
9483echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
9484echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
9485 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
dabbade6
L
9486 ;;
9487 esac
d7040cdb 9488 fi
d7040cdb 9489 ;;
dabbade6 9490esac
d7040cdb 9491
d7040cdb 9492
d7040cdb 9493
d7040cdb 9494
d7040cdb 9495
d7040cdb 9496
d7040cdb 9497
d7040cdb
SE
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
9576
9577
9578
9579
9580
9581
9582
9583
9584
d7040cdb 9585
d7040cdb 9586
d7040cdb
SE
9587
9588
9589
9590
9591
9592
d7040cdb 9593
d7040cdb 9594
d7040cdb 9595
d7040cdb 9596
d7040cdb 9597
d7040cdb 9598
d7040cdb 9599
d7040cdb 9600
d7040cdb 9601
d7040cdb 9602
d7040cdb 9603
d7040cdb 9604
d7040cdb 9605
d7040cdb 9606
d7040cdb 9607
d7040cdb 9608
d7040cdb 9609
d7040cdb 9610
d7040cdb 9611
d7040cdb 9612
d7040cdb 9613
d7040cdb 9614
d7040cdb 9615
d7040cdb 9616
dabbade6
L
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9649echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
1927a18f
L
9650
9651if test "$GCC" = yes; then
dabbade6
L
9652 case $host_os in
9653 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9654 *) lt_awk_arg="/^libraries:/" ;;
9655 esac
9656 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9657 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9658 # if the path contains ";" then we assume it to be the separator
9659 # otherwise default to the standard path separator (i.e. ":") - it is
9660 # assumed that no part of a normal pathname contains ";" but that should
9661 # okay in the real world where ";" in dirpaths is itself problematic.
9662 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9663 else
9664 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9665 fi
9666 # Ok, now we have the path, separated by spaces, we can step through it
9667 # and add multilib dir if necessary.
9668 lt_tmp_lt_search_path_spec=
9669 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9670 for lt_sys_path in $lt_search_path_spec; do
9671 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9672 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9673 else
9674 test -d "$lt_sys_path" && \
9675 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9676 fi
9677 done
9678 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9679BEGIN {RS=" "; FS="/|\n";} {
9680 lt_foo="";
9681 lt_count=0;
9682 for (lt_i = NF; lt_i > 0; lt_i--) {
9683 if ($lt_i != "" && $lt_i != ".") {
9684 if ($lt_i == "..") {
9685 lt_count++;
9686 } else {
9687 if (lt_count == 0) {
9688 lt_foo="/" $lt_i lt_foo;
9689 } else {
9690 lt_count--;
9691 }
9692 }
9693 }
9694 }
9695 if (lt_foo != "") { lt_freq[lt_foo]++; }
9696 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9697}'`
9698 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
d7040cdb 9699else
dabbade6
L
9700 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9701fi
9702library_names_spec=
9703libname_spec='lib$name'
9704soname_spec=
9705shrext_cmds=".so"
9706postinstall_cmds=
9707postuninstall_cmds=
9708finish_cmds=
9709finish_eval=
9710shlibpath_var=
9711shlibpath_overrides_runpath=unknown
9712version_type=none
9713dynamic_linker="$host_os ld.so"
9714sys_lib_dlsearch_path_spec="/lib /usr/lib"
9715need_lib_prefix=unknown
9716hardcode_into_libs=no
9717
9718# when you set need_version to no, make sure it does not cause -set_version
9719# flags to be left without arguments
9720need_version=unknown
9721
9722case $host_os in
9723aix3*)
9724 version_type=linux
9725 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9726 shlibpath_var=LIBPATH
9727
9728 # AIX 3 has no versioning support, so we append a major version to the name.
9729 soname_spec='${libname}${release}${shared_ext}$major'
9730 ;;
9731
50e7d84b 9732aix[4-9]*)
dabbade6
L
9733 version_type=linux
9734 need_lib_prefix=no
9735 need_version=no
9736 hardcode_into_libs=yes
9737 if test "$host_cpu" = ia64; then
9738 # AIX 5 supports IA64
9739 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9740 shlibpath_var=LD_LIBRARY_PATH
9741 else
9742 # With GCC up to 2.95.x, collect2 would create an import file
9743 # for dependence libraries. The import file would start with
9744 # the line `#! .'. This would cause the generated library to
9745 # depend on `.', always an invalid library. This was fixed in
9746 # development snapshots of GCC prior to 3.0.
9747 case $host_os in
9748 aix4 | aix4.[01] | aix4.[01].*)
9749 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9750 echo ' yes '
9751 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9752 :
9753 else
9754 can_build_shared=no
9755 fi
9756 ;;
9757 esac
9758 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9759 # soname into executable. Probably we can add versioning support to
9760 # collect2, so additional links can be useful in future.
9761 if test "$aix_use_runtimelinking" = yes; then
9762 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9763 # instead of lib<name>.a to let people know that these are not
9764 # typical AIX shared libraries.
9765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9766 else
9767 # We preserve .a as extension for shared libraries through AIX4.2
9768 # and later when we are not doing run time linking.
9769 library_names_spec='${libname}${release}.a $libname.a'
9770 soname_spec='${libname}${release}${shared_ext}$major'
9771 fi
9772 shlibpath_var=LIBPATH
9773 fi
9774 ;;
9775
9776amigaos*)
1927a18f
L
9777 case $host_cpu in
9778 powerpc)
9779 # Since July 2007 AmigaOS4 officially supports .so libraries.
9780 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9782 ;;
9783 m68k)
dabbade6
L
9784 library_names_spec='$libname.ixlibrary $libname.a'
9785 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9786 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'
1927a18f
L
9787 ;;
9788 esac
dabbade6
L
9789 ;;
9790
9791beos*)
9792 library_names_spec='${libname}${shared_ext}'
9793 dynamic_linker="$host_os ld.so"
9794 shlibpath_var=LIBRARY_PATH
9795 ;;
9796
9797bsdi[45]*)
9798 version_type=linux
9799 need_version=no
9800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9801 soname_spec='${libname}${release}${shared_ext}$major'
9802 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9803 shlibpath_var=LD_LIBRARY_PATH
9804 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9805 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9806 # the default ld.so.conf also contains /usr/contrib/lib and
9807 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9808 # libtool to hard-code these into programs
9809 ;;
9810
1927a18f 9811cygwin* | mingw* | pw32* | cegcc*)
dabbade6
L
9812 version_type=windows
9813 shrext_cmds=".dll"
9814 need_version=no
9815 need_lib_prefix=no
9816
1927a18f
L
9817 case $GCC,$host_os in
9818 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
dabbade6
L
9819 library_names_spec='$libname.dll.a'
9820 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9821 postinstall_cmds='base_file=`basename \${file}`~
9822 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9823 dldir=$destdir/`dirname \$dlpath`~
9824 test -d \$dldir || mkdir -p \$dldir~
9825 $install_prog $dir/$dlname \$dldir/$dlname~
9826 chmod a+x \$dldir/$dlname~
9827 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9828 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9829 fi'
9830 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9831 dlpath=$dir/\$dldll~
9832 $RM \$dlpath'
9833 shlibpath_overrides_runpath=yes
9834
9835 case $host_os in
9836 cygwin*)
9837 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9838 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9839 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9840 ;;
1927a18f 9841 mingw* | cegcc*)
dabbade6
L
9842 # MinGW DLLs use traditional 'lib' prefix
9843 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9844 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9845 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9846 # It is most probably a Windows format PATH printed by
9847 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9848 # path with ; separators, and with drive letters. We can handle the
9849 # drive letters (cygwin fileutils understands them), so leave them,
9850 # especially as we might pass files found there to a mingw objdump,
9851 # which wouldn't understand a cygwinified path. Ahh.
9852 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9853 else
9854 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9855 fi
9856 ;;
9857 pw32*)
9858 # pw32 DLLs use 'pw' prefix rather than 'lib'
9859 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9860 ;;
9861 esac
9862 ;;
9863
9864 *)
9865 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9866 ;;
9867 esac
9868 dynamic_linker='Win32 ld.exe'
9869 # FIXME: first we should search . and the directory the executable is in
9870 shlibpath_var=PATH
9871 ;;
9872
9873darwin* | rhapsody*)
9874 dynamic_linker="$host_os dyld"
9875 version_type=darwin
9876 need_lib_prefix=no
9877 need_version=no
9878 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9879 soname_spec='${libname}${release}${major}$shared_ext'
9880 shlibpath_overrides_runpath=yes
9881 shlibpath_var=DYLD_LIBRARY_PATH
9882 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9883
9884 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9885 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9886 ;;
9887
9888dgux*)
9889 version_type=linux
9890 need_lib_prefix=no
9891 need_version=no
9892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9893 soname_spec='${libname}${release}${shared_ext}$major'
9894 shlibpath_var=LD_LIBRARY_PATH
9895 ;;
9896
9897freebsd1*)
9898 dynamic_linker=no
9899 ;;
9900
9901freebsd* | dragonfly*)
9902 # DragonFly does not have aout. When/if they implement a new
9903 # versioning mechanism, adjust this.
9904 if test -x /usr/bin/objformat; then
9905 objformat=`/usr/bin/objformat`
9906 else
9907 case $host_os in
9908 freebsd[123]*) objformat=aout ;;
9909 *) objformat=elf ;;
9910 esac
9911 fi
9912 version_type=freebsd-$objformat
9913 case $version_type in
9914 freebsd-elf*)
9915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9916 need_version=no
9917 need_lib_prefix=no
9918 ;;
9919 freebsd-*)
9920 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9921 need_version=yes
9922 ;;
9923 esac
9924 shlibpath_var=LD_LIBRARY_PATH
9925 case $host_os in
9926 freebsd2*)
9927 shlibpath_overrides_runpath=yes
9928 ;;
9929 freebsd3.[01]* | freebsdelf3.[01]*)
9930 shlibpath_overrides_runpath=yes
9931 hardcode_into_libs=yes
9932 ;;
9933 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9934 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9935 shlibpath_overrides_runpath=no
9936 hardcode_into_libs=yes
9937 ;;
9938 *) # from 4.6 on, and DragonFly
9939 shlibpath_overrides_runpath=yes
9940 hardcode_into_libs=yes
9941 ;;
9942 esac
9943 ;;
9944
9945gnu*)
9946 version_type=linux
9947 need_lib_prefix=no
9948 need_version=no
9949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9950 soname_spec='${libname}${release}${shared_ext}$major'
9951 shlibpath_var=LD_LIBRARY_PATH
9952 hardcode_into_libs=yes
9953 ;;
9954
9955hpux9* | hpux10* | hpux11*)
9956 # Give a soname corresponding to the major version so that dld.sl refuses to
9957 # link against other versions.
9958 version_type=sunos
9959 need_lib_prefix=no
9960 need_version=no
9961 case $host_cpu in
9962 ia64*)
9963 shrext_cmds='.so'
9964 hardcode_into_libs=yes
9965 dynamic_linker="$host_os dld.so"
9966 shlibpath_var=LD_LIBRARY_PATH
9967 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9969 soname_spec='${libname}${release}${shared_ext}$major'
9970 if test "X$HPUX_IA64_MODE" = X32; then
9971 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9972 else
9973 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9974 fi
9975 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9976 ;;
9977 hppa*64*)
9978 shrext_cmds='.sl'
9979 hardcode_into_libs=yes
9980 dynamic_linker="$host_os dld.sl"
9981 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9982 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9984 soname_spec='${libname}${release}${shared_ext}$major'
9985 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9986 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9987 ;;
9988 *)
9989 shrext_cmds='.sl'
9990 dynamic_linker="$host_os dld.sl"
9991 shlibpath_var=SHLIB_PATH
9992 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9994 soname_spec='${libname}${release}${shared_ext}$major'
9995 ;;
9996 esac
9997 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9998 postinstall_cmds='chmod 555 $lib'
9999 ;;
10000
10001interix[3-9]*)
10002 version_type=linux
10003 need_lib_prefix=no
10004 need_version=no
10005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10006 soname_spec='${libname}${release}${shared_ext}$major'
10007 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10008 shlibpath_var=LD_LIBRARY_PATH
10009 shlibpath_overrides_runpath=no
10010 hardcode_into_libs=yes
10011 ;;
10012
10013irix5* | irix6* | nonstopux*)
10014 case $host_os in
10015 nonstopux*) version_type=nonstopux ;;
10016 *)
10017 if test "$lt_cv_prog_gnu_ld" = yes; then
10018 version_type=linux
10019 else
10020 version_type=irix
10021 fi ;;
10022 esac
10023 need_lib_prefix=no
10024 need_version=no
10025 soname_spec='${libname}${release}${shared_ext}$major'
10026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10027 case $host_os in
10028 irix5* | nonstopux*)
10029 libsuff= shlibsuff=
10030 ;;
10031 *)
10032 case $LD in # libtool.m4 will add one of these switches to LD
10033 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10034 libsuff= shlibsuff= libmagic=32-bit;;
10035 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10036 libsuff=32 shlibsuff=N32 libmagic=N32;;
10037 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10038 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10039 *) libsuff= shlibsuff= libmagic=never-match;;
10040 esac
10041 ;;
10042 esac
10043 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10044 shlibpath_overrides_runpath=no
10045 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10046 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10047 hardcode_into_libs=yes
10048 ;;
10049
10050# No shared lib support for Linux oldld, aout, or coff.
10051linux*oldld* | linux*aout* | linux*coff*)
10052 dynamic_linker=no
10053 ;;
10054
10055# This must be Linux ELF.
58e24671 10056linux* | k*bsd*-gnu | kopensolaris*-gnu)
dabbade6
L
10057 version_type=linux
10058 need_lib_prefix=no
10059 need_version=no
10060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10061 soname_spec='${libname}${release}${shared_ext}$major'
10062 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10063 shlibpath_var=LD_LIBRARY_PATH
10064 shlibpath_overrides_runpath=no
39144654 10065
dabbade6 10066 # Some binutils ld are patched to set DT_RUNPATH
39144654
RW
10067 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
10068 echo $ECHO_N "(cached) $ECHO_C" >&6
10069else
10070 lt_cv_shlibpath_overrides_runpath=no
10071 save_LDFLAGS=$LDFLAGS
10072 save_libdir=$libdir
10073 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10074 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10075 cat >conftest.$ac_ext <<_ACEOF
d7040cdb
SE
10076/* confdefs.h. */
10077_ACEOF
10078cat confdefs.h >>conftest.$ac_ext
10079cat >>conftest.$ac_ext <<_ACEOF
10080/* end confdefs.h. */
10081
d7040cdb
SE
10082int
10083main ()
10084{
dabbade6 10085
d7040cdb
SE
10086 ;
10087 return 0;
10088}
10089_ACEOF
10090rm -f conftest.$ac_objext conftest$ac_exeext
10091if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10092 (eval $ac_link) 2>conftest.er1
10093 ac_status=$?
10094 grep -v '^ *+' conftest.er1 >conftest.err
10095 rm -f conftest.er1
10096 cat conftest.err >&5
10097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098 (exit $ac_status); } &&
10099 { ac_try='test -z "$ac_c_werror_flag"
10100 || test ! -s conftest.err'
10101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10102 (eval $ac_try) 2>&5
10103 ac_status=$?
10104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105 (exit $ac_status); }; } &&
10106 { ac_try='test -s conftest$ac_exeext'
10107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10108 (eval $ac_try) 2>&5
10109 ac_status=$?
10110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111 (exit $ac_status); }; }; then
1927a18f 10112 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
39144654 10113 lt_cv_shlibpath_overrides_runpath=yes
dabbade6
L
10114fi
10115
d7040cdb
SE
10116else
10117 echo "$as_me: failed program was:" >&5
10118sed 's/^/| /' conftest.$ac_ext >&5
10119
d7040cdb
SE
10120fi
10121rm -f conftest.err conftest.$ac_objext \
10122 conftest$ac_exeext conftest.$ac_ext
39144654
RW
10123 LDFLAGS=$save_LDFLAGS
10124 libdir=$save_libdir
10125
10126fi
10127
10128 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
dabbade6
L
10129
10130 # This implies no fast_install, which is unacceptable.
10131 # Some rework will be needed to allow for fast_install
10132 # before this can be enabled.
10133 hardcode_into_libs=yes
10134
10135 # Append ld.so.conf contents to the search path
10136 if test -f /etc/ld.so.conf; then
1927a18f 10137 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/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
dabbade6
L
10138 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10139 fi
10140
10141 # We used to test for /lib/ld.so.1 and disable shared libraries on
10142 # powerpc, because MkLinux only supported shared libraries with the
10143 # GNU dynamic linker. Since this was broken with cross compilers,
10144 # most powerpc-linux boxes support dynamic linking these days and
10145 # people can always --disable-shared, the test was removed, and we
10146 # assume the GNU/Linux dynamic linker is in use.
10147 dynamic_linker='GNU/Linux ld.so'
10148 ;;
10149
10150netbsd*)
10151 version_type=sunos
10152 need_lib_prefix=no
10153 need_version=no
10154 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10156 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10157 dynamic_linker='NetBSD (a.out) ld.so'
10158 else
10159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10160 soname_spec='${libname}${release}${shared_ext}$major'
10161 dynamic_linker='NetBSD ld.elf_so'
10162 fi
10163 shlibpath_var=LD_LIBRARY_PATH
10164 shlibpath_overrides_runpath=yes
10165 hardcode_into_libs=yes
10166 ;;
10167
10168newsos6)
10169 version_type=linux
10170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10171 shlibpath_var=LD_LIBRARY_PATH
10172 shlibpath_overrides_runpath=yes
10173 ;;
10174
10175*nto* | *qnx*)
10176 version_type=qnx
10177 need_lib_prefix=no
10178 need_version=no
10179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10180 soname_spec='${libname}${release}${shared_ext}$major'
10181 shlibpath_var=LD_LIBRARY_PATH
10182 shlibpath_overrides_runpath=no
10183 hardcode_into_libs=yes
10184 dynamic_linker='ldqnx.so'
10185 ;;
10186
10187openbsd*)
10188 version_type=sunos
10189 sys_lib_dlsearch_path_spec="/usr/lib"
10190 need_lib_prefix=no
10191 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10192 case $host_os in
10193 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10194 *) need_version=no ;;
10195 esac
10196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10197 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10198 shlibpath_var=LD_LIBRARY_PATH
10199 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10200 case $host_os in
10201 openbsd2.[89] | openbsd2.[89].*)
10202 shlibpath_overrides_runpath=no
10203 ;;
10204 *)
10205 shlibpath_overrides_runpath=yes
10206 ;;
10207 esac
10208 else
10209 shlibpath_overrides_runpath=yes
10210 fi
10211 ;;
10212
10213os2*)
10214 libname_spec='$name'
10215 shrext_cmds=".dll"
10216 need_lib_prefix=no
10217 library_names_spec='$libname${shared_ext} $libname.a'
10218 dynamic_linker='OS/2 ld.exe'
10219 shlibpath_var=LIBPATH
10220 ;;
10221
10222osf3* | osf4* | osf5*)
10223 version_type=osf
10224 need_lib_prefix=no
10225 need_version=no
10226 soname_spec='${libname}${release}${shared_ext}$major'
10227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10228 shlibpath_var=LD_LIBRARY_PATH
10229 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10230 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10231 ;;
10232
10233rdos*)
10234 dynamic_linker=no
10235 ;;
10236
10237solaris*)
10238 version_type=linux
10239 need_lib_prefix=no
10240 need_version=no
10241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10242 soname_spec='${libname}${release}${shared_ext}$major'
10243 shlibpath_var=LD_LIBRARY_PATH
10244 shlibpath_overrides_runpath=yes
10245 hardcode_into_libs=yes
10246 # ldd complains unless libraries are executable
10247 postinstall_cmds='chmod +x $lib'
10248 ;;
10249
10250sunos4*)
10251 version_type=sunos
10252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10253 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10254 shlibpath_var=LD_LIBRARY_PATH
10255 shlibpath_overrides_runpath=yes
10256 if test "$with_gnu_ld" = yes; then
10257 need_lib_prefix=no
10258 fi
10259 need_version=yes
10260 ;;
10261
10262sysv4 | sysv4.3*)
10263 version_type=linux
10264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10265 soname_spec='${libname}${release}${shared_ext}$major'
10266 shlibpath_var=LD_LIBRARY_PATH
10267 case $host_vendor in
10268 sni)
10269 shlibpath_overrides_runpath=no
10270 need_lib_prefix=no
10271 runpath_var=LD_RUN_PATH
10272 ;;
10273 siemens)
10274 need_lib_prefix=no
10275 ;;
10276 motorola)
10277 need_lib_prefix=no
10278 need_version=no
10279 shlibpath_overrides_runpath=no
10280 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10281 ;;
10282 esac
10283 ;;
10284
10285sysv4*MP*)
10286 if test -d /usr/nec ;then
10287 version_type=linux
10288 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10289 soname_spec='$libname${shared_ext}.$major'
10290 shlibpath_var=LD_LIBRARY_PATH
10291 fi
10292 ;;
10293
10294sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10295 version_type=freebsd-elf
10296 need_lib_prefix=no
10297 need_version=no
10298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10299 soname_spec='${libname}${release}${shared_ext}$major'
10300 shlibpath_var=LD_LIBRARY_PATH
10301 shlibpath_overrides_runpath=yes
10302 hardcode_into_libs=yes
10303 if test "$with_gnu_ld" = yes; then
10304 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10305 else
10306 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10307 case $host_os in
10308 sco3.2v5*)
10309 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10310 ;;
10311 esac
10312 fi
10313 sys_lib_dlsearch_path_spec='/usr/lib'
10314 ;;
10315
10316tpf*)
10317 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10318 version_type=linux
10319 need_lib_prefix=no
10320 need_version=no
1927a18f 10321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
dabbade6
L
10322 shlibpath_var=LD_LIBRARY_PATH
10323 shlibpath_overrides_runpath=no
10324 hardcode_into_libs=yes
10325 ;;
10326
10327uts4*)
10328 version_type=linux
10329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10330 soname_spec='${libname}${release}${shared_ext}$major'
10331 shlibpath_var=LD_LIBRARY_PATH
10332 ;;
d7040cdb 10333
dabbade6
L
10334*)
10335 dynamic_linker=no
10336 ;;
10337esac
10338echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10339echo "${ECHO_T}$dynamic_linker" >&6
10340test "$dynamic_linker" = no && can_build_shared=no
d7040cdb 10341
dabbade6
L
10342variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10343if test "$GCC" = yes; then
10344 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
d7040cdb 10345fi
d7040cdb 10346
1927a18f
L
10347if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10348 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10349fi
10350if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10351 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10352fi
10353
d7040cdb 10354
d7040cdb
SE
10355
10356
d7040cdb
SE
10357
10358
d7040cdb
SE
10359
10360
d7040cdb
SE
10361
10362
d7040cdb
SE
10363
10364
d7040cdb 10365
d7040cdb 10366
d7040cdb 10367
d7040cdb 10368
d7040cdb 10369
d7040cdb 10370
d7040cdb 10371
d7040cdb 10372
d7040cdb 10373
d7040cdb 10374
d7040cdb 10375
d7040cdb 10376
d7040cdb 10377
d7040cdb 10378
d7040cdb
SE
10379
10380
d7040cdb 10381
d7040cdb 10382
d7040cdb 10383
d7040cdb 10384
d7040cdb 10385
d7040cdb 10386
d7040cdb 10387
d7040cdb 10388
d7040cdb 10389
d7040cdb
SE
10390
10391
d7040cdb 10392
d7040cdb 10393
d7040cdb 10394
d7040cdb
SE
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
d7040cdb
SE
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
d7040cdb 10424
d7040cdb 10425
dabbade6
L
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10441echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10442hardcode_action=
10443if test -n "$hardcode_libdir_flag_spec" ||
10444 test -n "$runpath_var" ||
10445 test "X$hardcode_automatic" = "Xyes" ; then
10446
10447 # We can hardcode non-existent directories.
10448 if test "$hardcode_direct" != no &&
10449 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10450 # have to relink, otherwise we might link with an installed library
10451 # when we should be linking with a yet-to-be-installed one
10452 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10453 test "$hardcode_minus_L" != no; then
10454 # Linking always hardcodes the temporary library directory.
10455 hardcode_action=relink
10456 else
10457 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10458 hardcode_action=immediate
10459 fi
10460else
10461 # We cannot hardcode anything, or else we can only hardcode existing
10462 # directories.
10463 hardcode_action=unsupported
10464fi
10465echo "$as_me:$LINENO: result: $hardcode_action" >&5
10466echo "${ECHO_T}$hardcode_action" >&6
10467
10468if test "$hardcode_action" = relink ||
10469 test "$inherit_rpath" = yes; then
10470 # Fast installation is not supported
10471 enable_fast_install=no
10472elif test "$shlibpath_overrides_runpath" = yes ||
10473 test "$enable_shared" = no; then
10474 # Fast installation is not necessary
10475 enable_fast_install=needless
10476fi
10477
10478
10479
10480
10481
10482
10483 if test "x$enable_dlopen" != xyes; then
10484 enable_dlopen=unknown
10485 enable_dlopen_self=unknown
10486 enable_dlopen_self_static=unknown
10487else
10488 lt_cv_dlopen=no
10489 lt_cv_dlopen_libs=
10490
d7040cdb 10491 case $host_os in
dabbade6
L
10492 beos*)
10493 lt_cv_dlopen="load_add_on"
10494 lt_cv_dlopen_libs=
10495 lt_cv_dlopen_self=yes
d7040cdb
SE
10496 ;;
10497
1927a18f 10498 mingw* | pw32* | cegcc*)
dabbade6
L
10499 lt_cv_dlopen="LoadLibrary"
10500 lt_cv_dlopen_libs=
d7040cdb 10501 ;;
d7040cdb 10502
dabbade6
L
10503 cygwin*)
10504 lt_cv_dlopen="dlopen"
10505 lt_cv_dlopen_libs=
10506 ;;
d7040cdb 10507
dabbade6
L
10508 darwin*)
10509 # if libdl is installed we need to link against it
10510 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10511echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10512if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10513 echo $ECHO_N "(cached) $ECHO_C" >&6
10514else
10515 ac_check_lib_save_LIBS=$LIBS
10516LIBS="-ldl $LIBS"
10517cat >conftest.$ac_ext <<_ACEOF
10518/* confdefs.h. */
10519_ACEOF
10520cat confdefs.h >>conftest.$ac_ext
10521cat >>conftest.$ac_ext <<_ACEOF
10522/* end confdefs.h. */
d7040cdb 10523
dabbade6
L
10524/* Override any gcc2 internal prototype to avoid an error. */
10525#ifdef __cplusplus
10526extern "C"
10527#endif
10528/* We use char because int might match the return type of a gcc2
10529 builtin and then its argument prototype would still apply. */
10530char dlopen ();
10531int
10532main ()
10533{
10534dlopen ();
10535 ;
10536 return 0;
10537}
10538_ACEOF
10539rm -f conftest.$ac_objext conftest$ac_exeext
10540if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10541 (eval $ac_link) 2>conftest.er1
10542 ac_status=$?
10543 grep -v '^ *+' conftest.er1 >conftest.err
10544 rm -f conftest.er1
10545 cat conftest.err >&5
10546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547 (exit $ac_status); } &&
10548 { ac_try='test -z "$ac_c_werror_flag"
10549 || test ! -s conftest.err'
10550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10551 (eval $ac_try) 2>&5
10552 ac_status=$?
10553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10554 (exit $ac_status); }; } &&
10555 { ac_try='test -s conftest$ac_exeext'
10556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10557 (eval $ac_try) 2>&5
10558 ac_status=$?
10559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10560 (exit $ac_status); }; }; then
10561 ac_cv_lib_dl_dlopen=yes
10562else
10563 echo "$as_me: failed program was:" >&5
10564sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 10565
dabbade6 10566ac_cv_lib_dl_dlopen=no
d7040cdb 10567fi
dabbade6
L
10568rm -f conftest.err conftest.$ac_objext \
10569 conftest$ac_exeext conftest.$ac_ext
10570LIBS=$ac_check_lib_save_LIBS
10571fi
10572echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10573echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10574if test $ac_cv_lib_dl_dlopen = yes; then
10575 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10576else
d7040cdb 10577
dabbade6
L
10578 lt_cv_dlopen="dyld"
10579 lt_cv_dlopen_libs=
10580 lt_cv_dlopen_self=yes
d7040cdb 10581
dabbade6 10582fi
d7040cdb 10583
dabbade6 10584 ;;
d7040cdb 10585
dabbade6
L
10586 *)
10587 echo "$as_me:$LINENO: checking for shl_load" >&5
10588echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10589if test "${ac_cv_func_shl_load+set}" = set; then
10590 echo $ECHO_N "(cached) $ECHO_C" >&6
10591else
10592 cat >conftest.$ac_ext <<_ACEOF
10593/* confdefs.h. */
10594_ACEOF
10595cat confdefs.h >>conftest.$ac_ext
10596cat >>conftest.$ac_ext <<_ACEOF
10597/* end confdefs.h. */
10598/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10599 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10600#define shl_load innocuous_shl_load
d7040cdb 10601
dabbade6
L
10602/* System header to define __stub macros and hopefully few prototypes,
10603 which can conflict with char shl_load (); below.
10604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10605 <limits.h> exists even on freestanding compilers. */
d7040cdb 10606
dabbade6
L
10607#ifdef __STDC__
10608# include <limits.h>
10609#else
10610# include <assert.h>
10611#endif
d7040cdb 10612
dabbade6 10613#undef shl_load
d7040cdb 10614
dabbade6
L
10615/* Override any gcc2 internal prototype to avoid an error. */
10616#ifdef __cplusplus
10617extern "C"
10618{
10619#endif
10620/* We use char because int might match the return type of a gcc2
10621 builtin and then its argument prototype would still apply. */
10622char shl_load ();
10623/* The GNU C library defines this for functions which it implements
10624 to always fail with ENOSYS. Some functions are actually named
10625 something starting with __ and the normal name is an alias. */
10626#if defined (__stub_shl_load) || defined (__stub___shl_load)
10627choke me
10628#else
10629char (*f) () = shl_load;
10630#endif
10631#ifdef __cplusplus
10632}
10633#endif
d7040cdb 10634
dabbade6
L
10635int
10636main ()
10637{
10638return f != shl_load;
10639 ;
10640 return 0;
10641}
10642_ACEOF
10643rm -f conftest.$ac_objext conftest$ac_exeext
10644if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10645 (eval $ac_link) 2>conftest.er1
10646 ac_status=$?
10647 grep -v '^ *+' conftest.er1 >conftest.err
10648 rm -f conftest.er1
10649 cat conftest.err >&5
10650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651 (exit $ac_status); } &&
10652 { ac_try='test -z "$ac_c_werror_flag"
10653 || test ! -s conftest.err'
10654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10655 (eval $ac_try) 2>&5
10656 ac_status=$?
10657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10658 (exit $ac_status); }; } &&
10659 { ac_try='test -s conftest$ac_exeext'
10660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10661 (eval $ac_try) 2>&5
10662 ac_status=$?
10663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10664 (exit $ac_status); }; }; then
10665 ac_cv_func_shl_load=yes
10666else
10667 echo "$as_me: failed program was:" >&5
10668sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 10669
dabbade6
L
10670ac_cv_func_shl_load=no
10671fi
10672rm -f conftest.err conftest.$ac_objext \
10673 conftest$ac_exeext conftest.$ac_ext
10674fi
10675echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10676echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10677if test $ac_cv_func_shl_load = yes; then
10678 lt_cv_dlopen="shl_load"
10679else
10680 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10681echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10682if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10683 echo $ECHO_N "(cached) $ECHO_C" >&6
10684else
10685 ac_check_lib_save_LIBS=$LIBS
10686LIBS="-ldld $LIBS"
10687cat >conftest.$ac_ext <<_ACEOF
10688/* confdefs.h. */
10689_ACEOF
10690cat confdefs.h >>conftest.$ac_ext
10691cat >>conftest.$ac_ext <<_ACEOF
10692/* end confdefs.h. */
d7040cdb 10693
dabbade6
L
10694/* Override any gcc2 internal prototype to avoid an error. */
10695#ifdef __cplusplus
10696extern "C"
10697#endif
10698/* We use char because int might match the return type of a gcc2
10699 builtin and then its argument prototype would still apply. */
10700char shl_load ();
10701int
10702main ()
10703{
10704shl_load ();
10705 ;
10706 return 0;
10707}
10708_ACEOF
10709rm -f conftest.$ac_objext conftest$ac_exeext
10710if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10711 (eval $ac_link) 2>conftest.er1
10712 ac_status=$?
10713 grep -v '^ *+' conftest.er1 >conftest.err
10714 rm -f conftest.er1
10715 cat conftest.err >&5
10716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717 (exit $ac_status); } &&
10718 { ac_try='test -z "$ac_c_werror_flag"
10719 || test ! -s conftest.err'
10720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10721 (eval $ac_try) 2>&5
10722 ac_status=$?
10723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724 (exit $ac_status); }; } &&
10725 { ac_try='test -s conftest$ac_exeext'
10726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10727 (eval $ac_try) 2>&5
10728 ac_status=$?
10729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10730 (exit $ac_status); }; }; then
10731 ac_cv_lib_dld_shl_load=yes
10732else
10733 echo "$as_me: failed program was:" >&5
10734sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 10735
dabbade6
L
10736ac_cv_lib_dld_shl_load=no
10737fi
10738rm -f conftest.err conftest.$ac_objext \
10739 conftest$ac_exeext conftest.$ac_ext
10740LIBS=$ac_check_lib_save_LIBS
10741fi
10742echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10743echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10744if test $ac_cv_lib_dld_shl_load = yes; then
1927a18f 10745 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
dabbade6
L
10746else
10747 echo "$as_me:$LINENO: checking for dlopen" >&5
10748echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10749if test "${ac_cv_func_dlopen+set}" = set; then
10750 echo $ECHO_N "(cached) $ECHO_C" >&6
10751else
10752 cat >conftest.$ac_ext <<_ACEOF
10753/* confdefs.h. */
10754_ACEOF
10755cat confdefs.h >>conftest.$ac_ext
10756cat >>conftest.$ac_ext <<_ACEOF
10757/* end confdefs.h. */
10758/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10760#define dlopen innocuous_dlopen
d7040cdb 10761
dabbade6
L
10762/* System header to define __stub macros and hopefully few prototypes,
10763 which can conflict with char dlopen (); below.
10764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10765 <limits.h> exists even on freestanding compilers. */
d7040cdb 10766
dabbade6
L
10767#ifdef __STDC__
10768# include <limits.h>
10769#else
10770# include <assert.h>
10771#endif
d7040cdb 10772
dabbade6 10773#undef dlopen
d7040cdb 10774
dabbade6
L
10775/* Override any gcc2 internal prototype to avoid an error. */
10776#ifdef __cplusplus
10777extern "C"
10778{
10779#endif
10780/* We use char because int might match the return type of a gcc2
10781 builtin and then its argument prototype would still apply. */
10782char dlopen ();
10783/* The GNU C library defines this for functions which it implements
10784 to always fail with ENOSYS. Some functions are actually named
10785 something starting with __ and the normal name is an alias. */
10786#if defined (__stub_dlopen) || defined (__stub___dlopen)
10787choke me
10788#else
10789char (*f) () = dlopen;
10790#endif
10791#ifdef __cplusplus
10792}
10793#endif
d7040cdb 10794
dabbade6
L
10795int
10796main ()
10797{
10798return f != dlopen;
10799 ;
10800 return 0;
10801}
10802_ACEOF
10803rm -f conftest.$ac_objext conftest$ac_exeext
10804if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10805 (eval $ac_link) 2>conftest.er1
10806 ac_status=$?
10807 grep -v '^ *+' conftest.er1 >conftest.err
10808 rm -f conftest.er1
10809 cat conftest.err >&5
10810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10811 (exit $ac_status); } &&
10812 { ac_try='test -z "$ac_c_werror_flag"
10813 || test ! -s conftest.err'
10814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10815 (eval $ac_try) 2>&5
10816 ac_status=$?
10817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10818 (exit $ac_status); }; } &&
10819 { ac_try='test -s conftest$ac_exeext'
10820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10821 (eval $ac_try) 2>&5
10822 ac_status=$?
10823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824 (exit $ac_status); }; }; then
10825 ac_cv_func_dlopen=yes
10826else
10827 echo "$as_me: failed program was:" >&5
10828sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 10829
dabbade6
L
10830ac_cv_func_dlopen=no
10831fi
10832rm -f conftest.err conftest.$ac_objext \
10833 conftest$ac_exeext conftest.$ac_ext
10834fi
10835echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10836echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10837if test $ac_cv_func_dlopen = yes; then
10838 lt_cv_dlopen="dlopen"
10839else
10840 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10841echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10842if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10843 echo $ECHO_N "(cached) $ECHO_C" >&6
10844else
10845 ac_check_lib_save_LIBS=$LIBS
10846LIBS="-ldl $LIBS"
10847cat >conftest.$ac_ext <<_ACEOF
10848/* confdefs.h. */
10849_ACEOF
10850cat confdefs.h >>conftest.$ac_ext
10851cat >>conftest.$ac_ext <<_ACEOF
10852/* end confdefs.h. */
d7040cdb 10853
dabbade6
L
10854/* Override any gcc2 internal prototype to avoid an error. */
10855#ifdef __cplusplus
10856extern "C"
10857#endif
10858/* We use char because int might match the return type of a gcc2
10859 builtin and then its argument prototype would still apply. */
10860char dlopen ();
10861int
10862main ()
10863{
10864dlopen ();
10865 ;
10866 return 0;
10867}
10868_ACEOF
10869rm -f conftest.$ac_objext conftest$ac_exeext
10870if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10871 (eval $ac_link) 2>conftest.er1
10872 ac_status=$?
10873 grep -v '^ *+' conftest.er1 >conftest.err
10874 rm -f conftest.er1
10875 cat conftest.err >&5
10876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877 (exit $ac_status); } &&
10878 { ac_try='test -z "$ac_c_werror_flag"
10879 || test ! -s conftest.err'
10880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10881 (eval $ac_try) 2>&5
10882 ac_status=$?
10883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10884 (exit $ac_status); }; } &&
10885 { ac_try='test -s conftest$ac_exeext'
10886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10887 (eval $ac_try) 2>&5
10888 ac_status=$?
10889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890 (exit $ac_status); }; }; then
10891 ac_cv_lib_dl_dlopen=yes
10892else
10893 echo "$as_me: failed program was:" >&5
10894sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 10895
dabbade6
L
10896ac_cv_lib_dl_dlopen=no
10897fi
10898rm -f conftest.err conftest.$ac_objext \
10899 conftest$ac_exeext conftest.$ac_ext
10900LIBS=$ac_check_lib_save_LIBS
10901fi
10902echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10903echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10904if test $ac_cv_lib_dl_dlopen = yes; then
10905 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10906else
10907 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10908echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10909if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10910 echo $ECHO_N "(cached) $ECHO_C" >&6
10911else
10912 ac_check_lib_save_LIBS=$LIBS
10913LIBS="-lsvld $LIBS"
10914cat >conftest.$ac_ext <<_ACEOF
10915/* confdefs.h. */
10916_ACEOF
10917cat confdefs.h >>conftest.$ac_ext
10918cat >>conftest.$ac_ext <<_ACEOF
10919/* end confdefs.h. */
d7040cdb 10920
dabbade6
L
10921/* Override any gcc2 internal prototype to avoid an error. */
10922#ifdef __cplusplus
10923extern "C"
10924#endif
10925/* We use char because int might match the return type of a gcc2
10926 builtin and then its argument prototype would still apply. */
10927char dlopen ();
10928int
10929main ()
10930{
10931dlopen ();
10932 ;
10933 return 0;
10934}
10935_ACEOF
10936rm -f conftest.$ac_objext conftest$ac_exeext
10937if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10938 (eval $ac_link) 2>conftest.er1
10939 ac_status=$?
10940 grep -v '^ *+' conftest.er1 >conftest.err
10941 rm -f conftest.er1
10942 cat conftest.err >&5
10943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10944 (exit $ac_status); } &&
10945 { ac_try='test -z "$ac_c_werror_flag"
10946 || test ! -s conftest.err'
10947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10948 (eval $ac_try) 2>&5
10949 ac_status=$?
10950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951 (exit $ac_status); }; } &&
10952 { ac_try='test -s conftest$ac_exeext'
10953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10954 (eval $ac_try) 2>&5
10955 ac_status=$?
10956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10957 (exit $ac_status); }; }; then
10958 ac_cv_lib_svld_dlopen=yes
10959else
10960 echo "$as_me: failed program was:" >&5
10961sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 10962
dabbade6
L
10963ac_cv_lib_svld_dlopen=no
10964fi
10965rm -f conftest.err conftest.$ac_objext \
10966 conftest$ac_exeext conftest.$ac_ext
10967LIBS=$ac_check_lib_save_LIBS
10968fi
10969echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10970echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10971if test $ac_cv_lib_svld_dlopen = yes; then
10972 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10973else
10974 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10975echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10976if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10977 echo $ECHO_N "(cached) $ECHO_C" >&6
10978else
10979 ac_check_lib_save_LIBS=$LIBS
10980LIBS="-ldld $LIBS"
10981cat >conftest.$ac_ext <<_ACEOF
10982/* confdefs.h. */
10983_ACEOF
10984cat confdefs.h >>conftest.$ac_ext
10985cat >>conftest.$ac_ext <<_ACEOF
10986/* end confdefs.h. */
d7040cdb 10987
dabbade6
L
10988/* Override any gcc2 internal prototype to avoid an error. */
10989#ifdef __cplusplus
10990extern "C"
10991#endif
10992/* We use char because int might match the return type of a gcc2
10993 builtin and then its argument prototype would still apply. */
10994char dld_link ();
10995int
10996main ()
10997{
10998dld_link ();
10999 ;
11000 return 0;
11001}
11002_ACEOF
11003rm -f conftest.$ac_objext conftest$ac_exeext
11004if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11005 (eval $ac_link) 2>conftest.er1
11006 ac_status=$?
11007 grep -v '^ *+' conftest.er1 >conftest.err
11008 rm -f conftest.er1
11009 cat conftest.err >&5
11010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11011 (exit $ac_status); } &&
11012 { ac_try='test -z "$ac_c_werror_flag"
11013 || test ! -s conftest.err'
11014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11015 (eval $ac_try) 2>&5
11016 ac_status=$?
11017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018 (exit $ac_status); }; } &&
11019 { ac_try='test -s conftest$ac_exeext'
11020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11021 (eval $ac_try) 2>&5
11022 ac_status=$?
11023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024 (exit $ac_status); }; }; then
11025 ac_cv_lib_dld_dld_link=yes
11026else
11027 echo "$as_me: failed program was:" >&5
11028sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 11029
dabbade6 11030ac_cv_lib_dld_dld_link=no
d7040cdb 11031fi
dabbade6
L
11032rm -f conftest.err conftest.$ac_objext \
11033 conftest$ac_exeext conftest.$ac_ext
11034LIBS=$ac_check_lib_save_LIBS
d7040cdb 11035fi
dabbade6
L
11036echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11037echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11038if test $ac_cv_lib_dld_dld_link = yes; then
1927a18f 11039 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
d7040cdb
SE
11040fi
11041
d7040cdb 11042
d7040cdb
SE
11043fi
11044
11045
dabbade6 11046fi
d7040cdb
SE
11047
11048
dabbade6 11049fi
d7040cdb
SE
11050
11051
d7040cdb
SE
11052fi
11053
979273e3 11054
252b5132 11055fi
252b5132 11056
dabbade6
L
11057 ;;
11058 esac
252b5132 11059
dabbade6
L
11060 if test "x$lt_cv_dlopen" != xno; then
11061 enable_dlopen=yes
11062 else
11063 enable_dlopen=no
11064 fi
1c0d3aa6 11065
dabbade6
L
11066 case $lt_cv_dlopen in
11067 dlopen)
11068 save_CPPFLAGS="$CPPFLAGS"
11069 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
20e95c23 11070
dabbade6
L
11071 save_LDFLAGS="$LDFLAGS"
11072 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
20e95c23 11073
dabbade6
L
11074 save_LIBS="$LIBS"
11075 LIBS="$lt_cv_dlopen_libs $LIBS"
20e95c23 11076
dabbade6
L
11077 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11078echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11079if test "${lt_cv_dlopen_self+set}" = set; then
11080 echo $ECHO_N "(cached) $ECHO_C" >&6
d7040cdb 11081else
dabbade6
L
11082 if test "$cross_compiling" = yes; then :
11083 lt_cv_dlopen_self=cross
d7040cdb 11084else
dabbade6
L
11085 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11086 lt_status=$lt_dlunknown
11087 cat > conftest.$ac_ext <<_LT_EOF
29670fb9 11088#line 11088 "configure"
dabbade6 11089#include "confdefs.h"
20e95c23 11090
dabbade6
L
11091#if HAVE_DLFCN_H
11092#include <dlfcn.h>
11093#endif
20e95c23 11094
dabbade6 11095#include <stdio.h>
20e95c23 11096
dabbade6
L
11097#ifdef RTLD_GLOBAL
11098# define LT_DLGLOBAL RTLD_GLOBAL
11099#else
11100# ifdef DL_GLOBAL
11101# define LT_DLGLOBAL DL_GLOBAL
11102# else
11103# define LT_DLGLOBAL 0
11104# endif
11105#endif
20e95c23 11106
dabbade6
L
11107/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11108 find out it does not work in some platform. */
11109#ifndef LT_DLLAZY_OR_NOW
11110# ifdef RTLD_LAZY
11111# define LT_DLLAZY_OR_NOW RTLD_LAZY
11112# else
11113# ifdef DL_LAZY
11114# define LT_DLLAZY_OR_NOW DL_LAZY
11115# else
11116# ifdef RTLD_NOW
11117# define LT_DLLAZY_OR_NOW RTLD_NOW
11118# else
11119# ifdef DL_NOW
11120# define LT_DLLAZY_OR_NOW DL_NOW
11121# else
11122# define LT_DLLAZY_OR_NOW 0
11123# endif
11124# endif
11125# endif
11126# endif
11127#endif
20e95c23 11128
dabbade6
L
11129void fnord() { int i=42;}
11130int main ()
11131{
11132 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11133 int status = $lt_dlunknown;
20e95c23 11134
dabbade6
L
11135 if (self)
11136 {
11137 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11138 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11139 /* dlclose (self); */
11140 }
11141 else
11142 puts (dlerror ());
d7040cdb 11143
1927a18f 11144 return status;
dabbade6
L
11145}
11146_LT_EOF
11147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11148 (eval $ac_link) 2>&5
11149 ac_status=$?
11150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11152 (./conftest; exit; ) >&5 2>/dev/null
11153 lt_status=$?
11154 case x$lt_status in
11155 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11156 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11157 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11158 esac
11159 else :
11160 # compilation failed
11161 lt_cv_dlopen_self=no
11162 fi
d7040cdb 11163fi
dabbade6
L
11164rm -fr conftest*
11165
252b5132 11166
d7040cdb 11167fi
dabbade6
L
11168echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11169echo "${ECHO_T}$lt_cv_dlopen_self" >&6
d7040cdb 11170
dabbade6
L
11171 if test "x$lt_cv_dlopen_self" = xyes; then
11172 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11173 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11174echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11175if test "${lt_cv_dlopen_self_static+set}" = set; then
979273e3 11176 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11177else
dabbade6
L
11178 if test "$cross_compiling" = yes; then :
11179 lt_cv_dlopen_self_static=cross
d7040cdb 11180else
dabbade6
L
11181 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11182 lt_status=$lt_dlunknown
11183 cat > conftest.$ac_ext <<_LT_EOF
29670fb9 11184#line 11184 "configure"
dabbade6 11185#include "confdefs.h"
252b5132 11186
dabbade6
L
11187#if HAVE_DLFCN_H
11188#include <dlfcn.h>
11189#endif
252b5132 11190
dabbade6 11191#include <stdio.h>
d7040cdb 11192
dabbade6
L
11193#ifdef RTLD_GLOBAL
11194# define LT_DLGLOBAL RTLD_GLOBAL
11195#else
11196# ifdef DL_GLOBAL
11197# define LT_DLGLOBAL DL_GLOBAL
11198# else
11199# define LT_DLGLOBAL 0
11200# endif
11201#endif
20e95c23 11202
dabbade6
L
11203/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11204 find out it does not work in some platform. */
11205#ifndef LT_DLLAZY_OR_NOW
11206# ifdef RTLD_LAZY
11207# define LT_DLLAZY_OR_NOW RTLD_LAZY
11208# else
11209# ifdef DL_LAZY
11210# define LT_DLLAZY_OR_NOW DL_LAZY
11211# else
11212# ifdef RTLD_NOW
11213# define LT_DLLAZY_OR_NOW RTLD_NOW
11214# else
11215# ifdef DL_NOW
11216# define LT_DLLAZY_OR_NOW DL_NOW
11217# else
11218# define LT_DLLAZY_OR_NOW 0
11219# endif
11220# endif
11221# endif
11222# endif
11223#endif
979273e3 11224
dabbade6
L
11225void fnord() { int i=42;}
11226int main ()
11227{
11228 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11229 int status = $lt_dlunknown;
d7040cdb 11230
dabbade6
L
11231 if (self)
11232 {
11233 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11234 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11235 /* dlclose (self); */
11236 }
11237 else
11238 puts (dlerror ());
d7040cdb 11239
1927a18f 11240 return status;
dabbade6
L
11241}
11242_LT_EOF
11243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11244 (eval $ac_link) 2>&5
11245 ac_status=$?
11246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11247 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11248 (./conftest; exit; ) >&5 2>/dev/null
11249 lt_status=$?
11250 case x$lt_status in
11251 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11252 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11253 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11254 esac
11255 else :
11256 # compilation failed
11257 lt_cv_dlopen_self_static=no
11258 fi
20e95c23 11259fi
dabbade6 11260rm -fr conftest*
979273e3 11261
d7040cdb
SE
11262
11263fi
dabbade6
L
11264echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11265echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11266 fi
11267
11268 CPPFLAGS="$save_CPPFLAGS"
11269 LDFLAGS="$save_LDFLAGS"
11270 LIBS="$save_LIBS"
11271 ;;
11272 esac
11273
11274 case $lt_cv_dlopen_self in
11275 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11276 *) enable_dlopen_self=unknown ;;
11277 esac
11278
11279 case $lt_cv_dlopen_self_static in
11280 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11281 *) enable_dlopen_self_static=unknown ;;
11282 esac
d7040cdb 11283fi
dabbade6
L
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301striplib=
11302old_striplib=
11303echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11304echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11305if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11306 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11307 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11308 echo "$as_me:$LINENO: result: yes" >&5
11309echo "${ECHO_T}yes" >&6
d7040cdb 11310else
dabbade6
L
11311# FIXME - insert some real tests, host_os isn't really good enough
11312 case $host_os in
11313 darwin*)
11314 if test -n "$STRIP" ; then
11315 striplib="$STRIP -x"
11316 old_striplib="$STRIP -S"
11317 echo "$as_me:$LINENO: result: yes" >&5
11318echo "${ECHO_T}yes" >&6
11319 else
11320 echo "$as_me:$LINENO: result: no" >&5
11321echo "${ECHO_T}no" >&6
11322 fi
11323 ;;
11324 *)
11325 echo "$as_me:$LINENO: result: no" >&5
d7040cdb 11326echo "${ECHO_T}no" >&6
dabbade6
L
11327 ;;
11328 esac
d7040cdb 11329fi
20e95c23 11330
979273e3 11331
dabbade6
L
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342 # Report which library types will actually be built
11343 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11344echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11345 echo "$as_me:$LINENO: result: $can_build_shared" >&5
11346echo "${ECHO_T}$can_build_shared" >&6
11347
11348 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11349echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11350 test "$can_build_shared" = "no" && enable_shared=no
11351
11352 # On AIX, shared libraries and static libraries use the same namespace, and
11353 # are all built from PIC.
11354 case $host_os in
11355 aix3*)
11356 test "$enable_shared" = yes && enable_static=no
11357 if test -n "$RANLIB"; then
11358 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11359 postinstall_cmds='$RANLIB $lib'
11360 fi
11361 ;;
11362
50e7d84b 11363 aix[4-9]*)
dabbade6
L
11364 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11365 test "$enable_shared" = yes && enable_static=no
11366 fi
11367 ;;
11368 esac
11369 echo "$as_me:$LINENO: result: $enable_shared" >&5
11370echo "${ECHO_T}$enable_shared" >&6
11371
11372 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11373echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11374 # Make sure either enable_shared or enable_static is yes.
11375 test "$enable_shared" = yes || enable_static=yes
11376 echo "$as_me:$LINENO: result: $enable_static" >&5
11377echo "${ECHO_T}$enable_static" >&6
11378
11379
11380
d7040cdb 11381
252b5132 11382fi
dabbade6
L
11383ac_ext=c
11384ac_cpp='$CPP $CPPFLAGS'
11385ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11386ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11387ac_compiler_gnu=$ac_cv_c_compiler_gnu
20e95c23 11388
dabbade6 11389CC="$lt_save_CC"
20e95c23 11390
20e95c23 11391
d7040cdb 11392
d7040cdb 11393
d7040cdb 11394
20e95c23 11395
dabbade6
L
11396
11397
11398
11399
11400
11401
11402
11403 ac_config_commands="$ac_config_commands libtool"
11404
11405
11406
11407
11408# Only expand once:
11409
11410
11411
11412# Check whether --enable-targets or --disable-targets was given.
11413if test "${enable_targets+set}" = set; then
11414 enableval="$enable_targets"
11415 case "${enableval}" in
11416 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
11417echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
11418 { (exit 1); exit 1; }; }
11419 ;;
11420 no) enable_targets= ;;
11421 *) enable_targets=$enableval ;;
11422esac
dabbade6
L
11423fi;
11424
11425GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
11426
11427# Check whether --enable-werror or --disable-werror was given.
11428if test "${enable_werror+set}" = set; then
11429 enableval="$enable_werror"
11430 case "${enableval}" in
11431 yes | y) ERROR_ON_WARNING="yes" ;;
11432 no | n) ERROR_ON_WARNING="no" ;;
11433 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
11434echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
11435 { (exit 1); exit 1; }; } ;;
11436 esac
11437fi;
11438
bb8541b9
L
11439# Enable -Wno-format by default when using gcc on mingw
11440case "${host}" in
11441 *-*-mingw32*)
11442 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11443 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
11444 fi
11445 ;;
11446 *) ;;
11447esac
11448
dabbade6
L
11449# Enable -Werror by default when using gcc
11450if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11451 ERROR_ON_WARNING=yes
d7040cdb 11452fi
20e95c23 11453
dabbade6
L
11454NO_WERROR=
11455if test "${ERROR_ON_WARNING}" = yes ; then
11456 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
11457 NO_WERROR="-Wno-error"
20e95c23 11458fi
d7040cdb 11459
dabbade6
L
11460if test "${GCC}" = yes ; then
11461 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
11462fi
d7040cdb 11463
dabbade6
L
11464# Check whether --enable-build-warnings or --disable-build-warnings was given.
11465if test "${enable_build_warnings+set}" = set; then
11466 enableval="$enable_build_warnings"
11467 case "${enableval}" in
11468 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
11469 no) if test "${GCC}" = yes ; then
11470 WARN_CFLAGS="-w"
11471 fi;;
11472 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11473 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
11474 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11475 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
11476 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
11477esac
11478fi;
979273e3 11479
dabbade6
L
11480if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
11481 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
d7040cdb 11482fi
dabbade6
L
11483
11484
11485
11486
11487
11488 ac_config_headers="$ac_config_headers config.h:config.in"
11489
11490
11491if test -z "$target" ; then
11492 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
11493echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
11494 { (exit 1); exit 1; }; }
d7040cdb 11495fi
dabbade6
L
11496
11497echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11498echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11499 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11500if test "${enable_maintainer_mode+set}" = set; then
11501 enableval="$enable_maintainer_mode"
11502 USE_MAINTAINER_MODE=$enableval
d7040cdb 11503else
dabbade6
L
11504 USE_MAINTAINER_MODE=no
11505fi;
11506 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
11507echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
d7040cdb 11508
d7040cdb 11509
dabbade6
L
11510if test $USE_MAINTAINER_MODE = yes; then
11511 MAINTAINER_MODE_TRUE=
11512 MAINTAINER_MODE_FALSE='#'
252b5132 11513else
dabbade6
L
11514 MAINTAINER_MODE_TRUE='#'
11515 MAINTAINER_MODE_FALSE=
252b5132 11516fi
d7040cdb 11517
dabbade6
L
11518 MAINT=$MAINTAINER_MODE_TRUE
11519
11520
11521 case ${build_alias} in
11522 "") build_noncanonical=${build} ;;
11523 *) build_noncanonical=${build_alias} ;;
11524esac
11525
11526 case ${host_alias} in
11527 "") host_noncanonical=${build_noncanonical} ;;
11528 *) host_noncanonical=${host_alias} ;;
11529esac
979273e3 11530
dabbade6
L
11531 case ${target_alias} in
11532 "") target_noncanonical=${host_noncanonical} ;;
11533 *) target_noncanonical=${target_alias} ;;
d7040cdb 11534esac
252b5132 11535
dabbade6
L
11536echo "$as_me:$LINENO: checking whether to install libbfd" >&5
11537echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
11538 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
11539if test "${enable_install_libbfd+set}" = set; then
11540 enableval="$enable_install_libbfd"
11541 install_libbfd_p=$enableval
979273e3 11542else
dabbade6
L
11543 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
11544 install_libbfd_p=yes
11545 else
11546 install_libbfd_p=no
11547 fi
11548fi;
11549 echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
11550echo "${ECHO_T}$install_libbfd_p" >&6
979273e3 11551
d7040cdb 11552
dabbade6
L
11553if test $install_libbfd_p = yes; then
11554 INSTALL_LIBBFD_TRUE=
11555 INSTALL_LIBBFD_FALSE='#'
11556else
11557 INSTALL_LIBBFD_TRUE='#'
11558 INSTALL_LIBBFD_FALSE=
d7040cdb
SE
11559fi
11560
dabbade6 11561 # Need _noncanonical variables for this.
979273e3 11562
d7040cdb
SE
11563
11564
dabbade6
L
11565
11566 # libbfd.a is a host library containing target dependent code
11567 bfdlibdir='$(libdir)'
11568 bfdincludedir='$(includedir)'
11569 if test "${host}" != "${target}"; then
11570 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
11571 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
11572 fi
11573
11574
11575
11576
11577
11578
11579# host-specific stuff:
11580
d7040cdb
SE
11581ALL_LINGUAS="fr sv tr es da de id pt_BR ro nl fi vi ga zh_CN"
11582# If we haven't got the data from the intl directory,
11583# assume NLS is disabled.
11584USE_NLS=no
11585LIBINTL=
11586LIBINTL_DEP=
11587INCINTL=
11588XGETTEXT=
11589GMSGFMT=
11590POSUB=
11591
11592if test -f ../intl/config.intl; then
11593 . ../intl/config.intl
11594fi
11595echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11596echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
11597if test x"$USE_NLS" != xyes; then
11598 echo "$as_me:$LINENO: result: no" >&5
11599echo "${ECHO_T}no" >&6
11600else
11601 echo "$as_me:$LINENO: result: yes" >&5
11602echo "${ECHO_T}yes" >&6
11603
11604cat >>confdefs.h <<\_ACEOF
11605#define ENABLE_NLS 1
11606_ACEOF
11607
11608
11609 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
11610echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
11611 # Look for .po and .gmo files in the source directory.
11612 CATALOGS=
11613 XLINGUAS=
11614 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11615 # If there aren't any .gmo files the shell will give us the
11616 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11617 # weeded out.
11618 case "$cat" in *\**)
11619 continue;;
11620 esac
11621 # The quadruple backslash is collapsed to a double backslash
11622 # by the backticks, then collapsed again by the double quotes,
11623 # leaving us with one backslash in the sed expression (right
11624 # before the dot that mustn't act as a wildcard).
11625 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11626 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11627 # The user is allowed to set LINGUAS to a list of languages to
11628 # install catalogs for. If it's empty that means "all of them."
11629 if test "x$LINGUAS" = x; then
11630 CATALOGS="$CATALOGS $cat"
11631 XLINGUAS="$XLINGUAS $lang"
11632 else
11633 case "$LINGUAS" in *$lang*)
11634 CATALOGS="$CATALOGS $cat"
11635 XLINGUAS="$XLINGUAS $lang"
11636 ;;
11637 esac
11638 fi
11639 done
11640 LINGUAS="$XLINGUAS"
11641 echo "$as_me:$LINENO: result: $LINGUAS" >&5
11642echo "${ECHO_T}$LINGUAS" >&6
11643
11644
11645 DATADIRNAME=share
11646
11647 INSTOBJEXT=.mo
11648
11649 GENCAT=gencat
11650
11651 CATOBJEXT=.gmo
11652
11653fi
11654
11655 MKINSTALLDIRS=
11656 if test -n "$ac_aux_dir"; then
11657 case "$ac_aux_dir" in
11658 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
11659 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
11660 esac
11661 fi
11662 if test -z "$MKINSTALLDIRS"; then
11663 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
11664 fi
11665
11666
11667
11668 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11669echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
11670 # Check whether --enable-nls or --disable-nls was given.
11671if test "${enable_nls+set}" = set; then
11672 enableval="$enable_nls"
11673 USE_NLS=$enableval
11674else
11675 USE_NLS=yes
11676fi;
11677 echo "$as_me:$LINENO: result: $USE_NLS" >&5
11678echo "${ECHO_T}$USE_NLS" >&6
11679
11680
11681
11682
11683
11684
11685# Prepare PATH_SEPARATOR.
11686# The user is always right.
11687if test "${PATH_SEPARATOR+set}" != set; then
11688 echo "#! /bin/sh" >conf$$.sh
11689 echo "exit 0" >>conf$$.sh
11690 chmod +x conf$$.sh
11691 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11692 PATH_SEPARATOR=';'
11693 else
11694 PATH_SEPARATOR=:
11695 fi
11696 rm -f conf$$.sh
11697fi
979273e3 11698
d7040cdb
SE
11699# Find out how to test for executable files. Don't use a zero-byte file,
11700# as systems may use methods other than mode bits to determine executability.
11701cat >conf$$.file <<_ASEOF
11702#! /bin/sh
11703exit 0
11704_ASEOF
11705chmod +x conf$$.file
11706if test -x conf$$.file >/dev/null 2>&1; then
11707 ac_executable_p="test -x"
252b5132 11708else
d7040cdb 11709 ac_executable_p="test -f"
252b5132 11710fi
d7040cdb 11711rm -f conf$$.file
252b5132 11712
d7040cdb
SE
11713# Extract the first word of "msgfmt", so it can be a program name with args.
11714set dummy msgfmt; ac_word=$2
11715echo "$as_me:$LINENO: checking for $ac_word" >&5
11716echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11717if test "${ac_cv_path_MSGFMT+set}" = set; then
979273e3 11718 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11719else
d7040cdb
SE
11720 case "$MSGFMT" in
11721 [\\/]* | ?:[\\/]*)
11722 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11723 ;;
11724 *)
11725 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11726 for ac_dir in $PATH; do
11727 IFS="$ac_save_IFS"
11728 test -z "$ac_dir" && ac_dir=.
11729 for ac_exec_ext in '' $ac_executable_extensions; do
11730 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11731 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
11732 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11733 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
11734 break 2
11735 fi
11736 fi
11737 done
11738 done
11739 IFS="$ac_save_IFS"
11740 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11741 ;;
11742esac
11743fi
11744MSGFMT="$ac_cv_path_MSGFMT"
11745if test "$MSGFMT" != ":"; then
11746 echo "$as_me:$LINENO: result: $MSGFMT" >&5
11747echo "${ECHO_T}$MSGFMT" >&6
11748else
11749 echo "$as_me:$LINENO: result: no" >&5
11750echo "${ECHO_T}no" >&6
252b5132
RH
11751fi
11752
d7040cdb
SE
11753 # Extract the first word of "gmsgfmt", so it can be a program name with args.
11754set dummy gmsgfmt; ac_word=$2
11755echo "$as_me:$LINENO: checking for $ac_word" >&5
11756echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11757if test "${ac_cv_path_GMSGFMT+set}" = set; then
20e95c23
DJ
11758 echo $ECHO_N "(cached) $ECHO_C" >&6
11759else
d7040cdb
SE
11760 case $GMSGFMT in
11761 [\\/]* | ?:[\\/]*)
11762 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11763 ;;
11764 *)
11765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11766for as_dir in $PATH
11767do
11768 IFS=$as_save_IFS
11769 test -z "$as_dir" && as_dir=.
11770 for ac_exec_ext in '' $ac_executable_extensions; do
11771 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11772 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
11773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11774 break 2
11775 fi
11776done
11777done
252b5132 11778
d7040cdb
SE
11779 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11780 ;;
11781esac
11782fi
11783GMSGFMT=$ac_cv_path_GMSGFMT
20e95c23 11784
d7040cdb
SE
11785if test -n "$GMSGFMT"; then
11786 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
11787echo "${ECHO_T}$GMSGFMT" >&6
252b5132 11788else
d7040cdb
SE
11789 echo "$as_me:$LINENO: result: no" >&5
11790echo "${ECHO_T}no" >&6
252b5132
RH
11791fi
11792
11793
20e95c23 11794
d7040cdb
SE
11795# Prepare PATH_SEPARATOR.
11796# The user is always right.
11797if test "${PATH_SEPARATOR+set}" != set; then
11798 echo "#! /bin/sh" >conf$$.sh
11799 echo "exit 0" >>conf$$.sh
11800 chmod +x conf$$.sh
11801 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11802 PATH_SEPARATOR=';'
11803 else
11804 PATH_SEPARATOR=:
11805 fi
11806 rm -f conf$$.sh
252b5132
RH
11807fi
11808
d7040cdb
SE
11809# Find out how to test for executable files. Don't use a zero-byte file,
11810# as systems may use methods other than mode bits to determine executability.
11811cat >conf$$.file <<_ASEOF
11812#! /bin/sh
11813exit 0
11814_ASEOF
11815chmod +x conf$$.file
11816if test -x conf$$.file >/dev/null 2>&1; then
11817 ac_executable_p="test -x"
11818else
11819 ac_executable_p="test -f"
11820fi
11821rm -f conf$$.file
20e95c23 11822
d7040cdb
SE
11823# Extract the first word of "xgettext", so it can be a program name with args.
11824set dummy xgettext; ac_word=$2
11825echo "$as_me:$LINENO: checking for $ac_word" >&5
11826echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11827if test "${ac_cv_path_XGETTEXT+set}" = set; then
11828 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11829else
d7040cdb
SE
11830 case "$XGETTEXT" in
11831 [\\/]* | ?:[\\/]*)
11832 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11833 ;;
11834 *)
11835 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11836 for ac_dir in $PATH; do
11837 IFS="$ac_save_IFS"
11838 test -z "$ac_dir" && ac_dir=.
11839 for ac_exec_ext in '' $ac_executable_extensions; do
11840 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11841 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11842 (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
11843 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
11844 break 2
11845 fi
11846 fi
11847 done
11848 done
11849 IFS="$ac_save_IFS"
11850 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11851 ;;
11852esac
20e95c23 11853fi
d7040cdb
SE
11854XGETTEXT="$ac_cv_path_XGETTEXT"
11855if test "$XGETTEXT" != ":"; then
11856 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
11857echo "${ECHO_T}$XGETTEXT" >&6
11858else
11859 echo "$as_me:$LINENO: result: no" >&5
11860echo "${ECHO_T}no" >&6
11861fi
11862
11863 rm -f messages.po
11864
979273e3 11865
d7040cdb
SE
11866# Prepare PATH_SEPARATOR.
11867# The user is always right.
11868if test "${PATH_SEPARATOR+set}" != set; then
11869 echo "#! /bin/sh" >conf$$.sh
11870 echo "exit 0" >>conf$$.sh
11871 chmod +x conf$$.sh
11872 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11873 PATH_SEPARATOR=';'
11874 else
11875 PATH_SEPARATOR=:
11876 fi
11877 rm -f conf$$.sh
252b5132 11878fi
979273e3 11879
d7040cdb
SE
11880# Find out how to test for executable files. Don't use a zero-byte file,
11881# as systems may use methods other than mode bits to determine executability.
11882cat >conf$$.file <<_ASEOF
11883#! /bin/sh
11884exit 0
11885_ASEOF
11886chmod +x conf$$.file
11887if test -x conf$$.file >/dev/null 2>&1; then
11888 ac_executable_p="test -x"
252b5132 11889else
d7040cdb
SE
11890 ac_executable_p="test -f"
11891fi
11892rm -f conf$$.file
252b5132 11893
d7040cdb
SE
11894# Extract the first word of "msgmerge", so it can be a program name with args.
11895set dummy msgmerge; ac_word=$2
11896echo "$as_me:$LINENO: checking for $ac_word" >&5
11897echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11898if test "${ac_cv_path_MSGMERGE+set}" = set; then
11899 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11900else
d7040cdb
SE
11901 case "$MSGMERGE" in
11902 [\\/]* | ?:[\\/]*)
11903 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11904 ;;
11905 *)
11906 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11907 for ac_dir in $PATH; do
11908 IFS="$ac_save_IFS"
11909 test -z "$ac_dir" && ac_dir=.
11910 for ac_exec_ext in '' $ac_executable_extensions; do
11911 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11912 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
11913 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11914 break 2
11915 fi
11916 fi
11917 done
11918 done
11919 IFS="$ac_save_IFS"
11920 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11921 ;;
11922esac
20e95c23 11923fi
d7040cdb
SE
11924MSGMERGE="$ac_cv_path_MSGMERGE"
11925if test "$MSGMERGE" != ":"; then
11926 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
11927echo "${ECHO_T}$MSGMERGE" >&6
11928else
11929 echo "$as_me:$LINENO: result: no" >&5
11930echo "${ECHO_T}no" >&6
20e95c23 11931fi
252b5132 11932
979273e3 11933
d7040cdb
SE
11934 if test "$GMSGFMT" != ":"; then
11935 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
11936 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11937 : ;
11938 else
11939 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
11940 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
11941echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
11942 GMSGFMT=":"
11943 fi
11944 fi
979273e3 11945
d7040cdb
SE
11946 if test "$XGETTEXT" != ":"; then
11947 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11948 (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
11949 : ;
11950 else
11951 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
11952echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
11953 XGETTEXT=":"
11954 fi
11955 rm -f messages.po
11956 fi
979273e3 11957
d7040cdb 11958 ac_config_commands="$ac_config_commands default-1"
c46f8c51 11959
c46f8c51 11960
979273e3 11961
d7040cdb 11962. ${srcdir}/../bfd/configure.host
252b5132 11963
d7040cdb
SE
11964# Put a plausible default for CC_FOR_BUILD in Makefile.
11965if test -z "$CC_FOR_BUILD"; then
11966 if test "x$cross_compiling" = "xno"; then
11967 CC_FOR_BUILD='$(CC)'
11968 else
11969 CC_FOR_BUILD=gcc
11970 fi
11971fi
252b5132 11972
d7040cdb
SE
11973# Also set EXEEXT_FOR_BUILD.
11974if test "x$cross_compiling" = "xno"; then
11975 EXEEXT_FOR_BUILD='$(EXEEXT)'
11976else
11977 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
11978echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
11979if test "${bfd_cv_build_exeext+set}" = set; then
11980 echo $ECHO_N "(cached) $ECHO_C" >&6
11981else
11982 rm -f conftest*
11983 echo 'int main () { return 0; }' > conftest.c
11984 bfd_cv_build_exeext=
11985 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
11986 for file in conftest.*; do
11987 case $file in
11988 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
11989 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
11990 esac
11991 done
11992 rm -f conftest*
11993 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
11994fi
11995echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
11996echo "${ECHO_T}$bfd_cv_build_exeext" >&6
11997 EXEEXT_FOR_BUILD=""
11998 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
11999fi
252b5132 12000
979273e3 12001
252b5132 12002
d7040cdb
SE
12003# Find a good install program. We prefer a C program (faster),
12004# so one script is as good as another. But avoid the broken or
12005# incompatible versions:
12006# SysV /etc/install, /usr/sbin/install
12007# SunOS /usr/etc/install
12008# IRIX /sbin/install
12009# AIX /bin/install
12010# AmigaOS /C/install, which installs bootblocks on floppy discs
12011# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12012# AFS /usr/afsws/bin/install, which mishandles nonexistent args
12013# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
12014# OS/2's system install, which has a completely different semantic
12015# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 12016# Reject install programs that cannot install multiple files.
d7040cdb
SE
12017echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12018echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
12019if test -z "$INSTALL"; then
12020if test "${ac_cv_path_install+set}" = set; then
979273e3 12021 echo $ECHO_N "(cached) $ECHO_C" >&6
979273e3 12022else
d7040cdb
SE
12023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12024for as_dir in $PATH
12025do
12026 IFS=$as_save_IFS
12027 test -z "$as_dir" && as_dir=.
12028 # Account for people who put trailing slashes in PATH elements.
12029case $as_dir/ in
12030 ./ | .// | /cC/* | \
12031 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
12032 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
12033 /usr/ucb/* ) ;;
12034 *)
12035 # OSF1 and SCO ODT 3.0 have their own names for install.
12036 # Don't use installbsd from OSF since it installs stuff as root
12037 # by default.
12038 for ac_prog in ginstall scoinst install; do
12039 for ac_exec_ext in '' $ac_executable_extensions; do
12040 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
12041 if test $ac_prog = install &&
12042 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12043 # AIX install. It has an incompatible calling convention.
12044 :
12045 elif test $ac_prog = install &&
12046 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12047 # program-specific install script used by HP pwplus--don't use.
12048 :
12049 else
58c85be7
RW
12050 rm -rf conftest.one conftest.two conftest.dir
12051 echo one > conftest.one
12052 echo two > conftest.two
12053 mkdir conftest.dir
12054 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
12055 test -s conftest.one && test -s conftest.two &&
12056 test -s conftest.dir/conftest.one &&
12057 test -s conftest.dir/conftest.two
12058 then
12059 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12060 break 3
12061 fi
d7040cdb
SE
12062 fi
12063 fi
12064 done
12065 done
12066 ;;
12067esac
12068done
12069
58c85be7 12070rm -rf conftest.one conftest.two conftest.dir
979273e3 12071
979273e3 12072fi
d7040cdb
SE
12073 if test "${ac_cv_path_install+set}" = set; then
12074 INSTALL=$ac_cv_path_install
12075 else
58c85be7
RW
12076 # As a last resort, use the slow shell script. Don't cache a
12077 # value for INSTALL within a source directory, because that will
d7040cdb 12078 # break other packages using the cache if that directory is
58c85be7 12079 # removed, or if the value is a relative name.
d7040cdb
SE
12080 INSTALL=$ac_install_sh
12081 fi
b6849f55 12082fi
d7040cdb
SE
12083echo "$as_me:$LINENO: result: $INSTALL" >&5
12084echo "${ECHO_T}$INSTALL" >&6
b6849f55 12085
d7040cdb
SE
12086# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12087# It thinks the first close brace ends the variable substitution.
12088test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
b6849f55 12089
d7040cdb
SE
12090test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12091
12092test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
979273e3 12093
252b5132 12094
979273e3
NN
12095
12096
12097
40fb9820
L
12098
12099for ac_header in string.h strings.h stdlib.h limits.h
252b5132 12100do
979273e3
NN
12101as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12102if eval "test \"\${$as_ac_Header+set}\" = set"; then
12103 echo "$as_me:$LINENO: checking for $ac_header" >&5
12104echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12105if eval "test \"\${$as_ac_Header+set}\" = set"; then
12106 echo $ECHO_N "(cached) $ECHO_C" >&6
12107fi
12108echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12109echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12110else
12111 # Is the header compilable?
12112echo "$as_me:$LINENO: checking $ac_header usability" >&5
12113echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12114cat >conftest.$ac_ext <<_ACEOF
12115/* confdefs.h. */
12116_ACEOF
12117cat confdefs.h >>conftest.$ac_ext
12118cat >>conftest.$ac_ext <<_ACEOF
12119/* end confdefs.h. */
12120$ac_includes_default
12121#include <$ac_header>
12122_ACEOF
12123rm -f conftest.$ac_objext
12124if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12125 (eval $ac_compile) 2>conftest.er1
12126 ac_status=$?
12127 grep -v '^ *+' conftest.er1 >conftest.err
12128 rm -f conftest.er1
12129 cat conftest.err >&5
12130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131 (exit $ac_status); } &&
8ae85421
AM
12132 { ac_try='test -z "$ac_c_werror_flag"
12133 || test ! -s conftest.err'
979273e3
NN
12134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12135 (eval $ac_try) 2>&5
12136 ac_status=$?
12137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12138 (exit $ac_status); }; } &&
12139 { ac_try='test -s conftest.$ac_objext'
12140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12141 (eval $ac_try) 2>&5
12142 ac_status=$?
12143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12144 (exit $ac_status); }; }; then
12145 ac_header_compiler=yes
12146else
12147 echo "$as_me: failed program was:" >&5
12148sed 's/^/| /' conftest.$ac_ext >&5
12149
12150ac_header_compiler=no
12151fi
12152rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12153echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12154echo "${ECHO_T}$ac_header_compiler" >&6
12155
12156# Is the header present?
12157echo "$as_me:$LINENO: checking $ac_header presence" >&5
12158echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12159cat >conftest.$ac_ext <<_ACEOF
12160/* confdefs.h. */
12161_ACEOF
12162cat confdefs.h >>conftest.$ac_ext
12163cat >>conftest.$ac_ext <<_ACEOF
12164/* end confdefs.h. */
12165#include <$ac_header>
12166_ACEOF
12167if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12168 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12169 ac_status=$?
12170 grep -v '^ *+' conftest.er1 >conftest.err
12171 rm -f conftest.er1
12172 cat conftest.err >&5
12173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12174 (exit $ac_status); } >/dev/null; then
12175 if test -s conftest.err; then
12176 ac_cpp_err=$ac_c_preproc_warn_flag
12177 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12178 else
12179 ac_cpp_err=
12180 fi
252b5132 12181else
979273e3 12182 ac_cpp_err=yes
252b5132 12183fi
979273e3
NN
12184if test -z "$ac_cpp_err"; then
12185 ac_header_preproc=yes
12186else
12187 echo "$as_me: failed program was:" >&5
12188sed 's/^/| /' conftest.$ac_ext >&5
12189
12190 ac_header_preproc=no
252b5132 12191fi
979273e3
NN
12192rm -f conftest.err conftest.$ac_ext
12193echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12194echo "${ECHO_T}$ac_header_preproc" >&6
12195
12196# So? What about this header?
12197case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12198 yes:no: )
12199 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12200echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12201 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12202echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12203 ac_header_preproc=yes
12204 ;;
12205 no:yes:* )
12206 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12207echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12208 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12209echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12210 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12211echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12212 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12213echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12214 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12215echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12216 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12217echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12218 (
12219 cat <<\_ASBOX
12220## ------------------------------------------ ##
12221## Report this to the AC_PACKAGE_NAME lists. ##
12222## ------------------------------------------ ##
12223_ASBOX
12224 ) |
12225 sed "s/^/$as_me: WARNING: /" >&2
12226 ;;
12227esac
12228echo "$as_me:$LINENO: checking for $ac_header" >&5
12229echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12230if eval "test \"\${$as_ac_Header+set}\" = set"; then
12231 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12232else
979273e3
NN
12233 eval "$as_ac_Header=\$ac_header_preproc"
12234fi
12235echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12236echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12237
12238fi
12239if test `eval echo '${'$as_ac_Header'}'` = yes; then
12240 cat >>confdefs.h <<_ACEOF
12241#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12242_ACEOF
12243
252b5132 12244fi
979273e3 12245
252b5132
RH
12246done
12247
12248
4bd60896
JG
12249echo "$as_me:$LINENO: checking whether basename is declared" >&5
12250echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
12251if test "${ac_cv_have_decl_basename+set}" = set; then
12252 echo $ECHO_N "(cached) $ECHO_C" >&6
12253else
12254 cat >conftest.$ac_ext <<_ACEOF
12255/* confdefs.h. */
12256_ACEOF
12257cat confdefs.h >>conftest.$ac_ext
12258cat >>conftest.$ac_ext <<_ACEOF
12259/* end confdefs.h. */
db5152b4 12260$ac_includes_default
4bd60896
JG
12261int
12262main ()
12263{
12264#ifndef basename
12265 char *p = (char *) basename;
12266#endif
12267
12268 ;
12269 return 0;
12270}
12271_ACEOF
12272rm -f conftest.$ac_objext
12273if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12274 (eval $ac_compile) 2>conftest.er1
12275 ac_status=$?
12276 grep -v '^ *+' conftest.er1 >conftest.err
12277 rm -f conftest.er1
12278 cat conftest.err >&5
12279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12280 (exit $ac_status); } &&
12281 { ac_try='test -z "$ac_c_werror_flag"
12282 || test ! -s conftest.err'
12283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12284 (eval $ac_try) 2>&5
12285 ac_status=$?
12286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287 (exit $ac_status); }; } &&
12288 { ac_try='test -s conftest.$ac_objext'
12289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12290 (eval $ac_try) 2>&5
12291 ac_status=$?
12292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293 (exit $ac_status); }; }; then
12294 ac_cv_have_decl_basename=yes
12295else
12296 echo "$as_me: failed program was:" >&5
12297sed 's/^/| /' conftest.$ac_ext >&5
12298
12299ac_cv_have_decl_basename=no
12300fi
12301rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12302fi
12303echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
12304echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
12305if test $ac_cv_have_decl_basename = yes; then
12306
12307cat >>confdefs.h <<_ACEOF
12308#define HAVE_DECL_BASENAME 1
12309_ACEOF
12310
12311
12312else
12313 cat >>confdefs.h <<_ACEOF
12314#define HAVE_DECL_BASENAME 0
12315_ACEOF
12316
12317
dabbade6
L
12318fi
12319echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
12320echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
12321if test "${ac_cv_have_decl_stpcpy+set}" = set; then
12322 echo $ECHO_N "(cached) $ECHO_C" >&6
12323else
12324 cat >conftest.$ac_ext <<_ACEOF
12325/* confdefs.h. */
12326_ACEOF
12327cat confdefs.h >>conftest.$ac_ext
12328cat >>conftest.$ac_ext <<_ACEOF
12329/* end confdefs.h. */
12330$ac_includes_default
12331int
12332main ()
12333{
12334#ifndef stpcpy
12335 char *p = (char *) stpcpy;
12336#endif
12337
12338 ;
12339 return 0;
12340}
12341_ACEOF
12342rm -f conftest.$ac_objext
12343if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12344 (eval $ac_compile) 2>conftest.er1
12345 ac_status=$?
12346 grep -v '^ *+' conftest.er1 >conftest.err
12347 rm -f conftest.er1
12348 cat conftest.err >&5
12349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350 (exit $ac_status); } &&
12351 { ac_try='test -z "$ac_c_werror_flag"
12352 || test ! -s conftest.err'
12353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12354 (eval $ac_try) 2>&5
12355 ac_status=$?
12356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357 (exit $ac_status); }; } &&
12358 { ac_try='test -s conftest.$ac_objext'
12359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12360 (eval $ac_try) 2>&5
12361 ac_status=$?
12362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363 (exit $ac_status); }; }; then
12364 ac_cv_have_decl_stpcpy=yes
12365else
12366 echo "$as_me: failed program was:" >&5
12367sed 's/^/| /' conftest.$ac_ext >&5
12368
12369ac_cv_have_decl_stpcpy=no
12370fi
12371rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12372fi
12373echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
12374echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
12375if test $ac_cv_have_decl_stpcpy = yes; then
12376
12377cat >>confdefs.h <<_ACEOF
12378#define HAVE_DECL_STPCPY 1
12379_ACEOF
12380
12381
12382else
12383 cat >>confdefs.h <<_ACEOF
12384#define HAVE_DECL_STPCPY 0
12385_ACEOF
12386
12387
4bd60896
JG
12388fi
12389
12390
12391
6e31aea3
BE
12392cgen_maint=no
12393cgendir='$(srcdir)/../cgen'
12394
12395# Check whether --enable-cgen-maint or --disable-cgen-maint was given.
12396if test "${enable_cgen_maint+set}" = set; then
12397 enableval="$enable_cgen_maint"
12398 case "${enableval}" in
12399 yes) cgen_maint=yes ;;
12400 no) cgen_maint=no ;;
12401 *)
12402 # argument is cgen install directory (not implemented yet).
12403 # Having a `share' directory might be more appropriate for the .scm,
12404 # .cpu, etc. files.
12405 cgen_maint=yes
12406 cgendir=${cgen_maint}/lib/cgen
12407 ;;
12408esac
979273e3 12409fi;
6e31aea3
BE
12410
12411if test x${cgen_maint} = xyes; then
12412 CGEN_MAINT_TRUE=
12413 CGEN_MAINT_FALSE='#'
12414else
12415 CGEN_MAINT_TRUE='#'
12416 CGEN_MAINT_FALSE=
12417fi
12418
252b5132 12419
8ae85421 12420
252b5132
RH
12421using_cgen=no
12422
51dec227
AM
12423# Check if linker supports --as-needed and --no-as-needed options
12424echo "$as_me:$LINENO: checking linker --as-needed support" >&5
12425echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
12426if test "${bfd_cv_ld_as_needed+set}" = set; then
12427 echo $ECHO_N "(cached) $ECHO_C" >&6
12428else
12429 bfd_cv_ld_as_needed=no
12430 if $LD --help 2>/dev/null | grep as-needed > /dev/null; then
12431 bfd_cv_ld_as_needed=yes
12432 fi
12433
12434fi
12435echo "$as_me:$LINENO: result: $bfd_cv_ld_as_needed" >&5
12436echo "${ECHO_T}$bfd_cv_ld_as_needed" >&6
12437
12438LIBM=
12439case $host in
12440*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
12441 # These system don't have libm, or don't need it
12442 ;;
12443*-ncr-sysv4.3*)
12444 echo "$as_me:$LINENO: checking for _mwvalidcheckl in -lmw" >&5
12445echo $ECHO_N "checking for _mwvalidcheckl in -lmw... $ECHO_C" >&6
12446if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then
12447 echo $ECHO_N "(cached) $ECHO_C" >&6
12448else
12449 ac_check_lib_save_LIBS=$LIBS
12450LIBS="-lmw $LIBS"
12451cat >conftest.$ac_ext <<_ACEOF
12452/* confdefs.h. */
12453_ACEOF
12454cat confdefs.h >>conftest.$ac_ext
12455cat >>conftest.$ac_ext <<_ACEOF
12456/* end confdefs.h. */
12457
12458/* Override any gcc2 internal prototype to avoid an error. */
12459#ifdef __cplusplus
12460extern "C"
12461#endif
12462/* We use char because int might match the return type of a gcc2
12463 builtin and then its argument prototype would still apply. */
12464char _mwvalidcheckl ();
12465int
12466main ()
12467{
12468_mwvalidcheckl ();
12469 ;
12470 return 0;
12471}
12472_ACEOF
12473rm -f conftest.$ac_objext conftest$ac_exeext
12474if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12475 (eval $ac_link) 2>conftest.er1
12476 ac_status=$?
12477 grep -v '^ *+' conftest.er1 >conftest.err
12478 rm -f conftest.er1
12479 cat conftest.err >&5
12480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481 (exit $ac_status); } &&
12482 { ac_try='test -z "$ac_c_werror_flag"
12483 || test ! -s conftest.err'
12484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12485 (eval $ac_try) 2>&5
12486 ac_status=$?
12487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488 (exit $ac_status); }; } &&
12489 { ac_try='test -s conftest$ac_exeext'
12490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12491 (eval $ac_try) 2>&5
12492 ac_status=$?
12493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12494 (exit $ac_status); }; }; then
12495 ac_cv_lib_mw__mwvalidcheckl=yes
12496else
12497 echo "$as_me: failed program was:" >&5
12498sed 's/^/| /' conftest.$ac_ext >&5
12499
12500ac_cv_lib_mw__mwvalidcheckl=no
12501fi
12502rm -f conftest.err conftest.$ac_objext \
12503 conftest$ac_exeext conftest.$ac_ext
12504LIBS=$ac_check_lib_save_LIBS
12505fi
12506echo "$as_me:$LINENO: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
12507echo "${ECHO_T}$ac_cv_lib_mw__mwvalidcheckl" >&6
12508if test $ac_cv_lib_mw__mwvalidcheckl = yes; then
12509 LIBM="-lmw"
12510fi
12511
12512 echo "$as_me:$LINENO: checking for cos in -lm" >&5
12513echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6
12514if test "${ac_cv_lib_m_cos+set}" = set; then
12515 echo $ECHO_N "(cached) $ECHO_C" >&6
12516else
12517 ac_check_lib_save_LIBS=$LIBS
12518LIBS="-lm $LIBS"
12519cat >conftest.$ac_ext <<_ACEOF
12520/* confdefs.h. */
12521_ACEOF
12522cat confdefs.h >>conftest.$ac_ext
12523cat >>conftest.$ac_ext <<_ACEOF
12524/* end confdefs.h. */
12525
12526/* Override any gcc2 internal prototype to avoid an error. */
12527#ifdef __cplusplus
12528extern "C"
12529#endif
12530/* We use char because int might match the return type of a gcc2
12531 builtin and then its argument prototype would still apply. */
12532char cos ();
12533int
12534main ()
12535{
12536cos ();
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); } &&
12550 { ac_try='test -z "$ac_c_werror_flag"
12551 || test ! -s conftest.err'
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
12563 ac_cv_lib_m_cos=yes
12564else
12565 echo "$as_me: failed program was:" >&5
12566sed 's/^/| /' conftest.$ac_ext >&5
12567
12568ac_cv_lib_m_cos=no
12569fi
12570rm -f conftest.err conftest.$ac_objext \
12571 conftest$ac_exeext conftest.$ac_ext
12572LIBS=$ac_check_lib_save_LIBS
12573fi
12574echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
12575echo "${ECHO_T}$ac_cv_lib_m_cos" >&6
12576if test $ac_cv_lib_m_cos = yes; then
12577 LIBM="$LIBM -lm"
12578fi
12579
12580 ;;
12581*)
12582 echo "$as_me:$LINENO: checking for cos in -lm" >&5
12583echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6
12584if test "${ac_cv_lib_m_cos+set}" = set; then
12585 echo $ECHO_N "(cached) $ECHO_C" >&6
12586else
12587 ac_check_lib_save_LIBS=$LIBS
12588LIBS="-lm $LIBS"
12589cat >conftest.$ac_ext <<_ACEOF
12590/* confdefs.h. */
12591_ACEOF
12592cat confdefs.h >>conftest.$ac_ext
12593cat >>conftest.$ac_ext <<_ACEOF
12594/* end confdefs.h. */
12595
12596/* Override any gcc2 internal prototype to avoid an error. */
12597#ifdef __cplusplus
12598extern "C"
12599#endif
12600/* We use char because int might match the return type of a gcc2
12601 builtin and then its argument prototype would still apply. */
12602char cos ();
12603int
12604main ()
12605{
12606cos ();
12607 ;
12608 return 0;
12609}
12610_ACEOF
12611rm -f conftest.$ac_objext conftest$ac_exeext
12612if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12613 (eval $ac_link) 2>conftest.er1
12614 ac_status=$?
12615 grep -v '^ *+' conftest.er1 >conftest.err
12616 rm -f conftest.er1
12617 cat conftest.err >&5
12618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619 (exit $ac_status); } &&
12620 { ac_try='test -z "$ac_c_werror_flag"
12621 || test ! -s conftest.err'
12622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12623 (eval $ac_try) 2>&5
12624 ac_status=$?
12625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626 (exit $ac_status); }; } &&
12627 { ac_try='test -s conftest$ac_exeext'
12628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12629 (eval $ac_try) 2>&5
12630 ac_status=$?
12631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12632 (exit $ac_status); }; }; then
12633 ac_cv_lib_m_cos=yes
12634else
12635 echo "$as_me: failed program was:" >&5
12636sed 's/^/| /' conftest.$ac_ext >&5
12637
12638ac_cv_lib_m_cos=no
12639fi
12640rm -f conftest.err conftest.$ac_objext \
12641 conftest$ac_exeext conftest.$ac_ext
12642LIBS=$ac_check_lib_save_LIBS
12643fi
12644echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
12645echo "${ECHO_T}$ac_cv_lib_m_cos" >&6
12646if test $ac_cv_lib_m_cos = yes; then
12647 LIBM="-lm"
12648fi
12649
12650 ;;
12651esac
12652
12653
12654
45d42143
NC
12655# Horrible hacks to build DLLs on Windows and a shared library elsewhere.
12656SHARED_LDFLAGS=
12657SHARED_LIBADD=
12658SHARED_DEPENDENCIES=
12659if test "$enable_shared" = "yes"; then
29670fb9
AM
12660# When building a shared libopcodes, link against the pic version of libiberty
12661# so that apps that use libopcodes won't need libiberty just to satisfy any
12662# libopcodes references.
12663# We can't do that if a pic libiberty is unavailable since including non-pic
12664# code would insert text relocations into libopcodes.
12665# Note that linking against libbfd as we do here, which is itself linked
12666# against libiberty, may not satisfy all the libopcodes libiberty references
12667# since libbfd may not pull in the entirety of libiberty.
12668 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
12669 if test -n "$x"; then
12670 SHARED_LIBADD="-L`pwd`/../libiberty/pic -liberty"
12671 fi
12672
45d42143
NC
12673 case "${host}" in
12674 *-*-cygwin*)
12675 SHARED_LDFLAGS="-no-undefined"
12676 SHARED_LIBADD="-L`pwd`/../bfd -lbfd -L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin"
12677 ;;
0e336180 12678 *-*-darwin*)
29670fb9 12679 SHARED_LIBADD="-Wl,`pwd`/../bfd/.libs/libbfd.dylib ${SHARED_LIBADD}"
0e336180
NC
12680 SHARED_DEPENDENCIES="../bfd/libbfd.la"
12681 ;;
45d42143 12682 *)
0e336180
NC
12683 case "$host_vendor" in
12684 hp)
29670fb9 12685 SHARED_LIBADD="-Wl,`pwd`/../bfd/.libs/libbfd.sl ${SHARED_LIBADD}"
0e336180
NC
12686 ;;
12687 *)
29670fb9 12688 SHARED_LIBADD="-Wl,`pwd`/../bfd/.libs/libbfd.so ${SHARED_LIBADD}"
0e336180
NC
12689 ;;
12690 esac
4267b19f 12691 SHARED_DEPENDENCIES="../bfd/libbfd.la"
45d42143
NC
12692 ;;
12693 esac
51dec227
AM
12694
12695 if test -n "$SHARED_LIBADD"; then
12696 if test -n "$LIBM"; then
12697 if test x"$bfd_cv_ld_as_needed" = xyes; then
12698 # Link against libm only when needed. Put -lc, -lm inside -Wl
12699 # to stop libtool reordering these options.
12700 SHARED_LIBADD="$SHARED_LIBADD -Wl,-lc,--as-needed,`echo $LIBM | sed 's/ /,/g'`,--no-as-needed"
12701 else
12702 SHARED_LIBADD="$SHARED_LIBADD $LIBM"
12703 fi
12704 fi
12705 fi
45d42143
NC
12706fi
12707
252b5132
RH
12708
12709
12710
12711# target-specific stuff:
12712
12713# Canonicalize the secondary target names.
12714if test -n "$enable_targets" ; then
12715 for targ in `echo $enable_targets | sed 's/,/ /g'`
12716 do
6d83c84b 12717 result=`$ac_config_sub $targ 2>/dev/null`
252b5132
RH
12718 if test -n "$result" ; then
12719 canon_targets="$canon_targets $result"
12720 else
12721 # Allow targets that config.sub doesn't recognize, like "all".
12722 canon_targets="$canon_targets $targ"
12723 fi
12724 done
12725fi
12726
12727all_targets=false
12728selarchs=
12729for targ in $target $canon_targets
12730do
12731 if test "x$targ" = "xall" ; then
12732 all_targets=true
12733 else
12734 . $srcdir/../bfd/config.bfd
12735 selarchs="$selarchs $targ_archs"
12736 fi
979273e3 12737done
252b5132
RH
12738
12739# Utility var, documents generic cgen support files.
12740
3609e0fe 12741cgen_files="cgen-opc.lo cgen-asm.lo cgen-dis.lo cgen-bitset.lo"
252b5132
RH
12742
12743# We don't do any links based on the target system, just makefile config.
12744
12745if test x${all_targets} = xfalse ; then
12746
12747 # Target architecture .o files.
12748 ta=
12749
12750 for arch in $selarchs
12751 do
12752 ad=`echo $arch | sed -e s/bfd_//g -e s/_arch//g`
12753 archdefs="$archdefs -DARCH_$ad"
12754 case "$arch" in
252b5132 12755 bfd_alpha_arch) ta="$ta alpha-dis.lo alpha-opc.lo" ;;
0d2bcfaf 12756 bfd_arc_arch) ta="$ta arc-dis.lo arc-opc.lo arc-ext.lo" ;;
252b5132 12757 bfd_arm_arch) ta="$ta arm-dis.lo" ;;
adde6300 12758 bfd_avr_arch) ta="$ta avr-dis.lo" ;;
4b7f6baa 12759 bfd_bfin_arch) ta="$ta bfin-dis.lo" ;;
3d3d428f 12760 bfd_cr16_arch) ta="$ta cr16-dis.lo cr16-opc.lo" ;;
3609e0fe 12761 bfd_cris_arch) ta="$ta cris-dis.lo cris-opc.lo cgen-bitset.lo" ;;
1fe1f39c 12762 bfd_crx_arch) ta="$ta crx-dis.lo crx-opc.lo" ;;
252b5132
RH
12763 bfd_d10v_arch) ta="$ta d10v-dis.lo d10v-opc.lo" ;;
12764 bfd_d30v_arch) ta="$ta d30v-dis.lo d30v-opc.lo" ;;
d172d4ba 12765 bfd_dlx_arch) ta="$ta dlx-dis.lo" ;;
252b5132 12766 bfd_fr30_arch) ta="$ta fr30-asm.lo fr30-desc.lo fr30-dis.lo fr30-ibld.lo fr30-opc.lo" using_cgen=yes ;;
c5f5f1f4 12767 bfd_frv_arch) ta="$ta frv-asm.lo frv-desc.lo frv-dis.lo frv-ibld.lo frv-opc.lo" using_cgen=yes ;;
20135e4c 12768 bfd_moxie_arch) ta="$ta moxie-dis.lo moxie-opc.lo" ;;
252b5132
RH
12769 bfd_h8300_arch) ta="$ta h8300-dis.lo" ;;
12770 bfd_h8500_arch) ta="$ta h8500-dis.lo" ;;
12771 bfd_hppa_arch) ta="$ta hppa-dis.lo" ;;
5b93d8bb 12772 bfd_i370_arch) ta="$ta i370-dis.lo i370-opc.lo" ;;
8a9036a4
L
12773 bfd_i386_arch|bfd_l1om_arch)
12774 ta="$ta i386-dis.lo i386-opc.lo" ;;
9d751335 12775 bfd_i860_arch) ta="$ta i860-dis.lo" ;;
252b5132 12776 bfd_i960_arch) ta="$ta i960-dis.lo" ;;
800eeca4 12777 bfd_ia64_arch) ta="$ta ia64-dis.lo ia64-opc.lo" ;;
a40cbfa3 12778 bfd_ip2k_arch) ta="$ta ip2k-asm.lo ip2k-desc.lo ip2k-dis.lo ip2k-ibld.lo ip2k-opc.lo" using_cgen=yes ;;
47b1a55a 12779 bfd_iq2000_arch) ta="$ta iq2000-asm.lo iq2000-desc.lo iq2000-dis.lo iq2000-ibld.lo iq2000-opc.lo" using_cgen=yes ;;
84e94c90 12780 bfd_lm32_arch) ta="$ta lm32-asm.lo lm32-desc.lo lm32-dis.lo lm32-ibld.lo lm32-opc.lo lm32-opinst.lo" using_cgen=yes ;;
c5f5f1f4 12781 bfd_m32c_arch) ta="$ta m32c-asm.lo m32c-desc.lo m32c-dis.lo m32c-ibld.lo m32c-opc.lo" using_cgen=yes ;;
252b5132 12782 bfd_m32r_arch) ta="$ta m32r-asm.lo m32r-desc.lo m32r-dis.lo m32r-ibld.lo m32r-opc.lo m32r-opinst.lo" using_cgen=yes ;;
60bcf0fa
NC
12783 bfd_m68hc11_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
12784 bfd_m68hc12_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
252b5132
RH
12785 bfd_m68k_arch) ta="$ta m68k-dis.lo m68k-opc.lo" ;;
12786 bfd_m88k_arch) ta="$ta m88k-dis.lo" ;;
7499d566 12787 bfd_maxq_arch) ta="$ta maxq-dis.lo" ;;
252b5132 12788 bfd_mcore_arch) ta="$ta mcore-dis.lo" ;;
bd2f2e55 12789 bfd_mep_arch) ta="$ta mep-asm.lo mep-desc.lo mep-dis.lo mep-ibld.lo mep-opc.lo" using_cgen=yes ;;
7ba29e2a 12790 bfd_microblaze_arch) ta="$ta microblaze-dis.lo" ;;
252b5132 12791 bfd_mips_arch) ta="$ta mips-dis.lo mips-opc.lo mips16-opc.lo" ;;
3c3bdf30 12792 bfd_mmix_arch) ta="$ta mmix-dis.lo mmix-opc.lo" ;;
252b5132
RH
12793 bfd_mn10200_arch) ta="$ta m10200-dis.lo m10200-opc.lo" ;;
12794 bfd_mn10300_arch) ta="$ta m10300-dis.lo m10300-opc.lo" ;;
d031aafb 12795 bfd_mt_arch) ta="$ta mt-asm.lo mt-desc.lo mt-dis.lo mt-ibld.lo mt-opc.lo" using_cgen=yes ;;
2469cfa2 12796 bfd_msp430_arch) ta="$ta msp430-dis.lo" ;;
252b5132 12797 bfd_ns32k_arch) ta="$ta ns32k-dis.lo" ;;
87e6d782 12798 bfd_openrisc_arch) ta="$ta openrisc-asm.lo openrisc-desc.lo openrisc-dis.lo openrisc-ibld.lo openrisc-opc.lo" using_cgen=yes ;;
3b16e843 12799 bfd_or32_arch) ta="$ta or32-dis.lo or32-opc.lo" using_cgen=yes ;;
e135f41b 12800 bfd_pdp11_arch) ta="$ta pdp11-dis.lo pdp11-opc.lo" ;;
1e608f98 12801 bfd_pj_arch) ta="$ta pj-dis.lo pj-opc.lo" ;;
252b5132 12802 bfd_powerpc_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
a85d7ed0 12803 bfd_powerpc_64_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
5dd0794d 12804 bfd_pyramid_arch) ;;
252b5132
RH
12805 bfd_romp_arch) ;;
12806 bfd_rs6000_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
a85d7ed0 12807 bfd_s390_arch) ta="$ta s390-dis.lo s390-opc.lo" ;;
c3b7224a 12808 bfd_score_arch) ta="$ta score-dis.lo score7-dis.lo" ;;
09919455 12809 bfd_sh_arch)
d28847ce 12810 # We can't decide what we want just from the CPU family.
e8b872bb
AO
12811 # We want SH5 support unless a specific version of sh is
12812 # specified, as in sh3-elf, sh3b-linux-gnu, etc.
ca0f2ed6
HPN
12813 # Include it just for ELF targets, since the SH5 bfd:s are ELF only.
12814 for t in $target $canon_targets; do
12815 case $t in
5b0e55b6 12816 all | sh5*-* | sh64*-* | sh-*-*elf* | shl*-*-*elf* | \
942e7dd9 12817 sh-*-linux* | shl-*-linux*)
d28847ce 12818 ta="$ta sh64-dis.lo sh64-opc.lo"
ca0f2ed6
HPN
12819 archdefs="$archdefs -DINCLUDE_SHMEDIA"
12820 break;;
12821 esac;
12822 done
d3f1a427 12823 ta="$ta sh-dis.lo cgen-bitset.lo" ;;
252b5132 12824 bfd_sparc_arch) ta="$ta sparc-dis.lo sparc-opc.lo" ;;
e9f53129 12825 bfd_spu_arch) ta="$ta spu-dis.lo spu-opc.lo" ;;
252b5132
RH
12826 bfd_tahoe_arch) ;;
12827 bfd_tic30_arch) ta="$ta tic30-dis.lo" ;;
026df7c5 12828 bfd_tic4x_arch) ta="$ta tic4x-dis.lo" ;;
5c84d377 12829 bfd_tic54x_arch) ta="$ta tic54x-dis.lo tic54x-opc.lo" ;;
252b5132
RH
12830 bfd_tic80_arch) ta="$ta tic80-dis.lo tic80-opc.lo" ;;
12831 bfd_v850_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
12832 bfd_v850e_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
12833 bfd_v850ea_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
12834 bfd_vax_arch) ta="$ta vax-dis.lo" ;;
12835 bfd_w65_arch) ta="$ta w65-dis.lo" ;;
12836 bfd_we32k_arch) ;;
d70c5fc7 12837 bfd_xc16x_arch) ta="$ta xc16x-asm.lo xc16x-desc.lo xc16x-dis.lo xc16x-ibld.lo xc16x-opc.lo" using_cgen=yes ;;
93fbbb04 12838 bfd_xstormy16_arch) ta="$ta xstormy16-asm.lo xstormy16-desc.lo xstormy16-dis.lo xstormy16-ibld.lo xstormy16-opc.lo" using_cgen=yes ;;
e0001a05 12839 bfd_xtensa_arch) ta="$ta xtensa-dis.lo" ;;
3c9b82ba 12840 bfd_z80_arch) ta="$ta z80-dis.lo" ;;
252b5132
RH
12841 bfd_z8k_arch) ta="$ta z8k-dis.lo" ;;
12842
12843 "") ;;
979273e3
NN
12844 *) { { echo "$as_me:$LINENO: error: *** unknown target architecture $arch" >&5
12845echo "$as_me: error: *** unknown target architecture $arch" >&2;}
12846 { (exit 1); exit 1; }; } ;;
252b5132
RH
12847 esac
12848 done
12849
12850 if test $using_cgen = yes ; then
12851 ta="$ta $cgen_files"
12852 fi
12853
12854 # Weed out duplicate .o files.
12855 f=""
12856 for i in $ta ; do
12857 case " $f " in
12858 *" $i "*) ;;
12859 *) f="$f $i" ;;
12860 esac
12861 done
12862 ta="$f"
12863
12864 # And duplicate -D flags.
12865 f=""
12866 for i in $archdefs ; do
12867 case " $f " in
12868 *" $i "*) ;;
12869 *) f="$f $i" ;;
12870 esac
12871 done
12872 archdefs="$f"
12873
12874 BFD_MACHINES="$ta"
12875
12876else # all_targets is true
12877 archdefs=-DARCH_all
12878 BFD_MACHINES='$(ALL_MACHINES)'
12879fi
12880
12881
12882
12883
979273e3
NN
12884 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
12885
979273e3 12886cat >confcache <<\_ACEOF
252b5132
RH
12887# This file is a shell script that caches the results of configure
12888# tests run on this system so they can be shared between configure
979273e3
NN
12889# scripts and configure runs, see configure's option --config-cache.
12890# It is not useful on other systems. If it contains results you don't
12891# want to keep, you may remove or edit it.
252b5132 12892#
979273e3
NN
12893# config.status only pays attention to the cache file if you give it
12894# the --recheck option to rerun configure.
252b5132 12895#
979273e3
NN
12896# `ac_cv_env_foo' variables (set or unset) will be overridden when
12897# loading this file, other *unset* `ac_cv_foo' will be assigned the
12898# following values.
12899
12900_ACEOF
12901
252b5132
RH
12902# The following way of writing the cache mishandles newlines in values,
12903# but we know of no workaround that is simple, portable, and efficient.
12904# So, don't put newlines in cache variables' values.
12905# Ultrix sh set writes to stderr and can't be redirected directly,
12906# and sets the high bit in the cache file unless we assign to the vars.
979273e3
NN
12907{
12908 (set) 2>&1 |
12909 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12910 *ac_space=\ *)
12911 # `set' does not quote correctly, so add quotes (double-quote
12912 # substitution turns \\\\ into \\, and sed turns \\ into \).
12913 sed -n \
12914 "s/'/'\\\\''/g;
12915 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12916 ;;
12917 *)
12918 # `set' quotes correctly as required by POSIX, so do not add quotes.
12919 sed -n \
12920 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12921 ;;
12922 esac;
12923} |
12924 sed '
12925 t clear
12926 : clear
12927 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12928 t end
12929 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12930 : end' >>confcache
12931if diff $cache_file confcache >/dev/null 2>&1; then :; else
252b5132 12932 if test -w $cache_file; then
979273e3
NN
12933 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12934 cat confcache >$cache_file
252b5132
RH
12935 else
12936 echo "not updating unwritable cache $cache_file"
12937 fi
12938fi
12939rm -f confcache
12940
252b5132
RH
12941test "x$prefix" = xNONE && prefix=$ac_default_prefix
12942# Let make expand exec_prefix.
12943test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12944
979273e3
NN
12945# VPATH may cause trouble with some makes, so we remove $(srcdir),
12946# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12947# trailing colons and then remove the whole line if VPATH becomes empty
12948# (actually we leave an empty line to preserve line numbers).
252b5132 12949if test "x$srcdir" = x.; then
979273e3
NN
12950 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12951s/:*\$(srcdir):*/:/;
12952s/:*\${srcdir}:*/:/;
12953s/:*@srcdir@:*/:/;
12954s/^\([^=]*=[ ]*\):*/\1/;
12955s/:*$//;
12956s/^[^=]*=[ ]*$//;
12957}'
252b5132
RH
12958fi
12959
252b5132
RH
12960DEFS=-DHAVE_CONFIG_H
12961
979273e3
NN
12962ac_libobjs=
12963ac_ltlibobjs=
12964for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12965 # 1. Remove the extension, and $U if already installed.
12966 ac_i=`echo "$ac_i" |
12967 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12968 # 2. Add them.
12969 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12970 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12971done
12972LIBOBJS=$ac_libobjs
252b5132 12973
979273e3
NN
12974LTLIBOBJS=$ac_ltlibobjs
12975
12976
8ae85421
AM
12977if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12978 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12979Usually this means the macro was only invoked conditionally." >&5
12980echo "$as_me: error: conditional \"AMDEP\" was never defined.
12981Usually this means the macro was only invoked conditionally." >&2;}
12982 { (exit 1); exit 1; }; }
12983fi
12984if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12985 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12986Usually this means the macro was only invoked conditionally." >&5
12987echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12988Usually this means the macro was only invoked conditionally." >&2;}
12989 { (exit 1); exit 1; }; }
12990fi
12991if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12992 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
12993Usually this means the macro was only invoked conditionally." >&5
12994echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
12995Usually this means the macro was only invoked conditionally." >&2;}
12996 { (exit 1); exit 1; }; }
12997fi
12998if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
12999 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
13000Usually this means the macro was only invoked conditionally." >&5
13001echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
13002Usually this means the macro was only invoked conditionally." >&2;}
13003 { (exit 1); exit 1; }; }
13004fi
13005if test -z "${CGEN_MAINT_TRUE}" && test -z "${CGEN_MAINT_FALSE}"; then
13006 { { echo "$as_me:$LINENO: error: conditional \"CGEN_MAINT\" was never defined.
13007Usually this means the macro was only invoked conditionally." >&5
13008echo "$as_me: error: conditional \"CGEN_MAINT\" was never defined.
13009Usually this means the macro was only invoked conditionally." >&2;}
13010 { (exit 1); exit 1; }; }
13011fi
979273e3
NN
13012
13013: ${CONFIG_STATUS=./config.status}
13014ac_clean_files_save=$ac_clean_files
13015ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13016{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13017echo "$as_me: creating $CONFIG_STATUS" >&6;}
13018cat >$CONFIG_STATUS <<_ACEOF
13019#! $SHELL
13020# Generated by $as_me.
252b5132 13021# Run this file to recreate the current configuration.
252b5132 13022# Compiler output produced by configure, useful for debugging
979273e3 13023# configure, is in config.log if it exists.
252b5132 13024
979273e3
NN
13025debug=false
13026ac_cs_recheck=false
13027ac_cs_silent=false
13028SHELL=\${CONFIG_SHELL-$SHELL}
13029_ACEOF
13030
13031cat >>$CONFIG_STATUS <<\_ACEOF
13032## --------------------- ##
13033## M4sh Initialization. ##
13034## --------------------- ##
13035
13036# Be Bourne compatible
13037if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13038 emulate sh
13039 NULLCMD=:
13040 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13041 # is contrary to our usage. Disable this feature.
13042 alias -g '${1+"$@"}'='"$@"'
13043elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13044 set -o posix
13045fi
13046DUALCASE=1; export DUALCASE # for MKS sh
13047
13048# Support unset when possible.
13049if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13050 as_unset=unset
13051else
13052 as_unset=false
13053fi
13054
13055
13056# Work around bugs in pre-3.0 UWIN ksh.
13057$as_unset ENV MAIL MAILPATH
13058PS1='$ '
13059PS2='> '
13060PS4='+ '
13061
13062# NLS nuisances.
13063for as_var in \
13064 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13065 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13066 LC_TELEPHONE LC_TIME
252b5132 13067do
979273e3
NN
13068 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13069 eval $as_var=C; export $as_var
13070 else
13071 $as_unset $as_var
13072 fi
252b5132
RH
13073done
13074
979273e3
NN
13075# Required to use basename.
13076if expr a : '\(a\)' >/dev/null 2>&1; then
13077 as_expr=expr
13078else
13079 as_expr=false
13080fi
13081
13082if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
13083 as_basename=basename
13084else
13085 as_basename=false
13086fi
252b5132 13087
252b5132 13088
979273e3
NN
13089# Name of the executable.
13090as_me=`$as_basename "$0" ||
13091$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13092 X"$0" : 'X\(//\)$' \| \
13093 X"$0" : 'X\(/\)$' \| \
13094 . : '\(.\)' 2>/dev/null ||
13095echo X/"$0" |
13096 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13097 /^X\/\(\/\/\)$/{ s//\1/; q; }
13098 /^X\/\(\/\).*/{ s//\1/; q; }
13099 s/.*/./; q'`
252b5132 13100
252b5132 13101
979273e3
NN
13102# PATH needs CR, and LINENO needs CR and PATH.
13103# Avoid depending upon Character Ranges.
13104as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13105as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13106as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13107as_cr_digits='0123456789'
13108as_cr_alnum=$as_cr_Letters$as_cr_digits
13109
13110# The user is always right.
13111if test "${PATH_SEPARATOR+set}" != set; then
13112 echo "#! /bin/sh" >conf$$.sh
13113 echo "exit 0" >>conf$$.sh
13114 chmod +x conf$$.sh
13115 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13116 PATH_SEPARATOR=';'
252b5132 13117 else
979273e3
NN
13118 PATH_SEPARATOR=:
13119 fi
13120 rm -f conf$$.sh
13121fi
13122
13123
13124 as_lineno_1=$LINENO
13125 as_lineno_2=$LINENO
13126 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13127 test "x$as_lineno_1" != "x$as_lineno_2" &&
13128 test "x$as_lineno_3" = "x$as_lineno_2" || {
13129 # Find who we are. Look in the path if we contain no path at all
13130 # relative or not.
13131 case $0 in
13132 *[\\/]* ) as_myself=$0 ;;
13133 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13134for as_dir in $PATH
13135do
13136 IFS=$as_save_IFS
13137 test -z "$as_dir" && as_dir=.
13138 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13139done
13140
13141 ;;
13142 esac
13143 # We did not find ourselves, most probably we were run as `sh COMMAND'
13144 # in which case we are not to be found in the path.
13145 if test "x$as_myself" = x; then
13146 as_myself=$0
13147 fi
13148 if test ! -f "$as_myself"; then
13149 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13150echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13151 { (exit 1); exit 1; }; }
252b5132 13152 fi
979273e3
NN
13153 case $CONFIG_SHELL in
13154 '')
13155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13156for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13157do
13158 IFS=$as_save_IFS
13159 test -z "$as_dir" && as_dir=.
13160 for as_base in sh bash ksh sh5; do
13161 case $as_dir in
13162 /*)
13163 if ("$as_dir/$as_base" -c '
13164 as_lineno_1=$LINENO
13165 as_lineno_2=$LINENO
13166 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13167 test "x$as_lineno_1" != "x$as_lineno_2" &&
13168 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
13169 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
13170 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
13171 CONFIG_SHELL=$as_dir/$as_base
13172 export CONFIG_SHELL
13173 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
13174 fi;;
13175 esac
13176 done
13177done
13178;;
13179 esac
13180
13181 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13182 # uniformly replaced by the line number. The first 'sed' inserts a
13183 # line-number line before each line; the second 'sed' does the real
13184 # work. The second script uses 'N' to pair each line-number line
13185 # with the numbered line, and appends trailing '-' during
13186 # substitution so that $LINENO is not a special case at line end.
13187 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13188 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
13189 sed '=' <$as_myself |
13190 sed '
13191 N
13192 s,$,-,
13193 : loop
13194 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
13195 t loop
13196 s,-$,,
13197 s,^['$as_cr_digits']*\n,,
13198 ' >$as_me.lineno &&
13199 chmod +x $as_me.lineno ||
13200 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13201echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
13202 { (exit 1); exit 1; }; }
13203
13204 # Don't try to exec as it changes $[0], causing all sort of problems
13205 # (the dirname of $[0] is not the place where we might find the
13206 # original and so on. Autoconf is especially sensible to this).
13207 . ./$as_me.lineno
13208 # Exit status is that of the last command.
13209 exit
13210}
13211
13212
13213case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13214 *c*,-n*) ECHO_N= ECHO_C='
13215' ECHO_T=' ' ;;
13216 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
13217 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
13218esac
13219
13220if expr a : '\(a\)' >/dev/null 2>&1; then
13221 as_expr=expr
13222else
13223 as_expr=false
13224fi
13225
13226rm -f conf$$ conf$$.exe conf$$.file
13227echo >conf$$.file
13228if ln -s conf$$.file conf$$ 2>/dev/null; then
13229 # We could just check for DJGPP; but this test a) works b) is more generic
13230 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13231 if test -f conf$$.exe; then
13232 # Don't use ln at all; we don't have any links
13233 as_ln_s='cp -p'
252b5132 13234 else
979273e3 13235 as_ln_s='ln -s'
252b5132 13236 fi
979273e3
NN
13237elif ln conf$$.file conf$$ 2>/dev/null; then
13238 as_ln_s=ln
13239else
13240 as_ln_s='cp -p'
13241fi
13242rm -f conf$$ conf$$.exe conf$$.file
13243
13244if mkdir -p . 2>/dev/null; then
13245 as_mkdir_p=:
13246else
13247 test -d ./-p && rmdir ./-p
13248 as_mkdir_p=false
13249fi
13250
13251as_executable_p="test -f"
13252
13253# Sed expression to map a string onto a valid CPP name.
13254as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13255
13256# Sed expression to map a string onto a valid variable name.
13257as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13258
13259
13260# IFS
13261# We need space, tab and new line, in precisely that order.
13262as_nl='
13263'
13264IFS=" $as_nl"
13265
13266# CDPATH.
13267$as_unset CDPATH
13268
13269exec 6>&1
13270
13271# Open the log real soon, to keep \$[0] and so on meaningful, and to
13272# report actual input values of CONFIG_FILES etc. instead of their
13273# values after options handling. Logging --version etc. is OK.
13274exec 5>>config.log
13275{
13276 echo
13277 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13278## Running $as_me. ##
13279_ASBOX
13280} >&5
13281cat >&5 <<_CSEOF
13282
13283This file was extended by $as_me, which was
13284generated by GNU Autoconf 2.59. Invocation command line was
13285
13286 CONFIG_FILES = $CONFIG_FILES
13287 CONFIG_HEADERS = $CONFIG_HEADERS
13288 CONFIG_LINKS = $CONFIG_LINKS
13289 CONFIG_COMMANDS = $CONFIG_COMMANDS
13290 $ $0 $@
13291
13292_CSEOF
13293echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
13294echo >&5
13295_ACEOF
13296
13297# Files that config.status was made for.
13298if test -n "$ac_config_files"; then
13299 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
13300fi
13301
13302if test -n "$ac_config_headers"; then
13303 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13304fi
13305
13306if test -n "$ac_config_links"; then
13307 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13308fi
13309
13310if test -n "$ac_config_commands"; then
13311 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13312fi
13313
13314cat >>$CONFIG_STATUS <<\_ACEOF
13315
13316ac_cs_usage="\
13317\`$as_me' instantiates files from templates according to the
13318current configuration.
13319
13320Usage: $0 [OPTIONS] [FILE]...
13321
13322 -h, --help print this help, then exit
13323 -V, --version print version number, then exit
13324 -q, --quiet do not print progress messages
13325 -d, --debug don't remove temporary files
13326 --recheck update $as_me by reconfiguring in the same conditions
13327 --file=FILE[:TEMPLATE]
13328 instantiate the configuration file FILE
13329 --header=FILE[:TEMPLATE]
13330 instantiate the configuration header FILE
13331
13332Configuration files:
13333$config_files
13334
13335Configuration headers:
13336$config_headers
13337
13338Configuration commands:
13339$config_commands
13340
13341Report bugs to <bug-autoconf@gnu.org>."
13342_ACEOF
13343
13344cat >>$CONFIG_STATUS <<_ACEOF
13345ac_cs_version="\\
13346config.status
13347configured by $0, generated by GNU Autoconf 2.59,
13348 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13349
13350Copyright (C) 2003 Free Software Foundation, Inc.
13351This config.status script is free software; the Free Software Foundation
13352gives unlimited permission to copy, distribute and modify it."
13353srcdir=$srcdir
13354INSTALL="$INSTALL"
13355_ACEOF
13356
13357cat >>$CONFIG_STATUS <<\_ACEOF
13358# If no file are specified by the user, then we need to provide default
13359# value. By we need to know if files were specified by the user.
13360ac_need_defaults=:
13361while test $# != 0
13362do
13363 case $1 in
13364 --*=*)
13365 ac_option=`expr "x$1" : 'x\([^=]*\)='`
13366 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13367 ac_shift=:
13368 ;;
13369 -*)
13370 ac_option=$1
13371 ac_optarg=$2
13372 ac_shift=shift
13373 ;;
13374 *) # This is not an option, so the user has probably given explicit
13375 # arguments.
13376 ac_option=$1
13377 ac_need_defaults=false;;
13378 esac
13379
13380 case $ac_option in
13381 # Handling of the options.
13382_ACEOF
13383cat >>$CONFIG_STATUS <<\_ACEOF
13384 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13385 ac_cs_recheck=: ;;
13386 --version | --vers* | -V )
13387 echo "$ac_cs_version"; exit 0 ;;
13388 --he | --h)
13389 # Conflict between --help and --header
13390 { { echo "$as_me:$LINENO: error: ambiguous option: $1
13391Try \`$0 --help' for more information." >&5
13392echo "$as_me: error: ambiguous option: $1
13393Try \`$0 --help' for more information." >&2;}
13394 { (exit 1); exit 1; }; };;
13395 --help | --hel | -h )
13396 echo "$ac_cs_usage"; exit 0 ;;
13397 --debug | --d* | -d )
13398 debug=: ;;
13399 --file | --fil | --fi | --f )
13400 $ac_shift
13401 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13402 ac_need_defaults=false;;
13403 --header | --heade | --head | --hea )
13404 $ac_shift
13405 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13406 ac_need_defaults=false;;
13407 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13408 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13409 ac_cs_silent=: ;;
13410
13411 # This is an error.
13412 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13413Try \`$0 --help' for more information." >&5
13414echo "$as_me: error: unrecognized option: $1
13415Try \`$0 --help' for more information." >&2;}
13416 { (exit 1); exit 1; }; } ;;
13417
13418 *) ac_config_targets="$ac_config_targets $1" ;;
13419
13420 esac
13421 shift
252b5132 13422done
979273e3
NN
13423
13424ac_configure_extra_args=
13425
13426if $ac_cs_silent; then
13427 exec 6>/dev/null
13428 ac_configure_extra_args="$ac_configure_extra_args --silent"
252b5132 13429fi
252b5132 13430
979273e3
NN
13431_ACEOF
13432cat >>$CONFIG_STATUS <<_ACEOF
13433if \$ac_cs_recheck; then
13434 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13435 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13436fi
252b5132 13437
979273e3
NN
13438_ACEOF
13439
13440cat >>$CONFIG_STATUS <<_ACEOF
13441#
13442# INIT-COMMANDS section.
13443#
13444
8ae85421 13445AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
13446
13447
13448# The HP-UX ksh and POSIX shell print the target directory to stdout
13449# if CDPATH is set.
13450(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13451
13452sed_quote_subst='$sed_quote_subst'
13453double_quote_subst='$double_quote_subst'
13454delay_variable_subst='$delay_variable_subst'
13455enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13456macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13457macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13458enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13459pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13460enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13461host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13462host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13463host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13464build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13465build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13466build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13467SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13468Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13469GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13470EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13471FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13472LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13473NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13474LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13475max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13476ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13477exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13478lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13479lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13480lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13481reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13482reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
1927a18f 13483OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
d7040cdb
SE
13484deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13485file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13486AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13487AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13488STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13489RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13490old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13491old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13492old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13493CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13494CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13495compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13496GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13497lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13498lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13499lt_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"`'
1927a18f 13500lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
d7040cdb
SE
13501objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13502SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13503ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13504MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13505lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13506lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13507lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13508lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13509lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13510need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
1927a18f
L
13511DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13512NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13513LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13514OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13515OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
d7040cdb
SE
13516libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13517shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13518extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13519archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13520enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13521export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13522whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13523compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13524old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13525old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13526archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13527archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13528module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13529module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13530with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13531allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13532no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13533hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13534hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13535hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13536hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13537hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13538hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13539hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13540hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13541inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13542link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13543fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13544always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13545export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13546exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13547include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13548prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13549file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13550variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13551need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13552need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13553version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13554runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13555shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13556shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13557libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13558library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13559soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13560postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13561postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13562finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13563finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13564hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13565sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13566sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13567hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13568enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13569enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13570enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13571old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13572striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13573
13574LTCC='$LTCC'
13575LTCFLAGS='$LTCFLAGS'
13576compiler='$compiler_DEFAULT'
13577
13578# Quote evaled strings.
13579for var in SED \
13580GREP \
13581EGREP \
13582FGREP \
13583LD \
13584NM \
13585LN_S \
13586lt_SP2NL \
13587lt_NL2SP \
13588reload_flag \
1927a18f 13589OBJDUMP \
d7040cdb
SE
13590deplibs_check_method \
13591file_magic_cmd \
13592AR \
13593AR_FLAGS \
13594STRIP \
13595RANLIB \
13596CC \
13597CFLAGS \
13598compiler \
13599lt_cv_sys_global_symbol_pipe \
13600lt_cv_sys_global_symbol_to_cdecl \
13601lt_cv_sys_global_symbol_to_c_name_address \
1927a18f 13602lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
d7040cdb
SE
13603SHELL \
13604ECHO \
13605lt_prog_compiler_no_builtin_flag \
13606lt_prog_compiler_wl \
13607lt_prog_compiler_pic \
13608lt_prog_compiler_static \
13609lt_cv_prog_compiler_c_o \
13610need_locks \
1927a18f
L
13611DSYMUTIL \
13612NMEDIT \
13613LIPO \
13614OTOOL \
13615OTOOL64 \
d7040cdb
SE
13616shrext_cmds \
13617export_dynamic_flag_spec \
13618whole_archive_flag_spec \
13619compiler_needs_object \
13620with_gnu_ld \
13621allow_undefined_flag \
13622no_undefined_flag \
13623hardcode_libdir_flag_spec \
13624hardcode_libdir_flag_spec_ld \
13625hardcode_libdir_separator \
13626fix_srcfile_path \
13627exclude_expsyms \
13628include_expsyms \
13629file_list_spec \
13630variables_saved_for_relink \
13631libname_spec \
13632library_names_spec \
13633soname_spec \
13634finish_eval \
13635old_striplib \
13636striplib; do
13637 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13638 *[\\\\\\\`\\"\\\$]*)
13639 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13640 ;;
13641 *)
13642 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13643 ;;
13644 esac
13645done
13646
13647# Double-quote double-evaled strings.
13648for var in reload_cmds \
13649old_postinstall_cmds \
13650old_postuninstall_cmds \
13651old_archive_cmds \
13652extract_expsyms_cmds \
13653old_archive_from_new_cmds \
13654old_archive_from_expsyms_cmds \
13655archive_cmds \
13656archive_expsym_cmds \
13657module_cmds \
13658module_expsym_cmds \
13659export_symbols_cmds \
13660prelink_cmds \
13661postinstall_cmds \
13662postuninstall_cmds \
13663finish_cmds \
13664sys_lib_search_path_spec \
13665sys_lib_dlsearch_path_spec; do
13666 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13667 *[\\\\\\\`\\"\\\$]*)
13668 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13669 ;;
13670 *)
13671 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13672 ;;
13673 esac
13674done
13675
13676# Fix-up fallback echo if it was mangled by the above quoting rules.
13677case \$lt_ECHO in
13678*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13679 ;;
13680esac
13681
13682ac_aux_dir='$ac_aux_dir'
13683xsi_shell='$xsi_shell'
13684lt_shell_append='$lt_shell_append'
13685
13686# See if we are running on zsh, and set the options which allow our
13687# commands through without removal of \ escapes INIT.
13688if test -n "\${ZSH_VERSION+set}" ; then
13689 setopt NO_GLOB_SUBST
13690fi
13691
13692
13693 PACKAGE='$PACKAGE'
13694 VERSION='$VERSION'
13695 TIMESTAMP='$TIMESTAMP'
13696 RM='$RM'
13697 ofile='$ofile'
13698
13699
13700
20e95c23
DJ
13701# Capture the value of obsolete ALL_LINGUAS because we need it to compute
13702 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
13703 # from automake.
13704 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
13705 # Capture the value of LINGUAS because we need it to compute CATALOGS.
13706 LINGUAS="${LINGUAS-%UNSET%}"
979273e3
NN
13707
13708
13709_ACEOF
13710
13711
13712
13713cat >>$CONFIG_STATUS <<\_ACEOF
13714for ac_config_target in $ac_config_targets
13715do
13716 case "$ac_config_target" in
13717 # Handling of arguments.
13718 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13719 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
8ae85421 13720 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
d7040cdb 13721 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20e95c23 13722 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
979273e3
NN
13723 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
13724 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13725echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13726 { (exit 1); exit 1; }; };;
252b5132 13727 esac
979273e3 13728done
252b5132 13729
979273e3
NN
13730# If the user did not use the arguments to specify the items to instantiate,
13731# then the envvar interface is used. Set only those that are not.
13732# We use the long form for the default assignment because of an extremely
13733# bizarre bug on SunOS 4.1.3.
13734if $ac_need_defaults; then
13735 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13736 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13737 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13738fi
13739
13740# Have a temporary directory for convenience. Make it in the build tree
13741# simply because there is no reason to put it here, and in addition,
13742# creating and moving files from /tmp can sometimes cause problems.
13743# Create a temporary directory, and hook for its removal unless debugging.
13744$debug ||
13745{
13746 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13747 trap '{ (exit 1); exit 1; }' 1 2 13 15
13748}
252b5132 13749
979273e3
NN
13750# Create a (secure) tmp directory for tmp files.
13751
13752{
13753 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13754 test -n "$tmp" && test -d "$tmp"
13755} ||
13756{
13757 tmp=./confstat$$-$RANDOM
13758 (umask 077 && mkdir $tmp)
13759} ||
13760{
13761 echo "$me: cannot create a temporary directory in ." >&2
13762 { (exit 1); exit 1; }
13763}
13764
13765_ACEOF
13766
13767cat >>$CONFIG_STATUS <<_ACEOF
13768
13769#
13770# CONFIG_FILES section.
13771#
13772
13773# No need to generate the scripts if there are no CONFIG_FILES.
13774# This happens for instance when ./config.status config.h
13775if test -n "\$CONFIG_FILES"; then
13776 # Protect against being on the right side of a sed subst in config.status.
13777 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13778 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13779s,@SHELL@,$SHELL,;t t
13780s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13781s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13782s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13783s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13784s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13785s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13786s,@exec_prefix@,$exec_prefix,;t t
13787s,@prefix@,$prefix,;t t
13788s,@program_transform_name@,$program_transform_name,;t t
13789s,@bindir@,$bindir,;t t
13790s,@sbindir@,$sbindir,;t t
13791s,@libexecdir@,$libexecdir,;t t
13792s,@datadir@,$datadir,;t t
13793s,@sysconfdir@,$sysconfdir,;t t
13794s,@sharedstatedir@,$sharedstatedir,;t t
13795s,@localstatedir@,$localstatedir,;t t
13796s,@libdir@,$libdir,;t t
13797s,@includedir@,$includedir,;t t
13798s,@oldincludedir@,$oldincludedir,;t t
13799s,@infodir@,$infodir,;t t
13800s,@mandir@,$mandir,;t t
13801s,@build_alias@,$build_alias,;t t
13802s,@host_alias@,$host_alias,;t t
13803s,@target_alias@,$target_alias,;t t
13804s,@DEFS@,$DEFS,;t t
13805s,@ECHO_C@,$ECHO_C,;t t
13806s,@ECHO_N@,$ECHO_N,;t t
13807s,@ECHO_T@,$ECHO_T,;t t
13808s,@LIBS@,$LIBS,;t t
13809s,@build@,$build,;t t
13810s,@build_cpu@,$build_cpu,;t t
13811s,@build_vendor@,$build_vendor,;t t
13812s,@build_os@,$build_os,;t t
13813s,@host@,$host,;t t
13814s,@host_cpu@,$host_cpu,;t t
13815s,@host_vendor@,$host_vendor,;t t
13816s,@host_os@,$host_os,;t t
13817s,@target@,$target,;t t
13818s,@target_cpu@,$target_cpu,;t t
13819s,@target_vendor@,$target_vendor,;t t
13820s,@target_os@,$target_os,;t t
13821s,@CC@,$CC,;t t
13822s,@CFLAGS@,$CFLAGS,;t t
13823s,@LDFLAGS@,$LDFLAGS,;t t
13824s,@CPPFLAGS@,$CPPFLAGS,;t t
13825s,@ac_ct_CC@,$ac_ct_CC,;t t
13826s,@EXEEXT@,$EXEEXT,;t t
13827s,@OBJEXT@,$OBJEXT,;t t
13828s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13829s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13830s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8ae85421 13831s,@CYGPATH_W@,$CYGPATH_W,;t t
979273e3
NN
13832s,@PACKAGE@,$PACKAGE,;t t
13833s,@VERSION@,$VERSION,;t t
13834s,@ACLOCAL@,$ACLOCAL,;t t
13835s,@AUTOCONF@,$AUTOCONF,;t t
13836s,@AUTOMAKE@,$AUTOMAKE,;t t
13837s,@AUTOHEADER@,$AUTOHEADER,;t t
13838s,@MAKEINFO@,$MAKEINFO,;t t
8ae85421
AM
13839s,@install_sh@,$install_sh,;t t
13840s,@STRIP@,$STRIP,;t t
13841s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
13842s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
13843s,@mkdir_p@,$mkdir_p,;t t
13844s,@AWK@,$AWK,;t t
979273e3 13845s,@SET_MAKE@,$SET_MAKE,;t t
8ae85421
AM
13846s,@am__leading_dot@,$am__leading_dot,;t t
13847s,@AMTAR@,$AMTAR,;t t
13848s,@am__tar@,$am__tar,;t t
13849s,@am__untar@,$am__untar,;t t
13850s,@DEPDIR@,$DEPDIR,;t t
13851s,@am__include@,$am__include,;t t
13852s,@am__quote@,$am__quote,;t t
13853s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
13854s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
13855s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
13856s,@CCDEPMODE@,$CCDEPMODE,;t t
13857s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
13858s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
7357c5b6
AM
13859s,@CPP@,$CPP,;t t
13860s,@EGREP@,$EGREP,;t t
979273e3
NN
13861s,@AR@,$AR,;t t
13862s,@ac_ct_AR@,$ac_ct_AR,;t t
13863s,@RANLIB@,$RANLIB,;t t
13864s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
979273e3 13865s,@LIBTOOL@,$LIBTOOL,;t t
d7040cdb 13866s,@SED@,$SED,;t t
d7040cdb
SE
13867s,@FGREP@,$FGREP,;t t
13868s,@GREP@,$GREP,;t t
13869s,@LD@,$LD,;t t
13870s,@DUMPBIN@,$DUMPBIN,;t t
13871s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
13872s,@NM@,$NM,;t t
13873s,@LN_S@,$LN_S,;t t
1927a18f
L
13874s,@OBJDUMP@,$OBJDUMP,;t t
13875s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
d7040cdb 13876s,@lt_ECHO@,$lt_ECHO,;t t
1927a18f
L
13877s,@DSYMUTIL@,$DSYMUTIL,;t t
13878s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
13879s,@NMEDIT@,$NMEDIT,;t t
13880s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
13881s,@LIPO@,$LIPO,;t t
13882s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
13883s,@OTOOL@,$OTOOL,;t t
13884s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
13885s,@OTOOL64@,$OTOOL64,;t t
13886s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
979273e3 13887s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
9e9b66a9 13888s,@NO_WERROR@,$NO_WERROR,;t t
979273e3
NN
13889s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13890s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13891s,@MAINT@,$MAINT,;t t
13892s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
13893s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
24443139
AS
13894s,@host_noncanonical@,$host_noncanonical,;t t
13895s,@target_noncanonical@,$target_noncanonical,;t t
979273e3
NN
13896s,@bfdlibdir@,$bfdlibdir,;t t
13897s,@bfdincludedir@,$bfdincludedir,;t t
979273e3 13898s,@USE_NLS@,$USE_NLS,;t t
20e95c23
DJ
13899s,@LIBINTL@,$LIBINTL,;t t
13900s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
13901s,@INCINTL@,$INCINTL,;t t
979273e3 13902s,@XGETTEXT@,$XGETTEXT,;t t
20e95c23
DJ
13903s,@GMSGFMT@,$GMSGFMT,;t t
13904s,@POSUB@,$POSUB,;t t
979273e3 13905s,@CATALOGS@,$CATALOGS,;t t
979273e3 13906s,@DATADIRNAME@,$DATADIRNAME,;t t
979273e3 13907s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20e95c23
DJ
13908s,@GENCAT@,$GENCAT,;t t
13909s,@CATOBJEXT@,$CATOBJEXT,;t t
979273e3 13910s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
20e95c23
DJ
13911s,@MSGFMT@,$MSGFMT,;t t
13912s,@MSGMERGE@,$MSGMERGE,;t t
979273e3
NN
13913s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
13914s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
13915s,@HDEFINES@,$HDEFINES,;t t
13916s,@CGEN_MAINT_TRUE@,$CGEN_MAINT_TRUE,;t t
13917s,@CGEN_MAINT_FALSE@,$CGEN_MAINT_FALSE,;t t
13918s,@cgendir@,$cgendir,;t t
51dec227 13919s,@LIBM@,$LIBM,;t t
45d42143
NC
13920s,@SHARED_LDFLAGS@,$SHARED_LDFLAGS,;t t
13921s,@SHARED_LIBADD@,$SHARED_LIBADD,;t t
13922s,@SHARED_DEPENDENCIES@,$SHARED_DEPENDENCIES,;t t
979273e3
NN
13923s,@archdefs@,$archdefs,;t t
13924s,@BFD_MACHINES@,$BFD_MACHINES,;t t
13925s,@LIBOBJS@,$LIBOBJS,;t t
13926s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13927CEOF
13928
13929_ACEOF
13930
13931 cat >>$CONFIG_STATUS <<\_ACEOF
13932 # Split the substitutions into bite-sized pieces for seds with
13933 # small command number limits, like on Digital OSF/1 and HP-UX.
13934 ac_max_sed_lines=48
13935 ac_sed_frag=1 # Number of current file.
13936 ac_beg=1 # First line for current file.
13937 ac_end=$ac_max_sed_lines # Line after last line for current file.
13938 ac_more_lines=:
13939 ac_sed_cmds=
13940 while $ac_more_lines; do
13941 if test $ac_beg -gt 1; then
13942 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13943 else
13944 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13945 fi
13946 if test ! -s $tmp/subs.frag; then
13947 ac_more_lines=false
13948 else
13949 # The purpose of the label and of the branching condition is to
13950 # speed up the sed processing (if there are no `@' at all, there
13951 # is no need to browse any of the substitutions).
13952 # These are the two extra sed commands mentioned above.
13953 (echo ':t
13954 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13955 if test -z "$ac_sed_cmds"; then
13956 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13957 else
13958 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13959 fi
13960 ac_sed_frag=`expr $ac_sed_frag + 1`
13961 ac_beg=$ac_end
13962 ac_end=`expr $ac_end + $ac_max_sed_lines`
13963 fi
13964 done
13965 if test -z "$ac_sed_cmds"; then
13966 ac_sed_cmds=cat
252b5132 13967 fi
979273e3 13968fi # test -n "$CONFIG_FILES"
252b5132 13969
979273e3
NN
13970_ACEOF
13971cat >>$CONFIG_STATUS <<\_ACEOF
13972for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13973 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13974 case $ac_file in
13975 - | *:- | *:-:* ) # input from stdin
13976 cat >$tmp/stdin
13977 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13978 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13979 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13980 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13981 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
13982 esac
13983
979273e3
NN
13984 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13985 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13986$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13987 X"$ac_file" : 'X\(//\)[^/]' \| \
13988 X"$ac_file" : 'X\(//\)$' \| \
13989 X"$ac_file" : 'X\(/\)' \| \
13990 . : '\(.\)' 2>/dev/null ||
13991echo X"$ac_file" |
13992 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13993 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13994 /^X\(\/\/\)$/{ s//\1/; q; }
13995 /^X\(\/\).*/{ s//\1/; q; }
13996 s/.*/./; q'`
13997 { if $as_mkdir_p; then
13998 mkdir -p "$ac_dir"
13999 else
14000 as_dir="$ac_dir"
14001 as_dirs=
14002 while test ! -d "$as_dir"; do
14003 as_dirs="$as_dir $as_dirs"
14004 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14005$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14006 X"$as_dir" : 'X\(//\)[^/]' \| \
14007 X"$as_dir" : 'X\(//\)$' \| \
14008 X"$as_dir" : 'X\(/\)' \| \
14009 . : '\(.\)' 2>/dev/null ||
14010echo X"$as_dir" |
14011 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14012 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14013 /^X\(\/\/\)$/{ s//\1/; q; }
14014 /^X\(\/\).*/{ s//\1/; q; }
14015 s/.*/./; q'`
14016 done
14017 test ! -n "$as_dirs" || mkdir $as_dirs
14018 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14019echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14020 { (exit 1); exit 1; }; }; }
14021
14022 ac_builddir=.
14023
14024if test "$ac_dir" != .; then
14025 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14026 # A "../" for each directory in $ac_dir_suffix.
14027 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14028else
14029 ac_dir_suffix= ac_top_builddir=
14030fi
14031
14032case $srcdir in
14033 .) # No --srcdir option. We are building in place.
14034 ac_srcdir=.
14035 if test -z "$ac_top_builddir"; then
14036 ac_top_srcdir=.
14037 else
14038 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14039 fi ;;
14040 [\\/]* | ?:[\\/]* ) # Absolute path.
14041 ac_srcdir=$srcdir$ac_dir_suffix;
14042 ac_top_srcdir=$srcdir ;;
14043 *) # Relative path.
14044 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14045 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14046esac
14047
14048# Do not use `cd foo && pwd` to compute absolute paths, because
14049# the directories may not exist.
14050case `pwd` in
14051.) ac_abs_builddir="$ac_dir";;
14052*)
14053 case "$ac_dir" in
14054 .) ac_abs_builddir=`pwd`;;
14055 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14056 *) ac_abs_builddir=`pwd`/"$ac_dir";;
14057 esac;;
14058esac
14059case $ac_abs_builddir in
14060.) ac_abs_top_builddir=${ac_top_builddir}.;;
14061*)
14062 case ${ac_top_builddir}. in
14063 .) ac_abs_top_builddir=$ac_abs_builddir;;
14064 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14065 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14066 esac;;
14067esac
14068case $ac_abs_builddir in
14069.) ac_abs_srcdir=$ac_srcdir;;
14070*)
14071 case $ac_srcdir in
14072 .) ac_abs_srcdir=$ac_abs_builddir;;
14073 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14074 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14075 esac;;
14076esac
14077case $ac_abs_builddir in
14078.) ac_abs_top_srcdir=$ac_top_srcdir;;
14079*)
14080 case $ac_top_srcdir in
14081 .) ac_abs_top_srcdir=$ac_abs_builddir;;
14082 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14083 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14084 esac;;
14085esac
252b5132 14086
979273e3
NN
14087
14088 case $INSTALL in
14089 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14090 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
252b5132
RH
14091 esac
14092
8ae85421
AM
14093 if test x"$ac_file" != x-; then
14094 { echo "$as_me:$LINENO: creating $ac_file" >&5
14095echo "$as_me: creating $ac_file" >&6;}
14096 rm -f "$ac_file"
14097 fi
979273e3
NN
14098 # Let's still pretend it is `configure' which instantiates (i.e., don't
14099 # use $as_me), people would be surprised to read:
14100 # /* config.h. Generated by config.status. */
14101 if test x"$ac_file" = x-; then
14102 configure_input=
14103 else
14104 configure_input="$ac_file. "
14105 fi
14106 configure_input=$configure_input"Generated from `echo $ac_file_in |
14107 sed 's,.*/,,'` by configure."
14108
14109 # First look for the input files in the build tree, otherwise in the
14110 # src tree.
14111 ac_file_inputs=`IFS=:
14112 for f in $ac_file_in; do
14113 case $f in
14114 -) echo $tmp/stdin ;;
14115 [\\/$]*)
14116 # Absolute (can't be DOS-style, as IFS=:)
14117 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14118echo "$as_me: error: cannot find input file: $f" >&2;}
14119 { (exit 1); exit 1; }; }
14120 echo "$f";;
14121 *) # Relative
14122 if test -f "$f"; then
14123 # Build tree
14124 echo "$f"
14125 elif test -f "$srcdir/$f"; then
14126 # Source tree
14127 echo "$srcdir/$f"
14128 else
14129 # /dev/null tree
14130 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14131echo "$as_me: error: cannot find input file: $f" >&2;}
14132 { (exit 1); exit 1; }; }
14133 fi;;
14134 esac
14135 done` || { (exit 1); exit 1; }
979273e3
NN
14136_ACEOF
14137cat >>$CONFIG_STATUS <<_ACEOF
14138 sed "$ac_vpsub
14139$extrasub
14140_ACEOF
14141cat >>$CONFIG_STATUS <<\_ACEOF
14142:t
14143/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14144s,@configure_input@,$configure_input,;t t
14145s,@srcdir@,$ac_srcdir,;t t
14146s,@abs_srcdir@,$ac_abs_srcdir,;t t
14147s,@top_srcdir@,$ac_top_srcdir,;t t
14148s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
14149s,@builddir@,$ac_builddir,;t t
14150s,@abs_builddir@,$ac_abs_builddir,;t t
14151s,@top_builddir@,$ac_top_builddir,;t t
14152s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
14153s,@INSTALL@,$ac_INSTALL,;t t
14154" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
14155 rm -f $tmp/stdin
14156 if test x"$ac_file" != x-; then
14157 mv $tmp/out $ac_file
14158 else
14159 cat $tmp/out
14160 rm -f $tmp/out
14161 fi
14162
14163done
14164_ACEOF
14165cat >>$CONFIG_STATUS <<\_ACEOF
14166
14167#
14168# CONFIG_HEADER section.
14169#
252b5132
RH
14170
14171# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14172# NAME is the cpp macro being defined and VALUE is the value it is being given.
14173#
14174# ac_d sets the value in "#define NAME VALUE" lines.
979273e3
NN
14175ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14176ac_dB='[ ].*$,\1#\2'
14177ac_dC=' '
14178ac_dD=',;t'
14179# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14180ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14181ac_uB='$,\1#\2define\3'
252b5132 14182ac_uC=' '
979273e3
NN
14183ac_uD=',;t'
14184
14185for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
252b5132 14186 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
979273e3
NN
14187 case $ac_file in
14188 - | *:- | *:-:* ) # input from stdin
14189 cat >$tmp/stdin
14190 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14191 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14192 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14193 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14194 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
14195 esac
14196
979273e3
NN
14197 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
14198echo "$as_me: creating $ac_file" >&6;}
14199
14200 # First look for the input files in the build tree, otherwise in the
14201 # src tree.
14202 ac_file_inputs=`IFS=:
14203 for f in $ac_file_in; do
14204 case $f in
14205 -) echo $tmp/stdin ;;
14206 [\\/$]*)
14207 # Absolute (can't be DOS-style, as IFS=:)
14208 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14209echo "$as_me: error: cannot find input file: $f" >&2;}
14210 { (exit 1); exit 1; }; }
14211 # Do quote $f, to prevent DOS paths from being IFS'd.
14212 echo "$f";;
14213 *) # Relative
14214 if test -f "$f"; then
14215 # Build tree
14216 echo "$f"
14217 elif test -f "$srcdir/$f"; then
14218 # Source tree
14219 echo "$srcdir/$f"
14220 else
14221 # /dev/null tree
14222 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14223echo "$as_me: error: cannot find input file: $f" >&2;}
14224 { (exit 1); exit 1; }; }
14225 fi;;
14226 esac
14227 done` || { (exit 1); exit 1; }
14228 # Remove the trailing spaces.
14229 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
14230
14231_ACEOF
14232
14233# Transform confdefs.h into two sed scripts, `conftest.defines' and
14234# `conftest.undefs', that substitutes the proper values into
14235# config.h.in to produce config.h. The first handles `#define'
14236# templates, and the second `#undef' templates.
14237# And first: Protect against being on the right side of a sed subst in
14238# config.status. Protect against being in an unquoted here document
14239# in config.status.
14240rm -f conftest.defines conftest.undefs
14241# Using a here document instead of a string reduces the quoting nightmare.
14242# Putting comments in sed scripts is not portable.
14243#
14244# `end' is used to avoid that the second main sed command (meant for
14245# 0-ary CPP macros) applies to n-ary macro definitions.
14246# See the Autoconf documentation for `clear'.
14247cat >confdef2sed.sed <<\_ACEOF
14248s/[\\&,]/\\&/g
14249s,[\\$`],\\&,g
14250t clear
14251: clear
14252s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
14253t end
14254s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
14255: end
14256_ACEOF
14257# If some macros were called several times there might be several times
14258# the same #defines, which is useless. Nevertheless, we may not want to
14259# sort them, since we want the *last* AC-DEFINE to be honored.
14260uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
14261sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
14262rm -f confdef2sed.sed
252b5132
RH
14263
14264# This sed command replaces #undef with comments. This is necessary, for
14265# example, in the case of _POSIX_SOURCE, which is predefined and required
14266# on some systems where configure will not decide to define it.
979273e3
NN
14267cat >>conftest.undefs <<\_ACEOF
14268s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
14269_ACEOF
14270
14271# Break up conftest.defines because some shells have a limit on the size
14272# of here documents, and old seds have small limits too (100 cmds).
14273echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
14274echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
14275echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
14276echo ' :' >>$CONFIG_STATUS
14277rm -f conftest.tail
14278while grep . conftest.defines >/dev/null
14279do
14280 # Write a limited-size here document to $tmp/defines.sed.
14281 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
14282 # Speed up: don't consider the non `#define' lines.
14283 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
14284 # Work around the forget-to-reset-the-flag bug.
14285 echo 't clr' >>$CONFIG_STATUS
14286 echo ': clr' >>$CONFIG_STATUS
14287 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
14288 echo 'CEOF
14289 sed -f $tmp/defines.sed $tmp/in >$tmp/out
14290 rm -f $tmp/in
14291 mv $tmp/out $tmp/in
14292' >>$CONFIG_STATUS
14293 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
14294 rm -f conftest.defines
14295 mv conftest.tail conftest.defines
14296done
14297rm -f conftest.defines
14298echo ' fi # grep' >>$CONFIG_STATUS
14299echo >>$CONFIG_STATUS
252b5132 14300
979273e3
NN
14301# Break up conftest.undefs because some shells have a limit on the size
14302# of here documents, and old seds have small limits too (100 cmds).
14303echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
252b5132 14304rm -f conftest.tail
979273e3 14305while grep . conftest.undefs >/dev/null
252b5132 14306do
979273e3
NN
14307 # Write a limited-size here document to $tmp/undefs.sed.
14308 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
14309 # Speed up: don't consider the non `#undef'
14310 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
14311 # Work around the forget-to-reset-the-flag bug.
14312 echo 't clr' >>$CONFIG_STATUS
14313 echo ': clr' >>$CONFIG_STATUS
14314 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
252b5132 14315 echo 'CEOF
979273e3
NN
14316 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
14317 rm -f $tmp/in
14318 mv $tmp/out $tmp/in
14319' >>$CONFIG_STATUS
14320 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
14321 rm -f conftest.undefs
14322 mv conftest.tail conftest.undefs
252b5132 14323done
979273e3
NN
14324rm -f conftest.undefs
14325
14326cat >>$CONFIG_STATUS <<\_ACEOF
14327 # Let's still pretend it is `configure' which instantiates (i.e., don't
14328 # use $as_me), people would be surprised to read:
14329 # /* config.h. Generated by config.status. */
14330 if test x"$ac_file" = x-; then
14331 echo "/* Generated by configure. */" >$tmp/config.h
14332 else
14333 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
14334 fi
14335 cat $tmp/in >>$tmp/config.h
14336 rm -f $tmp/in
14337 if test x"$ac_file" != x-; then
14338 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
14339 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14340echo "$as_me: $ac_file is unchanged" >&6;}
14341 else
14342 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14343$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14344 X"$ac_file" : 'X\(//\)[^/]' \| \
14345 X"$ac_file" : 'X\(//\)$' \| \
14346 X"$ac_file" : 'X\(/\)' \| \
14347 . : '\(.\)' 2>/dev/null ||
14348echo X"$ac_file" |
14349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14350 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14351 /^X\(\/\/\)$/{ s//\1/; q; }
14352 /^X\(\/\).*/{ s//\1/; q; }
14353 s/.*/./; q'`
14354 { if $as_mkdir_p; then
14355 mkdir -p "$ac_dir"
252b5132 14356 else
979273e3
NN
14357 as_dir="$ac_dir"
14358 as_dirs=
14359 while test ! -d "$as_dir"; do
14360 as_dirs="$as_dir $as_dirs"
14361 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14362$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14363 X"$as_dir" : 'X\(//\)[^/]' \| \
14364 X"$as_dir" : 'X\(//\)$' \| \
14365 X"$as_dir" : 'X\(/\)' \| \
14366 . : '\(.\)' 2>/dev/null ||
14367echo X"$as_dir" |
14368 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14369 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14370 /^X\(\/\/\)$/{ s//\1/; q; }
14371 /^X\(\/\).*/{ s//\1/; q; }
14372 s/.*/./; q'`
14373 done
14374 test ! -n "$as_dirs" || mkdir $as_dirs
14375 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14376echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14377 { (exit 1); exit 1; }; }; }
14378
14379 rm -f $ac_file
14380 mv $tmp/config.h $ac_file
252b5132 14381 fi
979273e3
NN
14382 else
14383 cat $tmp/config.h
14384 rm -f $tmp/config.h
252b5132 14385 fi
8ae85421
AM
14386# Compute $ac_file's index in $config_headers.
14387_am_stamp_count=1
14388for _am_header in $config_headers :; do
14389 case $_am_header in
14390 $ac_file | $ac_file:* )
14391 break ;;
14392 * )
14393 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14394 esac
14395done
14396echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
14397$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14398 X$ac_file : 'X\(//\)[^/]' \| \
14399 X$ac_file : 'X\(//\)$' \| \
14400 X$ac_file : 'X\(/\)' \| \
14401 . : '\(.\)' 2>/dev/null ||
14402echo X$ac_file |
14403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14404 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14405 /^X\(\/\/\)$/{ s//\1/; q; }
14406 /^X\(\/\).*/{ s//\1/; q; }
14407 s/.*/./; q'`/stamp-h$_am_stamp_count
979273e3
NN
14408done
14409_ACEOF
14410cat >>$CONFIG_STATUS <<\_ACEOF
252b5132 14411
979273e3
NN
14412#
14413# CONFIG_COMMANDS section.
14414#
14415for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
14416 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
14417 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
14418 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
14419$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14420 X"$ac_dest" : 'X\(//\)[^/]' \| \
14421 X"$ac_dest" : 'X\(//\)$' \| \
14422 X"$ac_dest" : 'X\(/\)' \| \
14423 . : '\(.\)' 2>/dev/null ||
14424echo X"$ac_dest" |
14425 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14426 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14427 /^X\(\/\/\)$/{ s//\1/; q; }
14428 /^X\(\/\).*/{ s//\1/; q; }
14429 s/.*/./; q'`
14430 { if $as_mkdir_p; then
14431 mkdir -p "$ac_dir"
14432 else
14433 as_dir="$ac_dir"
14434 as_dirs=
14435 while test ! -d "$as_dir"; do
14436 as_dirs="$as_dir $as_dirs"
14437 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14438$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14439 X"$as_dir" : 'X\(//\)[^/]' \| \
14440 X"$as_dir" : 'X\(//\)$' \| \
14441 X"$as_dir" : 'X\(/\)' \| \
14442 . : '\(.\)' 2>/dev/null ||
14443echo X"$as_dir" |
14444 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14445 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14446 /^X\(\/\/\)$/{ s//\1/; q; }
14447 /^X\(\/\).*/{ s//\1/; q; }
14448 s/.*/./; q'`
14449 done
14450 test ! -n "$as_dirs" || mkdir $as_dirs
14451 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14452echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14453 { (exit 1); exit 1; }; }; }
252b5132 14454
979273e3 14455 ac_builddir=.
252b5132 14456
979273e3
NN
14457if test "$ac_dir" != .; then
14458 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14459 # A "../" for each directory in $ac_dir_suffix.
14460 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14461else
14462 ac_dir_suffix= ac_top_builddir=
14463fi
14464
14465case $srcdir in
14466 .) # No --srcdir option. We are building in place.
14467 ac_srcdir=.
14468 if test -z "$ac_top_builddir"; then
14469 ac_top_srcdir=.
14470 else
14471 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14472 fi ;;
14473 [\\/]* | ?:[\\/]* ) # Absolute path.
14474 ac_srcdir=$srcdir$ac_dir_suffix;
14475 ac_top_srcdir=$srcdir ;;
14476 *) # Relative path.
14477 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14478 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14479esac
14480
14481# Do not use `cd foo && pwd` to compute absolute paths, because
14482# the directories may not exist.
14483case `pwd` in
14484.) ac_abs_builddir="$ac_dir";;
14485*)
14486 case "$ac_dir" in
14487 .) ac_abs_builddir=`pwd`;;
14488 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14489 *) ac_abs_builddir=`pwd`/"$ac_dir";;
14490 esac;;
14491esac
14492case $ac_abs_builddir in
14493.) ac_abs_top_builddir=${ac_top_builddir}.;;
14494*)
14495 case ${ac_top_builddir}. in
14496 .) ac_abs_top_builddir=$ac_abs_builddir;;
14497 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14498 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14499 esac;;
14500esac
14501case $ac_abs_builddir in
14502.) ac_abs_srcdir=$ac_srcdir;;
14503*)
14504 case $ac_srcdir in
14505 .) ac_abs_srcdir=$ac_abs_builddir;;
14506 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14507 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14508 esac;;
14509esac
14510case $ac_abs_builddir in
14511.) ac_abs_top_srcdir=$ac_top_srcdir;;
14512*)
14513 case $ac_top_srcdir in
14514 .) ac_abs_top_srcdir=$ac_abs_builddir;;
14515 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14516 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14517 esac;;
14518esac
14519
14520
14521 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
14522echo "$as_me: executing $ac_dest commands" >&6;}
14523 case $ac_dest in
8ae85421
AM
14524 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
14525 # Strip MF so we end up with the name of the file.
14526 mf=`echo "$mf" | sed -e 's/:.*$//'`
14527 # Check whether this is an Automake generated Makefile or not.
14528 # We used to match only the files named `Makefile.in', but
14529 # some people rename them; so instead we look at the file content.
14530 # Grep'ing the first line is not enough: some people post-process
14531 # each Makefile.in and add a new line on top of each file to say so.
14532 # So let's grep whole file.
14533 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
14534 dirpart=`(dirname "$mf") 2>/dev/null ||
14535$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14536 X"$mf" : 'X\(//\)[^/]' \| \
14537 X"$mf" : 'X\(//\)$' \| \
14538 X"$mf" : 'X\(/\)' \| \
14539 . : '\(.\)' 2>/dev/null ||
14540echo X"$mf" |
14541 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14542 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14543 /^X\(\/\/\)$/{ s//\1/; q; }
14544 /^X\(\/\).*/{ s//\1/; q; }
14545 s/.*/./; q'`
14546 else
14547 continue
14548 fi
14549 # Extract the definition of DEPDIR, am__include, and am__quote
14550 # from the Makefile without running `make'.
14551 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14552 test -z "$DEPDIR" && continue
14553 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14554 test -z "am__include" && continue
14555 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14556 # When using ansi2knr, U may be empty or an underscore; expand it
14557 U=`sed -n 's/^U = //p' < "$mf"`
14558 # Find all dependency output files, they are included files with
14559 # $(DEPDIR) in their names. We invoke sed twice because it is the
14560 # simplest approach to changing $(DEPDIR) to its actual value in the
14561 # expansion.
14562 for file in `sed -n "
14563 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14564 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14565 # Make sure the directory exists.
14566 test -f "$dirpart/$file" && continue
14567 fdir=`(dirname "$file") 2>/dev/null ||
14568$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14569 X"$file" : 'X\(//\)[^/]' \| \
14570 X"$file" : 'X\(//\)$' \| \
14571 X"$file" : 'X\(/\)' \| \
14572 . : '\(.\)' 2>/dev/null ||
14573echo X"$file" |
14574 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14575 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14576 /^X\(\/\/\)$/{ s//\1/; q; }
14577 /^X\(\/\).*/{ s//\1/; q; }
14578 s/.*/./; q'`
14579 { if $as_mkdir_p; then
14580 mkdir -p $dirpart/$fdir
14581 else
14582 as_dir=$dirpart/$fdir
14583 as_dirs=
14584 while test ! -d "$as_dir"; do
14585 as_dirs="$as_dir $as_dirs"
14586 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14587$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14588 X"$as_dir" : 'X\(//\)[^/]' \| \
14589 X"$as_dir" : 'X\(//\)$' \| \
14590 X"$as_dir" : 'X\(/\)' \| \
14591 . : '\(.\)' 2>/dev/null ||
14592echo X"$as_dir" |
14593 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14594 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14595 /^X\(\/\/\)$/{ s//\1/; q; }
14596 /^X\(\/\).*/{ s//\1/; q; }
14597 s/.*/./; q'`
14598 done
14599 test ! -n "$as_dirs" || mkdir $as_dirs
14600 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
14601echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
14602 { (exit 1); exit 1; }; }; }
14603
14604 # echo "creating $dirpart/$file"
14605 echo '# dummy' > "$dirpart/$file"
14606 done
14607done
d7040cdb
SE
14608 ;;
14609 libtool )
14610
14611 # See if we are running on zsh, and set the options which allow our
14612 # commands through without removal of \ escapes.
14613 if test -n "${ZSH_VERSION+set}" ; then
14614 setopt NO_GLOB_SUBST
14615 fi
14616
14617 cfgfile="${ofile}T"
14618 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14619 $RM "$cfgfile"
14620
14621 cat <<_LT_EOF >> "$cfgfile"
14622#! $SHELL
14623
14624# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
1927a18f 14625# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
d7040cdb
SE
14626# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14627# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14628#
1927a18f
L
14629# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14630# 2006, 2007, 2008 Free Software Foundation, Inc.
14631# Written by Gordon Matzigkeit, 1996
d7040cdb 14632#
1927a18f 14633# This file is part of GNU Libtool.
d7040cdb 14634#
1927a18f
L
14635# GNU Libtool is free software; you can redistribute it and/or
14636# modify it under the terms of the GNU General Public License as
14637# published by the Free Software Foundation; either version 2 of
14638# the License, or (at your option) any later version.
d7040cdb 14639#
1927a18f
L
14640# As a special exception to the GNU General Public License,
14641# if you distribute this file as part of a program or library that
14642# is built using GNU Libtool, you may include this file under the
14643# same distribution terms that you use for the rest of that program.
d7040cdb 14644#
1927a18f
L
14645# GNU Libtool is distributed in the hope that it will be useful,
14646# but WITHOUT ANY WARRANTY; without even the implied warranty of
14647# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14648# GNU General Public License for more details.
d7040cdb 14649#
1927a18f
L
14650# You should have received a copy of the GNU General Public License
14651# along with GNU Libtool; see the file COPYING. If not, a copy
14652# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14653# obtained by writing to the Free Software Foundation, Inc.,
14654# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
d7040cdb
SE
14655
14656
14657# The names of the tagged configurations supported by this script.
14658available_tags=""
14659
14660# ### BEGIN LIBTOOL CONFIG
14661
14662# Whether or not to build shared libraries.
14663build_libtool_libs=$enable_shared
14664
14665# Which release of libtool.m4 was used?
14666macro_version=$macro_version
14667macro_revision=$macro_revision
14668
14669# Whether or not to build static libraries.
14670build_old_libs=$enable_static
14671
14672# What type of objects to build.
14673pic_mode=$pic_mode
14674
14675# Whether or not to optimize for fast installation.
14676fast_install=$enable_fast_install
14677
14678# The host system.
14679host_alias=$host_alias
14680host=$host
14681host_os=$host_os
14682
14683# The build system.
14684build_alias=$build_alias
14685build=$build
14686build_os=$build_os
14687
14688# A sed program that does not truncate output.
14689SED=$lt_SED
14690
14691# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14692Xsed="\$SED -e 1s/^X//"
14693
14694# A grep program that handles long lines.
14695GREP=$lt_GREP
14696
14697# An ERE matcher.
14698EGREP=$lt_EGREP
14699
14700# A literal string matcher.
14701FGREP=$lt_FGREP
14702
14703# A BSD- or MS-compatible name lister.
14704NM=$lt_NM
14705
14706# Whether we need soft or hard links.
14707LN_S=$lt_LN_S
14708
14709# What is the maximum length of a command?
14710max_cmd_len=$max_cmd_len
14711
14712# Object file suffix (normally "o").
14713objext=$ac_objext
14714
14715# Executable file suffix (normally "").
14716exeext=$exeext
14717
14718# whether the shell understands "unset".
14719lt_unset=$lt_unset
14720
14721# turn spaces into newlines.
14722SP2NL=$lt_lt_SP2NL
14723
14724# turn newlines into spaces.
14725NL2SP=$lt_lt_NL2SP
14726
14727# How to create reloadable object files.
14728reload_flag=$lt_reload_flag
14729reload_cmds=$lt_reload_cmds
14730
1927a18f
L
14731# An object symbol dumper.
14732OBJDUMP=$lt_OBJDUMP
14733
d7040cdb
SE
14734# Method to check whether dependent libraries are shared objects.
14735deplibs_check_method=$lt_deplibs_check_method
14736
14737# Command to use when deplibs_check_method == "file_magic".
14738file_magic_cmd=$lt_file_magic_cmd
14739
14740# The archiver.
14741AR=$lt_AR
14742AR_FLAGS=$lt_AR_FLAGS
14743
14744# A symbol stripping program.
14745STRIP=$lt_STRIP
14746
14747# Commands used to install an old-style archive.
14748RANLIB=$lt_RANLIB
14749old_postinstall_cmds=$lt_old_postinstall_cmds
14750old_postuninstall_cmds=$lt_old_postuninstall_cmds
14751
14752# A C compiler.
14753LTCC=$lt_CC
14754
14755# LTCC compiler flags.
14756LTCFLAGS=$lt_CFLAGS
14757
14758# Take the output of nm and produce a listing of raw symbols and C names.
14759global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14760
14761# Transform the output of nm in a proper C declaration.
14762global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14763
14764# Transform the output of nm in a C name address pair.
14765global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14766
1927a18f
L
14767# Transform the output of nm in a C name address pair when lib prefix is needed.
14768global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14769
d7040cdb
SE
14770# The name of the directory that contains temporary libtool files.
14771objdir=$objdir
14772
14773# Shell to use when invoking shell scripts.
14774SHELL=$lt_SHELL
14775
14776# An echo program that does not interpret backslashes.
14777ECHO=$lt_ECHO
14778
14779# Used to examine libraries when file_magic_cmd begins with "file".
14780MAGIC_CMD=$MAGIC_CMD
14781
14782# Must we lock files when doing compilation?
14783need_locks=$lt_need_locks
14784
1927a18f
L
14785# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14786DSYMUTIL=$lt_DSYMUTIL
14787
14788# Tool to change global to local symbols on Mac OS X.
14789NMEDIT=$lt_NMEDIT
14790
14791# Tool to manipulate fat objects and archives on Mac OS X.
14792LIPO=$lt_LIPO
14793
14794# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14795OTOOL=$lt_OTOOL
14796
14797# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14798OTOOL64=$lt_OTOOL64
14799
d7040cdb
SE
14800# Old archive suffix (normally "a").
14801libext=$libext
14802
14803# Shared library suffix (normally ".so").
14804shrext_cmds=$lt_shrext_cmds
14805
14806# The commands to extract the exported symbol list from a shared archive.
14807extract_expsyms_cmds=$lt_extract_expsyms_cmds
14808
14809# Variables whose values should be saved in libtool wrapper scripts and
14810# restored at link time.
14811variables_saved_for_relink=$lt_variables_saved_for_relink
14812
14813# Do we need the "lib" prefix for modules?
14814need_lib_prefix=$need_lib_prefix
14815
14816# Do we need a version for libraries?
14817need_version=$need_version
14818
14819# Library versioning type.
14820version_type=$version_type
14821
14822# Shared library runtime path variable.
14823runpath_var=$runpath_var
14824
14825# Shared library path variable.
14826shlibpath_var=$shlibpath_var
14827
14828# Is shlibpath searched before the hard-coded library search path?
14829shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14830
14831# Format of library name prefix.
14832libname_spec=$lt_libname_spec
14833
14834# List of archive names. First name is the real one, the rest are links.
14835# The last name is the one that the linker finds with -lNAME
14836library_names_spec=$lt_library_names_spec
14837
14838# The coded name of the library, if different from the real name.
14839soname_spec=$lt_soname_spec
14840
14841# Command to use after installation of a shared archive.
14842postinstall_cmds=$lt_postinstall_cmds
14843
14844# Command to use after uninstallation of a shared archive.
14845postuninstall_cmds=$lt_postuninstall_cmds
14846
14847# Commands used to finish a libtool library installation in a directory.
14848finish_cmds=$lt_finish_cmds
14849
14850# As "finish_cmds", except a single script fragment to be evaled but
14851# not shown.
14852finish_eval=$lt_finish_eval
14853
14854# Whether we should hardcode library paths into libraries.
14855hardcode_into_libs=$hardcode_into_libs
14856
14857# Compile-time system search path for libraries.
14858sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14859
14860# Run-time system search path for libraries.
14861sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14862
14863# Whether dlopen is supported.
14864dlopen_support=$enable_dlopen
14865
14866# Whether dlopen of programs is supported.
14867dlopen_self=$enable_dlopen_self
14868
14869# Whether dlopen of statically linked programs is supported.
14870dlopen_self_static=$enable_dlopen_self_static
14871
14872# Commands to strip libraries.
14873old_striplib=$lt_old_striplib
14874striplib=$lt_striplib
14875
14876
14877# The linker used to build libraries.
14878LD=$lt_LD
14879
14880# Commands used to build an old-style archive.
14881old_archive_cmds=$lt_old_archive_cmds
14882
14883# A language specific compiler.
14884CC=$lt_compiler
14885
14886# Is the compiler the GNU compiler?
14887with_gcc=$GCC
14888
14889# Compiler flag to turn off builtin functions.
14890no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14891
14892# How to pass a linker flag through the compiler.
14893wl=$lt_lt_prog_compiler_wl
14894
14895# Additional compiler flags for building library objects.
14896pic_flag=$lt_lt_prog_compiler_pic
14897
14898# Compiler flag to prevent dynamic linking.
14899link_static_flag=$lt_lt_prog_compiler_static
14900
14901# Does compiler simultaneously support -c and -o options?
14902compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14903
14904# Whether or not to add -lc for building shared libraries.
14905build_libtool_need_lc=$archive_cmds_need_lc
14906
14907# Whether or not to disallow shared libs when runtime libs are static.
14908allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14909
14910# Compiler flag to allow reflexive dlopens.
14911export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14912
14913# Compiler flag to generate shared objects directly from archives.
14914whole_archive_flag_spec=$lt_whole_archive_flag_spec
14915
14916# Whether the compiler copes with passing no objects directly.
14917compiler_needs_object=$lt_compiler_needs_object
14918
14919# Create an old-style archive from a shared archive.
14920old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14921
14922# Create a temporary old-style archive to link instead of a shared archive.
14923old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14924
14925# Commands used to build a shared archive.
14926archive_cmds=$lt_archive_cmds
14927archive_expsym_cmds=$lt_archive_expsym_cmds
14928
14929# Commands used to build a loadable module if different from building
14930# a shared archive.
14931module_cmds=$lt_module_cmds
14932module_expsym_cmds=$lt_module_expsym_cmds
14933
14934# Whether we are building with GNU ld or not.
14935with_gnu_ld=$lt_with_gnu_ld
14936
14937# Flag that allows shared libraries with undefined symbols to be built.
14938allow_undefined_flag=$lt_allow_undefined_flag
14939
14940# Flag that enforces no undefined symbols.
14941no_undefined_flag=$lt_no_undefined_flag
14942
14943# Flag to hardcode \$libdir into a binary during linking.
14944# This must work even if \$libdir does not exist
14945hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14946
14947# If ld is used when linking, flag to hardcode \$libdir into a binary
14948# during linking. This must work even if \$libdir does not exist.
14949hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14950
14951# Whether we need a single "-rpath" flag with a separated argument.
14952hardcode_libdir_separator=$lt_hardcode_libdir_separator
14953
14954# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14955# DIR into the resulting binary.
14956hardcode_direct=$hardcode_direct
14957
14958# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14959# DIR into the resulting binary and the resulting library dependency is
14960# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14961# library is relocated.
14962hardcode_direct_absolute=$hardcode_direct_absolute
14963
14964# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14965# into the resulting binary.
14966hardcode_minus_L=$hardcode_minus_L
14967
14968# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14969# into the resulting binary.
14970hardcode_shlibpath_var=$hardcode_shlibpath_var
14971
14972# Set to "yes" if building a shared library automatically hardcodes DIR
14973# into the library and all subsequent libraries and executables linked
14974# against it.
14975hardcode_automatic=$hardcode_automatic
14976
14977# Set to yes if linker adds runtime paths of dependent libraries
14978# to runtime path list.
14979inherit_rpath=$inherit_rpath
14980
14981# Whether libtool must link a program against all its dependency libraries.
14982link_all_deplibs=$link_all_deplibs
14983
14984# Fix the shell variable \$srcfile for the compiler.
14985fix_srcfile_path=$lt_fix_srcfile_path
14986
14987# Set to "yes" if exported symbols are required.
14988always_export_symbols=$always_export_symbols
14989
14990# The commands to list exported symbols.
14991export_symbols_cmds=$lt_export_symbols_cmds
14992
14993# Symbols that should not be listed in the preloaded symbols.
14994exclude_expsyms=$lt_exclude_expsyms
14995
14996# Symbols that must always be exported.
14997include_expsyms=$lt_include_expsyms
14998
14999# Commands necessary for linking programs (against libraries) with templates.
15000prelink_cmds=$lt_prelink_cmds
15001
15002# Specify filename containing input files.
15003file_list_spec=$lt_file_list_spec
15004
15005# How to hardcode a shared library path into an executable.
15006hardcode_action=$hardcode_action
15007
15008# ### END LIBTOOL CONFIG
15009
15010_LT_EOF
15011
15012 case $host_os in
15013 aix3*)
15014 cat <<\_LT_EOF >> "$cfgfile"
15015# AIX sometimes has problems with the GCC collect2 program. For some
15016# reason, if we set the COLLECT_NAMES environment variable, the problems
15017# vanish in a puff of smoke.
15018if test "X${COLLECT_NAMES+set}" != Xset; then
15019 COLLECT_NAMES=
15020 export COLLECT_NAMES
15021fi
15022_LT_EOF
15023 ;;
15024 esac
15025
15026
15027ltmain="$ac_aux_dir/ltmain.sh"
15028
15029
15030 # We use sed instead of cat because bash on DJGPP gets confused if
15031 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15032 # text mode, it properly converts lines to CR/LF. This bash problem
15033 # is reportedly fixed, but why not run on old versions too?
15034 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15035 || (rm -f "$cfgfile"; exit 1)
15036
15037 case $xsi_shell in
15038 yes)
15039 cat << \_LT_EOF >> "$cfgfile"
1927a18f 15040
d7040cdb
SE
15041# func_dirname file append nondir_replacement
15042# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15043# otherwise set result to NONDIR_REPLACEMENT.
15044func_dirname ()
15045{
15046 case ${1} in
15047 */*) func_dirname_result="${1%/*}${2}" ;;
15048 * ) func_dirname_result="${3}" ;;
15049 esac
15050}
15051
15052# func_basename file
15053func_basename ()
15054{
15055 func_basename_result="${1##*/}"
15056}
15057
1927a18f
L
15058# func_dirname_and_basename file append nondir_replacement
15059# perform func_basename and func_dirname in a single function
15060# call:
15061# dirname: Compute the dirname of FILE. If nonempty,
15062# add APPEND to the result, otherwise set result
15063# to NONDIR_REPLACEMENT.
15064# value returned in "$func_dirname_result"
15065# basename: Compute filename of FILE.
15066# value retuned in "$func_basename_result"
15067# Implementation must be kept synchronized with func_dirname
15068# and func_basename. For efficiency, we do not delegate to
15069# those functions but instead duplicate the functionality here.
15070func_dirname_and_basename ()
15071{
15072 case ${1} in
15073 */*) func_dirname_result="${1%/*}${2}" ;;
15074 * ) func_dirname_result="${3}" ;;
15075 esac
15076 func_basename_result="${1##*/}"
15077}
15078
d7040cdb
SE
15079# func_stripname prefix suffix name
15080# strip PREFIX and SUFFIX off of NAME.
15081# PREFIX and SUFFIX must not contain globbing or regex special
15082# characters, hashes, percent signs, but SUFFIX may contain a leading
15083# dot (in which case that matches only a dot).
15084func_stripname ()
15085{
15086 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15087 # positional parameters, so assign one to ordinary parameter first.
15088 func_stripname_result=${3}
15089 func_stripname_result=${func_stripname_result#"${1}"}
15090 func_stripname_result=${func_stripname_result%"${2}"}
15091}
15092
15093# func_opt_split
15094func_opt_split ()
15095{
15096 func_opt_split_opt=${1%%=*}
15097 func_opt_split_arg=${1#*=}
15098}
15099
15100# func_lo2o object
15101func_lo2o ()
15102{
15103 case ${1} in
15104 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15105 *) func_lo2o_result=${1} ;;
15106 esac
15107}
1927a18f
L
15108
15109# func_xform libobj-or-source
15110func_xform ()
15111{
15112 func_xform_result=${1%.*}.lo
15113}
15114
15115# func_arith arithmetic-term...
15116func_arith ()
15117{
15118 func_arith_result=$(( $* ))
15119}
15120
15121# func_len string
15122# STRING may not start with a hyphen.
15123func_len ()
15124{
15125 func_len_result=${#1}
15126}
15127
d7040cdb
SE
15128_LT_EOF
15129 ;;
15130 *) # Bourne compatible functions.
15131 cat << \_LT_EOF >> "$cfgfile"
1927a18f 15132
d7040cdb
SE
15133# func_dirname file append nondir_replacement
15134# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15135# otherwise set result to NONDIR_REPLACEMENT.
15136func_dirname ()
15137{
15138 # Extract subdirectory from the argument.
15139 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15140 if test "X$func_dirname_result" = "X${1}"; then
15141 func_dirname_result="${3}"
15142 else
15143 func_dirname_result="$func_dirname_result${2}"
15144 fi
15145}
15146
15147# func_basename file
15148func_basename ()
15149{
15150 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15151}
15152
1927a18f 15153
d7040cdb
SE
15154# func_stripname prefix suffix name
15155# strip PREFIX and SUFFIX off of NAME.
15156# PREFIX and SUFFIX must not contain globbing or regex special
15157# characters, hashes, percent signs, but SUFFIX may contain a leading
15158# dot (in which case that matches only a dot).
15159# func_strip_suffix prefix name
15160func_stripname ()
15161{
15162 case ${2} in
15163 .*) func_stripname_result=`$ECHO "X${3}" \
15164 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15165 *) func_stripname_result=`$ECHO "X${3}" \
15166 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15167 esac
15168}
15169
15170# sed scripts:
15171my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15172my_sed_long_arg='1s/^-[^=]*=//'
15173
15174# func_opt_split
15175func_opt_split ()
15176{
15177 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15178 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15179}
15180
15181# func_lo2o object
15182func_lo2o ()
15183{
15184 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15185}
1927a18f
L
15186
15187# func_xform libobj-or-source
15188func_xform ()
15189{
15190 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15191}
15192
15193# func_arith arithmetic-term...
15194func_arith ()
15195{
15196 func_arith_result=`expr "$@"`
15197}
15198
15199# func_len string
15200# STRING may not start with a hyphen.
15201func_len ()
15202{
15203 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15204}
15205
d7040cdb
SE
15206_LT_EOF
15207esac
15208
15209case $lt_shell_append in
15210 yes)
15211 cat << \_LT_EOF >> "$cfgfile"
15212
15213# func_append var value
15214# Append VALUE to the end of shell variable VAR.
15215func_append ()
15216{
15217 eval "$1+=\$2"
15218}
15219_LT_EOF
15220 ;;
15221 *)
15222 cat << \_LT_EOF >> "$cfgfile"
15223
15224# func_append var value
15225# Append VALUE to the end of shell variable VAR.
15226func_append ()
15227{
15228 eval "$1=\$$1\$2"
15229}
1927a18f 15230
d7040cdb
SE
15231_LT_EOF
15232 ;;
15233 esac
15234
15235
15236 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15237 || (rm -f "$cfgfile"; exit 1)
15238
15239 mv -f "$cfgfile" "$ofile" ||
15240 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15241 chmod +x "$ofile"
15242
8ae85421 15243 ;;
20e95c23
DJ
15244 default-1 )
15245 for ac_file in $CONFIG_FILES; do
15246 # Support "outfile[:infile[:infile...]]"
15247 case "$ac_file" in
15248 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15249 esac
15250 # PO directories have a Makefile.in generated from Makefile.in.in.
15251 case "$ac_file" in */Makefile.in)
15252 # Adjust a relative srcdir.
15253 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15254 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
15255 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15256 # In autoconf-2.13 it is called $ac_given_srcdir.
15257 # In autoconf-2.50 it is called $srcdir.
15258 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15259 case "$ac_given_srcdir" in
15260 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15261 /*) top_srcdir="$ac_given_srcdir" ;;
15262 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
15263 esac
15264 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15265 rm -f "$ac_dir/POTFILES"
15266 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15267 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
15268 POMAKEFILEDEPS="POTFILES.in"
15269 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
15270 # on $ac_dir but don't depend on user-specified configuration
15271 # parameters.
15272 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15273 # The LINGUAS file contains the set of available languages.
15274 if test -n "$OBSOLETE_ALL_LINGUAS"; then
15275 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15276 fi
15277 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15278 # Hide the ALL_LINGUAS assigment from automake.
15279 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15280 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15281 else
15282 # The set of available languages was given in configure.in.
15283 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15284 fi
15285 case "$ac_given_srcdir" in
15286 .) srcdirpre= ;;
15287 *) srcdirpre='$(srcdir)/' ;;
15288 esac
15289 POFILES=
15290 GMOFILES=
15291 UPDATEPOFILES=
15292 DUMMYPOFILES=
15293 for lang in $ALL_LINGUAS; do
15294 POFILES="$POFILES $srcdirpre$lang.po"
15295 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
15296 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15297 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
15298 done
15299 # CATALOGS depends on both $ac_dir and the user's LINGUAS
15300 # environment variable.
15301 INST_LINGUAS=
15302 if test -n "$ALL_LINGUAS"; then
15303 for presentlang in $ALL_LINGUAS; do
15304 useit=no
15305 if test "%UNSET%" != "$LINGUAS"; then
15306 desiredlanguages="$LINGUAS"
15307 else
15308 desiredlanguages="$ALL_LINGUAS"
15309 fi
15310 for desiredlang in $desiredlanguages; do
15311 # Use the presentlang catalog if desiredlang is
15312 # a. equal to presentlang, or
15313 # b. a variant of presentlang (because in this case,
15314 # presentlang can be used as a fallback for messages
15315 # which are not translated in the desiredlang catalog).
15316 case "$desiredlang" in
15317 "$presentlang"*) useit=yes;;
15318 esac
15319 done
15320 if test $useit = yes; then
15321 INST_LINGUAS="$INST_LINGUAS $presentlang"
15322 fi
15323 done
15324 fi
15325 CATALOGS=
15326 if test -n "$INST_LINGUAS"; then
15327 for lang in $INST_LINGUAS; do
15328 CATALOGS="$CATALOGS $lang.gmo"
15329 done
15330 fi
15331 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
15332 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"
15333 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15334 if test -f "$f"; then
15335 case "$f" in
15336 *.orig | *.bak | *~) ;;
15337 *) cat "$f" >> "$ac_dir/Makefile" ;;
15338 esac
15339 fi
15340 done
15341 fi
15342 ;;
15343 esac
15344 done ;;
979273e3
NN
15345 esac
15346done
15347_ACEOF
15348
15349cat >>$CONFIG_STATUS <<\_ACEOF
15350
15351{ (exit 0); exit 0; }
15352_ACEOF
252b5132 15353chmod +x $CONFIG_STATUS
979273e3
NN
15354ac_clean_files=$ac_clean_files_save
15355
15356
15357# configure is writing to config.log, and then calls config.status.
15358# config.status does its own redirection, appending to config.log.
15359# Unfortunately, on DOS this fails, as config.log is still kept open
15360# by configure, so config.status won't be able to write to it; its
15361# output is simply discarded. So we exec the FD to /dev/null,
15362# effectively closing config.log, so it can be properly (re)opened and
15363# appended to by config.status. When coming back to configure, we
15364# need to make the FD available again.
15365if test "$no_create" != yes; then
15366 ac_cs_success=:
15367 ac_config_status_args=
15368 test "$silent" = yes &&
15369 ac_config_status_args="$ac_config_status_args --quiet"
15370 exec 5>/dev/null
15371 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15372 exec 5>>config.log
15373 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15374 # would make configure fail if this is the last instruction.
15375 $ac_cs_success || { (exit 1); exit 1; }
15376fi
252b5132 15377