gas/
[deliverable/binutils-gdb.git] / gprof / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
0ab6f085 3# Generated by GNU Autoconf 2.59.
252b5132 4#
0ab6f085 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.
6bf9431b
BE
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
0ab6f085 12# Be Bourne compatible
6bf9431b
BE
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+"$@"}'='"$@"'
0ab6f085
AM
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
6bf9431b 21fi
0ab6f085 22DUALCASE=1; export DUALCASE # for MKS sh
6bf9431b
BE
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.
0ab6f085 33$as_unset ENV MAIL MAILPATH
6bf9431b
BE
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
0ab6f085 47 $as_unset $as_var
6bf9431b
BE
48 fi
49done
50
51# Required to use basename.
0ab6f085 52if expr a : '\(a\)' >/dev/null 2>&1; then
6bf9431b
BE
53 as_expr=expr
54else
55 as_expr=false
56fi
57
0ab6f085 58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6bf9431b
BE
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
0ab6f085 66as_me=`$as_basename "$0" ||
6bf9431b
BE
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
0ab6f085
AM
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
6bf9431b 71echo X/"$0" |
0ab6f085
AM
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
6bf9431b 76
6bf9431b 77
0ab6f085
AM
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
1b9750d6 85
0ab6f085
AM
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
1b9750d6
NC
97fi
98
1b9750d6 99
0ab6f085
AM
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
1b9750d6 116
0ab6f085
AM
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 '')
6bf9431b
BE
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=.
0ab6f085
AM
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
6bf9431b 137 /*)
0ab6f085 138 if ("$as_dir/$as_base" -c '
6bf9431b
BE
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
0ab6f085 141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6bf9431b 142 test "x$as_lineno_1" != "x$as_lineno_2" &&
0ab6f085
AM
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
6bf9431b
BE
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
0ab6f085
AM
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.
6bf9431b 162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
0ab6f085
AM
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
6bf9431b
BE
165 sed '
166 N
0ab6f085
AM
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6bf9431b 170 t loop
0ab6f085
AM
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
6bf9431b 173 ' >$as_me.lineno &&
0ab6f085 174 chmod +x $as_me.lineno ||
6bf9431b
BE
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
0ab6f085
AM
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
6bf9431b
BE
182 # Exit status is that of the last command.
183 exit
184}
185
186
0ab6f085
AM
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= ;;
6bf9431b
BE
192esac
193
0ab6f085 194if expr a : '\(a\)' >/dev/null 2>&1; then
6bf9431b
BE
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
0ab6f085
AM
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
6bf9431b 207 as_ln_s='cp -p'
0ab6f085
AM
208 else
209 as_ln_s='ln -s'
210 fi
6bf9431b
BE
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
0ab6f085 216rm -f conf$$ conf$$.exe conf$$.file
6bf9431b
BE
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
0ab6f085 225as_executable_p="test -f"
6bf9431b
BE
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
0ab6f085
AM
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
6bf9431b 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
6bf9431b
BE
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
0ab6f085
AM
398exec 6>&1
399
6bf9431b
BE
400#
401# Initializations.
402#
252b5132 403ac_default_prefix=/usr/local
6bf9431b
BE
404ac_config_libobj_dir=.
405cross_compiling=no
406subdirs=
407MFLAGS=
408MAKEFLAGS=
409SHELL=${CONFIG_SHELL-/bin/sh}
410
0ab6f085
AM
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
6bf9431b
BE
416# Identity of this package.
417PACKAGE_NAME=
418PACKAGE_TARNAME=
419PACKAGE_VERSION=
420PACKAGE_STRING=
421PACKAGE_BUGREPORT=
422
423ac_unique_file="gprof.c"
424# Factoring default headers for most tests.
425ac_includes_default="\
426#include <stdio.h>
0ab6f085 427#if HAVE_SYS_TYPES_H
6bf9431b
BE
428# include <sys/types.h>
429#endif
0ab6f085 430#if HAVE_SYS_STAT_H
6bf9431b
BE
431# include <sys/stat.h>
432#endif
0ab6f085 433#if STDC_HEADERS
6bf9431b
BE
434# include <stdlib.h>
435# include <stddef.h>
436#else
0ab6f085 437# if HAVE_STDLIB_H
6bf9431b
BE
438# include <stdlib.h>
439# endif
440#endif
0ab6f085
AM
441#if HAVE_STRING_H
442# if !STDC_HEADERS && HAVE_MEMORY_H
6bf9431b
BE
443# include <memory.h>
444# endif
445# include <string.h>
446#endif
0ab6f085 447#if HAVE_STRINGS_H
6bf9431b
BE
448# include <strings.h>
449#endif
0ab6f085 450#if HAVE_INTTYPES_H
6bf9431b 451# include <inttypes.h>
0ab6f085
AM
452#else
453# if HAVE_STDINT_H
454# include <stdint.h>
455# endif
6bf9431b 456#endif
0ab6f085 457#if HAVE_UNISTD_H
6bf9431b
BE
458# include <unistd.h>
459#endif"
460
0ab6f085 461ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO CPP USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GENINSRC_NEVER_TRUE GENINSRC_NEVER_FALSE WARN_CFLAGS NO_WERROR datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
6bf9431b 462ac_subst_files=''
252b5132
RH
463
464# Initialize some variables set by options.
6bf9431b
BE
465ac_init_help=
466ac_init_version=false
252b5132
RH
467# The variables have the same names as the options, with
468# dashes changed to underlines.
6bf9431b 469cache_file=/dev/null
252b5132 470exec_prefix=NONE
252b5132 471no_create=
252b5132
RH
472no_recursion=
473prefix=NONE
474program_prefix=NONE
475program_suffix=NONE
476program_transform_name=s,x,x,
477silent=
478site=
479srcdir=
252b5132
RH
480verbose=
481x_includes=NONE
482x_libraries=NONE
6bf9431b
BE
483
484# Installation directory options.
485# These are left unexpanded so users can "make install exec_prefix=/foo"
486# and all the variables that are supposed to be based on exec_prefix
487# by default will actually change.
488# Use braces instead of parens because sh, perl, etc. also accept them.
252b5132
RH
489bindir='${exec_prefix}/bin'
490sbindir='${exec_prefix}/sbin'
491libexecdir='${exec_prefix}/libexec'
0ab6f085 492datadir='${prefix}/share'
252b5132
RH
493sysconfdir='${prefix}/etc'
494sharedstatedir='${prefix}/com'
495localstatedir='${prefix}/var'
0ab6f085 496libdir='${exec_prefix}/lib'
252b5132
RH
497includedir='${prefix}/include'
498oldincludedir='/usr/include'
0ab6f085
AM
499infodir='${prefix}/info'
500mandir='${prefix}/man'
252b5132 501
252b5132
RH
502ac_prev=
503for ac_option
504do
252b5132
RH
505 # If the previous option needs an argument, assign it.
506 if test -n "$ac_prev"; then
0ab6f085 507 eval "$ac_prev=\$ac_option"
252b5132
RH
508 ac_prev=
509 continue
510 fi
511
0ab6f085 512 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
252b5132
RH
513
514 # Accept the important Cygnus configure options, so we can diagnose typos.
515
0ab6f085 516 case $ac_option in
252b5132
RH
517
518 -bindir | --bindir | --bindi | --bind | --bin | --bi)
519 ac_prev=bindir ;;
520 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
6bf9431b 521 bindir=$ac_optarg ;;
252b5132
RH
522
523 -build | --build | --buil | --bui | --bu)
6bf9431b 524 ac_prev=build_alias ;;
252b5132 525 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
6bf9431b 526 build_alias=$ac_optarg ;;
252b5132
RH
527
528 -cache-file | --cache-file | --cache-fil | --cache-fi \
529 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
530 ac_prev=cache_file ;;
531 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
532 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
6bf9431b
BE
533 cache_file=$ac_optarg ;;
534
535 --config-cache | -C)
536 cache_file=config.cache ;;
252b5132 537
0ab6f085 538 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
252b5132 539 ac_prev=datadir ;;
0ab6f085
AM
540 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
541 | --da=*)
6bf9431b 542 datadir=$ac_optarg ;;
252b5132
RH
543
544 -disable-* | --disable-*)
6bf9431b 545 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 546 # Reject names that are not valid shell variable names.
0ab6f085 547 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
6bf9431b
BE
548 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
549 { (exit 1); exit 1; }; }
0ab6f085
AM
550 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
551 eval "enable_$ac_feature=no" ;;
252b5132
RH
552
553 -enable-* | --enable-*)
6bf9431b 554 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 555 # Reject names that are not valid shell variable names.
0ab6f085 556 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
6bf9431b
BE
557 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558 { (exit 1); exit 1; }; }
0ab6f085
AM
559 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560 case $ac_option in
561 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
562 *) ac_optarg=yes ;;
563 esac
564 eval "enable_$ac_feature='$ac_optarg'" ;;
252b5132
RH
565
566 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
567 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
568 | --exec | --exe | --ex)
569 ac_prev=exec_prefix ;;
570 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
571 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
572 | --exec=* | --exe=* | --ex=*)
6bf9431b 573 exec_prefix=$ac_optarg ;;
252b5132
RH
574
575 -gas | --gas | --ga | --g)
576 # Obsolete; use --with-gas.
577 with_gas=yes ;;
578
6bf9431b
BE
579 -help | --help | --hel | --he | -h)
580 ac_init_help=long ;;
581 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
582 ac_init_help=recursive ;;
583 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
584 ac_init_help=short ;;
252b5132
RH
585
586 -host | --host | --hos | --ho)
6bf9431b 587 ac_prev=host_alias ;;
252b5132 588 -host=* | --host=* | --hos=* | --ho=*)
6bf9431b 589 host_alias=$ac_optarg ;;
252b5132
RH
590
591 -includedir | --includedir | --includedi | --included | --include \
592 | --includ | --inclu | --incl | --inc)
593 ac_prev=includedir ;;
594 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
595 | --includ=* | --inclu=* | --incl=* | --inc=*)
6bf9431b 596 includedir=$ac_optarg ;;
252b5132
RH
597
598 -infodir | --infodir | --infodi | --infod | --info | --inf)
599 ac_prev=infodir ;;
600 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
6bf9431b 601 infodir=$ac_optarg ;;
252b5132
RH
602
603 -libdir | --libdir | --libdi | --libd)
604 ac_prev=libdir ;;
605 -libdir=* | --libdir=* | --libdi=* | --libd=*)
6bf9431b 606 libdir=$ac_optarg ;;
252b5132
RH
607
608 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
609 | --libexe | --libex | --libe)
610 ac_prev=libexecdir ;;
611 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
612 | --libexe=* | --libex=* | --libe=*)
6bf9431b 613 libexecdir=$ac_optarg ;;
252b5132
RH
614
615 -localstatedir | --localstatedir | --localstatedi | --localstated \
0ab6f085
AM
616 | --localstate | --localstat | --localsta | --localst \
617 | --locals | --local | --loca | --loc | --lo)
252b5132
RH
618 ac_prev=localstatedir ;;
619 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
0ab6f085
AM
620 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
621 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
6bf9431b 622 localstatedir=$ac_optarg ;;
252b5132
RH
623
624 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
625 ac_prev=mandir ;;
626 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
6bf9431b 627 mandir=$ac_optarg ;;
252b5132
RH
628
629 -nfp | --nfp | --nf)
630 # Obsolete; use --without-fp.
631 with_fp=no ;;
632
633 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
6bf9431b 634 | --no-cr | --no-c | -n)
252b5132
RH
635 no_create=yes ;;
636
637 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
638 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
639 no_recursion=yes ;;
640
641 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
642 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
643 | --oldin | --oldi | --old | --ol | --o)
644 ac_prev=oldincludedir ;;
645 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
646 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
647 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
6bf9431b 648 oldincludedir=$ac_optarg ;;
252b5132
RH
649
650 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
651 ac_prev=prefix ;;
652 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
6bf9431b 653 prefix=$ac_optarg ;;
252b5132
RH
654
655 -program-prefix | --program-prefix | --program-prefi | --program-pref \
656 | --program-pre | --program-pr | --program-p)
657 ac_prev=program_prefix ;;
658 -program-prefix=* | --program-prefix=* | --program-prefi=* \
659 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
6bf9431b 660 program_prefix=$ac_optarg ;;
252b5132
RH
661
662 -program-suffix | --program-suffix | --program-suffi | --program-suff \
663 | --program-suf | --program-su | --program-s)
664 ac_prev=program_suffix ;;
665 -program-suffix=* | --program-suffix=* | --program-suffi=* \
666 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
6bf9431b 667 program_suffix=$ac_optarg ;;
252b5132
RH
668
669 -program-transform-name | --program-transform-name \
670 | --program-transform-nam | --program-transform-na \
671 | --program-transform-n | --program-transform- \
672 | --program-transform | --program-transfor \
673 | --program-transfo | --program-transf \
674 | --program-trans | --program-tran \
675 | --progr-tra | --program-tr | --program-t)
676 ac_prev=program_transform_name ;;
677 -program-transform-name=* | --program-transform-name=* \
678 | --program-transform-nam=* | --program-transform-na=* \
679 | --program-transform-n=* | --program-transform-=* \
680 | --program-transform=* | --program-transfor=* \
681 | --program-transfo=* | --program-transf=* \
682 | --program-trans=* | --program-tran=* \
683 | --progr-tra=* | --program-tr=* | --program-t=*)
6bf9431b 684 program_transform_name=$ac_optarg ;;
252b5132
RH
685
686 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
687 | -silent | --silent | --silen | --sile | --sil)
688 silent=yes ;;
689
690 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
691 ac_prev=sbindir ;;
692 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
693 | --sbi=* | --sb=*)
6bf9431b 694 sbindir=$ac_optarg ;;
252b5132
RH
695
696 -sharedstatedir | --sharedstatedir | --sharedstatedi \
697 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
698 | --sharedst | --shareds | --shared | --share | --shar \
699 | --sha | --sh)
700 ac_prev=sharedstatedir ;;
701 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
702 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
703 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
704 | --sha=* | --sh=*)
6bf9431b 705 sharedstatedir=$ac_optarg ;;
252b5132
RH
706
707 -site | --site | --sit)
708 ac_prev=site ;;
709 -site=* | --site=* | --sit=*)
6bf9431b 710 site=$ac_optarg ;;
093872ec 711
252b5132
RH
712 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
713 ac_prev=srcdir ;;
714 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
6bf9431b 715 srcdir=$ac_optarg ;;
252b5132
RH
716
717 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
718 | --syscon | --sysco | --sysc | --sys | --sy)
719 ac_prev=sysconfdir ;;
720 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
721 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
6bf9431b 722 sysconfdir=$ac_optarg ;;
252b5132
RH
723
724 -target | --target | --targe | --targ | --tar | --ta | --t)
6bf9431b 725 ac_prev=target_alias ;;
252b5132 726 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
6bf9431b 727 target_alias=$ac_optarg ;;
252b5132
RH
728
729 -v | -verbose | --verbose | --verbos | --verbo | --verb)
730 verbose=yes ;;
731
6bf9431b
BE
732 -version | --version | --versio | --versi | --vers | -V)
733 ac_init_version=: ;;
252b5132
RH
734
735 -with-* | --with-*)
6bf9431b 736 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 737 # Reject names that are not valid shell variable names.
0ab6f085 738 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
6bf9431b
BE
739 { echo "$as_me: error: invalid package name: $ac_package" >&2
740 { (exit 1); exit 1; }; }
0ab6f085
AM
741 ac_package=`echo $ac_package| sed 's/-/_/g'`
742 case $ac_option in
743 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
744 *) ac_optarg=yes ;;
745 esac
746 eval "with_$ac_package='$ac_optarg'" ;;
252b5132
RH
747
748 -without-* | --without-*)
6bf9431b 749 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 750 # Reject names that are not valid shell variable names.
0ab6f085 751 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
6bf9431b
BE
752 { echo "$as_me: error: invalid package name: $ac_package" >&2
753 { (exit 1); exit 1; }; }
0ab6f085
AM
754 ac_package=`echo $ac_package | sed 's/-/_/g'`
755 eval "with_$ac_package=no" ;;
252b5132
RH
756
757 --x)
758 # Obsolete; use --with-x.
759 with_x=yes ;;
760
761 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
762 | --x-incl | --x-inc | --x-in | --x-i)
763 ac_prev=x_includes ;;
764 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
765 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
6bf9431b 766 x_includes=$ac_optarg ;;
252b5132
RH
767
768 -x-libraries | --x-libraries | --x-librarie | --x-librari \
769 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
770 ac_prev=x_libraries ;;
771 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
772 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
6bf9431b 773 x_libraries=$ac_optarg ;;
252b5132 774
6bf9431b
BE
775 -*) { echo "$as_me: error: unrecognized option: $ac_option
776Try \`$0 --help' for more information." >&2
777 { (exit 1); exit 1; }; }
252b5132
RH
778 ;;
779
6bf9431b
BE
780 *=*)
781 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
782 # Reject names that are not valid shell variable names.
783 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
784 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
785 { (exit 1); exit 1; }; }
0ab6f085
AM
786 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
787 eval "$ac_envvar='$ac_optarg'"
6bf9431b
BE
788 export $ac_envvar ;;
789
252b5132 790 *)
6bf9431b
BE
791 # FIXME: should be removed in autoconf 3.0.
792 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
793 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
794 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
795 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
252b5132
RH
796 ;;
797
798 esac
799done
800
801if test -n "$ac_prev"; then
6bf9431b
BE
802 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
803 { echo "$as_me: error: missing argument to $ac_option" >&2
804 { (exit 1); exit 1; }; }
252b5132
RH
805fi
806
0ab6f085
AM
807# Be sure to have absolute paths.
808for ac_var in exec_prefix prefix
252b5132 809do
0ab6f085 810 eval ac_val=$`echo $ac_var`
6bf9431b 811 case $ac_val in
0ab6f085
AM
812 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
813 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
814 { (exit 1); exit 1; }; };;
815 esac
816done
817
818# Be sure to have absolute paths.
819for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
820 localstatedir libdir includedir oldincludedir infodir mandir
821do
822 eval ac_val=$`echo $ac_var`
823 case $ac_val in
824 [\\/$]* | ?:[\\/]* ) ;;
825 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
826 { (exit 1); exit 1; }; };;
252b5132
RH
827 esac
828done
829
6bf9431b
BE
830# There might be people who depend on the old broken behavior: `$host'
831# used to hold the argument of --host etc.
832# FIXME: To remove some day.
833build=$build_alias
834host=$host_alias
835target=$target_alias
836
837# FIXME: To remove some day.
838if test "x$host_alias" != x; then
839 if test "x$build_alias" = x; then
840 cross_compiling=maybe
841 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
842 If a cross compiler is detected then cross compile mode will be used." >&2
843 elif test "x$build_alias" != "x$host_alias"; then
844 cross_compiling=yes
845 fi
846fi
252b5132 847
6bf9431b
BE
848ac_tool_prefix=
849test -n "$host_alias" && ac_tool_prefix=$host_alias-
850
851test "$silent" = yes && exec 6>/dev/null
252b5132 852
252b5132
RH
853
854# Find the source files, if location was not specified.
855if test -z "$srcdir"; then
856 ac_srcdir_defaulted=yes
0ab6f085
AM
857 # Try the directory containing this script, then its parent.
858 ac_confdir=`(dirname "$0") 2>/dev/null ||
6bf9431b
BE
859$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
860 X"$0" : 'X\(//\)[^/]' \| \
861 X"$0" : 'X\(//\)$' \| \
0ab6f085
AM
862 X"$0" : 'X\(/\)' \| \
863 . : '\(.\)' 2>/dev/null ||
6bf9431b 864echo X"$0" |
0ab6f085
AM
865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
866 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
867 /^X\(\/\/\)$/{ s//\1/; q; }
868 /^X\(\/\).*/{ s//\1/; q; }
869 s/.*/./; q'`
252b5132 870 srcdir=$ac_confdir
0ab6f085 871 if test ! -r $srcdir/$ac_unique_file; then
252b5132
RH
872 srcdir=..
873 fi
874else
875 ac_srcdir_defaulted=no
876fi
0ab6f085
AM
877if test ! -r $srcdir/$ac_unique_file; then
878 if test "$ac_srcdir_defaulted" = yes; then
879 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
880 { (exit 1); exit 1; }; }
881 else
882 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
6bf9431b 883 { (exit 1); exit 1; }; }
0ab6f085 884 fi
252b5132 885fi
0ab6f085
AM
886(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
887 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
6bf9431b 888 { (exit 1); exit 1; }; }
0ab6f085
AM
889srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
890ac_env_build_alias_set=${build_alias+set}
891ac_env_build_alias_value=$build_alias
892ac_cv_env_build_alias_set=${build_alias+set}
893ac_cv_env_build_alias_value=$build_alias
894ac_env_host_alias_set=${host_alias+set}
895ac_env_host_alias_value=$host_alias
896ac_cv_env_host_alias_set=${host_alias+set}
897ac_cv_env_host_alias_value=$host_alias
898ac_env_target_alias_set=${target_alias+set}
899ac_env_target_alias_value=$target_alias
900ac_cv_env_target_alias_set=${target_alias+set}
901ac_cv_env_target_alias_value=$target_alias
902ac_env_CC_set=${CC+set}
903ac_env_CC_value=$CC
904ac_cv_env_CC_set=${CC+set}
905ac_cv_env_CC_value=$CC
906ac_env_CFLAGS_set=${CFLAGS+set}
907ac_env_CFLAGS_value=$CFLAGS
908ac_cv_env_CFLAGS_set=${CFLAGS+set}
909ac_cv_env_CFLAGS_value=$CFLAGS
910ac_env_LDFLAGS_set=${LDFLAGS+set}
911ac_env_LDFLAGS_value=$LDFLAGS
912ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
913ac_cv_env_LDFLAGS_value=$LDFLAGS
914ac_env_CPPFLAGS_set=${CPPFLAGS+set}
915ac_env_CPPFLAGS_value=$CPPFLAGS
916ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
917ac_cv_env_CPPFLAGS_value=$CPPFLAGS
918ac_env_CPP_set=${CPP+set}
919ac_env_CPP_value=$CPP
920ac_cv_env_CPP_set=${CPP+set}
921ac_cv_env_CPP_value=$CPP
252b5132 922
6bf9431b
BE
923#
924# Report the --help message.
925#
926if test "$ac_init_help" = "long"; then
927 # Omit some internal or obsolete options to make the list less imposing.
928 # This message is too long to be a string in the A/UX 3.1 sh.
929 cat <<_ACEOF
930\`configure' configures this package to adapt to many kinds of systems.
252b5132 931
6bf9431b 932Usage: $0 [OPTION]... [VAR=VALUE]...
252b5132 933
6bf9431b
BE
934To assign environment variables (e.g., CC, CFLAGS...), specify them as
935VAR=VALUE. See below for descriptions of some of the useful variables.
252b5132 936
6bf9431b 937Defaults for the options are specified in brackets.
ac48eca1 938
6bf9431b
BE
939Configuration:
940 -h, --help display this help and exit
941 --help=short display options specific to this package
942 --help=recursive display the short help of all the included packages
943 -V, --version display version information and exit
944 -q, --quiet, --silent do not print \`checking...' messages
945 --cache-file=FILE cache test results in FILE [disabled]
946 -C, --config-cache alias for \`--cache-file=config.cache'
947 -n, --no-create do not create output files
948 --srcdir=DIR find the sources in DIR [configure dir or \`..']
949
0ab6f085
AM
950_ACEOF
951
952 cat <<_ACEOF
6bf9431b
BE
953Installation directories:
954 --prefix=PREFIX install architecture-independent files in PREFIX
955 [$ac_default_prefix]
956 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
957 [PREFIX]
ac48eca1 958
6bf9431b
BE
959By default, \`make install' will install all the files in
960\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
961an installation prefix other than \`$ac_default_prefix' using \`--prefix',
962for instance \`--prefix=\$HOME'.
ac48eca1 963
6bf9431b 964For better control, use the options below.
ac48eca1 965
6bf9431b
BE
966Fine tuning of the installation directories:
967 --bindir=DIR user executables [EPREFIX/bin]
968 --sbindir=DIR system admin executables [EPREFIX/sbin]
969 --libexecdir=DIR program executables [EPREFIX/libexec]
0ab6f085 970 --datadir=DIR read-only architecture-independent data [PREFIX/share]
6bf9431b
BE
971 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
972 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
973 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
974 --libdir=DIR object code libraries [EPREFIX/lib]
975 --includedir=DIR C header files [PREFIX/include]
976 --oldincludedir=DIR C header files for non-gcc [/usr/include]
0ab6f085
AM
977 --infodir=DIR info documentation [PREFIX/info]
978 --mandir=DIR man documentation [PREFIX/man]
6bf9431b 979_ACEOF
ac48eca1 980
6bf9431b 981 cat <<\_ACEOF
252b5132 982
6bf9431b
BE
983Program names:
984 --program-prefix=PREFIX prepend PREFIX to installed program names
985 --program-suffix=SUFFIX append SUFFIX to installed program names
986 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
252b5132 987
6bf9431b
BE
988System types:
989 --build=BUILD configure for building on BUILD [guessed]
990 --host=HOST cross-compile to build programs to run on HOST [BUILD]
991 --target=TARGET configure for building compilers for TARGET [HOST]
992_ACEOF
252b5132 993fi
252b5132 994
6bf9431b 995if test -n "$ac_init_help"; then
252b5132 996
6bf9431b 997 cat <<\_ACEOF
252b5132 998
6bf9431b
BE
999Optional Features:
1000 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1001 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1002 --disable-dependency-tracking speeds up one-time build
1003 --enable-dependency-tracking do not reject slow dependency extractors
0ab6f085
AM
1004 --enable-shared[=PKGS]
1005 build shared libraries [default=yes]
1006 --enable-static[=PKGS]
1007 build static libraries [default=yes]
d7040cdb
SE
1008 --enable-fast-install[=PKGS]
1009 optimize for fast installation [default=yes]
6bf9431b
BE
1010 --disable-libtool-lock avoid locking (might break parallel builds)
1011 --disable-nls do not use Native Language Support
1012 --enable-maintainer-mode enable make rules and dependencies not useful
1013 (and sometimes confusing) to the casual installer
241a6c40
AM
1014 --enable-werror treat compile warnings as errors
1015 --enable-build-warnings enable build-time compiler warnings
6bf9431b
BE
1016
1017Optional Packages:
1018 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1019 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d7040cdb
SE
1020 --with-pic try to use only PIC/non-PIC objects [default=use
1021 both]
1022 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
252b5132 1023
6bf9431b
BE
1024Some influential environment variables:
1025 CC C compiler command
1026 CFLAGS C compiler flags
1027 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1028 nonstandard directory <lib dir>
0ab6f085
AM
1029 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1030 headers in a nonstandard directory <include dir>
6bf9431b 1031 CPP C preprocessor
252b5132 1032
6bf9431b
BE
1033Use these variables to override the choices made by `configure' or to help
1034it to find libraries and programs with nonstandard names/locations.
1035
1036_ACEOF
252b5132
RH
1037fi
1038
6bf9431b
BE
1039if test "$ac_init_help" = "recursive"; then
1040 # If there are subdirs, report their specific --help.
0ab6f085 1041 ac_popdir=`pwd`
6bf9431b 1042 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
0ab6f085 1043 test -d $ac_dir || continue
6bf9431b 1044 ac_builddir=.
252b5132 1045
0ab6f085 1046if test "$ac_dir" != .; then
6bf9431b 1047 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
0ab6f085
AM
1048 # A "../" for each directory in $ac_dir_suffix.
1049 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1050else
1051 ac_dir_suffix= ac_top_builddir=
1052fi
6bf9431b
BE
1053
1054case $srcdir in
0ab6f085 1055 .) # No --srcdir option. We are building in place.
6bf9431b 1056 ac_srcdir=.
0ab6f085
AM
1057 if test -z "$ac_top_builddir"; then
1058 ac_top_srcdir=.
1059 else
1060 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1061 fi ;;
1062 [\\/]* | ?:[\\/]* ) # Absolute path.
6bf9431b 1063 ac_srcdir=$srcdir$ac_dir_suffix;
0ab6f085
AM
1064 ac_top_srcdir=$srcdir ;;
1065 *) # Relative path.
1066 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1067 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1068esac
1069
1070# Do not use `cd foo && pwd` to compute absolute paths, because
1071# the directories may not exist.
1072case `pwd` in
1073.) ac_abs_builddir="$ac_dir";;
1074*)
1075 case "$ac_dir" in
1076 .) ac_abs_builddir=`pwd`;;
1077 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1078 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1079 esac;;
1080esac
1081case $ac_abs_builddir in
1082.) ac_abs_top_builddir=${ac_top_builddir}.;;
1083*)
1084 case ${ac_top_builddir}. in
1085 .) ac_abs_top_builddir=$ac_abs_builddir;;
1086 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1087 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1088 esac;;
6bf9431b 1089esac
0ab6f085
AM
1090case $ac_abs_builddir in
1091.) ac_abs_srcdir=$ac_srcdir;;
1092*)
1093 case $ac_srcdir in
1094 .) ac_abs_srcdir=$ac_abs_builddir;;
1095 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1096 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1097 esac;;
1098esac
1099case $ac_abs_builddir in
1100.) ac_abs_top_srcdir=$ac_top_srcdir;;
1101*)
1102 case $ac_top_srcdir in
1103 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1104 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1105 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1106 esac;;
1107esac
1108
1109 cd $ac_dir
1110 # Check for guested configure; otherwise get Cygnus style configure.
1111 if test -f $ac_srcdir/configure.gnu; then
1112 echo
1113 $SHELL $ac_srcdir/configure.gnu --help=recursive
1114 elif test -f $ac_srcdir/configure; then
1115 echo
1116 $SHELL $ac_srcdir/configure --help=recursive
1117 elif test -f $ac_srcdir/configure.ac ||
1118 test -f $ac_srcdir/configure.in; then
1119 echo
1120 $ac_configure --help
6bf9431b
BE
1121 else
1122 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
0ab6f085
AM
1123 fi
1124 cd $ac_popdir
6bf9431b
BE
1125 done
1126fi
252b5132 1127
0ab6f085 1128test -n "$ac_init_help" && exit 0
6bf9431b
BE
1129if $ac_init_version; then
1130 cat <<\_ACEOF
252b5132 1131
0ab6f085 1132Copyright (C) 2003 Free Software Foundation, Inc.
6bf9431b
BE
1133This configure script is free software; the Free Software Foundation
1134gives unlimited permission to copy, distribute and modify it.
1135_ACEOF
0ab6f085 1136 exit 0
6bf9431b 1137fi
0ab6f085
AM
1138exec 5>config.log
1139cat >&5 <<_ACEOF
6bf9431b
BE
1140This file contains any messages produced by compilers while
1141running configure, to aid debugging if configure makes a mistake.
66477e87 1142
6bf9431b 1143It was created by $as_me, which was
0ab6f085 1144generated by GNU Autoconf 2.59. Invocation command line was
5d64ca4e 1145
6bf9431b 1146 $ $0 $@
5d64ca4e 1147
6bf9431b
BE
1148_ACEOF
1149{
1150cat <<_ASUNAME
1151## --------- ##
1152## Platform. ##
1153## --------- ##
1154
1155hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1156uname -m = `(uname -m) 2>/dev/null || echo unknown`
1157uname -r = `(uname -r) 2>/dev/null || echo unknown`
1158uname -s = `(uname -s) 2>/dev/null || echo unknown`
1159uname -v = `(uname -v) 2>/dev/null || echo unknown`
1160
1161/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1162/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1163
1164/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1165/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1166/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
0ab6f085 1167hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
6bf9431b
BE
1168/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1169/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1170/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1171
1172_ASUNAME
1173
1174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1175for as_dir in $PATH
1176do
1177 IFS=$as_save_IFS
1178 test -z "$as_dir" && as_dir=.
1179 echo "PATH: $as_dir"
1180done
5d64ca4e 1181
6bf9431b 1182} >&5
093872ec 1183
6bf9431b 1184cat >&5 <<_ACEOF
252b5132 1185
6bf9431b
BE
1186
1187## ----------- ##
1188## Core tests. ##
1189## ----------- ##
1190
1191_ACEOF
1192
1193
1194# Keep a trace of the command line.
1195# Strip out --no-create and --no-recursion so they do not pile up.
1196# Strip out --silent because we don't want to record it for future runs.
1197# Also quote any args containing shell meta-characters.
1198# Make two passes to allow for proper duplicate-argument suppression.
1199ac_configure_args=
1200ac_configure_args0=
1201ac_configure_args1=
0ab6f085 1202ac_sep=
6bf9431b
BE
1203ac_must_keep_next=false
1204for ac_pass in 1 2
1205do
1206 for ac_arg
1207 do
1208 case $ac_arg in
1209 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1210 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1211 | -silent | --silent | --silen | --sile | --sil)
1212 continue ;;
0ab6f085 1213 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
6bf9431b
BE
1214 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1215 esac
1216 case $ac_pass in
1217 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1218 2)
1219 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1220 if test $ac_must_keep_next = true; then
1221 ac_must_keep_next=false # Got value, back to normal.
1222 else
1223 case $ac_arg in
1224 *=* | --config-cache | -C | -disable-* | --disable-* \
1225 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1226 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1227 | -with-* | --with-* | -without-* | --without-* | --x)
1228 case "$ac_configure_args0 " in
1229 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1230 esac
1231 ;;
1232 -* ) ac_must_keep_next=true ;;
1233 esac
1234 fi
0ab6f085
AM
1235 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1236 # Get rid of the leading space.
1237 ac_sep=" "
6bf9431b
BE
1238 ;;
1239 esac
1240 done
1241done
1242$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1243$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1244
1245# When interrupted or exit'd, cleanup temporary files, and complete
1246# config.log. We remove comments because anyway the quotes in there
1247# would cause problems or look ugly.
0ab6f085
AM
1248# WARNING: Be sure not to use single quotes in there, as some shells,
1249# such as our DU 5.0 friend, will then `close' the trap.
6bf9431b
BE
1250trap 'exit_status=$?
1251 # Save into config.log some information that might help in debugging.
1252 {
1253 echo
1254
1255 cat <<\_ASBOX
1256## ---------------- ##
1257## Cache variables. ##
1258## ---------------- ##
1259_ASBOX
1260 echo
1261 # The following way of writing the cache mishandles newlines in values,
0ab6f085 1262{
6bf9431b 1263 (set) 2>&1 |
0ab6f085
AM
1264 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1265 *ac_space=\ *)
6bf9431b 1266 sed -n \
0ab6f085
AM
1267 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1268 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1269 ;;
6bf9431b 1270 *)
0ab6f085
AM
1271 sed -n \
1272 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6bf9431b 1273 ;;
0ab6f085
AM
1274 esac;
1275}
6bf9431b
BE
1276 echo
1277
1278 cat <<\_ASBOX
1279## ----------------- ##
1280## Output variables. ##
1281## ----------------- ##
1282_ASBOX
1283 echo
1284 for ac_var in $ac_subst_vars
1285 do
0ab6f085
AM
1286 eval ac_val=$`echo $ac_var`
1287 echo "$ac_var='"'"'$ac_val'"'"'"
6bf9431b
BE
1288 done | sort
1289 echo
1290
1291 if test -n "$ac_subst_files"; then
1292 cat <<\_ASBOX
0ab6f085
AM
1293## ------------- ##
1294## Output files. ##
1295## ------------- ##
6bf9431b
BE
1296_ASBOX
1297 echo
1298 for ac_var in $ac_subst_files
1299 do
0ab6f085
AM
1300 eval ac_val=$`echo $ac_var`
1301 echo "$ac_var='"'"'$ac_val'"'"'"
6bf9431b
BE
1302 done | sort
1303 echo
1304 fi
1305
1306 if test -s confdefs.h; then
1307 cat <<\_ASBOX
1308## ----------- ##
1309## confdefs.h. ##
1310## ----------- ##
1311_ASBOX
1312 echo
0ab6f085 1313 sed "/^$/d" confdefs.h | sort
6bf9431b
BE
1314 echo
1315 fi
1316 test "$ac_signal" != 0 &&
1317 echo "$as_me: caught signal $ac_signal"
1318 echo "$as_me: exit $exit_status"
1319 } >&5
0ab6f085
AM
1320 rm -f core *.core &&
1321 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
6bf9431b 1322 exit $exit_status
0ab6f085 1323 ' 0
6bf9431b
BE
1324for ac_signal in 1 2 13 15; do
1325 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1326done
1327ac_signal=0
1328
1329# confdefs.h avoids OS command line length limits that DEFS can exceed.
0ab6f085
AM
1330rm -rf conftest* confdefs.h
1331# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1332echo >confdefs.h
6bf9431b
BE
1333
1334# Predefined preprocessor variables.
1335
1336cat >>confdefs.h <<_ACEOF
1337#define PACKAGE_NAME "$PACKAGE_NAME"
1338_ACEOF
1339
1340
1341cat >>confdefs.h <<_ACEOF
1342#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1343_ACEOF
1344
1345
1346cat >>confdefs.h <<_ACEOF
1347#define PACKAGE_VERSION "$PACKAGE_VERSION"
1348_ACEOF
1349
1350
1351cat >>confdefs.h <<_ACEOF
1352#define PACKAGE_STRING "$PACKAGE_STRING"
1353_ACEOF
1354
1355
1356cat >>confdefs.h <<_ACEOF
1357#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1358_ACEOF
1359
1360
1361# Let the site file select an alternate cache file if it wants to.
1362# Prefer explicitly selected file to automatically selected ones.
0ab6f085
AM
1363if test -z "$CONFIG_SITE"; then
1364 if test "x$prefix" != xNONE; then
1365 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1366 else
1367 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1368 fi
6bf9431b 1369fi
0ab6f085 1370for ac_site_file in $CONFIG_SITE; do
6bf9431b
BE
1371 if test -r "$ac_site_file"; then
1372 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1373echo "$as_me: loading site script $ac_site_file" >&6;}
1374 sed 's/^/| /' "$ac_site_file" >&5
1375 . "$ac_site_file"
1376 fi
1377done
1378
1379if test -r "$cache_file"; then
1380 # Some versions of bash will fail to source /dev/null (special
1381 # files actually), so we avoid doing that.
1382 if test -f "$cache_file"; then
1383 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1384echo "$as_me: loading cache $cache_file" >&6;}
1385 case $cache_file in
0ab6f085
AM
1386 [\\/]* | ?:[\\/]* ) . $cache_file;;
1387 *) . ./$cache_file;;
6bf9431b
BE
1388 esac
1389 fi
1390else
1391 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1392echo "$as_me: creating cache $cache_file" >&6;}
1393 >$cache_file
1394fi
1395
1396# Check that the precious variables saved in the cache have kept the same
1397# value.
1398ac_cache_corrupted=false
0ab6f085
AM
1399for ac_var in `(set) 2>&1 |
1400 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
6bf9431b
BE
1401 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1402 eval ac_new_set=\$ac_env_${ac_var}_set
0ab6f085
AM
1403 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1404 eval ac_new_val="\$ac_env_${ac_var}_value"
6bf9431b
BE
1405 case $ac_old_set,$ac_new_set in
1406 set,)
1407 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1408echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1409 ac_cache_corrupted=: ;;
1410 ,set)
1411 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1412echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1413 ac_cache_corrupted=: ;;
1414 ,);;
1415 *)
1416 if test "x$ac_old_val" != "x$ac_new_val"; then
1417 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1418echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1419 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1420echo "$as_me: former value: $ac_old_val" >&2;}
1421 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1422echo "$as_me: current value: $ac_new_val" >&2;}
1423 ac_cache_corrupted=:
1424 fi;;
1425 esac
1426 # Pass precious variables to config.status.
1427 if test "$ac_new_set" = set; then
1428 case $ac_new_val in
0ab6f085
AM
1429 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1430 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
6bf9431b
BE
1431 *) ac_arg=$ac_var=$ac_new_val ;;
1432 esac
1433 case " $ac_configure_args " in
1434 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1435 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1436 esac
1437 fi
1438done
1439if $ac_cache_corrupted; then
1440 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1441echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1442 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1443echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1444 { (exit 1); exit 1; }; }
1445fi
1446
0ab6f085
AM
1447ac_ext=c
1448ac_cpp='$CPP $CPPFLAGS'
1449ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1450ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1451ac_compiler_gnu=$ac_cv_c_compiler_gnu
1452
6bf9431b
BE
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473ac_aux_dir=
0ab6f085
AM
1474for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1475 if test -f $ac_dir/install-sh; then
6bf9431b
BE
1476 ac_aux_dir=$ac_dir
1477 ac_install_sh="$ac_aux_dir/install-sh -c"
1478 break
0ab6f085 1479 elif test -f $ac_dir/install.sh; then
6bf9431b
BE
1480 ac_aux_dir=$ac_dir
1481 ac_install_sh="$ac_aux_dir/install.sh -c"
1482 break
0ab6f085 1483 elif test -f $ac_dir/shtool; then
6bf9431b
BE
1484 ac_aux_dir=$ac_dir
1485 ac_install_sh="$ac_aux_dir/shtool install -c"
1486 break
1487 fi
1488done
1489if test -z "$ac_aux_dir"; then
0ab6f085
AM
1490 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1491echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
6bf9431b
BE
1492 { (exit 1); exit 1; }; }
1493fi
0ab6f085
AM
1494ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1495ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1496ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
6bf9431b
BE
1497
1498# Make sure we can run config.sub.
0ab6f085
AM
1499$ac_config_sub sun4 >/dev/null 2>&1 ||
1500 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1501echo "$as_me: error: cannot run $ac_config_sub" >&2;}
6bf9431b
BE
1502 { (exit 1); exit 1; }; }
1503
0ab6f085
AM
1504echo "$as_me:$LINENO: checking build system type" >&5
1505echo $ECHO_N "checking build system type... $ECHO_C" >&6
6bf9431b
BE
1506if test "${ac_cv_build+set}" = set; then
1507 echo $ECHO_N "(cached) $ECHO_C" >&6
1508else
0ab6f085
AM
1509 ac_cv_build_alias=$build_alias
1510test -z "$ac_cv_build_alias" &&
1511 ac_cv_build_alias=`$ac_config_guess`
1512test -z "$ac_cv_build_alias" &&
6bf9431b
BE
1513 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1514echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1515 { (exit 1); exit 1; }; }
0ab6f085
AM
1516ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1517 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1518echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
6bf9431b
BE
1519 { (exit 1); exit 1; }; }
1520
1521fi
0ab6f085
AM
1522echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1523echo "${ECHO_T}$ac_cv_build" >&6
6bf9431b 1524build=$ac_cv_build
0ab6f085
AM
1525build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1526build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1527build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1528
1529
1530echo "$as_me:$LINENO: checking host system type" >&5
1531echo $ECHO_N "checking host system type... $ECHO_C" >&6
6bf9431b
BE
1532if test "${ac_cv_host+set}" = set; then
1533 echo $ECHO_N "(cached) $ECHO_C" >&6
1534else
0ab6f085
AM
1535 ac_cv_host_alias=$host_alias
1536test -z "$ac_cv_host_alias" &&
1537 ac_cv_host_alias=$ac_cv_build_alias
1538ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1539 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1540echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6bf9431b
BE
1541 { (exit 1); exit 1; }; }
1542
1543fi
0ab6f085
AM
1544echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1545echo "${ECHO_T}$ac_cv_host" >&6
6bf9431b 1546host=$ac_cv_host
0ab6f085
AM
1547host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1548host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1549host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1550
1551
1552echo "$as_me:$LINENO: checking target system type" >&5
1553echo $ECHO_N "checking target system type... $ECHO_C" >&6
6bf9431b
BE
1554if test "${ac_cv_target+set}" = set; then
1555 echo $ECHO_N "(cached) $ECHO_C" >&6
1556else
0ab6f085
AM
1557 ac_cv_target_alias=$target_alias
1558test "x$ac_cv_target_alias" = "x" &&
1559 ac_cv_target_alias=$ac_cv_host_alias
1560ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1561 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1562echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
6bf9431b
BE
1563 { (exit 1); exit 1; }; }
1564
1565fi
0ab6f085
AM
1566echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1567echo "${ECHO_T}$ac_cv_target" >&6
6bf9431b 1568target=$ac_cv_target
0ab6f085
AM
1569target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1570target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1571target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6bf9431b
BE
1572
1573
1574# The aliases save the names the user supplied, while $host etc.
1575# will get canonicalized.
1576test -n "$target_alias" &&
1577 test "$program_prefix$program_suffix$program_transform_name" = \
1578 NONENONEs,x,x, &&
1579 program_prefix=${target_alias}-
1580ac_ext=c
1581ac_cpp='$CPP $CPPFLAGS'
1582ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1583ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1584ac_compiler_gnu=$ac_cv_c_compiler_gnu
1585if test -n "$ac_tool_prefix"; then
1586 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1587set dummy ${ac_tool_prefix}gcc; ac_word=$2
0ab6f085
AM
1588echo "$as_me:$LINENO: checking for $ac_word" >&5
1589echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6bf9431b
BE
1590if test "${ac_cv_prog_CC+set}" = set; then
1591 echo $ECHO_N "(cached) $ECHO_C" >&6
1592else
1593 if test -n "$CC"; then
1594 ac_cv_prog_CC="$CC" # Let the user override the test.
1595else
1596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1597for as_dir in $PATH
1598do
1599 IFS=$as_save_IFS
1600 test -z "$as_dir" && as_dir=.
1601 for ac_exec_ext in '' $ac_executable_extensions; do
0ab6f085 1602 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bf9431b
BE
1603 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1605 break 2
1606 fi
1607done
1608done
1609
1610fi
1611fi
1612CC=$ac_cv_prog_CC
1613if test -n "$CC"; then
0ab6f085
AM
1614 echo "$as_me:$LINENO: result: $CC" >&5
1615echo "${ECHO_T}$CC" >&6
6bf9431b 1616else
0ab6f085
AM
1617 echo "$as_me:$LINENO: result: no" >&5
1618echo "${ECHO_T}no" >&6
6bf9431b
BE
1619fi
1620
1621fi
1622if test -z "$ac_cv_prog_CC"; then
1623 ac_ct_CC=$CC
1624 # Extract the first word of "gcc", so it can be a program name with args.
1625set dummy gcc; ac_word=$2
0ab6f085
AM
1626echo "$as_me:$LINENO: checking for $ac_word" >&5
1627echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6bf9431b
BE
1628if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1629 echo $ECHO_N "(cached) $ECHO_C" >&6
1630else
1631 if test -n "$ac_ct_CC"; then
1632 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1633else
1634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1635for as_dir in $PATH
1636do
1637 IFS=$as_save_IFS
1638 test -z "$as_dir" && as_dir=.
1639 for ac_exec_ext in '' $ac_executable_extensions; do
0ab6f085 1640 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bf9431b
BE
1641 ac_cv_prog_ac_ct_CC="gcc"
1642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1643 break 2
1644 fi
1645done
1646done
1647
1648fi
1649fi
1650ac_ct_CC=$ac_cv_prog_ac_ct_CC
1651if test -n "$ac_ct_CC"; then
0ab6f085
AM
1652 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1653echo "${ECHO_T}$ac_ct_CC" >&6
6bf9431b 1654else
0ab6f085
AM
1655 echo "$as_me:$LINENO: result: no" >&5
1656echo "${ECHO_T}no" >&6
6bf9431b
BE
1657fi
1658
0ab6f085 1659 CC=$ac_ct_CC
6bf9431b
BE
1660else
1661 CC="$ac_cv_prog_CC"
1662fi
1663
1664if test -z "$CC"; then
0ab6f085
AM
1665 if test -n "$ac_tool_prefix"; then
1666 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6bf9431b 1667set dummy ${ac_tool_prefix}cc; ac_word=$2
0ab6f085
AM
1668echo "$as_me:$LINENO: checking for $ac_word" >&5
1669echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6bf9431b
BE
1670if test "${ac_cv_prog_CC+set}" = set; then
1671 echo $ECHO_N "(cached) $ECHO_C" >&6
1672else
1673 if test -n "$CC"; then
1674 ac_cv_prog_CC="$CC" # Let the user override the test.
1675else
1676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1677for as_dir in $PATH
1678do
1679 IFS=$as_save_IFS
1680 test -z "$as_dir" && as_dir=.
1681 for ac_exec_ext in '' $ac_executable_extensions; do
0ab6f085 1682 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bf9431b
BE
1683 ac_cv_prog_CC="${ac_tool_prefix}cc"
1684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1685 break 2
1686 fi
1687done
1688done
1689
1690fi
1691fi
1692CC=$ac_cv_prog_CC
1693if test -n "$CC"; then
0ab6f085
AM
1694 echo "$as_me:$LINENO: result: $CC" >&5
1695echo "${ECHO_T}$CC" >&6
6bf9431b 1696else
0ab6f085
AM
1697 echo "$as_me:$LINENO: result: no" >&5
1698echo "${ECHO_T}no" >&6
6bf9431b
BE
1699fi
1700
0ab6f085
AM
1701fi
1702if test -z "$ac_cv_prog_CC"; then
1703 ac_ct_CC=$CC
1704 # Extract the first word of "cc", so it can be a program name with args.
1705set dummy cc; ac_word=$2
1706echo "$as_me:$LINENO: checking for $ac_word" >&5
1707echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1708if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1709 echo $ECHO_N "(cached) $ECHO_C" >&6
1710else
1711 if test -n "$ac_ct_CC"; then
1712 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1713else
1714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1715for as_dir in $PATH
1716do
1717 IFS=$as_save_IFS
1718 test -z "$as_dir" && as_dir=.
1719 for ac_exec_ext in '' $ac_executable_extensions; do
1720 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1721 ac_cv_prog_ac_ct_CC="cc"
1722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1723 break 2
1b9750d6 1724 fi
0ab6f085
AM
1725done
1726done
1727
1728fi
1729fi
1730ac_ct_CC=$ac_cv_prog_ac_ct_CC
1731if test -n "$ac_ct_CC"; then
1732 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1733echo "${ECHO_T}$ac_ct_CC" >&6
1734else
1735 echo "$as_me:$LINENO: result: no" >&5
1736echo "${ECHO_T}no" >&6
1737fi
1738
1739 CC=$ac_ct_CC
1740else
1741 CC="$ac_cv_prog_CC"
1742fi
1743
6bf9431b
BE
1744fi
1745if test -z "$CC"; then
1746 # Extract the first word of "cc", so it can be a program name with args.
1747set dummy cc; ac_word=$2
0ab6f085
AM
1748echo "$as_me:$LINENO: checking for $ac_word" >&5
1749echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6bf9431b
BE
1750if test "${ac_cv_prog_CC+set}" = set; then
1751 echo $ECHO_N "(cached) $ECHO_C" >&6
1752else
1753 if test -n "$CC"; then
1754 ac_cv_prog_CC="$CC" # Let the user override the test.
1755else
1756 ac_prog_rejected=no
1757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1758for as_dir in $PATH
1759do
1760 IFS=$as_save_IFS
1761 test -z "$as_dir" && as_dir=.
1762 for ac_exec_ext in '' $ac_executable_extensions; do
0ab6f085 1763 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bf9431b
BE
1764 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1765 ac_prog_rejected=yes
1766 continue
1767 fi
1768 ac_cv_prog_CC="cc"
1769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1770 break 2
1771 fi
1772done
1773done
1774
1775if test $ac_prog_rejected = yes; then
1776 # We found a bogon in the path, so make sure we never use it.
1777 set dummy $ac_cv_prog_CC
1778 shift
1779 if test $# != 0; then
1780 # We chose a different compiler from the bogus one.
1781 # However, it has the same basename, so the bogon will be chosen
1782 # first if we set CC to just the basename; use the full file name.
1783 shift
1784 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1785 fi
1786fi
1787fi
1788fi
1789CC=$ac_cv_prog_CC
1790if test -n "$CC"; then
0ab6f085
AM
1791 echo "$as_me:$LINENO: result: $CC" >&5
1792echo "${ECHO_T}$CC" >&6
6bf9431b 1793else
0ab6f085
AM
1794 echo "$as_me:$LINENO: result: no" >&5
1795echo "${ECHO_T}no" >&6
6bf9431b
BE
1796fi
1797
1798fi
1799if test -z "$CC"; then
1800 if test -n "$ac_tool_prefix"; then
0ab6f085 1801 for ac_prog in cl
6bf9431b
BE
1802 do
1803 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1804set dummy $ac_tool_prefix$ac_prog; ac_word=$2
0ab6f085
AM
1805echo "$as_me:$LINENO: checking for $ac_word" >&5
1806echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6bf9431b
BE
1807if test "${ac_cv_prog_CC+set}" = set; then
1808 echo $ECHO_N "(cached) $ECHO_C" >&6
1809else
1810 if test -n "$CC"; then
1811 ac_cv_prog_CC="$CC" # Let the user override the test.
1812else
1813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1814for as_dir in $PATH
1815do
1816 IFS=$as_save_IFS
1817 test -z "$as_dir" && as_dir=.
1818 for ac_exec_ext in '' $ac_executable_extensions; do
0ab6f085 1819 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bf9431b
BE
1820 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1822 break 2
1823 fi
1824done
1825done
1826
1827fi
1828fi
1829CC=$ac_cv_prog_CC
1830if test -n "$CC"; then
0ab6f085
AM
1831 echo "$as_me:$LINENO: result: $CC" >&5
1832echo "${ECHO_T}$CC" >&6
6bf9431b 1833else
0ab6f085
AM
1834 echo "$as_me:$LINENO: result: no" >&5
1835echo "${ECHO_T}no" >&6
6bf9431b
BE
1836fi
1837
1838 test -n "$CC" && break
1839 done
1840fi
1841if test -z "$CC"; then
1842 ac_ct_CC=$CC
0ab6f085 1843 for ac_prog in cl
6bf9431b
BE
1844do
1845 # Extract the first word of "$ac_prog", so it can be a program name with args.
1846set dummy $ac_prog; ac_word=$2
0ab6f085
AM
1847echo "$as_me:$LINENO: checking for $ac_word" >&5
1848echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6bf9431b
BE
1849if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1850 echo $ECHO_N "(cached) $ECHO_C" >&6
1851else
1852 if test -n "$ac_ct_CC"; then
1853 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1854else
1855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1856for as_dir in $PATH
1857do
1858 IFS=$as_save_IFS
1859 test -z "$as_dir" && as_dir=.
1860 for ac_exec_ext in '' $ac_executable_extensions; do
0ab6f085 1861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bf9431b
BE
1862 ac_cv_prog_ac_ct_CC="$ac_prog"
1863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1864 break 2
1865 fi
1866done
1867done
1868
1869fi
1870fi
1871ac_ct_CC=$ac_cv_prog_ac_ct_CC
1872if test -n "$ac_ct_CC"; then
0ab6f085
AM
1873 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1874echo "${ECHO_T}$ac_ct_CC" >&6
6bf9431b 1875else
0ab6f085
AM
1876 echo "$as_me:$LINENO: result: no" >&5
1877echo "${ECHO_T}no" >&6
6bf9431b
BE
1878fi
1879
1880 test -n "$ac_ct_CC" && break
1881done
1882
0ab6f085 1883 CC=$ac_ct_CC
6bf9431b
BE
1884fi
1885
1886fi
1887
1888
1889test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1890See \`config.log' for more details." >&5
1891echo "$as_me: error: no acceptable C compiler found in \$PATH
1892See \`config.log' for more details." >&2;}
1893 { (exit 1); exit 1; }; }
1894
1895# Provide some information about the compiler.
0ab6f085
AM
1896echo "$as_me:$LINENO:" \
1897 "checking for C compiler version" >&5
6bf9431b 1898ac_compiler=`set X $ac_compile; echo $2`
0ab6f085
AM
1899{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1900 (eval $ac_compiler --version </dev/null >&5) 2>&5
6bf9431b
BE
1901 ac_status=$?
1902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1903 (exit $ac_status); }
0ab6f085
AM
1904{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1905 (eval $ac_compiler -v </dev/null >&5) 2>&5
6bf9431b
BE
1906 ac_status=$?
1907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1908 (exit $ac_status); }
0ab6f085
AM
1909{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1910 (eval $ac_compiler -V </dev/null >&5) 2>&5
6bf9431b
BE
1911 ac_status=$?
1912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1913 (exit $ac_status); }
1914
1915cat >conftest.$ac_ext <<_ACEOF
1916/* confdefs.h. */
1917_ACEOF
1918cat confdefs.h >>conftest.$ac_ext
1919cat >>conftest.$ac_ext <<_ACEOF
1920/* end confdefs.h. */
1921
1922int
1923main ()
1924{
1925
1926 ;
1927 return 0;
1928}
1929_ACEOF
1930ac_clean_files_save=$ac_clean_files
1931ac_clean_files="$ac_clean_files a.out a.exe b.out"
1932# Try to create an executable without -o first, disregard a.out.
1933# It will help us diagnose broken compilers, and finding out an intuition
1934# of exeext.
0ab6f085
AM
1935echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1936echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
6bf9431b 1937ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
0ab6f085
AM
1938if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1939 (eval $ac_link_default) 2>&5
6bf9431b
BE
1940 ac_status=$?
1941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1942 (exit $ac_status); }; then
0ab6f085
AM
1943 # Find the output, starting from the most likely. This scheme is
1944# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1945# resort.
1946
1947# Be careful to initialize this variable, since it used to be cached.
1948# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1949ac_cv_exeext=
1950# b.out is created by i960 compilers.
1951for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
6bf9431b
BE
1952do
1953 test -f "$ac_file" || continue
1954 case $ac_file in
0ab6f085
AM
1955 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1956 ;;
1957 conftest.$ac_ext )
1958 # This is the source file.
6bf9431b
BE
1959 ;;
1960 [ab].out )
1961 # We found the default executable, but exeext='' is most
1962 # certainly right.
1963 break;;
1964 *.* )
0ab6f085
AM
1965 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1966 # FIXME: I believe we export ac_cv_exeext for Libtool,
1967 # but it would be cool to find out if it's true. Does anybody
1968 # maintain Libtool? --akim.
1969 export ac_cv_exeext
6bf9431b
BE
1970 break;;
1971 * )
1972 break;;
1973 esac
1974done
1975else
1976 echo "$as_me: failed program was:" >&5
1977sed 's/^/| /' conftest.$ac_ext >&5
1978
1979{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1980See \`config.log' for more details." >&5
1981echo "$as_me: error: C compiler cannot create executables
1982See \`config.log' for more details." >&2;}
1983 { (exit 77); exit 77; }; }
1984fi
1985
1986ac_exeext=$ac_cv_exeext
0ab6f085
AM
1987echo "$as_me:$LINENO: result: $ac_file" >&5
1988echo "${ECHO_T}$ac_file" >&6
6bf9431b 1989
0ab6f085 1990# Check the compiler produces executables we can run. If not, either
6bf9431b 1991# the compiler is broken, or we cross compile.
0ab6f085
AM
1992echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1993echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
6bf9431b
BE
1994# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1995# If not cross compiling, check that we can run a simple program.
1996if test "$cross_compiling" != yes; then
1997 if { ac_try='./$ac_file'
0ab6f085
AM
1998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1999 (eval $ac_try) 2>&5
6bf9431b
BE
2000 ac_status=$?
2001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002 (exit $ac_status); }; }; then
2003 cross_compiling=no
2004 else
2005 if test "$cross_compiling" = maybe; then
2006 cross_compiling=yes
2007 else
2008 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2009If you meant to cross compile, use \`--host'.
2010See \`config.log' for more details." >&5
2011echo "$as_me: error: cannot run C compiled programs.
2012If you meant to cross compile, use \`--host'.
2013See \`config.log' for more details." >&2;}
2014 { (exit 1); exit 1; }; }
2015 fi
2016 fi
2017fi
0ab6f085
AM
2018echo "$as_me:$LINENO: result: yes" >&5
2019echo "${ECHO_T}yes" >&6
6bf9431b
BE
2020
2021rm -f a.out a.exe conftest$ac_cv_exeext b.out
2022ac_clean_files=$ac_clean_files_save
0ab6f085 2023# Check the compiler produces executables we can run. If not, either
6bf9431b 2024# the compiler is broken, or we cross compile.
0ab6f085
AM
2025echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2026echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2027echo "$as_me:$LINENO: result: $cross_compiling" >&5
2028echo "${ECHO_T}$cross_compiling" >&6
2029
2030echo "$as_me:$LINENO: checking for suffix of executables" >&5
2031echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2032if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2033 (eval $ac_link) 2>&5
6bf9431b
BE
2034 ac_status=$?
2035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2036 (exit $ac_status); }; then
2037 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2038# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2039# work properly (i.e., refer to `conftest.exe'), while it won't with
2040# `rm'.
2041for ac_file in conftest.exe conftest conftest.*; do
2042 test -f "$ac_file" || continue
2043 case $ac_file in
0ab6f085 2044 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
6bf9431b 2045 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
0ab6f085 2046 export ac_cv_exeext
6bf9431b
BE
2047 break;;
2048 * ) break;;
2049 esac
2050done
2051else
2052 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2053See \`config.log' for more details." >&5
2054echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2055See \`config.log' for more details." >&2;}
2056 { (exit 1); exit 1; }; }
2057fi
2058
2059rm -f conftest$ac_cv_exeext
0ab6f085
AM
2060echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2061echo "${ECHO_T}$ac_cv_exeext" >&6
6bf9431b
BE
2062
2063rm -f conftest.$ac_ext
2064EXEEXT=$ac_cv_exeext
2065ac_exeext=$EXEEXT
0ab6f085
AM
2066echo "$as_me:$LINENO: checking for suffix of object files" >&5
2067echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
6bf9431b
BE
2068if test "${ac_cv_objext+set}" = set; then
2069 echo $ECHO_N "(cached) $ECHO_C" >&6
2070else
2071 cat >conftest.$ac_ext <<_ACEOF
2072/* confdefs.h. */
2073_ACEOF
2074cat confdefs.h >>conftest.$ac_ext
2075cat >>conftest.$ac_ext <<_ACEOF
2076/* end confdefs.h. */
2077
2078int
2079main ()
2080{
2081
2082 ;
2083 return 0;
2084}
2085_ACEOF
2086rm -f conftest.o conftest.obj
0ab6f085
AM
2087if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2088 (eval $ac_compile) 2>&5
6bf9431b
BE
2089 ac_status=$?
2090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091 (exit $ac_status); }; then
0ab6f085 2092 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
6bf9431b 2093 case $ac_file in
0ab6f085 2094 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
6bf9431b
BE
2095 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2096 break;;
2097 esac
2098done
2099else
2100 echo "$as_me: failed program was:" >&5
2101sed 's/^/| /' conftest.$ac_ext >&5
2102
2103{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2104See \`config.log' for more details." >&5
2105echo "$as_me: error: cannot compute suffix of object files: cannot compile
2106See \`config.log' for more details." >&2;}
2107 { (exit 1); exit 1; }; }
2108fi
2109
2110rm -f conftest.$ac_cv_objext conftest.$ac_ext
2111fi
0ab6f085
AM
2112echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2113echo "${ECHO_T}$ac_cv_objext" >&6
6bf9431b
BE
2114OBJEXT=$ac_cv_objext
2115ac_objext=$OBJEXT
0ab6f085
AM
2116echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2117echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
6bf9431b
BE
2118if test "${ac_cv_c_compiler_gnu+set}" = set; then
2119 echo $ECHO_N "(cached) $ECHO_C" >&6
2120else
2121 cat >conftest.$ac_ext <<_ACEOF
2122/* confdefs.h. */
2123_ACEOF
2124cat confdefs.h >>conftest.$ac_ext
2125cat >>conftest.$ac_ext <<_ACEOF
2126/* end confdefs.h. */
2127
2128int
2129main ()
2130{
2131#ifndef __GNUC__
2132 choke me
2133#endif
2134
2135 ;
2136 return 0;
2137}
2138_ACEOF
2139rm -f conftest.$ac_objext
0ab6f085
AM
2140if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2141 (eval $ac_compile) 2>conftest.er1
6bf9431b
BE
2142 ac_status=$?
2143 grep -v '^ *+' conftest.er1 >conftest.err
2144 rm -f conftest.er1
2145 cat conftest.err >&5
2146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0ab6f085
AM
2147 (exit $ac_status); } &&
2148 { ac_try='test -z "$ac_c_werror_flag"
2149 || test ! -s conftest.err'
2150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2151 (eval $ac_try) 2>&5
2152 ac_status=$?
2153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154 (exit $ac_status); }; } &&
2155 { ac_try='test -s conftest.$ac_objext'
2156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2157 (eval $ac_try) 2>&5
2158 ac_status=$?
2159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160 (exit $ac_status); }; }; then
6bf9431b
BE
2161 ac_compiler_gnu=yes
2162else
2163 echo "$as_me: failed program was:" >&5
2164sed 's/^/| /' conftest.$ac_ext >&5
2165
0ab6f085 2166ac_compiler_gnu=no
6bf9431b 2167fi
0ab6f085 2168rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6bf9431b
BE
2169ac_cv_c_compiler_gnu=$ac_compiler_gnu
2170
2171fi
0ab6f085
AM
2172echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2173echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
6bf9431b
BE
2174GCC=`test $ac_compiler_gnu = yes && echo yes`
2175ac_test_CFLAGS=${CFLAGS+set}
2176ac_save_CFLAGS=$CFLAGS
0ab6f085
AM
2177CFLAGS="-g"
2178echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2179echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
6bf9431b
BE
2180if test "${ac_cv_prog_cc_g+set}" = set; then
2181 echo $ECHO_N "(cached) $ECHO_C" >&6
2182else
0ab6f085 2183 cat >conftest.$ac_ext <<_ACEOF
6bf9431b
BE
2184/* confdefs.h. */
2185_ACEOF
2186cat confdefs.h >>conftest.$ac_ext
2187cat >>conftest.$ac_ext <<_ACEOF
2188/* end confdefs.h. */
2189
2190int
2191main ()
2192{
2193
2194 ;
2195 return 0;
2196}
2197_ACEOF
2198rm -f conftest.$ac_objext
0ab6f085
AM
2199if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2200 (eval $ac_compile) 2>conftest.er1
6bf9431b
BE
2201 ac_status=$?
2202 grep -v '^ *+' conftest.er1 >conftest.err
2203 rm -f conftest.er1
2204 cat conftest.err >&5
2205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0ab6f085
AM
2206 (exit $ac_status); } &&
2207 { ac_try='test -z "$ac_c_werror_flag"
2208 || test ! -s conftest.err'
2209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2210 (eval $ac_try) 2>&5
6bf9431b
BE
2211 ac_status=$?
2212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0ab6f085
AM
2213 (exit $ac_status); }; } &&
2214 { ac_try='test -s conftest.$ac_objext'
2215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2216 (eval $ac_try) 2>&5
6bf9431b
BE
2217 ac_status=$?
2218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0ab6f085 2219 (exit $ac_status); }; }; then
6bf9431b
BE
2220 ac_cv_prog_cc_g=yes
2221else
2222 echo "$as_me: failed program was:" >&5
2223sed 's/^/| /' conftest.$ac_ext >&5
2224
0ab6f085 2225ac_cv_prog_cc_g=no
6bf9431b 2226fi
0ab6f085 2227rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6bf9431b 2228fi
0ab6f085
AM
2229echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2230echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
6bf9431b
BE
2231if test "$ac_test_CFLAGS" = set; then
2232 CFLAGS=$ac_save_CFLAGS
2233elif test $ac_cv_prog_cc_g = yes; then
2234 if test "$GCC" = yes; then
2235 CFLAGS="-g -O2"
2236 else
2237 CFLAGS="-g"
2238 fi
2239else
2240 if test "$GCC" = yes; then
2241 CFLAGS="-O2"
2242 else
2243 CFLAGS=
2244 fi
2245fi
0ab6f085
AM
2246echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2247echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2248if test "${ac_cv_prog_cc_stdc+set}" = set; then
6bf9431b
BE
2249 echo $ECHO_N "(cached) $ECHO_C" >&6
2250else
0ab6f085 2251 ac_cv_prog_cc_stdc=no
6bf9431b
BE
2252ac_save_CC=$CC
2253cat >conftest.$ac_ext <<_ACEOF
2254/* confdefs.h. */
2255_ACEOF
2256cat confdefs.h >>conftest.$ac_ext
2257cat >>conftest.$ac_ext <<_ACEOF
2258/* end confdefs.h. */
2259#include <stdarg.h>
2260#include <stdio.h>
2261#include <sys/types.h>
2262#include <sys/stat.h>
2263/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2264struct buf { int x; };
2265FILE * (*rcsopen) (struct buf *, struct stat *, int);
2266static char *e (p, i)
2267 char **p;
2268 int i;
2269{
2270 return p[i];
2271}
2272static char *f (char * (*g) (char **, int), char **p, ...)
2273{
2274 char *s;
2275 va_list v;
2276 va_start (v,p);
2277 s = g (p, va_arg (v,int));
2278 va_end (v);
2279 return s;
2280}
2281
2282/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2283 function prototypes and stuff, but not '\xHH' hex character constants.
2284 These don't provoke an error unfortunately, instead are silently treated
0ab6f085 2285 as 'x'. The following induces an error, until -std1 is added to get
6bf9431b
BE
2286 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2287 array size at least. It's necessary to write '\x00'==0 to get something
0ab6f085 2288 that's true only with -std1. */
6bf9431b
BE
2289int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2290
2291int test (int i, double x);
2292struct s1 {int (*f) (int a);};
2293struct s2 {int (*f) (double a);};
2294int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2295int argc;
2296char **argv;
2297int
2298main ()
2299{
2300return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2301 ;
2302 return 0;
2303}
2304_ACEOF
0ab6f085
AM
2305# Don't try gcc -ansi; that turns off useful extensions and
2306# breaks some systems' header files.
2307# AIX -qlanglvl=ansi
2308# Ultrix and OSF/1 -std1
2309# HP-UX 10.20 and later -Ae
2310# HP-UX older versions -Aa -D_HPUX_SOURCE
2311# SVR4 -Xc -D__EXTENSIONS__
2312for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6bf9431b
BE
2313do
2314 CC="$ac_save_CC $ac_arg"
2315 rm -f conftest.$ac_objext
0ab6f085
AM
2316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2317 (eval $ac_compile) 2>conftest.er1
6bf9431b
BE
2318 ac_status=$?
2319 grep -v '^ *+' conftest.er1 >conftest.err
2320 rm -f conftest.er1
2321 cat conftest.err >&5
2322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0ab6f085
AM
2323 (exit $ac_status); } &&
2324 { ac_try='test -z "$ac_c_werror_flag"
2325 || test ! -s conftest.err'
2326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2327 (eval $ac_try) 2>&5
2328 ac_status=$?
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); }; } &&
2331 { ac_try='test -s conftest.$ac_objext'
2332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2333 (eval $ac_try) 2>&5
2334 ac_status=$?
2335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336 (exit $ac_status); }; }; then
2337 ac_cv_prog_cc_stdc=$ac_arg
2338break
6bf9431b
BE
2339else
2340 echo "$as_me: failed program was:" >&5
2341sed 's/^/| /' conftest.$ac_ext >&5
2342
2343fi
0ab6f085 2344rm -f conftest.err conftest.$ac_objext
6bf9431b 2345done
0ab6f085 2346rm -f conftest.$ac_ext conftest.$ac_objext
6bf9431b
BE
2347CC=$ac_save_CC
2348
2349fi
0ab6f085
AM
2350
2351case "x$ac_cv_prog_cc_stdc" in
2352 x|xno)
2353 echo "$as_me:$LINENO: result: none needed" >&5
2354echo "${ECHO_T}none needed" >&6 ;;
6bf9431b 2355 *)
0ab6f085
AM
2356 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2357echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2358 CC="$CC $ac_cv_prog_cc_stdc" ;;
6bf9431b
BE
2359esac
2360
0ab6f085
AM
2361# Some people use a C++ compiler to compile C. Since we use `exit',
2362# in C++ we need to declare it. In case someone uses the same compiler
2363# for both compiling C and C++ we need to have the C++ compiler decide
2364# the declaration of exit, since it's the most demanding environment.
2365cat >conftest.$ac_ext <<_ACEOF
2366#ifndef __cplusplus
2367 choke me
2368#endif
2369_ACEOF
2370rm -f conftest.$ac_objext
2371if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2372 (eval $ac_compile) 2>conftest.er1
2373 ac_status=$?
2374 grep -v '^ *+' conftest.er1 >conftest.err
2375 rm -f conftest.er1
2376 cat conftest.err >&5
2377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378 (exit $ac_status); } &&
2379 { ac_try='test -z "$ac_c_werror_flag"
2380 || test ! -s conftest.err'
2381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2382 (eval $ac_try) 2>&5
2383 ac_status=$?
2384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385 (exit $ac_status); }; } &&
2386 { ac_try='test -s conftest.$ac_objext'
2387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2388 (eval $ac_try) 2>&5
2389 ac_status=$?
2390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391 (exit $ac_status); }; }; then
2392 for ac_declaration in \
2393 '' \
2394 'extern "C" void std::exit (int) throw (); using std::exit;' \
2395 'extern "C" void std::exit (int); using std::exit;' \
2396 'extern "C" void exit (int) throw ();' \
2397 'extern "C" void exit (int);' \
2398 'void exit (int);'
2399do
2400 cat >conftest.$ac_ext <<_ACEOF
2401/* confdefs.h. */
2402_ACEOF
2403cat confdefs.h >>conftest.$ac_ext
2404cat >>conftest.$ac_ext <<_ACEOF
2405/* end confdefs.h. */
2406$ac_declaration
2407#include <stdlib.h>
2408int
2409main ()
2410{
2411exit (42);
2412 ;
2413 return 0;
2414}
2415_ACEOF
2416rm -f conftest.$ac_objext
2417if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2418 (eval $ac_compile) 2>conftest.er1
2419 ac_status=$?
2420 grep -v '^ *+' conftest.er1 >conftest.err
2421 rm -f conftest.er1
2422 cat conftest.err >&5
2423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424 (exit $ac_status); } &&
2425 { ac_try='test -z "$ac_c_werror_flag"
2426 || test ! -s conftest.err'
2427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2428 (eval $ac_try) 2>&5
2429 ac_status=$?
2430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2431 (exit $ac_status); }; } &&
2432 { ac_try='test -s conftest.$ac_objext'
2433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2434 (eval $ac_try) 2>&5
2435 ac_status=$?
2436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437 (exit $ac_status); }; }; then
2438 :
2439else
2440 echo "$as_me: failed program was:" >&5
2441sed 's/^/| /' conftest.$ac_ext >&5
2442
2443continue
2444fi
2445rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2446 cat >conftest.$ac_ext <<_ACEOF
2447/* confdefs.h. */
2448_ACEOF
2449cat confdefs.h >>conftest.$ac_ext
2450cat >>conftest.$ac_ext <<_ACEOF
2451/* end confdefs.h. */
2452$ac_declaration
2453int
2454main ()
2455{
2456exit (42);
2457 ;
2458 return 0;
2459}
2460_ACEOF
2461rm -f conftest.$ac_objext
2462if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2463 (eval $ac_compile) 2>conftest.er1
2464 ac_status=$?
2465 grep -v '^ *+' conftest.er1 >conftest.err
2466 rm -f conftest.er1
2467 cat conftest.err >&5
2468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469 (exit $ac_status); } &&
2470 { ac_try='test -z "$ac_c_werror_flag"
2471 || test ! -s conftest.err'
2472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2473 (eval $ac_try) 2>&5
2474 ac_status=$?
2475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476 (exit $ac_status); }; } &&
2477 { ac_try='test -s conftest.$ac_objext'
2478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2479 (eval $ac_try) 2>&5
2480 ac_status=$?
2481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482 (exit $ac_status); }; }; then
2483 break
2484else
2485 echo "$as_me: failed program was:" >&5
2486sed 's/^/| /' conftest.$ac_ext >&5
2487
2488fi
2489rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2490done
2491rm -f conftest*
2492if test -n "$ac_declaration"; then
2493 echo '#ifdef __cplusplus' >>confdefs.h
2494 echo $ac_declaration >>confdefs.h
2495 echo '#endif' >>confdefs.h
2496fi
2497
2498else
2499 echo "$as_me: failed program was:" >&5
2500sed 's/^/| /' conftest.$ac_ext >&5
6bf9431b 2501
0ab6f085
AM
2502fi
2503rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6bf9431b
BE
2504ac_ext=c
2505ac_cpp='$CPP $CPPFLAGS'
2506ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2507ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2508ac_compiler_gnu=$ac_cv_c_compiler_gnu
2509
2510
0ab6f085
AM
2511echo "$as_me:$LINENO: checking for library containing strerror" >&5
2512echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
6bf9431b
BE
2513if test "${ac_cv_search_strerror+set}" = set; then
2514 echo $ECHO_N "(cached) $ECHO_C" >&6
2515else
2516 ac_func_search_save_LIBS=$LIBS
0ab6f085 2517ac_cv_search_strerror=no
6bf9431b
BE
2518cat >conftest.$ac_ext <<_ACEOF
2519/* confdefs.h. */
2520_ACEOF
2521cat confdefs.h >>conftest.$ac_ext
2522cat >>conftest.$ac_ext <<_ACEOF
2523/* end confdefs.h. */
2524
0ab6f085 2525/* Override any gcc2 internal prototype to avoid an error. */
6bf9431b
BE
2526#ifdef __cplusplus
2527extern "C"
2528#endif
0ab6f085
AM
2529/* We use char because int might match the return type of a gcc2
2530 builtin and then its argument prototype would still apply. */
6bf9431b
BE
2531char strerror ();
2532int
2533main ()
2534{
0ab6f085 2535strerror ();
6bf9431b
BE
2536 ;
2537 return 0;
2538}
2539_ACEOF
0ab6f085
AM
2540rm -f conftest.$ac_objext conftest$ac_exeext
2541if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2542 (eval $ac_link) 2>conftest.er1
6bf9431b
BE
2543 ac_status=$?
2544 grep -v '^ *+' conftest.er1 >conftest.err
2545 rm -f conftest.er1
2546 cat conftest.err >&5
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0ab6f085
AM
2548 (exit $ac_status); } &&
2549 { ac_try='test -z "$ac_c_werror_flag"
2550 || test ! -s conftest.err'
2551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2552 (eval $ac_try) 2>&5
2553 ac_status=$?
2554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555 (exit $ac_status); }; } &&
2556 { ac_try='test -s conftest$ac_exeext'
2557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2558 (eval $ac_try) 2>&5
2559 ac_status=$?
2560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561 (exit $ac_status); }; }; then
2562 ac_cv_search_strerror="none required"
6bf9431b
BE
2563else
2564 echo "$as_me: failed program was:" >&5
2565sed 's/^/| /' conftest.$ac_ext >&5
2566
1b9750d6 2567fi
0ab6f085
AM
2568rm -f conftest.err conftest.$ac_objext \
2569 conftest$ac_exeext conftest.$ac_ext
2570if test "$ac_cv_search_strerror" = no; then
2571 for ac_lib in cposix; do
2572 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2573 cat >conftest.$ac_ext <<_ACEOF
2574/* confdefs.h. */
2575_ACEOF
2576cat confdefs.h >>conftest.$ac_ext
2577cat >>conftest.$ac_ext <<_ACEOF
2578/* end confdefs.h. */
6bf9431b 2579
0ab6f085
AM
2580/* Override any gcc2 internal prototype to avoid an error. */
2581#ifdef __cplusplus
2582extern "C"
2583#endif
2584/* We use char because int might match the return type of a gcc2
2585 builtin and then its argument prototype would still apply. */
2586char strerror ();
2587int
2588main ()
2589{
2590strerror ();
2591 ;
2592 return 0;
2593}
2594_ACEOF
2595rm -f conftest.$ac_objext conftest$ac_exeext
2596if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2597 (eval $ac_link) 2>conftest.er1
2598 ac_status=$?
2599 grep -v '^ *+' conftest.er1 >conftest.err
2600 rm -f conftest.er1
2601 cat conftest.err >&5
2602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603 (exit $ac_status); } &&
2604 { ac_try='test -z "$ac_c_werror_flag"
2605 || test ! -s conftest.err'
2606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2607 (eval $ac_try) 2>&5
2608 ac_status=$?
2609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610 (exit $ac_status); }; } &&
2611 { ac_try='test -s conftest$ac_exeext'
2612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2613 (eval $ac_try) 2>&5
2614 ac_status=$?
2615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616 (exit $ac_status); }; }; then
2617 ac_cv_search_strerror="-l$ac_lib"
2618break
1b9750d6 2619else
0ab6f085
AM
2620 echo "$as_me: failed program was:" >&5
2621sed 's/^/| /' conftest.$ac_ext >&5
2622
2623fi
2624rm -f conftest.err conftest.$ac_objext \
2625 conftest$ac_exeext conftest.$ac_ext
2626 done
6bf9431b
BE
2627fi
2628LIBS=$ac_func_search_save_LIBS
2629fi
0ab6f085
AM
2630echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2631echo "${ECHO_T}$ac_cv_search_strerror" >&6
2632if test "$ac_cv_search_strerror" != no; then
2633 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
6bf9431b
BE
2634
2635fi
2636
2637
2638BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
df76639a 2639am__api_version="1.9"
6bf9431b
BE
2640# Find a good install program. We prefer a C program (faster),
2641# so one script is as good as another. But avoid the broken or
2642# incompatible versions:
2643# SysV /etc/install, /usr/sbin/install
2644# SunOS /usr/etc/install
2645# IRIX /sbin/install
2646# AIX /bin/install
2647# AmigaOS /C/install, which installs bootblocks on floppy discs
2648# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2649# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2650# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2651# OS/2's system install, which has a completely different semantic
2652# ./install, which can be erroneously created by make from ./install.sh.
0ab6f085
AM
2653echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2654echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
6bf9431b
BE
2655if test -z "$INSTALL"; then
2656if test "${ac_cv_path_install+set}" = set; then
2657 echo $ECHO_N "(cached) $ECHO_C" >&6
2658else
2659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2660for as_dir in $PATH
2661do
2662 IFS=$as_save_IFS
2663 test -z "$as_dir" && as_dir=.
2664 # Account for people who put trailing slashes in PATH elements.
2665case $as_dir/ in
2666 ./ | .// | /cC/* | \
2667 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2668 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2669 /usr/ucb/* ) ;;
2670 *)
2671 # OSF1 and SCO ODT 3.0 have their own names for install.
2672 # Don't use installbsd from OSF since it installs stuff as root
2673 # by default.
2674 for ac_prog in ginstall scoinst install; do
2675 for ac_exec_ext in '' $ac_executable_extensions; do
0ab6f085 2676 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6bf9431b
BE
2677 if test $ac_prog = install &&
2678 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2679 # AIX install. It has an incompatible calling convention.
2680 :
2681 elif test $ac_prog = install &&
2682 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2683 # program-specific install script used by HP pwplus--don't use.
2684 :
252b5132 2685 else
6bf9431b
BE
2686 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2687 break 3
252b5132
RH
2688 fi
2689 fi
2690 done
6bf9431b
BE
2691 done
2692 ;;
2693esac
2694done
2695
252b5132
RH
2696
2697fi
2698 if test "${ac_cv_path_install+set}" = set; then
6bf9431b 2699 INSTALL=$ac_cv_path_install
252b5132 2700 else
0ab6f085
AM
2701 # As a last resort, use the slow shell script. We don't cache a
2702 # path for INSTALL within a source directory, because that will
252b5132 2703 # break other packages using the cache if that directory is
0ab6f085 2704 # removed, or if the path is relative.
6bf9431b 2705 INSTALL=$ac_install_sh
252b5132
RH
2706 fi
2707fi
0ab6f085
AM
2708echo "$as_me:$LINENO: result: $INSTALL" >&5
2709echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
2710
2711# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2712# It thinks the first close brace ends the variable substitution.
2713test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2714
6bf9431b 2715test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
2716
2717test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2718
0ab6f085
AM
2719echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2720echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
252b5132
RH
2721# Just in case
2722sleep 1
6bf9431b 2723echo timestamp > conftest.file
252b5132
RH
2724# Do `set' in a subshell so we don't clobber the current shell's
2725# arguments. Must try -L first in case configure is actually a
2726# symlink; some systems play weird games with the mod time of symlinks
2727# (eg FreeBSD returns the mod time of the symlink's containing
2728# directory).
2729if (
6bf9431b 2730 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
252b5132
RH
2731 if test "$*" = "X"; then
2732 # -L didn't work.
6bf9431b 2733 set X `ls -t $srcdir/configure conftest.file`
252b5132 2734 fi
6bf9431b
BE
2735 rm -f conftest.file
2736 if test "$*" != "X $srcdir/configure conftest.file" \
2737 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
2738
2739 # If neither matched, then we have a broken ls. This can happen
2740 # if, for instance, CONFIG_SHELL is bash and it inherits a
2741 # broken ls alias from the environment. This has actually
2742 # happened. Such a system could not be considered "sane".
6bf9431b
BE
2743 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2744alias in your environment" >&5
2745echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2746alias in your environment" >&2;}
2747 { (exit 1); exit 1; }; }
252b5132
RH
2748 fi
2749
6bf9431b 2750 test "$2" = conftest.file
252b5132
RH
2751 )
2752then
2753 # Ok.
2754 :
2755else
6bf9431b
BE
2756 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2757Check your system clock" >&5
2758echo "$as_me: error: newly created file is older than distributed files!
2759Check your system clock" >&2;}
2760 { (exit 1); exit 1; }; }
252b5132 2761fi
0ab6f085
AM
2762echo "$as_me:$LINENO: result: yes" >&5
2763echo "${ECHO_T}yes" >&6
252b5132 2764test "$program_prefix" != NONE &&
0ab6f085 2765 program_transform_name="s,^,$program_prefix,;$program_transform_name"
252b5132
RH
2766# Use a double $ so make ignores it.
2767test "$program_suffix" != NONE &&
0ab6f085 2768 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
6bf9431b
BE
2769# Double any \ or $. echo might interpret backslashes.
2770# By default was `s,x,x', remove it if useless.
2771cat <<\_ACEOF >conftest.sed
2772s/[\\$]/&&/g;s/;s,x,x,$//
2773_ACEOF
2774program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
0ab6f085 2775rm conftest.sed
6bf9431b
BE
2776
2777# expand $ac_aux_dir to an absolute path
2778am_aux_dir=`cd $ac_aux_dir && pwd`
2779
2780test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2781# Use eval to expand $SHELL
2782if eval "$MISSING --run true"; then
2783 am_missing_run="$MISSING --run "
2784else
2785 am_missing_run=
2786 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2787echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2788fi
2789
2790if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
df76639a
AM
2791 # We used to keeping the `.' as first argument, in order to
2792 # allow $(mkdir_p) to be used without argument. As in
6bf9431b 2793 # $(mkdir_p) $(somedir)
df76639a
AM
2794 # where $(somedir) is conditionally defined. However this is wrong
2795 # for two reasons:
2796 # 1. if the package is installed by a user who cannot write `.'
2797 # make install will fail,
2798 # 2. the above comment should most certainly read
2799 # $(mkdir_p) $(DESTDIR)$(somedir)
2800 # so it does not work when $(somedir) is undefined and
2801 # $(DESTDIR) is not.
2802 # To support the latter case, we have to write
2803 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2804 # so the `.' trick is pointless.
2805 mkdir_p='mkdir -p --'
6bf9431b
BE
2806else
2807 # On NextStep and OpenStep, the `mkdir' command does not
2808 # recognize any option. It will interpret all options as
2809 # directories to create, and then abort because `.' already
2810 # exists.
2811 for d in ./-p ./--version;
2812 do
2813 test -d $d && rmdir $d
2814 done
2815 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2816 if test -f "$ac_aux_dir/mkinstalldirs"; then
2817 mkdir_p='$(mkinstalldirs)'
2818 else
2819 mkdir_p='$(install_sh) -d'
2820 fi
2821fi
252b5132 2822
6bf9431b
BE
2823for ac_prog in gawk mawk nawk awk
2824do
2825 # Extract the first word of "$ac_prog", so it can be a program name with args.
2826set dummy $ac_prog; ac_word=$2
0ab6f085
AM
2827echo "$as_me:$LINENO: checking for $ac_word" >&5
2828echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6bf9431b
BE
2829if test "${ac_cv_prog_AWK+set}" = set; then
2830 echo $ECHO_N "(cached) $ECHO_C" >&6
2831else
2832 if test -n "$AWK"; then
2833 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2834else
2835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2836for as_dir in $PATH
2837do
2838 IFS=$as_save_IFS
2839 test -z "$as_dir" && as_dir=.
2840 for ac_exec_ext in '' $ac_executable_extensions; do
0ab6f085 2841 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bf9431b
BE
2842 ac_cv_prog_AWK="$ac_prog"
2843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2844 break 2
2845 fi
2846done
2847done
2848
2849fi
2850fi
2851AWK=$ac_cv_prog_AWK
2852if test -n "$AWK"; then
0ab6f085
AM
2853 echo "$as_me:$LINENO: result: $AWK" >&5
2854echo "${ECHO_T}$AWK" >&6
6bf9431b 2855else
0ab6f085
AM
2856 echo "$as_me:$LINENO: result: no" >&5
2857echo "${ECHO_T}no" >&6
6bf9431b
BE
2858fi
2859
2860 test -n "$AWK" && break
2861done
252b5132 2862
0ab6f085
AM
2863echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2864echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2865set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2866if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6bf9431b 2867 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 2868else
6bf9431b 2869 cat >conftest.make <<\_ACEOF
252b5132 2870all:
0ab6f085 2871 @echo 'ac_maketemp="$(MAKE)"'
6bf9431b 2872_ACEOF
252b5132 2873# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
0ab6f085
AM
2874eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2875if test -n "$ac_maketemp"; then
2876 eval ac_cv_prog_make_${ac_make}_set=yes
2877else
2878 eval ac_cv_prog_make_${ac_make}_set=no
2879fi
6bf9431b 2880rm -f conftest.make
252b5132 2881fi
0ab6f085
AM
2882if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2883 echo "$as_me:$LINENO: result: yes" >&5
2884echo "${ECHO_T}yes" >&6
252b5132
RH
2885 SET_MAKE=
2886else
0ab6f085
AM
2887 echo "$as_me:$LINENO: result: no" >&5
2888echo "${ECHO_T}no" >&6
252b5132
RH
2889 SET_MAKE="MAKE=${MAKE-make}"
2890fi
2891
6bf9431b
BE
2892rm -rf .tst 2>/dev/null
2893mkdir .tst 2>/dev/null
2894if test -d .tst; then
2895 am__leading_dot=.
2896else
2897 am__leading_dot=_
2898fi
2899rmdir .tst 2>/dev/null
2900
2901DEPDIR="${am__leading_dot}deps"
2902
0ab6f085 2903 ac_config_commands="$ac_config_commands depfiles"
6bf9431b
BE
2904
2905
2906am_make=${MAKE-make}
2907cat > confinc << 'END'
2908am__doit:
2909 @echo done
2910.PHONY: am__doit
2911END
2912# If we don't find an include directive, just comment out the code.
0ab6f085
AM
2913echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2914echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
6bf9431b
BE
2915am__include="#"
2916am__quote=
2917_am_result=none
2918# First try GNU make style include.
2919echo "include confinc" > confmf
2920# We grep out `Entering directory' and `Leaving directory'
2921# messages which can occur if `w' ends up in MAKEFLAGS.
2922# In particular we don't look at `^make:' because GNU make might
2923# be invoked under some other name (usually "gmake"), in which
2924# case it prints its new name instead of `make'.
2925if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2926 am__include=include
2927 am__quote=
2928 _am_result=GNU
2929fi
2930# Now try BSD make style include.
2931if test "$am__include" = "#"; then
2932 echo '.include "confinc"' > confmf
2933 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2934 am__include=.include
2935 am__quote="\""
2936 _am_result=BSD
2937 fi
2938fi
2939
252b5132 2940
0ab6f085
AM
2941echo "$as_me:$LINENO: result: $_am_result" >&5
2942echo "${ECHO_T}$_am_result" >&6
6bf9431b 2943rm -f confinc confmf
252b5132 2944
0ab6f085 2945# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
6bf9431b 2946if test "${enable_dependency_tracking+set}" = set; then
0ab6f085 2947 enableval="$enable_dependency_tracking"
252b5132 2948
0ab6f085 2949fi;
6bf9431b
BE
2950if test "x$enable_dependency_tracking" != xno; then
2951 am_depcomp="$ac_aux_dir/depcomp"
2952 AMDEPBACKSLASH='\'
252b5132 2953fi
6bf9431b
BE
2954
2955
2956if test "x$enable_dependency_tracking" != xno; then
2957 AMDEP_TRUE=
2958 AMDEP_FALSE='#'
2959else
2960 AMDEP_TRUE='#'
2961 AMDEP_FALSE=
2962fi
2963
2964
2965
2966# test to see if srcdir already configured
2967if test "`cd $srcdir && pwd`" != "`pwd`" &&
2968 test -f $srcdir/config.status; then
2969 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2970echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2971 { (exit 1); exit 1; }; }
2972fi
2973
2974# test whether we have cygpath
2975if test -z "$CYGPATH_W"; then
2976 if (cygpath --version) >/dev/null 2>/dev/null; then
2977 CYGPATH_W='cygpath -w'
2978 else
2979 CYGPATH_W=echo
2980 fi
2981fi
2982
2983
2984# Define the identity of the package.
2985 PACKAGE=gprof
2986 VERSION=${BFD_VERSION}
2987
2988
2989cat >>confdefs.h <<_ACEOF
252b5132 2990#define PACKAGE "$PACKAGE"
6bf9431b
BE
2991_ACEOF
2992
252b5132 2993
6bf9431b 2994cat >>confdefs.h <<_ACEOF
252b5132 2995#define VERSION "$VERSION"
6bf9431b
BE
2996_ACEOF
2997
2998# Some tools Automake needs.
2999
3000ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3001
3002
3003AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3004
3005
3006AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3007
3008
3009AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3010
3011
3012MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3013
6bf9431b 3014install_sh=${install_sh-"$am_aux_dir/install-sh"}
252b5132 3015
6bf9431b
BE
3016# Installed binaries are usually stripped using `strip' when the user
3017# run `make install-strip'. However `strip' might not be the right
3018# tool to use in cross-compilation environments, therefore Automake
3019# will honor the `STRIP' environment variable to overrule this program.
3020if test "$cross_compiling" != no; then
3021 if test -n "$ac_tool_prefix"; then
3022 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3023set dummy ${ac_tool_prefix}strip; ac_word=$2
0ab6f085
AM
3024echo "$as_me:$LINENO: checking for $ac_word" >&5
3025echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6bf9431b
BE
3026if test "${ac_cv_prog_STRIP+set}" = set; then
3027 echo $ECHO_N "(cached) $ECHO_C" >&6
3028else
3029 if test -n "$STRIP"; then
3030 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3031else
3032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3033for as_dir in $PATH
3034do
3035 IFS=$as_save_IFS
3036 test -z "$as_dir" && as_dir=.
3037 for ac_exec_ext in '' $ac_executable_extensions; do
0ab6f085 3038 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bf9431b
BE
3039 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3041 break 2
3042 fi
3043done
3044done
3045
3046fi
3047fi
3048STRIP=$ac_cv_prog_STRIP
3049if test -n "$STRIP"; then
0ab6f085
AM
3050 echo "$as_me:$LINENO: result: $STRIP" >&5
3051echo "${ECHO_T}$STRIP" >&6
6bf9431b 3052else
0ab6f085
AM
3053 echo "$as_me:$LINENO: result: no" >&5
3054echo "${ECHO_T}no" >&6
6bf9431b 3055fi
252b5132 3056
6bf9431b
BE
3057fi
3058if test -z "$ac_cv_prog_STRIP"; then
3059 ac_ct_STRIP=$STRIP
3060 # Extract the first word of "strip", so it can be a program name with args.
3061set dummy strip; ac_word=$2
0ab6f085
AM
3062echo "$as_me:$LINENO: checking for $ac_word" >&5
3063echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6bf9431b
BE
3064if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3065 echo $ECHO_N "(cached) $ECHO_C" >&6
3066else
3067 if test -n "$ac_ct_STRIP"; then
3068 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3069else
3070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3071for as_dir in $PATH
3072do
3073 IFS=$as_save_IFS
3074 test -z "$as_dir" && as_dir=.
3075 for ac_exec_ext in '' $ac_executable_extensions; do
0ab6f085 3076 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bf9431b
BE
3077 ac_cv_prog_ac_ct_STRIP="strip"
3078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3079 break 2
3080 fi
3081done
3082done
252b5132 3083
0ab6f085 3084 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6bf9431b
BE
3085fi
3086fi
3087ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3088if test -n "$ac_ct_STRIP"; then
0ab6f085
AM
3089 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3090echo "${ECHO_T}$ac_ct_STRIP" >&6
252b5132 3091else
0ab6f085
AM
3092 echo "$as_me:$LINENO: result: no" >&5
3093echo "${ECHO_T}no" >&6
252b5132
RH
3094fi
3095
0ab6f085 3096 STRIP=$ac_ct_STRIP
252b5132 3097else
6bf9431b 3098 STRIP="$ac_cv_prog_STRIP"
252b5132
RH
3099fi
3100
6bf9431b
BE
3101fi
3102INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3103
3104# We need awk for the "check" target. The system "awk" is bad on
3105# some platforms.
df76639a
AM
3106# Always define AMTAR for backward compatibility.
3107
3108AMTAR=${AMTAR-"${am_missing_run}tar"}
3109
3110am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3111
3112
6bf9431b
BE
3113
3114
3115depcc="$CC" am_compiler_list=
3116
0ab6f085
AM
3117echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3118echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6bf9431b
BE
3119if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3120 echo $ECHO_N "(cached) $ECHO_C" >&6
3121else
3122 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3123 # We make a subdir and do the tests there. Otherwise we can end up
3124 # making bogus files that we don't know about and never remove. For
3125 # instance it was reported that on HP-UX the gcc test will end up
3126 # making a dummy file named `D' -- because `-MD' means `put the output
3127 # in D'.
3128 mkdir conftest.dir
3129 # Copy depcomp to subdir because otherwise we won't find it if we're
3130 # using a relative directory.
3131 cp "$am_depcomp" conftest.dir
3132 cd conftest.dir
3133 # We will build objects and dependencies in a subdirectory because
3134 # it helps to detect inapplicable dependency modes. For instance
3135 # both Tru64's cc and ICC support -MD to output dependencies as a
3136 # side effect of compilation, but ICC will put the dependencies in
3137 # the current directory while Tru64 will put them in the object
3138 # directory.
3139 mkdir sub
3140
3141 am_cv_CC_dependencies_compiler_type=none
3142 if test "$am_compiler_list" = ""; then
3143 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3144 fi
3145 for depmode in $am_compiler_list; do
3146 # Setup a source with many dependencies, because some compilers
3147 # like to wrap large dependency lists on column 80 (with \), and
3148 # we should not choose a depcomp mode which is confused by this.
3149 #
3150 # We need to recreate these files for each test, as the compiler may
3151 # overwrite some of them when testing with obscure command lines.
3152 # This happens at least with the AIX C compiler.
3153 : > sub/conftest.c
3154 for i in 1 2 3 4 5 6; do
3155 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3156 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3157 # Solaris 8's {/usr,}/bin/sh.
3158 touch sub/conftst$i.h
3159 done
3160 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3161
3162 case $depmode in
3163 nosideeffect)
3164 # after this tag, mechanisms are not by side-effect, so they'll
3165 # only be used when explicitly requested
3166 if test "x$enable_dependency_tracking" = xyes; then
3167 continue
3168 else
3169 break
3170 fi
3171 ;;
3172 none) break ;;
3173 esac
3174 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3175 # mode. It turns out that the SunPro C++ compiler does not properly
3176 # handle `-M -o', and we need to detect this.
3177 if depmode=$depmode \
3178 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3179 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3180 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3181 >/dev/null 2>conftest.err &&
3182 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3183 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3184 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3185 # icc doesn't choke on unknown options, it will just issue warnings
3186 # or remarks (even with -Werror). So we grep stderr for any message
3187 # that says an option was ignored or not supported.
3188 # When given -MP, icc 7.0 and 7.1 complain thusly:
3189 # icc: Command line warning: ignoring option '-M'; no argument required
3190 # The diagnosis changed in icc 8.0:
3191 # icc: Command line remark: option '-MP' not supported
3192 if (grep 'ignoring option' conftest.err ||
3193 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3194 am_cv_CC_dependencies_compiler_type=$depmode
3195 break
3196 fi
3197 fi
3198 done
3199
3200 cd ..
3201 rm -rf conftest.dir
252b5132 3202else
6bf9431b 3203 am_cv_CC_dependencies_compiler_type=none
252b5132
RH
3204fi
3205
252b5132 3206fi
0ab6f085
AM
3207echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3208echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
6bf9431b
BE
3209CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3210
252b5132 3211
6bf9431b
BE
3212
3213if
3214 test "x$enable_dependency_tracking" != xno \
3215 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3216 am__fastdepCC_TRUE=
3217 am__fastdepCC_FALSE='#'
252b5132 3218else
6bf9431b
BE
3219 am__fastdepCC_TRUE='#'
3220 am__fastdepCC_FALSE=
252b5132
RH
3221fi
3222
3223
3224
6bf9431b 3225
ce2cded5 3226 ac_config_headers="$ac_config_headers gconfig.h:gconfig.in"
d7040cdb
SE
3227
3228
ce2cded5
L
3229ac_ext=c
3230ac_cpp='$CPP $CPPFLAGS'
3231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3233ac_compiler_gnu=$ac_cv_c_compiler_gnu
3234if test -n "$ac_tool_prefix"; then
3235 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3236set dummy ${ac_tool_prefix}gcc; ac_word=$2
3237echo "$as_me:$LINENO: checking for $ac_word" >&5
3238echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3239if test "${ac_cv_prog_CC+set}" = set; then
3240 echo $ECHO_N "(cached) $ECHO_C" >&6
1b9750d6 3241else
ce2cded5
L
3242 if test -n "$CC"; then
3243 ac_cv_prog_CC="$CC" # Let the user override the test.
0ab6f085 3244else
ce2cded5
L
3245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3246for as_dir in $PATH
3247do
3248 IFS=$as_save_IFS
3249 test -z "$as_dir" && as_dir=.
3250 for ac_exec_ext in '' $ac_executable_extensions; do
3251 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3252 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3254 break 2
3255 fi
3256done
3257done
0ab6f085 3258
ce2cded5
L
3259fi
3260fi
3261CC=$ac_cv_prog_CC
3262if test -n "$CC"; then
3263 echo "$as_me:$LINENO: result: $CC" >&5
3264echo "${ECHO_T}$CC" >&6
0ab6f085 3265else
ce2cded5
L
3266 echo "$as_me:$LINENO: result: no" >&5
3267echo "${ECHO_T}no" >&6
3268fi
d7040cdb 3269
ce2cded5
L
3270fi
3271if test -z "$ac_cv_prog_CC"; then
3272 ac_ct_CC=$CC
3273 # Extract the first word of "gcc", so it can be a program name with args.
3274set dummy gcc; ac_word=$2
3275echo "$as_me:$LINENO: checking for $ac_word" >&5
3276echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3277if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1b9750d6
NC
3278 echo $ECHO_N "(cached) $ECHO_C" >&6
3279else
ce2cded5
L
3280 if test -n "$ac_ct_CC"; then
3281 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3282else
d7040cdb 3283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
0ab6f085 3284for as_dir in $PATH
d7040cdb
SE
3285do
3286 IFS=$as_save_IFS
3287 test -z "$as_dir" && as_dir=.
ce2cded5
L
3288 for ac_exec_ext in '' $ac_executable_extensions; do
3289 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3290 ac_cv_prog_ac_ct_CC="gcc"
3291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3292 break 2
0ab6f085 3293 fi
ce2cded5 3294done
0ab6f085 3295done
d7040cdb 3296
ce2cded5
L
3297fi
3298fi
3299ac_ct_CC=$ac_cv_prog_ac_ct_CC
3300if test -n "$ac_ct_CC"; then
3301 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3302echo "${ECHO_T}$ac_ct_CC" >&6
3303else
3304 echo "$as_me:$LINENO: result: no" >&5
3305echo "${ECHO_T}no" >&6
1b9750d6 3306fi
d7040cdb 3307
ce2cded5
L
3308 CC=$ac_ct_CC
3309else
3310 CC="$ac_cv_prog_CC"
3311fi
d7040cdb 3312
ce2cded5
L
3313if test -z "$CC"; then
3314 if test -n "$ac_tool_prefix"; then
3315 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3316set dummy ${ac_tool_prefix}cc; ac_word=$2
3317echo "$as_me:$LINENO: checking for $ac_word" >&5
3318echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3319if test "${ac_cv_prog_CC+set}" = set; then
0ab6f085 3320 echo $ECHO_N "(cached) $ECHO_C" >&6
d7040cdb 3321else
ce2cded5
L
3322 if test -n "$CC"; then
3323 ac_cv_prog_CC="$CC" # Let the user override the test.
0ab6f085 3324else
ce2cded5
L
3325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3326for as_dir in $PATH
3327do
3328 IFS=$as_save_IFS
3329 test -z "$as_dir" && as_dir=.
3330 for ac_exec_ext in '' $ac_executable_extensions; do
3331 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3332 ac_cv_prog_CC="${ac_tool_prefix}cc"
3333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3334 break 2
3335 fi
3336done
3337done
d7040cdb 3338
252b5132
RH
3339fi
3340fi
ce2cded5
L
3341CC=$ac_cv_prog_CC
3342if test -n "$CC"; then
3343 echo "$as_me:$LINENO: result: $CC" >&5
3344echo "${ECHO_T}$CC" >&6
252b5132 3345else
0ab6f085
AM
3346 echo "$as_me:$LINENO: result: no" >&5
3347echo "${ECHO_T}no" >&6
252b5132 3348fi
d7040cdb 3349
252b5132 3350fi
ce2cded5
L
3351if test -z "$ac_cv_prog_CC"; then
3352 ac_ct_CC=$CC
3353 # Extract the first word of "cc", so it can be a program name with args.
3354set dummy cc; ac_word=$2
0ab6f085
AM
3355echo "$as_me:$LINENO: checking for $ac_word" >&5
3356echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ce2cded5 3357if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
d7040cdb 3358 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3359else
ce2cded5
L
3360 if test -n "$ac_ct_CC"; then
3361 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
d7040cdb
SE
3362else
3363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3364for as_dir in $PATH
3365do
3366 IFS=$as_save_IFS
3367 test -z "$as_dir" && as_dir=.
3368 for ac_exec_ext in '' $ac_executable_extensions; do
0ab6f085 3369 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ce2cded5 3370 ac_cv_prog_ac_ct_CC="cc"
d7040cdb
SE
3371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3372 break 2
3373 fi
3374done
3375done
ac48eca1 3376
d7040cdb
SE
3377fi
3378fi
ce2cded5
L
3379ac_ct_CC=$ac_cv_prog_ac_ct_CC
3380if test -n "$ac_ct_CC"; then
3381 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3382echo "${ECHO_T}$ac_ct_CC" >&6
3383else
3384 echo "$as_me:$LINENO: result: no" >&5
3385echo "${ECHO_T}no" >&6
d7040cdb 3386fi
6be7c12c 3387
ce2cded5
L
3388 CC=$ac_ct_CC
3389else
3390 CC="$ac_cv_prog_CC"
3391fi
3392
3393fi
3394if test -z "$CC"; then
3395 # Extract the first word of "cc", so it can be a program name with args.
3396set dummy cc; ac_word=$2
3397echo "$as_me:$LINENO: checking for $ac_word" >&5
3398echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3399if test "${ac_cv_prog_CC+set}" = set; then
3400 echo $ECHO_N "(cached) $ECHO_C" >&6
3401else
3402 if test -n "$CC"; then
3403 ac_cv_prog_CC="$CC" # Let the user override the test.
3404else
3405 ac_prog_rejected=no
3406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3407for as_dir in $PATH
3408do
3409 IFS=$as_save_IFS
3410 test -z "$as_dir" && as_dir=.
3411 for ac_exec_ext in '' $ac_executable_extensions; do
3412 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3413 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3414 ac_prog_rejected=yes
3415 continue
3416 fi
3417 ac_cv_prog_CC="cc"
3418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3419 break 2
3420 fi
3421done
3422done
3423
3424if test $ac_prog_rejected = yes; then
3425 # We found a bogon in the path, so make sure we never use it.
3426 set dummy $ac_cv_prog_CC
3427 shift
3428 if test $# != 0; then
3429 # We chose a different compiler from the bogus one.
3430 # However, it has the same basename, so the bogon will be chosen
3431 # first if we set CC to just the basename; use the full file name.
3432 shift
3433 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3434 fi
3435fi
3436fi
3437fi
3438CC=$ac_cv_prog_CC
3439if test -n "$CC"; then
3440 echo "$as_me:$LINENO: result: $CC" >&5
3441echo "${ECHO_T}$CC" >&6
3442else
3443 echo "$as_me:$LINENO: result: no" >&5
3444echo "${ECHO_T}no" >&6
3445fi
3446
3447fi
3448if test -z "$CC"; then
3449 if test -n "$ac_tool_prefix"; then
3450 for ac_prog in cl
3451 do
3452 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3453set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3454echo "$as_me:$LINENO: checking for $ac_word" >&5
3455echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3456if test "${ac_cv_prog_CC+set}" = set; then
3457 echo $ECHO_N "(cached) $ECHO_C" >&6
3458else
3459 if test -n "$CC"; then
3460 ac_cv_prog_CC="$CC" # Let the user override the test.
3461else
3462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3463for as_dir in $PATH
3464do
3465 IFS=$as_save_IFS
3466 test -z "$as_dir" && as_dir=.
3467 for ac_exec_ext in '' $ac_executable_extensions; do
3468 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3469 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3471 break 2
3472 fi
3473done
3474done
3475
3476fi
3477fi
3478CC=$ac_cv_prog_CC
3479if test -n "$CC"; then
3480 echo "$as_me:$LINENO: result: $CC" >&5
3481echo "${ECHO_T}$CC" >&6
3482else
3483 echo "$as_me:$LINENO: result: no" >&5
3484echo "${ECHO_T}no" >&6
3485fi
3486
3487 test -n "$CC" && break
d7040cdb
SE
3488 done
3489fi
ce2cded5
L
3490if test -z "$CC"; then
3491 ac_ct_CC=$CC
3492 for ac_prog in cl
d7040cdb
SE
3493do
3494 # Extract the first word of "$ac_prog", so it can be a program name with args.
3495set dummy $ac_prog; ac_word=$2
0ab6f085
AM
3496echo "$as_me:$LINENO: checking for $ac_word" >&5
3497echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ce2cded5 3498if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
d7040cdb
SE
3499 echo $ECHO_N "(cached) $ECHO_C" >&6
3500else
ce2cded5
L
3501 if test -n "$ac_ct_CC"; then
3502 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
d7040cdb
SE
3503else
3504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3505for as_dir in $PATH
3506do
3507 IFS=$as_save_IFS
3508 test -z "$as_dir" && as_dir=.
3509 for ac_exec_ext in '' $ac_executable_extensions; do
0ab6f085 3510 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ce2cded5 3511 ac_cv_prog_ac_ct_CC="$ac_prog"
d7040cdb
SE
3512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3513 break 2
ac48eca1 3514 fi
d7040cdb
SE
3515done
3516done
ac48eca1 3517
d7040cdb
SE
3518fi
3519fi
ce2cded5
L
3520ac_ct_CC=$ac_cv_prog_ac_ct_CC
3521if test -n "$ac_ct_CC"; then
3522 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3523echo "${ECHO_T}$ac_ct_CC" >&6
d7040cdb 3524else
0ab6f085
AM
3525 echo "$as_me:$LINENO: result: no" >&5
3526echo "${ECHO_T}no" >&6
d7040cdb 3527fi
ac48eca1 3528
ce2cded5 3529 test -n "$ac_ct_CC" && break
d7040cdb 3530done
ac48eca1 3531
ce2cded5 3532 CC=$ac_ct_CC
d7040cdb 3533fi
ac48eca1 3534
d7040cdb 3535fi
ac48eca1 3536
ac48eca1 3537
ce2cded5
L
3538test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3539See \`config.log' for more details." >&5
3540echo "$as_me: error: no acceptable C compiler found in \$PATH
3541See \`config.log' for more details." >&2;}
3542 { (exit 1); exit 1; }; }
6be7c12c 3543
ce2cded5
L
3544# Provide some information about the compiler.
3545echo "$as_me:$LINENO:" \
3546 "checking for C compiler version" >&5
3547ac_compiler=`set X $ac_compile; echo $2`
3548{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3549 (eval $ac_compiler --version </dev/null >&5) 2>&5
3550 ac_status=$?
3551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552 (exit $ac_status); }
3553{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3554 (eval $ac_compiler -v </dev/null >&5) 2>&5
3555 ac_status=$?
3556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557 (exit $ac_status); }
3558{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3559 (eval $ac_compiler -V </dev/null >&5) 2>&5
3560 ac_status=$?
3561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562 (exit $ac_status); }
ac48eca1 3563
ce2cded5
L
3564echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3565echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3566if test "${ac_cv_c_compiler_gnu+set}" = set; then
d7040cdb
SE
3567 echo $ECHO_N "(cached) $ECHO_C" >&6
3568else
ce2cded5
L
3569 cat >conftest.$ac_ext <<_ACEOF
3570/* confdefs.h. */
3571_ACEOF
3572cat confdefs.h >>conftest.$ac_ext
3573cat >>conftest.$ac_ext <<_ACEOF
3574/* end confdefs.h. */
ac48eca1 3575
ce2cded5
L
3576int
3577main ()
3578{
3579#ifndef __GNUC__
3580 choke me
3581#endif
3582
3583 ;
3584 return 0;
3585}
3586_ACEOF
3587rm -f conftest.$ac_objext
3588if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3589 (eval $ac_compile) 2>conftest.er1
3590 ac_status=$?
3591 grep -v '^ *+' conftest.er1 >conftest.err
3592 rm -f conftest.er1
3593 cat conftest.err >&5
3594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595 (exit $ac_status); } &&
3596 { ac_try='test -z "$ac_c_werror_flag"
3597 || test ! -s conftest.err'
3598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3599 (eval $ac_try) 2>&5
3600 ac_status=$?
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); }; } &&
3603 { ac_try='test -s conftest.$ac_objext'
3604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3605 (eval $ac_try) 2>&5
3606 ac_status=$?
3607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608 (exit $ac_status); }; }; then
3609 ac_compiler_gnu=yes
d7040cdb 3610else
ce2cded5
L
3611 echo "$as_me: failed program was:" >&5
3612sed 's/^/| /' conftest.$ac_ext >&5
3613
3614ac_compiler_gnu=no
d7040cdb 3615fi
ce2cded5
L
3616rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3617ac_cv_c_compiler_gnu=$ac_compiler_gnu
ac48eca1 3618
ce2cded5
L
3619fi
3620echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3621echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3622GCC=`test $ac_compiler_gnu = yes && echo yes`
3623ac_test_CFLAGS=${CFLAGS+set}
3624ac_save_CFLAGS=$CFLAGS
3625CFLAGS="-g"
3626echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3627echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3628if test "${ac_cv_prog_cc_g+set}" = set; then
108a6f8e
CD
3629 echo $ECHO_N "(cached) $ECHO_C" >&6
3630else
ce2cded5
L
3631 cat >conftest.$ac_ext <<_ACEOF
3632/* confdefs.h. */
3633_ACEOF
3634cat confdefs.h >>conftest.$ac_ext
3635cat >>conftest.$ac_ext <<_ACEOF
3636/* end confdefs.h. */
d7040cdb 3637
ce2cded5
L
3638int
3639main ()
3640{
d7040cdb 3641
ce2cded5
L
3642 ;
3643 return 0;
3644}
3645_ACEOF
3646rm -f conftest.$ac_objext
3647if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3648 (eval $ac_compile) 2>conftest.er1
3649 ac_status=$?
3650 grep -v '^ *+' conftest.er1 >conftest.err
3651 rm -f conftest.er1
3652 cat conftest.err >&5
3653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3654 (exit $ac_status); } &&
3655 { ac_try='test -z "$ac_c_werror_flag"
3656 || test ! -s conftest.err'
3657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3658 (eval $ac_try) 2>&5
3659 ac_status=$?
3660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3661 (exit $ac_status); }; } &&
3662 { ac_try='test -s conftest.$ac_objext'
3663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3664 (eval $ac_try) 2>&5
3665 ac_status=$?
3666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667 (exit $ac_status); }; }; then
3668 ac_cv_prog_cc_g=yes
3669else
3670 echo "$as_me: failed program was:" >&5
3671sed 's/^/| /' conftest.$ac_ext >&5
108a6f8e 3672
ce2cded5 3673ac_cv_prog_cc_g=no
108a6f8e 3674fi
ce2cded5 3675rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
108a6f8e 3676fi
ce2cded5
L
3677echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3678echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3679if test "$ac_test_CFLAGS" = set; then
3680 CFLAGS=$ac_save_CFLAGS
3681elif test $ac_cv_prog_cc_g = yes; then
3682 if test "$GCC" = yes; then
3683 CFLAGS="-g -O2"
3684 else
3685 CFLAGS="-g"
3686 fi
ac48eca1 3687else
ce2cded5
L
3688 if test "$GCC" = yes; then
3689 CFLAGS="-O2"
3690 else
3691 CFLAGS=
3692 fi
ac48eca1 3693fi
ce2cded5
L
3694echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3695echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3696if test "${ac_cv_prog_cc_stdc+set}" = set; then
6bf9431b 3697 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3698else
ce2cded5
L
3699 ac_cv_prog_cc_stdc=no
3700ac_save_CC=$CC
3701cat >conftest.$ac_ext <<_ACEOF
3702/* confdefs.h. */
3703_ACEOF
3704cat confdefs.h >>conftest.$ac_ext
3705cat >>conftest.$ac_ext <<_ACEOF
3706/* end confdefs.h. */
3707#include <stdarg.h>
3708#include <stdio.h>
3709#include <sys/types.h>
3710#include <sys/stat.h>
3711/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3712struct buf { int x; };
3713FILE * (*rcsopen) (struct buf *, struct stat *, int);
3714static char *e (p, i)
3715 char **p;
3716 int i;
3717{
3718 return p[i];
3719}
3720static char *f (char * (*g) (char **, int), char **p, ...)
3721{
3722 char *s;
3723 va_list v;
3724 va_start (v,p);
3725 s = g (p, va_arg (v,int));
3726 va_end (v);
3727 return s;
3728}
d7040cdb 3729
ce2cded5
L
3730/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3731 function prototypes and stuff, but not '\xHH' hex character constants.
3732 These don't provoke an error unfortunately, instead are silently treated
3733 as 'x'. The following induces an error, until -std1 is added to get
3734 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3735 array size at least. It's necessary to write '\x00'==0 to get something
3736 that's true only with -std1. */
3737int osf4_cc_array ['\x00' == 0 ? 1 : -1];
d7040cdb 3738
ce2cded5
L
3739int test (int i, double x);
3740struct s1 {int (*f) (int a);};
3741struct s2 {int (*f) (double a);};
3742int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3743int argc;
3744char **argv;
3745int
3746main ()
3747{
3748return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3749 ;
3750 return 0;
3751}
3752_ACEOF
3753# Don't try gcc -ansi; that turns off useful extensions and
3754# breaks some systems' header files.
3755# AIX -qlanglvl=ansi
3756# Ultrix and OSF/1 -std1
3757# HP-UX 10.20 and later -Ae
3758# HP-UX older versions -Aa -D_HPUX_SOURCE
3759# SVR4 -Xc -D__EXTENSIONS__
3760for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3761do
3762 CC="$ac_save_CC $ac_arg"
3763 rm -f conftest.$ac_objext
3764if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3765 (eval $ac_compile) 2>conftest.er1
3766 ac_status=$?
3767 grep -v '^ *+' conftest.er1 >conftest.err
3768 rm -f conftest.er1
3769 cat conftest.err >&5
3770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3771 (exit $ac_status); } &&
3772 { ac_try='test -z "$ac_c_werror_flag"
3773 || test ! -s conftest.err'
3774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3775 (eval $ac_try) 2>&5
3776 ac_status=$?
3777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3778 (exit $ac_status); }; } &&
3779 { ac_try='test -s conftest.$ac_objext'
3780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3781 (eval $ac_try) 2>&5
3782 ac_status=$?
3783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3784 (exit $ac_status); }; }; then
3785 ac_cv_prog_cc_stdc=$ac_arg
3786break
3787else
3788 echo "$as_me: failed program was:" >&5
3789sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 3790
ce2cded5
L
3791fi
3792rm -f conftest.err conftest.$ac_objext
3793done
3794rm -f conftest.$ac_ext conftest.$ac_objext
3795CC=$ac_save_CC
d7040cdb 3796
ce2cded5 3797fi
d7040cdb 3798
ce2cded5
L
3799case "x$ac_cv_prog_cc_stdc" in
3800 x|xno)
3801 echo "$as_me:$LINENO: result: none needed" >&5
3802echo "${ECHO_T}none needed" >&6 ;;
3803 *)
3804 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3805echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3806 CC="$CC $ac_cv_prog_cc_stdc" ;;
3807esac
d7040cdb 3808
ce2cded5
L
3809# Some people use a C++ compiler to compile C. Since we use `exit',
3810# in C++ we need to declare it. In case someone uses the same compiler
3811# for both compiling C and C++ we need to have the C++ compiler decide
3812# the declaration of exit, since it's the most demanding environment.
3813cat >conftest.$ac_ext <<_ACEOF
3814#ifndef __cplusplus
3815 choke me
3816#endif
3817_ACEOF
3818rm -f conftest.$ac_objext
3819if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3820 (eval $ac_compile) 2>conftest.er1
3821 ac_status=$?
3822 grep -v '^ *+' conftest.er1 >conftest.err
3823 rm -f conftest.er1
3824 cat conftest.err >&5
3825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826 (exit $ac_status); } &&
3827 { ac_try='test -z "$ac_c_werror_flag"
3828 || test ! -s conftest.err'
3829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3830 (eval $ac_try) 2>&5
3831 ac_status=$?
3832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833 (exit $ac_status); }; } &&
3834 { ac_try='test -s conftest.$ac_objext'
3835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3836 (eval $ac_try) 2>&5
3837 ac_status=$?
3838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839 (exit $ac_status); }; }; then
3840 for ac_declaration in \
3841 '' \
3842 'extern "C" void std::exit (int) throw (); using std::exit;' \
3843 'extern "C" void std::exit (int); using std::exit;' \
3844 'extern "C" void exit (int) throw ();' \
3845 'extern "C" void exit (int);' \
3846 'void exit (int);'
3847do
3848 cat >conftest.$ac_ext <<_ACEOF
3849/* confdefs.h. */
3850_ACEOF
3851cat confdefs.h >>conftest.$ac_ext
3852cat >>conftest.$ac_ext <<_ACEOF
3853/* end confdefs.h. */
3854$ac_declaration
3855#include <stdlib.h>
3856int
3857main ()
3858{
3859exit (42);
3860 ;
3861 return 0;
3862}
3863_ACEOF
3864rm -f conftest.$ac_objext
3865if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3866 (eval $ac_compile) 2>conftest.er1
3867 ac_status=$?
3868 grep -v '^ *+' conftest.er1 >conftest.err
3869 rm -f conftest.er1
3870 cat conftest.err >&5
3871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872 (exit $ac_status); } &&
3873 { ac_try='test -z "$ac_c_werror_flag"
3874 || test ! -s conftest.err'
3875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3876 (eval $ac_try) 2>&5
3877 ac_status=$?
3878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879 (exit $ac_status); }; } &&
3880 { ac_try='test -s conftest.$ac_objext'
3881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3882 (eval $ac_try) 2>&5
3883 ac_status=$?
3884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885 (exit $ac_status); }; }; then
3886 :
3887else
3888 echo "$as_me: failed program was:" >&5
3889sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 3890
ce2cded5
L
3891continue
3892fi
3893rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3894 cat >conftest.$ac_ext <<_ACEOF
3895/* confdefs.h. */
3896_ACEOF
3897cat confdefs.h >>conftest.$ac_ext
3898cat >>conftest.$ac_ext <<_ACEOF
3899/* end confdefs.h. */
3900$ac_declaration
3901int
3902main ()
3903{
3904exit (42);
3905 ;
3906 return 0;
3907}
3908_ACEOF
3909rm -f conftest.$ac_objext
3910if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3911 (eval $ac_compile) 2>conftest.er1
3912 ac_status=$?
3913 grep -v '^ *+' conftest.er1 >conftest.err
3914 rm -f conftest.er1
3915 cat conftest.err >&5
3916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3917 (exit $ac_status); } &&
3918 { ac_try='test -z "$ac_c_werror_flag"
3919 || test ! -s conftest.err'
3920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3921 (eval $ac_try) 2>&5
3922 ac_status=$?
3923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3924 (exit $ac_status); }; } &&
3925 { ac_try='test -s conftest.$ac_objext'
3926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3927 (eval $ac_try) 2>&5
3928 ac_status=$?
3929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3930 (exit $ac_status); }; }; then
3931 break
3932else
3933 echo "$as_me: failed program was:" >&5
3934sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 3935
ce2cded5
L
3936fi
3937rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3938done
3939rm -f conftest*
3940if test -n "$ac_declaration"; then
3941 echo '#ifdef __cplusplus' >>confdefs.h
3942 echo $ac_declaration >>confdefs.h
3943 echo '#endif' >>confdefs.h
3944fi
d7040cdb 3945
d7040cdb 3946else
ce2cded5
L
3947 echo "$as_me: failed program was:" >&5
3948sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 3949
ce2cded5
L
3950fi
3951rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3952ac_ext=c
3953ac_cpp='$CPP $CPPFLAGS'
3954ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3955ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3956ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 3957
d7040cdb 3958
ce2cded5
L
3959cat >>confdefs.h <<\_ACEOF
3960#define _GNU_SOURCE 1
3961_ACEOF
d7040cdb 3962
d7040cdb 3963
ce2cded5
L
3964# Find a good install program. We prefer a C program (faster),
3965# so one script is as good as another. But avoid the broken or
3966# incompatible versions:
3967# SysV /etc/install, /usr/sbin/install
3968# SunOS /usr/etc/install
3969# IRIX /sbin/install
3970# AIX /bin/install
3971# AmigaOS /C/install, which installs bootblocks on floppy discs
3972# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3973# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3974# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3975# OS/2's system install, which has a completely different semantic
3976# ./install, which can be erroneously created by make from ./install.sh.
3977echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3978echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3979if test -z "$INSTALL"; then
3980if test "${ac_cv_path_install+set}" = set; then
3981 echo $ECHO_N "(cached) $ECHO_C" >&6
3982else
3983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3984for as_dir in $PATH
3985do
3986 IFS=$as_save_IFS
3987 test -z "$as_dir" && as_dir=.
3988 # Account for people who put trailing slashes in PATH elements.
3989case $as_dir/ in
3990 ./ | .// | /cC/* | \
3991 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3992 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3993 /usr/ucb/* ) ;;
3994 *)
3995 # OSF1 and SCO ODT 3.0 have their own names for install.
3996 # Don't use installbsd from OSF since it installs stuff as root
3997 # by default.
3998 for ac_prog in ginstall scoinst install; do
3999 for ac_exec_ext in '' $ac_executable_extensions; do
4000 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4001 if test $ac_prog = install &&
4002 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4003 # AIX install. It has an incompatible calling convention.
4004 :
4005 elif test $ac_prog = install &&
4006 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4007 # program-specific install script used by HP pwplus--don't use.
4008 :
4009 else
4010 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4011 break 3
4012 fi
4013 fi
4014 done
4015 done
4016 ;;
4017esac
4018done
d7040cdb 4019
d7040cdb 4020
ce2cded5
L
4021fi
4022 if test "${ac_cv_path_install+set}" = set; then
4023 INSTALL=$ac_cv_path_install
d7040cdb 4024 else
ce2cded5
L
4025 # As a last resort, use the slow shell script. We don't cache a
4026 # path for INSTALL within a source directory, because that will
4027 # break other packages using the cache if that directory is
4028 # removed, or if the path is relative.
4029 INSTALL=$ac_install_sh
d7040cdb 4030 fi
ce2cded5
L
4031fi
4032echo "$as_me:$LINENO: result: $INSTALL" >&5
4033echo "${ECHO_T}$INSTALL" >&6
ac48eca1 4034
ce2cded5
L
4035# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4036# It thinks the first close brace ends the variable substitution.
4037test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
ac48eca1 4038
ce2cded5 4039test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
ac48eca1 4040
ce2cded5 4041test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
d7040cdb 4042
d7040cdb 4043
252b5132 4044
d7040cdb 4045
ce2cded5
L
4046macro_version='2.1a'
4047macro_revision='1.2435'
d7040cdb 4048
d7040cdb 4049
d7040cdb 4050
d7040cdb 4051
d7040cdb 4052
252b5132 4053
d7040cdb
SE
4054
4055
4056
4057
4058
4059
ce2cded5 4060ltmain="$ac_aux_dir/ltmain.sh"
d7040cdb 4061
ce2cded5 4062# Set options
d7040cdb 4063
ce2cded5 4064enable_dlopen=no
d7040cdb
SE
4065
4066
ce2cded5 4067enable_win32_dll=no
d7040cdb
SE
4068
4069
ce2cded5
L
4070# Check whether --enable-shared or --disable-shared was given.
4071if test "${enable_shared+set}" = set; then
4072 enableval="$enable_shared"
4073 p=${PACKAGE-default}
4074 case $enableval in
4075 yes) enable_shared=yes ;;
4076 no) enable_shared=no ;;
4077 *)
4078 enable_shared=no
4079 # Look at the argument we got. We use all the common list separators.
4080 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4081 for pkg in $enableval; do
4082 IFS="$lt_save_ifs"
4083 if test "X$pkg" = "X$p"; then
4084 enable_shared=yes
4085 fi
4086 done
4087 IFS="$lt_save_ifs"
4088 ;;
4089 esac
ac48eca1 4090else
ce2cded5
L
4091 enable_shared=yes
4092fi;
6bf9431b 4093
ac48eca1 4094
6bf9431b 4095
ac48eca1 4096
ac48eca1 4097
d7040cdb
SE
4098
4099
4100
ce2cded5
L
4101# Check whether --enable-static or --disable-static was given.
4102if test "${enable_static+set}" = set; then
4103 enableval="$enable_static"
4104 p=${PACKAGE-default}
4105 case $enableval in
4106 yes) enable_static=yes ;;
4107 no) enable_static=no ;;
4108 *)
4109 enable_static=no
4110 # Look at the argument we got. We use all the common list separators.
4111 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4112 for pkg in $enableval; do
4113 IFS="$lt_save_ifs"
4114 if test "X$pkg" = "X$p"; then
4115 enable_static=yes
4116 fi
4117 done
4118 IFS="$lt_save_ifs"
4119 ;;
4120 esac
4121else
4122 enable_static=yes
4123fi;
d7040cdb
SE
4124
4125
4126
4127
4128
4129
4130
4131
6bf9431b 4132
ce2cded5
L
4133# Check whether --with-pic or --without-pic was given.
4134if test "${with_pic+set}" = set; then
4135 withval="$with_pic"
4136 pic_mode="$withval"
ac48eca1 4137else
ce2cded5
L
4138 pic_mode=default
4139fi;
ac48eca1 4140
ce2cded5 4141test -z "$pic_mode" && pic_mode=default
6bf9431b 4142
ac48eca1 4143
ce2cded5
L
4144
4145
4146
4147
4148
4149# Check whether --enable-fast-install or --disable-fast-install was given.
4150if test "${enable_fast_install+set}" = set; then
4151 enableval="$enable_fast_install"
4152 p=${PACKAGE-default}
4153 case $enableval in
4154 yes) enable_fast_install=yes ;;
4155 no) enable_fast_install=no ;;
4156 *)
4157 enable_fast_install=no
4158 # Look at the argument we got. We use all the common list separators.
4159 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4160 for pkg in $enableval; do
4161 IFS="$lt_save_ifs"
4162 if test "X$pkg" = "X$p"; then
4163 enable_fast_install=yes
4164 fi
4165 done
4166 IFS="$lt_save_ifs"
4167 ;;
4168 esac
ac48eca1 4169else
ce2cded5
L
4170 enable_fast_install=yes
4171fi;
ac48eca1
AO
4172
4173
252b5132 4174
5af11cab 4175
5af11cab 4176
5af11cab 4177
6bf9431b 4178
ce2cded5
L
4179
4180echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4181echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4182if test "${lt_cv_path_SED+set}" = set; then
6bf9431b
BE
4183 echo $ECHO_N "(cached) $ECHO_C" >&6
4184else
ce2cded5
L
4185 # Loop through the user's path and test for sed and gsed.
4186# Then use that list of sed's as ones to test for truncation.
6bf9431b
BE
4187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4188for as_dir in $PATH
4189do
4190 IFS=$as_save_IFS
4191 test -z "$as_dir" && as_dir=.
ce2cded5
L
4192 for lt_ac_prog in sed gsed; do
4193 for ac_exec_ext in '' $ac_executable_extensions; do
4194 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4195 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4196 fi
4197 done
4198 done
6bf9431b 4199done
ce2cded5
L
4200IFS=$as_save_IFS
4201lt_ac_max=0
4202lt_ac_count=0
4203# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4204# along with /bin/sed that truncates output.
4205for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4206 test ! -f $lt_ac_sed && continue
4207 cat /dev/null > conftest.in
4208 lt_ac_count=0
4209 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4210 # Check for GNU sed and select it if it is found.
4211 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4212 lt_cv_path_SED=$lt_ac_sed
4213 break
6bf9431b 4214 fi
ce2cded5
L
4215 while true; do
4216 cat conftest.in conftest.in >conftest.tmp
4217 mv conftest.tmp conftest.in
4218 cp conftest.in conftest.nl
4219 echo >>conftest.nl
4220 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4221 cmp -s conftest.out conftest.nl || break
4222 # 10000 chars as input seems more than enough
4223 test $lt_ac_count -gt 10 && break
4224 lt_ac_count=`expr $lt_ac_count + 1`
4225 if test $lt_ac_count -gt $lt_ac_max; then
4226 lt_ac_max=$lt_ac_count
4227 lt_cv_path_SED=$lt_ac_sed
4228 fi
4229 done
6bf9431b
BE
4230done
4231
6bf9431b
BE
4232fi
4233
ce2cded5 4234SED=$lt_cv_path_SED
6bf9431b 4235
ce2cded5
L
4236echo "$as_me:$LINENO: result: $SED" >&5
4237echo "${ECHO_T}$SED" >&6
6bf9431b 4238
ce2cded5
L
4239test -z "$SED" && SED=sed
4240Xsed="$SED -e 1s/^X//"
6bf9431b 4241
6bf9431b 4242
6bf9431b 4243
252b5132 4244
6bf9431b 4245
252b5132 4246
6bf9431b 4247
252b5132 4248
6bf9431b 4249
252b5132 4250
252b5132 4251
ce2cded5
L
4252echo "$as_me:$LINENO: checking for egrep" >&5
4253echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4254if test "${ac_cv_prog_egrep+set}" = set; then
4255 echo $ECHO_N "(cached) $ECHO_C" >&6
4256else
4257 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4258 then ac_cv_prog_egrep='grep -E'
4259 else ac_cv_prog_egrep='egrep'
4260 fi
4261fi
4262echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4263echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4264 EGREP=$ac_cv_prog_egrep
4265
6bf9431b 4266
ce2cded5
L
4267echo "$as_me:$LINENO: checking for fgrep" >&5
4268echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4269if test "${ac_cv_prog_fgrep+set}" = set; then
4270 echo $ECHO_N "(cached) $ECHO_C" >&6
4271else
4272 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4273 then ac_cv_prog_fgrep='grep -F'
4274 else ac_cv_prog_fgrep='fgrep'
4275 fi
4276fi
4277echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4278echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4279 FGREP=$ac_cv_prog_fgrep
6bf9431b
BE
4280
4281
ce2cded5 4282test -z "$GREP" && GREP=grep
6bf9431b 4283
d7040cdb
SE
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
ce2cded5
L
4302# Check whether --with-gnu-ld or --without-gnu-ld was given.
4303if test "${with_gnu_ld+set}" = set; then
4304 withval="$with_gnu_ld"
4305 test "$withval" = no || with_gnu_ld=yes
4306else
4307 with_gnu_ld=no
4308fi;
4309ac_prog=ld
4310if test "$GCC" = yes; then
4311 # Check if gcc -print-prog-name=ld gives a path.
4312 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4313echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4314 case $host in
4315 *-*-mingw*)
4316 # gcc leaves a trailing carriage return which upsets mingw
4317 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4318 *)
4319 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4320 esac
4321 case $ac_prog in
4322 # Accept absolute paths.
4323 [\\/]* | ?:[\\/]*)
4324 re_direlt='/[^/][^/]*/\.\./'
4325 # Canonicalize the pathname of ld
4326 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4327 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4328 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4329 done
4330 test -z "$LD" && LD="$ac_prog"
4331 ;;
4332 "")
4333 # If it fails, then pretend we aren't using GCC.
4334 ac_prog=ld
4335 ;;
4336 *)
4337 # If it is relative, then search for the first ld in PATH.
4338 with_gnu_ld=unknown
4339 ;;
4340 esac
4341elif test "$with_gnu_ld" = yes; then
4342 echo "$as_me:$LINENO: checking for GNU ld" >&5
4343echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4344else
4345 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4346echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4347fi
4348if test "${lt_cv_path_LD+set}" = set; then
4349 echo $ECHO_N "(cached) $ECHO_C" >&6
4350else
4351 if test -z "$LD"; then
4352 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4353 for ac_dir in $PATH; do
4354 IFS="$lt_save_ifs"
4355 test -z "$ac_dir" && ac_dir=.
4356 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4357 lt_cv_path_LD="$ac_dir/$ac_prog"
4358 # Check to see if the program is GNU ld. I'd rather use --version,
4359 # but apparently some variants of GNU ld only accept -v.
4360 # Break only if it was the GNU/non-GNU ld that we prefer.
4361 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4362 *GNU* | *'with BFD'*)
4363 test "$with_gnu_ld" != no && break
4364 ;;
4365 *)
4366 test "$with_gnu_ld" != yes && break
4367 ;;
4368 esac
4369 fi
4370 done
4371 IFS="$lt_save_ifs"
4372else
4373 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4374fi
4375fi
d7040cdb 4376
ce2cded5
L
4377LD="$lt_cv_path_LD"
4378if test -n "$LD"; then
4379 echo "$as_me:$LINENO: result: $LD" >&5
4380echo "${ECHO_T}$LD" >&6
4381else
4382 echo "$as_me:$LINENO: result: no" >&5
4383echo "${ECHO_T}no" >&6
4384fi
4385test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4386echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4387 { (exit 1); exit 1; }; }
4388echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4389echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4390if test "${lt_cv_prog_gnu_ld+set}" = set; then
4391 echo $ECHO_N "(cached) $ECHO_C" >&6
4392else
4393 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4394case `$LD -v 2>&1 </dev/null` in
4395*GNU* | *'with BFD'*)
4396 lt_cv_prog_gnu_ld=yes
4397 ;;
4398*)
4399 lt_cv_prog_gnu_ld=no
4400 ;;
4401esac
4402fi
4403echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4404echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4405with_gnu_ld=$lt_cv_prog_gnu_ld
d7040cdb
SE
4406
4407
4408
4409
4410
4411
d7040cdb 4412
d7040cdb 4413
d7040cdb
SE
4414
4415
ce2cded5
L
4416echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4417echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
4418if test "${lt_cv_path_NM+set}" = set; then
d7040cdb
SE
4419 echo $ECHO_N "(cached) $ECHO_C" >&6
4420else
ce2cded5
L
4421 if test -n "$NM"; then
4422 # Let the user override the test.
4423 lt_cv_path_NM="$NM"
4424else
4425 lt_nm_to_check="${ac_tool_prefix}nm"
4426 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4427 lt_nm_to_check="$lt_nm_to_check nm"
d7040cdb 4428 fi
ce2cded5
L
4429 for lt_tmp_nm in $lt_nm_to_check; do
4430 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4431 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4432 IFS="$lt_save_ifs"
4433 test -z "$ac_dir" && ac_dir=.
4434 tmp_nm="$ac_dir/$lt_tmp_nm"
4435 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4436 # Check to see if the nm accepts a BSD-compat flag.
4437 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4438 # nm: unknown option "B" ignored
4439 # Tru64's nm complains that /dev/null is an invalid object file
4440 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4441 */dev/null* | *'Invalid file or object type'*)
4442 lt_cv_path_NM="$tmp_nm -B"
4443 break
4444 ;;
4445 *)
4446 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4447 */dev/null*)
4448 lt_cv_path_NM="$tmp_nm -p"
4449 break
4450 ;;
4451 *)
4452 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4453 continue # so that we can try to find one that supports BSD flags
4454 ;;
4455 esac
4456 ;;
4457 esac
4458 fi
4459 done
4460 IFS="$lt_save_ifs"
4461 done
4462 : ${lt_cv_path_NM=no}
4463fi
4464fi
4465echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4466echo "${ECHO_T}$lt_cv_path_NM" >&6
4467if test "$lt_cv_path_NM" != "no"; then
4468 NM="$lt_cv_path_NM"
4469else
4470 # Didn't find any BSD compatible name lister, look for dumpbin.
4471 if test -n "$ac_tool_prefix"; then
4472 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4473 do
4474 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4475set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4476echo "$as_me:$LINENO: checking for $ac_word" >&5
4477echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4478if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4479 echo $ECHO_N "(cached) $ECHO_C" >&6
4480else
4481 if test -n "$DUMPBIN"; then
4482 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4483else
4484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4485for as_dir in $PATH
4486do
4487 IFS=$as_save_IFS
4488 test -z "$as_dir" && as_dir=.
4489 for ac_exec_ext in '' $ac_executable_extensions; do
4490 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4491 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4493 break 2
4494 fi
4495done
4496done
d7040cdb 4497
ce2cded5
L
4498fi
4499fi
4500DUMPBIN=$ac_cv_prog_DUMPBIN
4501if test -n "$DUMPBIN"; then
4502 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4503echo "${ECHO_T}$DUMPBIN" >&6
4504else
4505 echo "$as_me:$LINENO: result: no" >&5
4506echo "${ECHO_T}no" >&6
4507fi
d7040cdb 4508
ce2cded5
L
4509 test -n "$DUMPBIN" && break
4510 done
4511fi
4512if test -z "$DUMPBIN"; then
4513 ac_ct_DUMPBIN=$DUMPBIN
4514 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4515do
4516 # Extract the first word of "$ac_prog", so it can be a program name with args.
4517set dummy $ac_prog; ac_word=$2
4518echo "$as_me:$LINENO: checking for $ac_word" >&5
4519echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4520if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4521 echo $ECHO_N "(cached) $ECHO_C" >&6
4522else
4523 if test -n "$ac_ct_DUMPBIN"; then
4524 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4525else
4526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4527for as_dir in $PATH
4528do
4529 IFS=$as_save_IFS
4530 test -z "$as_dir" && as_dir=.
4531 for ac_exec_ext in '' $ac_executable_extensions; do
4532 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4533 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4535 break 2
4536 fi
4537done
4538done
d7040cdb 4539
ce2cded5
L
4540fi
4541fi
4542ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4543if test -n "$ac_ct_DUMPBIN"; then
4544 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4545echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4546else
4547 echo "$as_me:$LINENO: result: no" >&5
4548echo "${ECHO_T}no" >&6
4549fi
d7040cdb 4550
ce2cded5
L
4551 test -n "$ac_ct_DUMPBIN" && break
4552done
4553test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
d7040cdb 4554
ce2cded5
L
4555 DUMPBIN=$ac_ct_DUMPBIN
4556fi
d7040cdb 4557
d7040cdb 4558
ce2cded5
L
4559 if test "$DUMPBIN" != ":"; then
4560 NM="$DUMPBIN"
d7040cdb 4561 fi
ce2cded5
L
4562fi
4563test -z "$NM" && NM=nm
d7040cdb 4564
d7040cdb 4565
d7040cdb 4566
d7040cdb 4567
d7040cdb 4568
d7040cdb 4569
ce2cded5
L
4570echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4571echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4572if test "${lt_cv_nm_interface+set}" = set; then
4573 echo $ECHO_N "(cached) $ECHO_C" >&6
4574else
4575 lt_cv_nm_interface="BSD nm"
4576 echo "int some_variable = 0;" > conftest.$ac_ext
4577 (eval echo "\"\$as_me:4577: $ac_compile\"" >&5)
4578 (eval "$ac_compile" 2>conftest.err)
4579 cat conftest.err >&5
4580 (eval echo "\"\$as_me:4580: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4581 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4582 cat conftest.err >&5
4583 (eval echo "\"\$as_me:4583: output\"" >&5)
4584 cat conftest.out >&5
4585 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4586 lt_cv_nm_interface="MS dumpbin"
4587 fi
4588 rm -f conftest*
4589fi
4590echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4591echo "${ECHO_T}$lt_cv_nm_interface" >&6
d7040cdb 4592
ce2cded5
L
4593echo "$as_me:$LINENO: checking whether ln -s works" >&5
4594echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4595LN_S=$as_ln_s
4596if test "$LN_S" = "ln -s"; then
4597 echo "$as_me:$LINENO: result: yes" >&5
4598echo "${ECHO_T}yes" >&6
4599else
4600 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4601echo "${ECHO_T}no, using $LN_S" >&6
4602fi
d7040cdb 4603
ce2cded5
L
4604# find the maximum length of command line arguments
4605echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4606echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4607if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4608 echo $ECHO_N "(cached) $ECHO_C" >&6
4609else
4610 i=0
4611 teststring="ABCD"
4612
4613 case $build_os in
4614 msdosdjgpp*)
4615 # On DJGPP, this test can blow up pretty badly due to problems in libc
4616 # (any single argument exceeding 2000 bytes causes a buffer overrun
4617 # during glob expansion). Even if it were fixed, the result of this
4618 # check would be larger than it should be.
4619 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4620 ;;
4621
4622 gnu*)
4623 # Under GNU Hurd, this test is not required because there is
4624 # no limit to the length of command line arguments.
4625 # Libtool will interpret -1 as no limit whatsoever
4626 lt_cv_sys_max_cmd_len=-1;
4627 ;;
4628
4629 cygwin* | mingw*)
4630 # On Win9x/ME, this test blows up -- it succeeds, but takes
4631 # about 5 minutes as the teststring grows exponentially.
4632 # Worse, since 9x/ME are not pre-emptively multitasking,
4633 # you end up with a "frozen" computer, even though with patience
4634 # the test eventually succeeds (with a max line length of 256k).
4635 # Instead, let's just punt: use the minimum linelength reported by
4636 # all of the supported platforms: 8192 (on NT/2K/XP).
4637 lt_cv_sys_max_cmd_len=8192;
4638 ;;
4639
4640 amigaos*)
4641 # On AmigaOS with pdksh, this test takes hours, literally.
4642 # So we just punt and use a minimum line length of 8192.
4643 lt_cv_sys_max_cmd_len=8192;
4644 ;;
4645
4646 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4647 # This has been around since 386BSD, at least. Likely further.
4648 if test -x /sbin/sysctl; then
4649 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4650 elif test -x /usr/sbin/sysctl; then
4651 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
d7040cdb 4652 else
ce2cded5 4653 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
d7040cdb 4654 fi
ce2cded5
L
4655 # And add a safety zone
4656 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4657 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4658 ;;
6bf9431b 4659
ce2cded5
L
4660 interix*)
4661 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4662 lt_cv_sys_max_cmd_len=196608
4663 ;;
d7040cdb 4664
ce2cded5
L
4665 osf*)
4666 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4667 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4668 # nice to cause kernel panics so lets avoid the loop below.
4669 # First set a reasonable default.
4670 lt_cv_sys_max_cmd_len=16384
4671 #
4672 if test -x /sbin/sysconfig; then
4673 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4674 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4675 esac
4676 fi
4677 ;;
4678 sco3.2v5*)
4679 lt_cv_sys_max_cmd_len=102400
4680 ;;
4681 sysv5* | sco5v6* | sysv4.2uw2*)
4682 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4683 if test -n "$kargmax"; then
4684 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4685 else
4686 lt_cv_sys_max_cmd_len=32768
4687 fi
4688 ;;
4689 *)
4690 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
4691 if test -n $lt_cv_sys_max_cmd_len; then
4692 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4693 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4694 else
4695 # Make teststring a little bigger before we do anything with it.
4696 # a 1K string should be a reasonable start.
4697 for i in 1 2 3 4 5 6 7 8 ; do
4698 teststring=$teststring$teststring
4699 done
4700 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4701 # If test is not a shell built-in, we'll probably end up computing a
4702 # maximum length that is only half of the actual maximum length, but
4703 # we can't tell.
4704 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4705 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4706 test $i != 17 # 1/2 MB should be enough
4707 do
4708 i=`expr $i + 1`
4709 teststring=$teststring$teststring
4710 done
4711 # Only check the string length outside the loop.
4712 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4713 teststring=
4714 # Add a significant safety factor because C++ compilers can tack on
4715 # massive amounts of additional arguments before passing them to the
4716 # linker. It appears as though 1/2 is a usable value.
4717 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4718 fi
4719 ;;
4720 esac
d7040cdb 4721
d7040cdb 4722fi
ce2cded5
L
4723
4724if test -n $lt_cv_sys_max_cmd_len ; then
4725 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4726echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
d7040cdb 4727else
ce2cded5
L
4728 echo "$as_me:$LINENO: result: none" >&5
4729echo "${ECHO_T}none" >&6
d7040cdb 4730fi
ce2cded5 4731max_cmd_len=$lt_cv_sys_max_cmd_len
d7040cdb
SE
4732
4733
4734
4735
4736
4737
4738
ce2cded5
L
4739: ${CP="cp -f"}
4740: ${MV="mv -f"}
4741: ${RM="rm -f"}
d7040cdb 4742
ce2cded5
L
4743echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4744echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4745# Try some XSI features
4746xsi_shell=no
4747( _lt_dummy="a/b/c"
4748 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4749 = c,a/b,, ) >/dev/null 2>&1 \
4750 && xsi_shell=yes
4751echo "$as_me:$LINENO: result: $xsi_shell" >&5
4752echo "${ECHO_T}$xsi_shell" >&6
d7040cdb
SE
4753
4754
ce2cded5
L
4755echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4756echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4757lt_shell_append=no
4758( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4759 >/dev/null 2>&1 \
4760 && lt_shell_append=yes
4761echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4762echo "${ECHO_T}$lt_shell_append" >&6
d7040cdb
SE
4763
4764
ce2cded5
L
4765if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4766 lt_unset=unset
4767else
4768 lt_unset=false
4769fi
d7040cdb
SE
4770
4771
4772
4773
4774
ce2cded5
L
4775# test EBCDIC or ASCII
4776case `echo X|tr X '\101'` in
4777 A) # ASCII based system
4778 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4779 lt_SP2NL='tr \040 \012'
4780 lt_NL2SP='tr \015\012 \040\040'
4781 ;;
4782 *) # EBCDIC based system
4783 lt_SP2NL='tr \100 \n'
4784 lt_NL2SP='tr \r\n \100\100'
4785 ;;
4786esac
d7040cdb 4787
d7040cdb 4788
d7040cdb 4789
d7040cdb 4790
ce2cded5
L
4791
4792
4793
4794
4795
4796echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4797echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4798if test "${lt_cv_ld_reload_flag+set}" = set; then
6bf9431b
BE
4799 echo $ECHO_N "(cached) $ECHO_C" >&6
4800else
ce2cded5
L
4801 lt_cv_ld_reload_flag='-r'
4802fi
4803echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4804echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4805reload_flag=$lt_cv_ld_reload_flag
4806case $reload_flag in
4807"" | " "*) ;;
4808*) reload_flag=" $reload_flag" ;;
4809esac
4810reload_cmds='$LD$reload_flag -o $output$reload_objs'
4811case $host_os in
4812 darwin*)
4813 if test "$GCC" = yes; then
4814 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4815 else
4816 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4817 fi
4818 ;;
4819esac
d7040cdb 4820
6bf9431b 4821
252b5132 4822
ce2cded5
L
4823
4824
4825
4826
4827
4828
4829
4830echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4831echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4832if test "${lt_cv_deplibs_check_method+set}" = set; then
4833 echo $ECHO_N "(cached) $ECHO_C" >&6
6bf9431b 4834else
ce2cded5
L
4835 lt_cv_file_magic_cmd='$MAGIC_CMD'
4836lt_cv_file_magic_test_file=
4837lt_cv_deplibs_check_method='unknown'
4838# Need to set the preceding variable on all platforms that support
4839# interlibrary dependencies.
4840# 'none' -- dependencies not supported.
4841# `unknown' -- same as none, but documents that we really don't know.
4842# 'pass_all' -- all dependencies passed with no checks.
4843# 'test_compile' -- check by making test program.
4844# 'file_magic [[regex]]' -- check by looking for files in library path
4845# which responds to the $file_magic_cmd with a given extended regex.
4846# If you have `file' or equivalent on your system and you're not sure
4847# whether `pass_all' will *always* work, you probably want this one.
6bf9431b 4848
ce2cded5
L
4849case $host_os in
4850aix4* | aix5*)
4851 lt_cv_deplibs_check_method=pass_all
4852 ;;
6bf9431b 4853
ce2cded5
L
4854beos*)
4855 lt_cv_deplibs_check_method=pass_all
d7040cdb 4856 ;;
ce2cded5
L
4857
4858bsdi[45]*)
4859 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4860 lt_cv_file_magic_cmd='/usr/bin/file -L'
4861 lt_cv_file_magic_test_file=/shlib/libc.so
d7040cdb 4862 ;;
d7040cdb 4863
ce2cded5
L
4864cygwin*)
4865 # func_win32_libid is a shell function defined in ltmain.sh
4866 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4867 lt_cv_file_magic_cmd='func_win32_libid'
4868 ;;
d7040cdb 4869
ce2cded5
L
4870mingw* | pw32*)
4871 # Base MSYS/MinGW do not provide the 'file' command needed by
4872 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4873 # unless we find 'file', for example because we are cross-compiling.
4874 if ( file / ) >/dev/null 2>&1; then
4875 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4876 lt_cv_file_magic_cmd='func_win32_libid'
0ab6f085 4877 else
ce2cded5
L
4878 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4879 lt_cv_file_magic_cmd='$OBJDUMP -f'
0ab6f085 4880 fi
ce2cded5 4881 ;;
d7040cdb 4882
ce2cded5
L
4883darwin* | rhapsody*)
4884 lt_cv_deplibs_check_method=pass_all
4885 ;;
d7040cdb 4886
ce2cded5
L
4887freebsd* | dragonfly*)
4888 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4889 case $host_cpu in
4890 i*86 )
4891 # Not sure whether the presence of OpenBSD here was a mistake.
4892 # Let's accept both of them until this is cleared up.
4893 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4894 lt_cv_file_magic_cmd=/usr/bin/file
4895 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4896 ;;
4897 esac
0ab6f085 4898 else
ce2cded5 4899 lt_cv_deplibs_check_method=pass_all
0ab6f085 4900 fi
ce2cded5 4901 ;;
6bf9431b 4902
ce2cded5
L
4903gnu*)
4904 lt_cv_deplibs_check_method=pass_all
4905 ;;
6bf9431b 4906
ce2cded5
L
4907hpux10.20* | hpux11*)
4908 lt_cv_file_magic_cmd=/usr/bin/file
4909 case $host_cpu in
4910 ia64*)
4911 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4912 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4913 ;;
4914 hppa*64*)
4915 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]'
4916 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4917 ;;
4918 *)
4919 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4920 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4921 ;;
4922 esac
4923 ;;
6bf9431b 4924
ce2cded5
L
4925interix[3-9]*)
4926 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4927 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4928 ;;
6bf9431b 4929
ce2cded5
L
4930irix5* | irix6* | nonstopux*)
4931 case $LD in
4932 *-32|*"-32 ") libmagic=32-bit;;
4933 *-n32|*"-n32 ") libmagic=N32;;
4934 *-64|*"-64 ") libmagic=64-bit;;
4935 *) libmagic=never-match;;
4936 esac
4937 lt_cv_deplibs_check_method=pass_all
4938 ;;
d7040cdb 4939
ce2cded5
L
4940# This must be Linux ELF.
4941linux* | k*bsd*-gnu)
4942 lt_cv_deplibs_check_method=pass_all
4943 ;;
d7040cdb 4944
ce2cded5
L
4945netbsd*)
4946 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4947 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
0ab6f085 4948 else
ce2cded5 4949 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
0ab6f085 4950 fi
ce2cded5 4951 ;;
6bf9431b 4952
ce2cded5
L
4953newos6*)
4954 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4955 lt_cv_file_magic_cmd=/usr/bin/file
4956 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4957 ;;
d7040cdb 4958
ce2cded5
L
4959*nto* | *qnx*)
4960 lt_cv_deplibs_check_method=pass_all
4961 ;;
d7040cdb 4962
ce2cded5
L
4963openbsd*)
4964 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4965 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4966 else
4967 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4968 fi
4969 ;;
d7040cdb 4970
ce2cded5
L
4971osf3* | osf4* | osf5*)
4972 lt_cv_deplibs_check_method=pass_all
4973 ;;
d7040cdb 4974
ce2cded5
L
4975rdos*)
4976 lt_cv_deplibs_check_method=pass_all
4977 ;;
d7040cdb 4978
ce2cded5
L
4979solaris*)
4980 lt_cv_deplibs_check_method=pass_all
4981 ;;
d7040cdb 4982
ce2cded5
L
4983sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4984 lt_cv_deplibs_check_method=pass_all
4985 ;;
d7040cdb 4986
ce2cded5
L
4987sysv4 | sysv4.3*)
4988 case $host_vendor in
4989 motorola)
4990 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]'
4991 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4992 ;;
4993 ncr)
4994 lt_cv_deplibs_check_method=pass_all
4995 ;;
4996 sequent)
4997 lt_cv_file_magic_cmd='/bin/file'
4998 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4999 ;;
5000 sni)
5001 lt_cv_file_magic_cmd='/bin/file'
5002 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5003 lt_cv_file_magic_test_file=/lib/libc.so
5004 ;;
5005 siemens)
5006 lt_cv_deplibs_check_method=pass_all
5007 ;;
5008 pc)
5009 lt_cv_deplibs_check_method=pass_all
5010 ;;
5011 esac
5012 ;;
d7040cdb 5013
ce2cded5
L
5014tpf*)
5015 lt_cv_deplibs_check_method=pass_all
5016 ;;
5017esac
6bf9431b 5018
6bf9431b 5019fi
ce2cded5
L
5020echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5021echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5022file_magic_cmd=$lt_cv_file_magic_cmd
5023deplibs_check_method=$lt_cv_deplibs_check_method
5024test -z "$deplibs_check_method" && deplibs_check_method=unknown
d7040cdb 5025
6bf9431b 5026
252b5132 5027
6bf9431b 5028
252b5132 5029
252b5132 5030
252b5132 5031
252b5132 5032
252b5132
RH
5033
5034
6bf9431b 5035
d7040cdb 5036
ce2cded5
L
5037if test -n "$ac_tool_prefix"; then
5038 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5039set dummy ${ac_tool_prefix}ar; ac_word=$2
5040echo "$as_me:$LINENO: checking for $ac_word" >&5
5041echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5042if test "${ac_cv_prog_AR+set}" = set; then
6bf9431b
BE
5043 echo $ECHO_N "(cached) $ECHO_C" >&6
5044else
ce2cded5
L
5045 if test -n "$AR"; then
5046 ac_cv_prog_AR="$AR" # Let the user override the test.
d7040cdb 5047else
ce2cded5
L
5048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5049for as_dir in $PATH
5050do
5051 IFS=$as_save_IFS
5052 test -z "$as_dir" && as_dir=.
5053 for ac_exec_ext in '' $ac_executable_extensions; do
5054 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5055 ac_cv_prog_AR="${ac_tool_prefix}ar"
5056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5057 break 2
5058 fi
5059done
5060done
6bf9431b 5061
d7040cdb 5062fi
d7040cdb 5063fi
ce2cded5
L
5064AR=$ac_cv_prog_AR
5065if test -n "$AR"; then
5066 echo "$as_me:$LINENO: result: $AR" >&5
5067echo "${ECHO_T}$AR" >&6
5068else
5069 echo "$as_me:$LINENO: result: no" >&5
5070echo "${ECHO_T}no" >&6
d7040cdb 5071fi
6bf9431b 5072
ce2cded5
L
5073fi
5074if test -z "$ac_cv_prog_AR"; then
5075 ac_ct_AR=$AR
5076 # Extract the first word of "ar", so it can be a program name with args.
5077set dummy ar; ac_word=$2
5078echo "$as_me:$LINENO: checking for $ac_word" >&5
5079echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5080if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
d7040cdb
SE
5081 echo $ECHO_N "(cached) $ECHO_C" >&6
5082else
ce2cded5
L
5083 if test -n "$ac_ct_AR"; then
5084 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6bf9431b 5085else
ce2cded5
L
5086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5087for as_dir in $PATH
5088do
5089 IFS=$as_save_IFS
5090 test -z "$as_dir" && as_dir=.
5091 for ac_exec_ext in '' $ac_executable_extensions; do
5092 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5093 ac_cv_prog_ac_ct_AR="ar"
5094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5095 break 2
5096 fi
5097done
5098done
6bf9431b 5099
ce2cded5 5100 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6bf9431b 5101fi
6bf9431b 5102fi
ce2cded5
L
5103ac_ct_AR=$ac_cv_prog_ac_ct_AR
5104if test -n "$ac_ct_AR"; then
5105 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5106echo "${ECHO_T}$ac_ct_AR" >&6
5107else
5108 echo "$as_me:$LINENO: result: no" >&5
5109echo "${ECHO_T}no" >&6
6bf9431b 5110fi
d7040cdb 5111
ce2cded5
L
5112 AR=$ac_ct_AR
5113else
5114 AR="$ac_cv_prog_AR"
5115fi
20e95c23 5116
ce2cded5
L
5117test -z "$AR" && AR=ar
5118test -z "$AR_FLAGS" && AR_FLAGS=cru
20e95c23
DJ
5119
5120
5121
5122
20e95c23 5123
d7040cdb
SE
5124
5125
5126
5127
5128
5129
ce2cded5
L
5130if test -n "$ac_tool_prefix"; then
5131 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5132set dummy ${ac_tool_prefix}strip; ac_word=$2
5133echo "$as_me:$LINENO: checking for $ac_word" >&5
5134echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5135if test "${ac_cv_prog_STRIP+set}" = set; then
5136 echo $ECHO_N "(cached) $ECHO_C" >&6
5137else
5138 if test -n "$STRIP"; then
5139 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5140else
5141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5142for as_dir in $PATH
5143do
5144 IFS=$as_save_IFS
5145 test -z "$as_dir" && as_dir=.
5146 for ac_exec_ext in '' $ac_executable_extensions; do
5147 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5148 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5150 break 2
5151 fi
5152done
5153done
d7040cdb 5154
ce2cded5
L
5155fi
5156fi
5157STRIP=$ac_cv_prog_STRIP
5158if test -n "$STRIP"; then
5159 echo "$as_me:$LINENO: result: $STRIP" >&5
5160echo "${ECHO_T}$STRIP" >&6
5161else
5162 echo "$as_me:$LINENO: result: no" >&5
5163echo "${ECHO_T}no" >&6
5164fi
d7040cdb 5165
ce2cded5
L
5166fi
5167if test -z "$ac_cv_prog_STRIP"; then
5168 ac_ct_STRIP=$STRIP
5169 # Extract the first word of "strip", so it can be a program name with args.
5170set dummy strip; ac_word=$2
5171echo "$as_me:$LINENO: checking for $ac_word" >&5
5172echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5173if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5174 echo $ECHO_N "(cached) $ECHO_C" >&6
5175else
5176 if test -n "$ac_ct_STRIP"; then
5177 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5178else
5179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5180for as_dir in $PATH
5181do
5182 IFS=$as_save_IFS
5183 test -z "$as_dir" && as_dir=.
5184 for ac_exec_ext in '' $ac_executable_extensions; do
5185 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5186 ac_cv_prog_ac_ct_STRIP="strip"
5187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5188 break 2
5189 fi
5190done
5191done
d7040cdb 5192
ce2cded5
L
5193 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5194fi
5195fi
5196ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5197if test -n "$ac_ct_STRIP"; then
5198 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5199echo "${ECHO_T}$ac_ct_STRIP" >&6
5200else
5201 echo "$as_me:$LINENO: result: no" >&5
5202echo "${ECHO_T}no" >&6
5203fi
d7040cdb 5204
ce2cded5
L
5205 STRIP=$ac_ct_STRIP
5206else
5207 STRIP="$ac_cv_prog_STRIP"
5208fi
d7040cdb 5209
ce2cded5 5210test -z "$STRIP" && STRIP=:
d7040cdb
SE
5211
5212
5213
5214
5215
5216
ce2cded5
L
5217if test -n "$ac_tool_prefix"; then
5218 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5219set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5220echo "$as_me:$LINENO: checking for $ac_word" >&5
5221echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5222if test "${ac_cv_prog_RANLIB+set}" = set; then
5223 echo $ECHO_N "(cached) $ECHO_C" >&6
5224else
5225 if test -n "$RANLIB"; then
5226 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5227else
5228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5229for as_dir in $PATH
5230do
5231 IFS=$as_save_IFS
5232 test -z "$as_dir" && as_dir=.
5233 for ac_exec_ext in '' $ac_executable_extensions; do
5234 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5235 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5237 break 2
5238 fi
5239done
5240done
d7040cdb 5241
ce2cded5
L
5242fi
5243fi
5244RANLIB=$ac_cv_prog_RANLIB
5245if test -n "$RANLIB"; then
5246 echo "$as_me:$LINENO: result: $RANLIB" >&5
5247echo "${ECHO_T}$RANLIB" >&6
5248else
5249 echo "$as_me:$LINENO: result: no" >&5
5250echo "${ECHO_T}no" >&6
20e95c23 5251fi
20e95c23 5252
ce2cded5
L
5253fi
5254if test -z "$ac_cv_prog_RANLIB"; then
5255 ac_ct_RANLIB=$RANLIB
5256 # Extract the first word of "ranlib", so it can be a program name with args.
5257set dummy ranlib; ac_word=$2
5258echo "$as_me:$LINENO: checking for $ac_word" >&5
5259echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5260if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6bf9431b
BE
5261 echo $ECHO_N "(cached) $ECHO_C" >&6
5262else
ce2cded5
L
5263 if test -n "$ac_ct_RANLIB"; then
5264 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6bf9431b 5265else
ce2cded5
L
5266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5267for as_dir in $PATH
5268do
5269 IFS=$as_save_IFS
5270 test -z "$as_dir" && as_dir=.
5271 for ac_exec_ext in '' $ac_executable_extensions; do
5272 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5273 ac_cv_prog_ac_ct_RANLIB="ranlib"
5274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5275 break 2
5276 fi
5277done
5278done
5279
5280 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
d7040cdb 5281fi
20e95c23 5282fi
ce2cded5
L
5283ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5284if test -n "$ac_ct_RANLIB"; then
5285 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5286echo "${ECHO_T}$ac_ct_RANLIB" >&6
5287else
5288 echo "$as_me:$LINENO: result: no" >&5
5289echo "${ECHO_T}no" >&6
5290fi
20e95c23 5291
ce2cded5
L
5292 RANLIB=$ac_ct_RANLIB
5293else
5294 RANLIB="$ac_cv_prog_RANLIB"
5295fi
d7040cdb 5296
ce2cded5 5297test -z "$RANLIB" && RANLIB=:
d7040cdb
SE
5298
5299
5300
d7040cdb
SE
5301
5302
5303
ce2cded5
L
5304# Determine commands to create old-style static archives.
5305old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5306old_postinstall_cmds='chmod 644 $oldlib'
5307old_postuninstall_cmds=
d7040cdb 5308
ce2cded5
L
5309if test -n "$RANLIB"; then
5310 case $host_os in
5311 openbsd*)
5312 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5313 ;;
5314 *)
5315 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5316 ;;
5317 esac
5318 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5319fi
d7040cdb
SE
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
d7040cdb 5333
d7040cdb 5334
d7040cdb 5335
d7040cdb 5336
d7040cdb 5337
d7040cdb 5338
d7040cdb 5339
d7040cdb 5340
d7040cdb 5341
d7040cdb 5342
d7040cdb 5343
d7040cdb
SE
5344
5345
5af11cab 5346
d7040cdb 5347
20e95c23 5348
6bf9431b 5349
20e95c23
DJ
5350
5351
20e95c23 5352
20e95c23 5353
ce2cded5
L
5354# If no C compiler was specified, use CC.
5355LTCC=${LTCC-"$CC"}
5356
5357# If no C compiler flags were specified, use CFLAGS.
5358LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5359
5360# Allow CC to be a program name with arguments.
5361compiler=$CC
5362
5363
5364# Check for command to grab the raw symbol name followed by C symbol from nm.
5365echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5366echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5367if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6bf9431b
BE
5368 echo $ECHO_N "(cached) $ECHO_C" >&6
5369else
d7040cdb 5370
ce2cded5
L
5371# These are sane defaults that work on at least a few old systems.
5372# [They come from Ultrix. What could be older than Ultrix?!! ;)]
d7040cdb 5373
ce2cded5
L
5374# Character class describing NM global symbol codes.
5375symcode='[BCDEGRST]'
5376
5377# Regexp to match symbols that can be accessed directly from C.
5378sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5379
5380# Define system-specific variables.
5381case $host_os in
5382aix*)
5383 symcode='[BCDT]'
5384 ;;
5385cygwin* | mingw* | pw32*)
5386 symcode='[ABCDGISTW]'
5387 ;;
5388hpux*)
5389 if test "$host_cpu" = ia64; then
5390 symcode='[ABCDEGRST]'
5391 fi
5392 ;;
5393irix* | nonstopux*)
5394 symcode='[BCDEGRST]'
5395 ;;
5396osf*)
5397 symcode='[BCDEGQRST]'
5398 ;;
5399solaris*)
5400 symcode='[BDRT]'
5401 ;;
5402sco3.2v5*)
5403 symcode='[DT]'
5404 ;;
5405sysv4.2uw2*)
5406 symcode='[DT]'
5407 ;;
5408sysv5* | sco5v6* | unixware* | OpenUNIX*)
5409 symcode='[ABDT]'
5410 ;;
5411sysv4)
5412 symcode='[DFNSTU]'
d7040cdb 5413 ;;
20e95c23 5414esac
d7040cdb 5415
ce2cded5
L
5416# If we're using GNU nm, then use its standard symbol codes.
5417case `$NM -V 2>&1` in
5418*GNU* | *'with BFD'*)
5419 symcode='[ABCDGIRSTW]' ;;
5420esac
20e95c23 5421
ce2cded5
L
5422# Transform an extracted symbol line into a proper C declaration.
5423# Some systems (esp. on ia64) link data and code symbols differently,
5424# so use this general approach.
5425lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
20e95c23 5426
ce2cded5
L
5427# Transform an extracted symbol line into symbol name and symbol address
5428lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5af11cab 5429
ce2cded5
L
5430# Handle CRLF in mingw tool chain
5431opt_cr=
5432case $build_os in
5433mingw*)
5434 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
d7040cdb
SE
5435 ;;
5436esac
20e95c23 5437
ce2cded5
L
5438# Try without a prefix underscore, then with it.
5439for ac_symprfx in "" "_"; do
d7040cdb 5440
ce2cded5
L
5441 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5442 symxfrm="\\1 $ac_symprfx\\2 \\2"
d7040cdb 5443
ce2cded5
L
5444 # Write the raw and C identifiers.
5445 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5446 # Fake it for dumpbin and say T for any non-static function
5447 # and D for any global variable.
5448 # Also find C++ and __fastcall symbols from MSVC++,
5449 # which start with @ or ?.
5450 lt_cv_sys_global_symbol_pipe="$AWK '"\
5451" {last_section=section; section=\$ 3};"\
5452" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5453" \$ 0!~/External *\|/{next};"\
5454" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5455" {if(hide[section]) next};"\
5456" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5457" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5458" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5459" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5460" ' prfx=^$ac_symprfx"
5461 else
5462 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5463 fi
d7040cdb 5464
ce2cded5
L
5465 # Check to see that the pipe works correctly.
5466 pipe_works=no
d7040cdb 5467
ce2cded5
L
5468 rm -f conftest*
5469 cat > conftest.$ac_ext <<_LT_EOF
5470#ifdef __cplusplus
5471extern "C" {
5472#endif
5473char nm_test_var;
5474void nm_test_func(void);
5475void nm_test_func(void){}
5476#ifdef __cplusplus
5477}
5478#endif
5479int main(){nm_test_var='a';nm_test_func();return(0);}
5480_LT_EOF
d7040cdb 5481
ce2cded5
L
5482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5483 (eval $ac_compile) 2>&5
5484 ac_status=$?
5485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486 (exit $ac_status); }; then
5487 # Now try to grab the symbols.
5488 nlist=conftest.nm
5489 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5490 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5491 ac_status=$?
5492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5493 (exit $ac_status); } && test -s "$nlist"; then
5494 # Try sorting and uniquifying the output.
5495 if sort "$nlist" | uniq > "$nlist"T; then
5496 mv -f "$nlist"T "$nlist"
5497 else
5498 rm -f "$nlist"T
5499 fi
d7040cdb 5500
ce2cded5
L
5501 # Make sure that we snagged all the symbols we need.
5502 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5503 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5504 cat <<_LT_EOF > conftest.$ac_ext
5505#ifdef __cplusplus
5506extern "C" {
5507#endif
d7040cdb 5508
ce2cded5
L
5509_LT_EOF
5510 # Now generate the symbol file.
5511 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
d7040cdb 5512
ce2cded5 5513 cat <<_LT_EOF >> conftest.$ac_ext
d7040cdb 5514
ce2cded5
L
5515/* The mapping between symbol names and symbols. */
5516const struct {
5517 const char *name;
5518 void *address;
5519}
5520lt__PROGRAM__LTX_preloaded_symbols[] =
5521{
5522 { "@PROGRAM@", (void *) 0 },
5523_LT_EOF
5524 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5525 cat <<\_LT_EOF >> conftest.$ac_ext
5526 {0, (void *) 0}
5527};
d7040cdb 5528
ce2cded5
L
5529/* This works around a problem in FreeBSD linker */
5530#ifdef FREEBSD_WORKAROUND
5531static const void *lt_preloaded_setup() {
5532 return lt__PROGRAM__LTX_preloaded_symbols;
5533}
5534#endif
d7040cdb 5535
ce2cded5
L
5536#ifdef __cplusplus
5537}
5538#endif
5539_LT_EOF
5540 # Now try linking the two files.
5541 mv conftest.$ac_objext conftstm.$ac_objext
5542 lt_save_LIBS="$LIBS"
5543 lt_save_CFLAGS="$CFLAGS"
5544 LIBS="conftstm.$ac_objext"
5545 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5547 (eval $ac_link) 2>&5
5548 ac_status=$?
5549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5550 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5551 pipe_works=yes
5552 fi
5553 LIBS="$lt_save_LIBS"
5554 CFLAGS="$lt_save_CFLAGS"
5555 else
5556 echo "cannot find nm_test_func in $nlist" >&5
5557 fi
5558 else
5559 echo "cannot find nm_test_var in $nlist" >&5
5560 fi
5561 else
5562 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5563 fi
5564 else
5565 echo "$progname: failed program was:" >&5
5566 cat conftest.$ac_ext >&5
5567 fi
5568 rm -f conftest* conftst*
d7040cdb 5569
ce2cded5
L
5570 # Do not use the global_symbol_pipe unless it works.
5571 if test "$pipe_works" = yes; then
5572 break
5573 else
5574 lt_cv_sys_global_symbol_pipe=
5575 fi
5576done
d7040cdb 5577
ce2cded5 5578fi
d7040cdb 5579
ce2cded5
L
5580if test -z "$lt_cv_sys_global_symbol_pipe"; then
5581 lt_cv_sys_global_symbol_to_cdecl=
5582fi
5583if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5584 echo "$as_me:$LINENO: result: failed" >&5
5585echo "${ECHO_T}failed" >&6
5586else
5587 echo "$as_me:$LINENO: result: ok" >&5
5588echo "${ECHO_T}ok" >&6
5589fi
d7040cdb 5590
d7040cdb 5591
d7040cdb 5592
d7040cdb 5593
5af11cab 5594
20e95c23 5595
20e95c23 5596
20e95c23 5597
20e95c23
DJ
5598
5599
5600
20e95c23
DJ
5601
5602
d7040cdb 5603
252b5132 5604
20e95c23
DJ
5605
5606
ce2cded5
L
5607# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5608if test "${enable_libtool_lock+set}" = set; then
5609 enableval="$enable_libtool_lock"
20e95c23 5610
ce2cded5
L
5611fi;
5612test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
20e95c23 5613
ce2cded5
L
5614# Some flags need to be propagated to the compiler or linker for good
5615# libtool support.
5616case $host in
5617ia64-*-hpux*)
5618 # Find out which ABI we are using.
5619 echo 'int i;' > conftest.$ac_ext
5620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5621 (eval $ac_compile) 2>&5
5622 ac_status=$?
5623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624 (exit $ac_status); }; then
5625 case `/usr/bin/file conftest.$ac_objext` in
5626 *ELF-32*)
5627 HPUX_IA64_MODE="32"
d7040cdb 5628 ;;
ce2cded5
L
5629 *ELF-64*)
5630 HPUX_IA64_MODE="64"
5631 ;;
5632 esac
5633 fi
5634 rm -rf conftest*
5635 ;;
5636*-*-irix6*)
5637 # Find out which ABI we are using.
5638 echo '#line 5638 "configure"' > conftest.$ac_ext
5639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5640 (eval $ac_compile) 2>&5
5641 ac_status=$?
5642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643 (exit $ac_status); }; then
5644 if test "$lt_cv_prog_gnu_ld" = yes; then
5645 case `/usr/bin/file conftest.$ac_objext` in
5646 *32-bit*)
5647 LD="${LD-ld} -melf32bsmip"
5648 ;;
5649 *N32*)
5650 LD="${LD-ld} -melf32bmipn32"
5651 ;;
5652 *64-bit*)
5653 LD="${LD-ld} -melf64bmip"
d7040cdb
SE
5654 ;;
5655 esac
ce2cded5
L
5656 else
5657 case `/usr/bin/file conftest.$ac_objext` in
5658 *32-bit*)
5659 LD="${LD-ld} -32"
5660 ;;
5661 *N32*)
5662 LD="${LD-ld} -n32"
5663 ;;
5664 *64-bit*)
5665 LD="${LD-ld} -64"
5666 ;;
5667 esac
5668 fi
5669 fi
5670 rm -rf conftest*
5671 ;;
d5fbea21 5672
ce2cded5
L
5673x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5674s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5675 # Find out which ABI we are using.
5676 echo 'int i;' > conftest.$ac_ext
5677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5678 (eval $ac_compile) 2>&5
5679 ac_status=$?
5680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681 (exit $ac_status); }; then
5682 case `/usr/bin/file conftest.o` in
5683 *32-bit*)
5684 case $host in
5685 x86_64-*kfreebsd*-gnu)
5686 LD="${LD-ld} -m elf_i386_fbsd"
5687 ;;
5688 x86_64-*linux*)
5689 LD="${LD-ld} -m elf_i386"
5690 ;;
5691 ppc64-*linux*|powerpc64-*linux*)
5692 LD="${LD-ld} -m elf32ppclinux"
5693 ;;
5694 s390x-*linux*)
5695 LD="${LD-ld} -m elf_s390"
5696 ;;
5697 sparc64-*linux*)
5698 LD="${LD-ld} -m elf32_sparc"
5699 ;;
5700 esac
5701 ;;
5702 *64-bit*)
5703 case $host in
5704 x86_64-*kfreebsd*-gnu)
5705 LD="${LD-ld} -m elf_x86_64_fbsd"
5706 ;;
5707 x86_64-*linux*)
5708 LD="${LD-ld} -m elf_x86_64"
5709 ;;
5710 ppc*-*linux*|powerpc*-*linux*)
5711 LD="${LD-ld} -m elf64ppc"
5712 ;;
5713 s390*-*linux*|s390*-*tpf*)
5714 LD="${LD-ld} -m elf64_s390"
5715 ;;
5716 sparc*-*linux*)
5717 LD="${LD-ld} -m elf64_sparc"
5718 ;;
5719 esac
5720 ;;
5721 esac
5722 fi
5723 rm -rf conftest*
5724 ;;
d5fbea21 5725
ce2cded5
L
5726*-*-sco3.2v5*)
5727 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5728 SAVE_CFLAGS="$CFLAGS"
5729 CFLAGS="$CFLAGS -belf"
5730 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5731echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5732if test "${lt_cv_cc_needs_belf+set}" = set; then
5733 echo $ECHO_N "(cached) $ECHO_C" >&6
5734else
5735 ac_ext=c
5736ac_cpp='$CPP $CPPFLAGS'
5737ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5738ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5739ac_compiler_gnu=$ac_cv_c_compiler_gnu
d5fbea21 5740
ce2cded5
L
5741 cat >conftest.$ac_ext <<_ACEOF
5742/* confdefs.h. */
5743_ACEOF
5744cat confdefs.h >>conftest.$ac_ext
5745cat >>conftest.$ac_ext <<_ACEOF
5746/* end confdefs.h. */
d7040cdb 5747
ce2cded5
L
5748int
5749main ()
5750{
d7040cdb 5751
ce2cded5
L
5752 ;
5753 return 0;
5754}
5755_ACEOF
5756rm -f conftest.$ac_objext conftest$ac_exeext
5757if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5758 (eval $ac_link) 2>conftest.er1
5759 ac_status=$?
5760 grep -v '^ *+' conftest.er1 >conftest.err
5761 rm -f conftest.er1
5762 cat conftest.err >&5
5763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764 (exit $ac_status); } &&
5765 { ac_try='test -z "$ac_c_werror_flag"
5766 || test ! -s conftest.err'
5767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5768 (eval $ac_try) 2>&5
5769 ac_status=$?
5770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771 (exit $ac_status); }; } &&
5772 { ac_try='test -s conftest$ac_exeext'
5773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5774 (eval $ac_try) 2>&5
5775 ac_status=$?
5776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5777 (exit $ac_status); }; }; then
5778 lt_cv_cc_needs_belf=yes
5779else
5780 echo "$as_me: failed program was:" >&5
5781sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 5782
ce2cded5
L
5783lt_cv_cc_needs_belf=no
5784fi
5785rm -f conftest.err conftest.$ac_objext \
5786 conftest$ac_exeext conftest.$ac_ext
5787 ac_ext=c
5788ac_cpp='$CPP $CPPFLAGS'
5789ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5790ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5791ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 5792
ce2cded5
L
5793fi
5794echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5795echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5796 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5797 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5798 CFLAGS="$SAVE_CFLAGS"
5799 fi
5800 ;;
5801sparc*-*solaris*)
5802 # Find out which ABI we are using.
5803 echo 'int i;' > conftest.$ac_ext
5804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5805 (eval $ac_compile) 2>&5
5806 ac_status=$?
5807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808 (exit $ac_status); }; then
5809 case `/usr/bin/file conftest.o` in
5810 *64-bit*)
5811 case $lt_cv_prog_gnu_ld in
5812 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5813 *) LD="${LD-ld} -64" ;;
d7040cdb
SE
5814 esac
5815 ;;
d7040cdb 5816 esac
6bf9431b 5817 fi
ce2cded5
L
5818 rm -rf conftest*
5819 ;;
d7040cdb 5820esac
d7040cdb 5821
ce2cded5 5822need_locks="$enable_libtool_lock"
d7040cdb 5823
ce2cded5
L
5824ac_ext=c
5825ac_cpp='$CPP $CPPFLAGS'
5826ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5827ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5828ac_compiler_gnu=$ac_cv_c_compiler_gnu
5829echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5830echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5831# On Suns, sometimes $CPP names a directory.
5832if test -n "$CPP" && test -d "$CPP"; then
5833 CPP=
6bf9431b 5834fi
ce2cded5
L
5835if test -z "$CPP"; then
5836 if test "${ac_cv_prog_CPP+set}" = set; then
5837 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5838else
ce2cded5
L
5839 # Double quotes because CPP needs to be expanded
5840 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5841 do
5842 ac_preproc_ok=false
5843for ac_c_preproc_warn_flag in '' yes
5844do
5845 # Use a header file that comes with gcc, so configuring glibc
5846 # with a fresh cross-compiler works.
5847 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5848 # <limits.h> exists even on freestanding compilers.
5849 # On the NeXT, cc -E runs the code through the compiler's parser,
5850 # not just through cpp. "Syntax error" is here to catch this case.
5851 cat >conftest.$ac_ext <<_ACEOF
5852/* confdefs.h. */
5853_ACEOF
5854cat confdefs.h >>conftest.$ac_ext
5855cat >>conftest.$ac_ext <<_ACEOF
5856/* end confdefs.h. */
5857#ifdef __STDC__
5858# include <limits.h>
5859#else
5860# include <assert.h>
5861#endif
5862 Syntax error
5863_ACEOF
5864if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5865 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5866 ac_status=$?
5867 grep -v '^ *+' conftest.er1 >conftest.err
5868 rm -f conftest.er1
5869 cat conftest.err >&5
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); } >/dev/null; then
5872 if test -s conftest.err; then
5873 ac_cpp_err=$ac_c_preproc_warn_flag
5874 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5875 else
5876 ac_cpp_err=
5877 fi
5878else
5879 ac_cpp_err=yes
252b5132 5880fi
ce2cded5
L
5881if test -z "$ac_cpp_err"; then
5882 :
252b5132 5883else
ce2cded5
L
5884 echo "$as_me: failed program was:" >&5
5885sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 5886
ce2cded5
L
5887 # Broken: fails on valid input.
5888continue
252b5132 5889fi
ce2cded5 5890rm -f conftest.err conftest.$ac_ext
d7040cdb 5891
ce2cded5
L
5892 # OK, works on sane cases. Now check whether non-existent headers
5893 # can be detected and how.
5894 cat >conftest.$ac_ext <<_ACEOF
5895/* confdefs.h. */
5896_ACEOF
5897cat confdefs.h >>conftest.$ac_ext
5898cat >>conftest.$ac_ext <<_ACEOF
5899/* end confdefs.h. */
5900#include <ac_nonexistent.h>
5901_ACEOF
5902if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5903 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5904 ac_status=$?
5905 grep -v '^ *+' conftest.er1 >conftest.err
5906 rm -f conftest.er1
5907 cat conftest.err >&5
5908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5909 (exit $ac_status); } >/dev/null; then
5910 if test -s conftest.err; then
5911 ac_cpp_err=$ac_c_preproc_warn_flag
5912 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5913 else
5914 ac_cpp_err=
5915 fi
ac48eca1 5916else
ce2cded5 5917 ac_cpp_err=yes
6bf9431b 5918fi
ce2cded5
L
5919if test -z "$ac_cpp_err"; then
5920 # Broken: success on invalid input.
5921continue
ac48eca1 5922else
ce2cded5
L
5923 echo "$as_me: failed program was:" >&5
5924sed 's/^/| /' conftest.$ac_ext >&5
6bf9431b 5925
ce2cded5
L
5926 # Passes both tests.
5927ac_preproc_ok=:
5928break
6bf9431b 5929fi
ce2cded5 5930rm -f conftest.err conftest.$ac_ext
6bf9431b 5931
ce2cded5
L
5932done
5933# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5934rm -f conftest.err conftest.$ac_ext
5935if $ac_preproc_ok; then
5936 break
5937fi
6bf9431b 5938
ce2cded5
L
5939 done
5940 ac_cv_prog_CPP=$CPP
6bf9431b 5941
ce2cded5
L
5942fi
5943 CPP=$ac_cv_prog_CPP
ac48eca1 5944else
ce2cded5 5945 ac_cv_prog_CPP=$CPP
d7040cdb 5946fi
ce2cded5
L
5947echo "$as_me:$LINENO: result: $CPP" >&5
5948echo "${ECHO_T}$CPP" >&6
5949ac_preproc_ok=false
5950for ac_c_preproc_warn_flag in '' yes
5951do
5952 # Use a header file that comes with gcc, so configuring glibc
5953 # with a fresh cross-compiler works.
5954 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5955 # <limits.h> exists even on freestanding compilers.
5956 # On the NeXT, cc -E runs the code through the compiler's parser,
5957 # not just through cpp. "Syntax error" is here to catch this case.
5958 cat >conftest.$ac_ext <<_ACEOF
5959/* confdefs.h. */
5960_ACEOF
5961cat confdefs.h >>conftest.$ac_ext
5962cat >>conftest.$ac_ext <<_ACEOF
5963/* end confdefs.h. */
5964#ifdef __STDC__
5965# include <limits.h>
5966#else
5967# include <assert.h>
5968#endif
5969 Syntax error
5970_ACEOF
5971if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5972 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5973 ac_status=$?
5974 grep -v '^ *+' conftest.er1 >conftest.err
5975 rm -f conftest.er1
5976 cat conftest.err >&5
5977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5978 (exit $ac_status); } >/dev/null; then
5979 if test -s conftest.err; then
5980 ac_cpp_err=$ac_c_preproc_warn_flag
5981 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5982 else
5983 ac_cpp_err=
5984 fi
5985else
5986 ac_cpp_err=yes
5987fi
5988if test -z "$ac_cpp_err"; then
5989 :
5990else
5991 echo "$as_me: failed program was:" >&5
5992sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 5993
ce2cded5
L
5994 # Broken: fails on valid input.
5995continue
5996fi
5997rm -f conftest.err conftest.$ac_ext
d7040cdb 5998
ce2cded5
L
5999 # OK, works on sane cases. Now check whether non-existent headers
6000 # can be detected and how.
6001 cat >conftest.$ac_ext <<_ACEOF
6002/* confdefs.h. */
6003_ACEOF
6004cat confdefs.h >>conftest.$ac_ext
6005cat >>conftest.$ac_ext <<_ACEOF
6006/* end confdefs.h. */
6007#include <ac_nonexistent.h>
6008_ACEOF
6009if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6010 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6011 ac_status=$?
6012 grep -v '^ *+' conftest.er1 >conftest.err
6013 rm -f conftest.er1
6014 cat conftest.err >&5
6015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6016 (exit $ac_status); } >/dev/null; then
6017 if test -s conftest.err; then
6018 ac_cpp_err=$ac_c_preproc_warn_flag
6019 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6020 else
6021 ac_cpp_err=
d7040cdb
SE
6022 fi
6023else
ce2cded5 6024 ac_cpp_err=yes
d7040cdb 6025fi
ce2cded5
L
6026if test -z "$ac_cpp_err"; then
6027 # Broken: success on invalid input.
6028continue
6029else
6030 echo "$as_me: failed program was:" >&5
6031sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 6032
ce2cded5
L
6033 # Passes both tests.
6034ac_preproc_ok=:
6035break
6036fi
6037rm -f conftest.err conftest.$ac_ext
d7040cdb 6038
ce2cded5
L
6039done
6040# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6041rm -f conftest.err conftest.$ac_ext
6042if $ac_preproc_ok; then
6043 :
6044else
6045 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6046See \`config.log' for more details." >&5
6047echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6048See \`config.log' for more details." >&2;}
6049 { (exit 1); exit 1; }; }
6050fi
d7040cdb 6051
ce2cded5
L
6052ac_ext=c
6053ac_cpp='$CPP $CPPFLAGS'
6054ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6055ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6056ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb
SE
6057
6058
ce2cded5
L
6059echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6060echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6061if test "${ac_cv_header_stdc+set}" = set; then
6062 echo $ECHO_N "(cached) $ECHO_C" >&6
6063else
6064 cat >conftest.$ac_ext <<_ACEOF
6065/* confdefs.h. */
6066_ACEOF
6067cat confdefs.h >>conftest.$ac_ext
6068cat >>conftest.$ac_ext <<_ACEOF
6069/* end confdefs.h. */
6070#include <stdlib.h>
6071#include <stdarg.h>
6072#include <string.h>
6073#include <float.h>
d7040cdb 6074
ce2cded5
L
6075int
6076main ()
6077{
d7040cdb 6078
ce2cded5
L
6079 ;
6080 return 0;
6081}
6082_ACEOF
6083rm -f conftest.$ac_objext
6084if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6085 (eval $ac_compile) 2>conftest.er1
6086 ac_status=$?
6087 grep -v '^ *+' conftest.er1 >conftest.err
6088 rm -f conftest.er1
6089 cat conftest.err >&5
6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 (exit $ac_status); } &&
6092 { ac_try='test -z "$ac_c_werror_flag"
6093 || test ! -s conftest.err'
6094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6095 (eval $ac_try) 2>&5
6096 ac_status=$?
6097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6098 (exit $ac_status); }; } &&
6099 { ac_try='test -s conftest.$ac_objext'
6100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6101 (eval $ac_try) 2>&5
6102 ac_status=$?
6103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104 (exit $ac_status); }; }; then
6105 ac_cv_header_stdc=yes
6106else
6107 echo "$as_me: failed program was:" >&5
6108sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 6109
ce2cded5
L
6110ac_cv_header_stdc=no
6111fi
6112rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d7040cdb 6113
ce2cded5
L
6114if test $ac_cv_header_stdc = yes; then
6115 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6116 cat >conftest.$ac_ext <<_ACEOF
6117/* confdefs.h. */
6118_ACEOF
6119cat confdefs.h >>conftest.$ac_ext
6120cat >>conftest.$ac_ext <<_ACEOF
6121/* end confdefs.h. */
6122#include <string.h>
d7040cdb 6123
ce2cded5
L
6124_ACEOF
6125if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6126 $EGREP "memchr" >/dev/null 2>&1; then
6127 :
6128else
6129 ac_cv_header_stdc=no
6130fi
6131rm -f conftest*
6bf9431b 6132
ce2cded5 6133fi
d7040cdb 6134
ce2cded5
L
6135if test $ac_cv_header_stdc = yes; then
6136 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6137 cat >conftest.$ac_ext <<_ACEOF
6138/* confdefs.h. */
6139_ACEOF
6140cat confdefs.h >>conftest.$ac_ext
6141cat >>conftest.$ac_ext <<_ACEOF
6142/* end confdefs.h. */
6143#include <stdlib.h>
d7040cdb 6144
ce2cded5
L
6145_ACEOF
6146if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6147 $EGREP "free" >/dev/null 2>&1; then
6148 :
6149else
6150 ac_cv_header_stdc=no
6151fi
6152rm -f conftest*
ac48eca1 6153
ce2cded5 6154fi
d7040cdb 6155
ce2cded5
L
6156if test $ac_cv_header_stdc = yes; then
6157 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6158 if test "$cross_compiling" = yes; then
6159 :
6160else
6161 cat >conftest.$ac_ext <<_ACEOF
6162/* confdefs.h. */
6163_ACEOF
6164cat confdefs.h >>conftest.$ac_ext
6165cat >>conftest.$ac_ext <<_ACEOF
6166/* end confdefs.h. */
6167#include <ctype.h>
6168#if ((' ' & 0x0FF) == 0x020)
6169# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6170# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6171#else
6172# define ISLOWER(c) \
6173 (('a' <= (c) && (c) <= 'i') \
6174 || ('j' <= (c) && (c) <= 'r') \
6175 || ('s' <= (c) && (c) <= 'z'))
6176# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6177#endif
d7040cdb 6178
ce2cded5
L
6179#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6180int
6181main ()
6182{
6183 int i;
6184 for (i = 0; i < 256; i++)
6185 if (XOR (islower (i), ISLOWER (i))
6186 || toupper (i) != TOUPPER (i))
6187 exit(2);
6188 exit (0);
6189}
6190_ACEOF
6191rm -f conftest$ac_exeext
6192if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6193 (eval $ac_link) 2>&5
6194 ac_status=$?
6195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6198 (eval $ac_try) 2>&5
6199 ac_status=$?
6200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201 (exit $ac_status); }; }; then
6202 :
6203else
6204 echo "$as_me: program exited with status $ac_status" >&5
6205echo "$as_me: failed program was:" >&5
6206sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 6207
ce2cded5
L
6208( exit $ac_status )
6209ac_cv_header_stdc=no
6210fi
6211rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6212fi
6213fi
6214fi
6215echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6216echo "${ECHO_T}$ac_cv_header_stdc" >&6
6217if test $ac_cv_header_stdc = yes; then
d7040cdb 6218
ce2cded5
L
6219cat >>confdefs.h <<\_ACEOF
6220#define STDC_HEADERS 1
6221_ACEOF
d7040cdb 6222
ce2cded5 6223fi
d7040cdb 6224
ce2cded5 6225# On IRIX 5.3, sys/types and inttypes.h are conflicting.
d7040cdb 6226
d7040cdb 6227
d7040cdb 6228
d7040cdb 6229
d7040cdb 6230
d7040cdb 6231
d7040cdb 6232
d7040cdb 6233
d7040cdb 6234
ce2cded5
L
6235for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6236 inttypes.h stdint.h unistd.h
6237do
6238as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6239echo "$as_me:$LINENO: checking for $ac_header" >&5
6240echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6241if eval "test \"\${$as_ac_Header+set}\" = set"; then
6242 echo $ECHO_N "(cached) $ECHO_C" >&6
6243else
6244 cat >conftest.$ac_ext <<_ACEOF
6bf9431b
BE
6245/* confdefs.h. */
6246_ACEOF
6247cat confdefs.h >>conftest.$ac_ext
6248cat >>conftest.$ac_ext <<_ACEOF
6249/* end confdefs.h. */
ce2cded5 6250$ac_includes_default
20e95c23 6251
ce2cded5 6252#include <$ac_header>
6bf9431b 6253_ACEOF
ce2cded5
L
6254rm -f conftest.$ac_objext
6255if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6256 (eval $ac_compile) 2>conftest.er1
6bf9431b
BE
6257 ac_status=$?
6258 grep -v '^ *+' conftest.er1 >conftest.err
6259 rm -f conftest.er1
6260 cat conftest.err >&5
6261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0ab6f085
AM
6262 (exit $ac_status); } &&
6263 { ac_try='test -z "$ac_c_werror_flag"
6264 || test ! -s conftest.err'
6265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6266 (eval $ac_try) 2>&5
6267 ac_status=$?
6268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269 (exit $ac_status); }; } &&
ce2cded5 6270 { ac_try='test -s conftest.$ac_objext'
0ab6f085
AM
6271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6272 (eval $ac_try) 2>&5
6273 ac_status=$?
6274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275 (exit $ac_status); }; }; then
ce2cded5 6276 eval "$as_ac_Header=yes"
6bf9431b 6277else
d7040cdb
SE
6278 echo "$as_me: failed program was:" >&5
6279sed 's/^/| /' conftest.$ac_ext >&5
6bf9431b 6280
ce2cded5 6281eval "$as_ac_Header=no"
6bf9431b 6282fi
ce2cded5
L
6283rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6284fi
6285echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6286echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6287if test `eval echo '${'$as_ac_Header'}'` = yes; then
6288 cat >>confdefs.h <<_ACEOF
6289#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20e95c23 6290_ACEOF
20e95c23 6291
ce2cded5 6292fi
d7040cdb 6293
ce2cded5
L
6294done
6295
6296
6297
6298for ac_header in dlfcn.h
6299do
6300as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6301echo "$as_me:$LINENO: checking for $ac_header" >&5
6302echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6303if eval "test \"\${$as_ac_Header+set}\" = set"; then
6304 echo $ECHO_N "(cached) $ECHO_C" >&6
6305else
6306 cat >conftest.$ac_ext <<_ACEOF
6307/* confdefs.h. */
20e95c23 6308_ACEOF
ce2cded5
L
6309cat confdefs.h >>conftest.$ac_ext
6310cat >>conftest.$ac_ext <<_ACEOF
6311/* end confdefs.h. */
6312$ac_includes_default
6313
6314#include <$ac_header>
6315_ACEOF
6316rm -f conftest.$ac_objext
6317if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6318 (eval $ac_compile) 2>conftest.er1
d7040cdb
SE
6319 ac_status=$?
6320 grep -v '^ *+' conftest.er1 >conftest.err
6321 rm -f conftest.er1
6322 cat conftest.err >&5
6323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0ab6f085
AM
6324 (exit $ac_status); } &&
6325 { ac_try='test -z "$ac_c_werror_flag"
6326 || test ! -s conftest.err'
6327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6328 (eval $ac_try) 2>&5
6329 ac_status=$?
6330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6331 (exit $ac_status); }; } &&
ce2cded5 6332 { ac_try='test -s conftest.$ac_objext'
0ab6f085
AM
6333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6334 (eval $ac_try) 2>&5
6335 ac_status=$?
6336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337 (exit $ac_status); }; }; then
ce2cded5 6338 eval "$as_ac_Header=yes"
20e95c23 6339else
d7040cdb 6340 echo "$as_me: failed program was:" >&5
20e95c23 6341sed 's/^/| /' conftest.$ac_ext >&5
252b5132 6342
ce2cded5 6343eval "$as_ac_Header=no"
20e95c23 6344fi
ce2cded5
L
6345rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6346fi
6347echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6348echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6349if test `eval echo '${'$as_ac_Header'}'` = yes; then
6350 cat >>confdefs.h <<_ACEOF
6351#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6352_ACEOF
d7040cdb 6353
ce2cded5 6354fi
252b5132 6355
ce2cded5 6356done
6bf9431b 6357
252b5132 6358
6bf9431b 6359
ce2cded5
L
6360# This can be used to rebuild libtool when needed
6361LIBTOOL_DEPS="$ltmain"
6bf9431b 6362
ce2cded5
L
6363# Always use our own libtool.
6364LIBTOOL='$(SHELL) $(top_builddir)/libtool'
252b5132 6365
6bf9431b 6366
252b5132 6367
6bf9431b 6368
252b5132 6369
252b5132 6370
d7040cdb 6371
6bf9431b 6372
252b5132 6373
d7040cdb 6374
d7040cdb 6375
d7040cdb 6376
d7040cdb 6377
d7040cdb 6378
d7040cdb 6379
d7040cdb 6380
d7040cdb 6381
d7040cdb 6382
d7040cdb 6383
d7040cdb 6384
d7040cdb
SE
6385
6386
6387
6388
6389
ce2cded5 6390test -z "$LN_S" && LN_S="ln -s"
d7040cdb
SE
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
ce2cded5
L
6405if test -n "${ZSH_VERSION+set}" ; then
6406 setopt NO_GLOB_SUBST
6407fi
d7040cdb 6408
ce2cded5
L
6409echo "$as_me:$LINENO: checking for objdir" >&5
6410echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6411if test "${lt_cv_objdir+set}" = set; then
6412 echo $ECHO_N "(cached) $ECHO_C" >&6
6413else
6414 rm -f .libs 2>/dev/null
6415mkdir .libs 2>/dev/null
6416if test -d .libs; then
6417 lt_cv_objdir=.libs
6418else
6419 # MS-DOS does not allow filenames that begin with a dot.
6420 lt_cv_objdir=_libs
6421fi
6422rmdir .libs 2>/dev/null
6423fi
6424echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6425echo "${ECHO_T}$lt_cv_objdir" >&6
6426objdir=$lt_cv_objdir
d7040cdb
SE
6427
6428
6429
6430
6431
ce2cded5
L
6432cat >>confdefs.h <<_ACEOF
6433#define LT_OBJDIR "$lt_cv_objdir/"
6434_ACEOF
d7040cdb
SE
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
ce2cded5
L
6452case $host_os in
6453aix3*)
6454 # AIX sometimes has problems with the GCC collect2 program. For some
6455 # reason, if we set the COLLECT_NAMES environment variable, the problems
6456 # vanish in a puff of smoke.
6457 if test "X${COLLECT_NAMES+set}" != Xset; then
6458 COLLECT_NAMES=
6459 export COLLECT_NAMES
6460 fi
6461 ;;
6462esac
d7040cdb 6463
ce2cded5
L
6464# Sed substitution that helps us do robust quoting. It backslashifies
6465# metacharacters that are still active within double-quoted strings.
6466sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
d7040cdb 6467
ce2cded5
L
6468# Same as above, but do not quote variable references.
6469double_quote_subst='s/\(["`\\]\)/\\\1/g'
d7040cdb 6470
ce2cded5
L
6471# Sed substitution to delay expansion of an escaped shell variable in a
6472# double_quote_subst'ed string.
6473delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
d7040cdb 6474
ce2cded5
L
6475# Sed substitution to delay expansion of an escaped single quote.
6476delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
d7040cdb 6477
ce2cded5
L
6478# Sed substitution to avoid accidental globbing in evaled expressions
6479no_glob_subst='s/\*/\\\*/g'
d7040cdb 6480
ce2cded5
L
6481# Global variables:
6482ofile=libtool
6483can_build_shared=yes
d7040cdb 6484
ce2cded5
L
6485# All known linkers require a `.a' archive for static linking (except MSVC,
6486# which needs '.lib').
6487libext=a
d7040cdb 6488
ce2cded5 6489with_gnu_ld="$lt_cv_prog_gnu_ld"
d7040cdb 6490
ce2cded5
L
6491old_CC="$CC"
6492old_CFLAGS="$CFLAGS"
d7040cdb 6493
ce2cded5
L
6494# Set sane defaults for various variables
6495test -z "$CC" && CC=cc
6496test -z "$LTCC" && LTCC=$CC
6497test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6498test -z "$LD" && LD=ld
6499test -z "$ac_objext" && ac_objext=o
d7040cdb 6500
ce2cded5
L
6501for cc_temp in $compiler""; do
6502 case $cc_temp in
6503 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6504 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6505 \-*) ;;
6506 *) break;;
6507 esac
6508done
6509cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
d7040cdb
SE
6510
6511
ce2cded5
L
6512# Only perform the check for file, if the check method requires it
6513test -z "$MAGIC_CMD" && MAGIC_CMD=file
6514case $deplibs_check_method in
6515file_magic*)
6516 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6517 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6518echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6519if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6520 echo $ECHO_N "(cached) $ECHO_C" >&6
6521else
6522 case $MAGIC_CMD in
6523[\\/*] | ?:[\\/]*)
6524 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6525 ;;
6526*)
6527 lt_save_MAGIC_CMD="$MAGIC_CMD"
6528 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6529 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6530 for ac_dir in $ac_dummy; do
6531 IFS="$lt_save_ifs"
6532 test -z "$ac_dir" && ac_dir=.
6533 if test -f $ac_dir/${ac_tool_prefix}file; then
6534 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6535 if test -n "$file_magic_test_file"; then
6536 case $deplibs_check_method in
6537 "file_magic "*)
6538 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6539 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6540 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6541 $EGREP "$file_magic_regex" > /dev/null; then
6542 :
6543 else
6544 cat <<_LT_EOF 1>&2
d7040cdb 6545
ce2cded5
L
6546*** Warning: the command libtool uses to detect shared libraries,
6547*** $file_magic_cmd, produces output that libtool cannot recognize.
6548*** The result is that libtool may fail to recognize shared libraries
6549*** as such. This will affect the creation of libtool libraries that
6550*** depend on shared libraries, but programs linked with such libtool
6551*** libraries will work regardless of this problem. Nevertheless, you
6552*** may want to report the problem to your system manager and/or to
6553*** bug-libtool@gnu.org
d7040cdb 6554
ce2cded5
L
6555_LT_EOF
6556 fi ;;
6557 esac
6558 fi
6559 break
6560 fi
6561 done
6562 IFS="$lt_save_ifs"
6563 MAGIC_CMD="$lt_save_MAGIC_CMD"
6564 ;;
6565esac
6566fi
d7040cdb 6567
ce2cded5
L
6568MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6569if test -n "$MAGIC_CMD"; then
6570 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6571echo "${ECHO_T}$MAGIC_CMD" >&6
6572else
6573 echo "$as_me:$LINENO: result: no" >&5
6574echo "${ECHO_T}no" >&6
6575fi
d7040cdb
SE
6576
6577
6578
6579
6580
ce2cded5
L
6581if test -z "$lt_cv_path_MAGIC_CMD"; then
6582 if test -n "$ac_tool_prefix"; then
6583 echo "$as_me:$LINENO: checking for file" >&5
6584echo $ECHO_N "checking for file... $ECHO_C" >&6
6585if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6586 echo $ECHO_N "(cached) $ECHO_C" >&6
6587else
6588 case $MAGIC_CMD in
6589[\\/*] | ?:[\\/]*)
6590 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6591 ;;
6592*)
6593 lt_save_MAGIC_CMD="$MAGIC_CMD"
6594 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6595 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6596 for ac_dir in $ac_dummy; do
6597 IFS="$lt_save_ifs"
6598 test -z "$ac_dir" && ac_dir=.
6599 if test -f $ac_dir/file; then
6600 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6601 if test -n "$file_magic_test_file"; then
6602 case $deplibs_check_method in
6603 "file_magic "*)
6604 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6605 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6606 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6607 $EGREP "$file_magic_regex" > /dev/null; then
6608 :
6609 else
6610 cat <<_LT_EOF 1>&2
d7040cdb 6611
ce2cded5
L
6612*** Warning: the command libtool uses to detect shared libraries,
6613*** $file_magic_cmd, produces output that libtool cannot recognize.
6614*** The result is that libtool may fail to recognize shared libraries
6615*** as such. This will affect the creation of libtool libraries that
6616*** depend on shared libraries, but programs linked with such libtool
6617*** libraries will work regardless of this problem. Nevertheless, you
6618*** may want to report the problem to your system manager and/or to
6619*** bug-libtool@gnu.org
d7040cdb 6620
ce2cded5
L
6621_LT_EOF
6622 fi ;;
6623 esac
6624 fi
6625 break
6626 fi
6627 done
6628 IFS="$lt_save_ifs"
6629 MAGIC_CMD="$lt_save_MAGIC_CMD"
6630 ;;
6631esac
6632fi
d7040cdb 6633
ce2cded5
L
6634MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6635if test -n "$MAGIC_CMD"; then
6636 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6637echo "${ECHO_T}$MAGIC_CMD" >&6
6638else
6639 echo "$as_me:$LINENO: result: no" >&5
6640echo "${ECHO_T}no" >&6
6641fi
d7040cdb
SE
6642
6643
ce2cded5
L
6644 else
6645 MAGIC_CMD=:
6646 fi
6647fi
d7040cdb 6648
ce2cded5
L
6649 fi
6650 ;;
6651esac
d7040cdb 6652
ce2cded5 6653# Use C for the default configuration in the libtool script
d7040cdb 6654
ce2cded5
L
6655lt_save_CC="$CC"
6656ac_ext=c
6657ac_cpp='$CPP $CPPFLAGS'
6658ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6659ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6660ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb
SE
6661
6662
ce2cded5
L
6663# Source file extension for C test sources.
6664ac_ext=c
d7040cdb 6665
ce2cded5
L
6666# Object file extension for compiled C test sources.
6667objext=o
6668objext=$objext
d7040cdb 6669
ce2cded5
L
6670# Code to be used in simple compile tests
6671lt_simple_compile_test_code="int some_variable = 0;"
d7040cdb 6672
ce2cded5
L
6673# Code to be used in simple link tests
6674lt_simple_link_test_code='int main(){return(0);}'
d7040cdb
SE
6675
6676
6677
6678
6679
6680
6681
ce2cded5
L
6682# If no C compiler was specified, use CC.
6683LTCC=${LTCC-"$CC"}
d7040cdb 6684
ce2cded5
L
6685# If no C compiler flags were specified, use CFLAGS.
6686LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d7040cdb 6687
ce2cded5
L
6688# Allow CC to be a program name with arguments.
6689compiler=$CC
d7040cdb 6690
ce2cded5
L
6691# Save the default compiler, since it gets overwritten when the other
6692# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6693compiler_DEFAULT=$CC
d7040cdb 6694
ce2cded5
L
6695# save warnings/boilerplate of simple test code
6696ac_outfile=conftest.$ac_objext
6697echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6698eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6699_lt_compiler_boilerplate=`cat conftest.err`
6700$RM conftest*
d7040cdb 6701
ce2cded5
L
6702ac_outfile=conftest.$ac_objext
6703echo "$lt_simple_link_test_code" >conftest.$ac_ext
6704eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6705_lt_linker_boilerplate=`cat conftest.err`
6706$RM conftest*
d7040cdb
SE
6707
6708
ce2cded5
L
6709## CAVEAT EMPTOR:
6710## There is no encapsulation within the following macros, do not change
6711## the running order or otherwise move them around unless you know exactly
6712## what you are doing...
6713if test -n "$compiler"; then
d7040cdb 6714
ce2cded5 6715lt_prog_compiler_no_builtin_flag=
d7040cdb 6716
ce2cded5
L
6717if test "$GCC" = yes; then
6718 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
d7040cdb 6719
ce2cded5
L
6720 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6721echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6722if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6723 echo $ECHO_N "(cached) $ECHO_C" >&6
6724else
6725 lt_cv_prog_compiler_rtti_exceptions=no
6726 ac_outfile=conftest.$ac_objext
6727 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6728 lt_compiler_flag="-fno-rtti -fno-exceptions"
6729 # Insert the option either (1) after the last *FLAGS variable, or
6730 # (2) before a word containing "conftest.", or (3) at the end.
6731 # Note that $ac_compile itself does not contain backslashes and begins
6732 # with a dollar sign (not a hyphen), so the echo should work correctly.
6733 # The option is referenced via a variable to avoid confusing sed.
6734 lt_compile=`echo "$ac_compile" | $SED \
6735 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6736 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6737 -e 's:$: $lt_compiler_flag:'`
6738 (eval echo "\"\$as_me:6738: $lt_compile\"" >&5)
6739 (eval "$lt_compile" 2>conftest.err)
6740 ac_status=$?
6741 cat conftest.err >&5
6742 echo "$as_me:6742: \$? = $ac_status" >&5
6743 if (exit $ac_status) && test -s "$ac_outfile"; then
6744 # The compiler can only warn and ignore the option if not recognized
6745 # So say no if there are warnings other than the usual output.
6746 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6747 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6748 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6749 lt_cv_prog_compiler_rtti_exceptions=yes
6750 fi
6751 fi
6752 $RM conftest*
d7040cdb 6753
ce2cded5
L
6754fi
6755echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6756echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
d7040cdb 6757
ce2cded5
L
6758if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6759 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6760else
6761 :
6762fi
d7040cdb 6763
ce2cded5 6764fi
d7040cdb
SE
6765
6766
6767
6768
6769
6770
ce2cded5
L
6771 lt_prog_compiler_wl=
6772lt_prog_compiler_pic=
6773lt_prog_compiler_static=
d7040cdb 6774
ce2cded5
L
6775echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6776echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
d7040cdb 6777
ce2cded5
L
6778 if test "$GCC" = yes; then
6779 lt_prog_compiler_wl='-Wl,'
6780 lt_prog_compiler_static='-static'
d7040cdb 6781
ce2cded5
L
6782 case $host_os in
6783 aix*)
6784 # All AIX code is PIC.
6785 if test "$host_cpu" = ia64; then
6786 # AIX 5 now supports IA64 processor
6787 lt_prog_compiler_static='-Bstatic'
6788 fi
6789 ;;
d7040cdb 6790
ce2cded5
L
6791 amigaos*)
6792 if test "$host_cpu" = m68k; then
6793 # FIXME: we need at least 68020 code to build shared libraries, but
6794 # adding the `-m68020' flag to GCC prevents building anything better,
6795 # like `-m68040'.
6796 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6797 fi
6798 ;;
d7040cdb 6799
ce2cded5
L
6800 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6801 # PIC is the default for these OSes.
6802 ;;
d7040cdb 6803
ce2cded5
L
6804 mingw* | cygwin* | pw32* | os2*)
6805 # This hack is so that the source file can tell whether it is being
6806 # built for inclusion in a dll (and should export symbols for example).
6807 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6808 # (--disable-auto-import) libraries
6809 lt_prog_compiler_pic='-DDLL_EXPORT'
6810 ;;
d7040cdb 6811
ce2cded5
L
6812 darwin* | rhapsody*)
6813 # PIC is the default on this platform
6814 # Common symbols not allowed in MH_DYLIB files
6815 lt_prog_compiler_pic='-fno-common'
6816 ;;
d7040cdb 6817
ce2cded5
L
6818 hpux*)
6819 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6820 # not for PA HP-UX.
6821 case $host_cpu in
6822 hppa*64*|ia64*)
6823 # +Z the default
6824 ;;
6825 *)
6826 lt_prog_compiler_pic='-fPIC'
6827 ;;
6828 esac
6829 ;;
d7040cdb 6830
ce2cded5
L
6831 interix[3-9]*)
6832 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6833 # Instead, we relocate shared libraries at runtime.
6834 ;;
d7040cdb 6835
ce2cded5
L
6836 msdosdjgpp*)
6837 # Just because we use GCC doesn't mean we suddenly get shared libraries
6838 # on systems that don't support them.
6839 lt_prog_compiler_can_build_shared=no
6840 enable_shared=no
6841 ;;
d7040cdb 6842
ce2cded5
L
6843 *nto* | *qnx*)
6844 # QNX uses GNU C++, but need to define -shared option too, otherwise
6845 # it will coredump.
6846 lt_prog_compiler_pic='-fPIC -shared'
6847 ;;
d7040cdb 6848
ce2cded5
L
6849 sysv4*MP*)
6850 if test -d /usr/nec; then
6851 lt_prog_compiler_pic=-Kconform_pic
6852 fi
6853 ;;
d7040cdb 6854
ce2cded5
L
6855 *)
6856 lt_prog_compiler_pic='-fPIC'
6857 ;;
6858 esac
6859 else
6860 # PORTME Check for flag to pass linker flags through the system compiler.
6861 case $host_os in
6862 aix*)
6863 lt_prog_compiler_wl='-Wl,'
6864 if test "$host_cpu" = ia64; then
6865 # AIX 5 now supports IA64 processor
6866 lt_prog_compiler_static='-Bstatic'
6867 else
6868 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6869 fi
6870 ;;
6871 darwin*)
6872 # PIC is the default on this platform
6873 # Common symbols not allowed in MH_DYLIB files
6874 case $cc_basename in
6875 xlc*)
6876 lt_prog_compiler_pic='-qnocommon'
6877 lt_prog_compiler_wl='-Wl,'
6878 ;;
6879 esac
6880 ;;
d7040cdb 6881
ce2cded5
L
6882 mingw* | cygwin* | pw32* | os2*)
6883 # This hack is so that the source file can tell whether it is being
6884 # built for inclusion in a dll (and should export symbols for example).
6885 lt_prog_compiler_pic='-DDLL_EXPORT'
6886 ;;
d7040cdb 6887
ce2cded5
L
6888 hpux9* | hpux10* | hpux11*)
6889 lt_prog_compiler_wl='-Wl,'
6890 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6891 # not for PA HP-UX.
6892 case $host_cpu in
6893 hppa*64*|ia64*)
6894 # +Z the default
6895 ;;
6896 *)
6897 lt_prog_compiler_pic='+Z'
6898 ;;
6899 esac
6900 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6901 lt_prog_compiler_static='${wl}-a ${wl}archive'
6902 ;;
d7040cdb 6903
ce2cded5
L
6904 irix5* | irix6* | nonstopux*)
6905 lt_prog_compiler_wl='-Wl,'
6906 # PIC (with -KPIC) is the default.
6907 lt_prog_compiler_static='-non_shared'
6908 ;;
d7040cdb 6909
ce2cded5
L
6910 linux* | k*bsd*-gnu)
6911 case $cc_basename in
6912 icc* | ecc*)
6913 lt_prog_compiler_wl='-Wl,'
6914 lt_prog_compiler_pic='-KPIC'
6915 lt_prog_compiler_static='-static'
6916 ;;
6917 pgcc* | pgf77* | pgf90* | pgf95*)
6918 # Portland Group compilers (*not* the Pentium gcc compiler,
6919 # which looks to be a dead project)
6920 lt_prog_compiler_wl='-Wl,'
6921 lt_prog_compiler_pic='-fpic'
6922 lt_prog_compiler_static='-Bstatic'
6923 ;;
6924 ccc*)
6925 lt_prog_compiler_wl='-Wl,'
6926 # All Alpha code is PIC.
6927 lt_prog_compiler_static='-non_shared'
6928 ;;
6929 *)
6930 case `$CC -V 2>&1 | sed 5q` in
6931 *Sun\ C*)
6932 # Sun C 5.9
6933 lt_prog_compiler_pic='-KPIC'
6934 lt_prog_compiler_static='-Bstatic'
6935 lt_prog_compiler_wl='-Wl,'
6936 ;;
6937 *Sun\ F*)
6938 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6939 lt_prog_compiler_pic='-KPIC'
6940 lt_prog_compiler_static='-Bstatic'
6941 lt_prog_compiler_wl=''
6942 ;;
6943 esac
6944 ;;
6945 esac
6946 ;;
d7040cdb 6947
ce2cded5
L
6948 newsos6)
6949 lt_prog_compiler_pic='-KPIC'
6950 lt_prog_compiler_static='-Bstatic'
6951 ;;
d7040cdb 6952
ce2cded5
L
6953 *nto* | *qnx*)
6954 # QNX uses GNU C++, but need to define -shared option too, otherwise
6955 # it will coredump.
6956 lt_prog_compiler_pic='-fPIC -shared'
6957 ;;
d7040cdb 6958
ce2cded5
L
6959 osf3* | osf4* | osf5*)
6960 lt_prog_compiler_wl='-Wl,'
6961 # All OSF/1 code is PIC.
6962 lt_prog_compiler_static='-non_shared'
6963 ;;
d7040cdb 6964
ce2cded5
L
6965 rdos*)
6966 lt_prog_compiler_static='-non_shared'
6967 ;;
d7040cdb 6968
ce2cded5
L
6969 solaris*)
6970 lt_prog_compiler_pic='-KPIC'
6971 lt_prog_compiler_static='-Bstatic'
6972 case $cc_basename in
6973 f77* | f90* | f95*)
6974 lt_prog_compiler_wl='-Qoption ld ';;
6975 *)
6976 lt_prog_compiler_wl='-Wl,';;
6977 esac
6978 ;;
d7040cdb 6979
ce2cded5
L
6980 sunos4*)
6981 lt_prog_compiler_wl='-Qoption ld '
6982 lt_prog_compiler_pic='-PIC'
6983 lt_prog_compiler_static='-Bstatic'
6984 ;;
d7040cdb 6985
ce2cded5
L
6986 sysv4 | sysv4.2uw2* | sysv4.3*)
6987 lt_prog_compiler_wl='-Wl,'
6988 lt_prog_compiler_pic='-KPIC'
6989 lt_prog_compiler_static='-Bstatic'
6990 ;;
d7040cdb 6991
ce2cded5
L
6992 sysv4*MP*)
6993 if test -d /usr/nec ;then
6994 lt_prog_compiler_pic='-Kconform_pic'
6995 lt_prog_compiler_static='-Bstatic'
6996 fi
6997 ;;
d7040cdb 6998
ce2cded5
L
6999 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7000 lt_prog_compiler_wl='-Wl,'
7001 lt_prog_compiler_pic='-KPIC'
7002 lt_prog_compiler_static='-Bstatic'
7003 ;;
d7040cdb 7004
ce2cded5
L
7005 unicos*)
7006 lt_prog_compiler_wl='-Wl,'
7007 lt_prog_compiler_can_build_shared=no
7008 ;;
d7040cdb 7009
ce2cded5
L
7010 uts4*)
7011 lt_prog_compiler_pic='-pic'
7012 lt_prog_compiler_static='-Bstatic'
7013 ;;
d7040cdb 7014
ce2cded5
L
7015 *)
7016 lt_prog_compiler_can_build_shared=no
7017 ;;
7018 esac
7019 fi
d7040cdb 7020
ce2cded5
L
7021case $host_os in
7022 # For platforms which do not support PIC, -DPIC is meaningless:
7023 *djgpp*)
7024 lt_prog_compiler_pic=
7025 ;;
7026 *)
7027 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7028 ;;
7029esac
7030echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7031echo "${ECHO_T}$lt_prog_compiler_pic" >&6
d7040cdb
SE
7032
7033
7034
7035
7036
7037
ce2cded5
L
7038#
7039# Check to make sure the PIC flag actually works.
7040#
7041if test -n "$lt_prog_compiler_pic"; then
7042 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7043echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7044if test "${lt_prog_compiler_pic_works+set}" = set; then
7045 echo $ECHO_N "(cached) $ECHO_C" >&6
7046else
7047 lt_prog_compiler_pic_works=no
7048 ac_outfile=conftest.$ac_objext
7049 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7050 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7051 # Insert the option either (1) after the last *FLAGS variable, or
7052 # (2) before a word containing "conftest.", or (3) at the end.
7053 # Note that $ac_compile itself does not contain backslashes and begins
7054 # with a dollar sign (not a hyphen), so the echo should work correctly.
7055 # The option is referenced via a variable to avoid confusing sed.
7056 lt_compile=`echo "$ac_compile" | $SED \
7057 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7058 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7059 -e 's:$: $lt_compiler_flag:'`
7060 (eval echo "\"\$as_me:7060: $lt_compile\"" >&5)
7061 (eval "$lt_compile" 2>conftest.err)
7062 ac_status=$?
7063 cat conftest.err >&5
7064 echo "$as_me:7064: \$? = $ac_status" >&5
7065 if (exit $ac_status) && test -s "$ac_outfile"; then
7066 # The compiler can only warn and ignore the option if not recognized
7067 # So say no if there are warnings other than the usual output.
7068 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7069 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7070 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7071 lt_prog_compiler_pic_works=yes
7072 fi
7073 fi
7074 $RM conftest*
d7040cdb 7075
ce2cded5
L
7076fi
7077echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7078echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
d7040cdb 7079
ce2cded5
L
7080if test x"$lt_prog_compiler_pic_works" = xyes; then
7081 case $lt_prog_compiler_pic in
7082 "" | " "*) ;;
7083 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7084 esac
7085else
7086 lt_prog_compiler_pic=
7087 lt_prog_compiler_can_build_shared=no
7088fi
d7040cdb 7089
ce2cded5 7090fi
d7040cdb
SE
7091
7092
7093
7094
7095
7096
ce2cded5
L
7097#
7098# Check to make sure the static flag actually works.
7099#
7100wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7101echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7102echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7103if test "${lt_prog_compiler_static_works+set}" = set; then
7104 echo $ECHO_N "(cached) $ECHO_C" >&6
7105else
7106 lt_prog_compiler_static_works=no
7107 save_LDFLAGS="$LDFLAGS"
7108 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7109 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7110 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7111 # The linker can only warn and ignore the option if not recognized
7112 # So say no if there are warnings
7113 if test -s conftest.err; then
7114 # Append any errors to the config.log.
7115 cat conftest.err 1>&5
7116 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7117 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7118 if diff conftest.exp conftest.er2 >/dev/null; then
7119 lt_prog_compiler_static_works=yes
7120 fi
7121 else
7122 lt_prog_compiler_static_works=yes
7123 fi
7124 fi
7125 $RM conftest*
7126 LDFLAGS="$save_LDFLAGS"
d7040cdb 7127
ce2cded5
L
7128fi
7129echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7130echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
d7040cdb 7131
ce2cded5
L
7132if test x"$lt_prog_compiler_static_works" = xyes; then
7133 :
7134else
7135 lt_prog_compiler_static=
7136fi
d7040cdb
SE
7137
7138
7139
7140
7141
7142
7143
ce2cded5
L
7144 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7145echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7146if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7147 echo $ECHO_N "(cached) $ECHO_C" >&6
7148else
7149 lt_cv_prog_compiler_c_o=no
7150 $RM -r conftest 2>/dev/null
7151 mkdir conftest
7152 cd conftest
7153 mkdir out
7154 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 7155
ce2cded5
L
7156 lt_compiler_flag="-o out/conftest2.$ac_objext"
7157 # Insert the option either (1) after the last *FLAGS variable, or
7158 # (2) before a word containing "conftest.", or (3) at the end.
7159 # Note that $ac_compile itself does not contain backslashes and begins
7160 # with a dollar sign (not a hyphen), so the echo should work correctly.
7161 lt_compile=`echo "$ac_compile" | $SED \
7162 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7163 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7164 -e 's:$: $lt_compiler_flag:'`
7165 (eval echo "\"\$as_me:7165: $lt_compile\"" >&5)
7166 (eval "$lt_compile" 2>out/conftest.err)
7167 ac_status=$?
7168 cat out/conftest.err >&5
7169 echo "$as_me:7169: \$? = $ac_status" >&5
7170 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7171 then
7172 # The compiler can only warn and ignore the option if not recognized
7173 # So say no if there are warnings
7174 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7175 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7176 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7177 lt_cv_prog_compiler_c_o=yes
7178 fi
7179 fi
7180 chmod u+w . 2>&5
7181 $RM conftest*
7182 # SGI C++ compiler will create directory out/ii_files/ for
7183 # template instantiation
7184 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7185 $RM out/* && rmdir out
7186 cd ..
7187 $RM -r conftest
7188 $RM conftest*
7189
7190fi
7191echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7192echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7193
7194
7195
7196
7197
7198
7199 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7200echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7201if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7202 echo $ECHO_N "(cached) $ECHO_C" >&6
d7040cdb 7203else
ce2cded5
L
7204 lt_cv_prog_compiler_c_o=no
7205 $RM -r conftest 2>/dev/null
7206 mkdir conftest
7207 cd conftest
7208 mkdir out
7209 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7210
7211 lt_compiler_flag="-o out/conftest2.$ac_objext"
7212 # Insert the option either (1) after the last *FLAGS variable, or
7213 # (2) before a word containing "conftest.", or (3) at the end.
7214 # Note that $ac_compile itself does not contain backslashes and begins
7215 # with a dollar sign (not a hyphen), so the echo should work correctly.
7216 lt_compile=`echo "$ac_compile" | $SED \
7217 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7218 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7219 -e 's:$: $lt_compiler_flag:'`
7220 (eval echo "\"\$as_me:7220: $lt_compile\"" >&5)
7221 (eval "$lt_compile" 2>out/conftest.err)
7222 ac_status=$?
7223 cat out/conftest.err >&5
7224 echo "$as_me:7224: \$? = $ac_status" >&5
7225 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7226 then
7227 # The compiler can only warn and ignore the option if not recognized
7228 # So say no if there are warnings
7229 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7230 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7231 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7232 lt_cv_prog_compiler_c_o=yes
7233 fi
7234 fi
7235 chmod u+w . 2>&5
7236 $RM conftest*
7237 # SGI C++ compiler will create directory out/ii_files/ for
7238 # template instantiation
7239 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7240 $RM out/* && rmdir out
7241 cd ..
7242 $RM -r conftest
7243 $RM conftest*
7244
d7040cdb 7245fi
ce2cded5
L
7246echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7247echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
d7040cdb 7248
d7040cdb 7249
d7040cdb 7250
d7040cdb 7251
ce2cded5
L
7252hard_links="nottested"
7253if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7254 # do not overwrite the value of need_locks provided by the user
7255 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7256echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7257 hard_links=yes
7258 $RM conftest*
7259 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7260 touch conftest.a
7261 ln conftest.a conftest.b 2>&5 || hard_links=no
7262 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7263 echo "$as_me:$LINENO: result: $hard_links" >&5
7264echo "${ECHO_T}$hard_links" >&6
7265 if test "$hard_links" = no; then
7266 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7267echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7268 need_locks=warn
d7040cdb 7269 fi
ce2cded5
L
7270else
7271 need_locks=no
7272fi
d7040cdb 7273
d7040cdb 7274
d7040cdb 7275
d7040cdb 7276
d7040cdb 7277
d7040cdb 7278
ce2cded5
L
7279 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7280echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
d7040cdb 7281
ce2cded5
L
7282 runpath_var=
7283 allow_undefined_flag=
7284 always_export_symbols=no
7285 archive_cmds=
7286 archive_expsym_cmds=
7287 compiler_needs_object=no
7288 enable_shared_with_static_runtimes=no
7289 export_dynamic_flag_spec=
7290 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7291 hardcode_automatic=no
7292 hardcode_direct=no
7293 hardcode_direct_absolute=no
7294 hardcode_libdir_flag_spec=
7295 hardcode_libdir_flag_spec_ld=
7296 hardcode_libdir_separator=
7297 hardcode_minus_L=no
7298 hardcode_shlibpath_var=unsupported
7299 inherit_rpath=no
7300 link_all_deplibs=unknown
7301 module_cmds=
7302 module_expsym_cmds=
7303 old_archive_from_new_cmds=
7304 old_archive_from_expsyms_cmds=
7305 thread_safe_flag_spec=
7306 whole_archive_flag_spec=
7307 # include_expsyms should be a list of space-separated symbols to be *always*
7308 # included in the symbol list
7309 include_expsyms=
7310 # exclude_expsyms can be an extended regexp of symbols to exclude
7311 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7312 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7313 # as well as any symbol that contains `d'.
7314 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7315 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7316 # platforms (ab)use it in PIC code, but their linkers get confused if
7317 # the symbol is explicitly referenced. Since portable code cannot
7318 # rely on this symbol name, it's probably fine to never include it in
7319 # preloaded symbol tables.
7320 extract_expsyms_cmds=
d7040cdb 7321
d7040cdb 7322 case $host_os in
ce2cded5
L
7323 cygwin* | mingw* | pw32*)
7324 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7325 # When not using gcc, we currently assume that we are using
7326 # Microsoft Visual C++.
7327 if test "$GCC" != yes; then
7328 with_gnu_ld=no
7329 fi
d7040cdb 7330 ;;
ce2cded5
L
7331 interix*)
7332 # we just hope/assume this is gcc and not c89 (= MSVC++)
7333 with_gnu_ld=yes
d7040cdb 7334 ;;
ce2cded5
L
7335 openbsd*)
7336 with_gnu_ld=no
d7040cdb
SE
7337 ;;
7338 esac
d7040cdb 7339
ce2cded5
L
7340 ld_shlibs=yes
7341 if test "$with_gnu_ld" = yes; then
7342 # If archive_cmds runs LD, not CC, wlarc should be empty
7343 wlarc='${wl}'
d7040cdb 7344
ce2cded5
L
7345 # Set some defaults for GNU ld with shared library support. These
7346 # are reset later if shared libraries are not supported. Putting them
7347 # here allows them to be overridden if necessary.
7348 runpath_var=LD_RUN_PATH
7349 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7350 export_dynamic_flag_spec='${wl}--export-dynamic'
7351 # ancient GNU ld didn't support --whole-archive et. al.
7352 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7353 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
d7040cdb 7354 else
ce2cded5 7355 whole_archive_flag_spec=
d7040cdb 7356 fi
ce2cded5
L
7357 supports_anon_versioning=no
7358 case `$LD -v 2>&1` in
7359 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7360 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7361 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7362 *\ 2.11.*) ;; # other 2.11 versions
7363 *) supports_anon_versioning=yes ;;
7364 esac
d7040cdb 7365
ce2cded5
L
7366 # See if GNU ld supports shared libraries.
7367 case $host_os in
7368 aix3* | aix4* | aix5*)
7369 # On AIX/PPC, the GNU linker is very broken
7370 if test "$host_cpu" != ia64; then
7371 ld_shlibs=no
7372 cat <<_LT_EOF 1>&2
d7040cdb 7373
ce2cded5
L
7374*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7375*** to be unable to reliably create shared libraries on AIX.
7376*** Therefore, libtool is disabling shared libraries support. If you
7377*** really care for shared libraries, you may want to modify your PATH
7378*** so that a non-GNU linker is found, and then restart.
d7040cdb 7379
ce2cded5
L
7380_LT_EOF
7381 fi
7382 ;;
d7040cdb 7383
ce2cded5
L
7384 amigaos*)
7385 if test "$host_cpu" = m68k; then
7386 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)'
7387 hardcode_libdir_flag_spec='-L$libdir'
7388 hardcode_minus_L=yes
7389 fi
d7040cdb 7390
ce2cded5
L
7391 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7392 # that the semantics of dynamic libraries on AmigaOS, at least up
7393 # to version 4, is to share data among multiple programs linked
7394 # with the same dynamic library. Since this doesn't match the
7395 # behavior of shared libraries on other platforms, we can't use
7396 # them.
7397 ld_shlibs=no
7398 ;;
d7040cdb 7399
ce2cded5
L
7400 beos*)
7401 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7402 allow_undefined_flag=unsupported
7403 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7404 # support --undefined. This deserves some investigation. FIXME
7405 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7406 else
7407 ld_shlibs=no
7408 fi
7409 ;;
d7040cdb 7410
ce2cded5
L
7411 cygwin* | mingw* | pw32*)
7412 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7413 # as there is no search path for DLLs.
7414 hardcode_libdir_flag_spec='-L$libdir'
7415 allow_undefined_flag=unsupported
7416 always_export_symbols=no
7417 enable_shared_with_static_runtimes=yes
7418 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
d7040cdb 7419
ce2cded5
L
7420 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7421 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7422 # If the export-symbols file already is a .def file (1st line
7423 # is EXPORTS), use it as is; otherwise, prepend...
7424 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7425 cp $export_symbols $output_objdir/$soname.def;
7426 else
7427 echo EXPORTS > $output_objdir/$soname.def;
7428 cat $export_symbols >> $output_objdir/$soname.def;
7429 fi~
7430 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7431 else
7432 ld_shlibs=no
7433 fi
7434 ;;
d7040cdb 7435
ce2cded5
L
7436 interix[3-9]*)
7437 hardcode_direct=no
7438 hardcode_shlibpath_var=no
7439 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7440 export_dynamic_flag_spec='${wl}-E'
7441 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7442 # Instead, shared libraries are loaded at an image base (0x10000000 by
7443 # default) and relocated if they conflict, which is a slow very memory
7444 # consuming and fragmenting process. To avoid this, we pick a random,
7445 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7446 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7447 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7448 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'
7449 ;;
d7040cdb 7450
ce2cded5
L
7451 gnu* | linux* | tpf* | k*bsd*-gnu)
7452 tmp_diet=no
7453 if test "$host_os" = linux-dietlibc; then
7454 case $cc_basename in
7455 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7456 esac
7457 fi
7458 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7459 && test "$tmp_diet" = no
7460 then
7461 tmp_addflag=
7462 case $cc_basename,$host_cpu in
7463 pgcc*) # Portland Group C compiler
7464 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'
7465 tmp_addflag=' $pic_flag'
7466 ;;
7467 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7468 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'
7469 tmp_addflag=' $pic_flag -Mnomain' ;;
7470 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7471 tmp_addflag=' -i_dynamic' ;;
7472 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7473 tmp_addflag=' -i_dynamic -nofor_main' ;;
7474 ifc* | ifort*) # Intel Fortran compiler
7475 tmp_addflag=' -nofor_main' ;;
7476 esac
7477 case `$CC -V 2>&1 | sed 5q` in
7478 *Sun\ C*) # Sun C 5.9
7479 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'
7480 compiler_needs_object=yes
7481 tmp_sharedflag='-G' ;;
7482 *Sun\ F*) # Sun Fortran 8.3
7483 tmp_sharedflag='-G' ;;
7484 *)
7485 tmp_sharedflag='-shared' ;;
7486 esac
7487 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d7040cdb 7488
ce2cded5
L
7489 if test "x$supports_anon_versioning" = xyes; then
7490 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7491 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7492 echo "local: *; };" >> $output_objdir/$libname.ver~
7493 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7494 fi
7495 else
7496 ld_shlibs=no
7497 fi
7498 ;;
d7040cdb 7499
ce2cded5
L
7500 netbsd*)
7501 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7502 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7503 wlarc=
7504 else
7505 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7506 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7507 fi
7508 ;;
d7040cdb 7509
ce2cded5
L
7510 solaris*)
7511 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7512 ld_shlibs=no
7513 cat <<_LT_EOF 1>&2
d7040cdb 7514
ce2cded5
L
7515*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7516*** create shared libraries on Solaris systems. Therefore, libtool
7517*** is disabling shared libraries support. We urge you to upgrade GNU
7518*** binutils to release 2.9.1 or newer. Another option is to modify
7519*** your PATH or compiler configuration so that the native linker is
7520*** used, and then restart.
d7040cdb 7521
ce2cded5
L
7522_LT_EOF
7523 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7524 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7525 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7526 else
7527 ld_shlibs=no
7528 fi
7529 ;;
d7040cdb 7530
ce2cded5
L
7531 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7532 case `$LD -v 2>&1` in
7533 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7534 ld_shlibs=no
7535 cat <<_LT_EOF 1>&2
d7040cdb 7536
ce2cded5
L
7537*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7538*** reliably create shared libraries on SCO systems. Therefore, libtool
7539*** is disabling shared libraries support. We urge you to upgrade GNU
7540*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7541*** your PATH or compiler configuration so that the native linker is
7542*** used, and then restart.
d7040cdb 7543
ce2cded5
L
7544_LT_EOF
7545 ;;
7546 *)
7547 # For security reasons, it is highly recommended that you always
7548 # use absolute paths for naming shared libraries, and exclude the
7549 # DT_RUNPATH tag from executables and libraries. But doing so
7550 # requires that you compile everything twice, which is a pain.
7551 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7552 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7553 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7554 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7555 else
7556 ld_shlibs=no
7557 fi
7558 ;;
7559 esac
d7040cdb 7560 ;;
ce2cded5
L
7561
7562 sunos4*)
7563 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7564 wlarc=
7565 hardcode_direct=yes
7566 hardcode_shlibpath_var=no
d7040cdb 7567 ;;
d7040cdb 7568
ce2cded5
L
7569 *)
7570 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7571 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7572 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7573 else
7574 ld_shlibs=no
7575 fi
7576 ;;
7577 esac
d7040cdb 7578
ce2cded5
L
7579 if test "$ld_shlibs" = no; then
7580 runpath_var=
7581 hardcode_libdir_flag_spec=
7582 export_dynamic_flag_spec=
7583 whole_archive_flag_spec=
7584 fi
d7040cdb 7585 else
ce2cded5 7586 # PORTME fill in a description of your system's linker (not GNU ld)
d7040cdb 7587 case $host_os in
ce2cded5
L
7588 aix3*)
7589 allow_undefined_flag=unsupported
7590 always_export_symbols=yes
7591 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'
7592 # Note: this linker hardcodes the directories in LIBPATH if there
7593 # are no directories specified by -L.
7594 hardcode_minus_L=yes
7595 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7596 # Neither direct hardcoding nor static linking is supported with a
7597 # broken collect2.
7598 hardcode_direct=unsupported
7599 fi
7600 ;;
d7040cdb 7601
ce2cded5
L
7602 aix4* | aix5*)
7603 if test "$host_cpu" = ia64; then
7604 # On IA64, the linker does run time linking by default, so we don't
7605 # have to do anything special.
7606 aix_use_runtimelinking=no
7607 exp_sym_flag='-Bexport'
7608 no_entry_flag=""
7609 else
7610 # If we're using GNU nm, then we don't want the "-C" option.
7611 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7612 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7613 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'
7614 else
7615 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'
7616 fi
7617 aix_use_runtimelinking=no
d7040cdb 7618
ce2cded5
L
7619 # Test if we are trying to use run time linking or normal
7620 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7621 # need to do runtime linking.
7622 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7623 for ld_flag in $LDFLAGS; do
7624 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7625 aix_use_runtimelinking=yes
7626 break
7627 fi
7628 done
7629 ;;
7630 esac
d7040cdb 7631
ce2cded5
L
7632 exp_sym_flag='-bexport'
7633 no_entry_flag='-bnoentry'
7634 fi
d7040cdb 7635
ce2cded5
L
7636 # When large executables or shared objects are built, AIX ld can
7637 # have problems creating the table of contents. If linking a library
7638 # or program results in "error TOC overflow" add -mminimal-toc to
7639 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7640 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
d7040cdb 7641
ce2cded5
L
7642 archive_cmds=''
7643 hardcode_direct=yes
7644 hardcode_direct_absolute=yes
7645 hardcode_libdir_separator=':'
7646 link_all_deplibs=yes
7647 file_list_spec='${wl}-f,'
d7040cdb 7648
ce2cded5
L
7649 if test "$GCC" = yes; then
7650 case $host_os in aix4.[012]|aix4.[012].*)
7651 # We only want to do this on AIX 4.2 and lower, the check
7652 # below for broken collect2 doesn't work under 4.3+
7653 collect2name=`${CC} -print-prog-name=collect2`
7654 if test -f "$collect2name" &&
7655 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7656 then
7657 # We have reworked collect2
7658 :
7659 else
7660 # We have old collect2
7661 hardcode_direct=unsupported
7662 # It fails to find uninstalled libraries when the uninstalled
7663 # path is not listed in the libpath. Setting hardcode_minus_L
7664 # to unsupported forces relinking
7665 hardcode_minus_L=yes
7666 hardcode_libdir_flag_spec='-L$libdir'
7667 hardcode_libdir_separator=
7668 fi
7669 ;;
7670 esac
7671 shared_flag='-shared'
7672 if test "$aix_use_runtimelinking" = yes; then
7673 shared_flag="$shared_flag "'${wl}-G'
7674 fi
7675 else
7676 # not using gcc
7677 if test "$host_cpu" = ia64; then
7678 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7679 # chokes on -Wl,-G. The following line is correct:
7680 shared_flag='-G'
7681 else
7682 if test "$aix_use_runtimelinking" = yes; then
7683 shared_flag='${wl}-G'
7684 else
7685 shared_flag='${wl}-bM:SRE'
7686 fi
7687 fi
7688 fi
d7040cdb 7689
ce2cded5
L
7690 # It seems that -bexpall does not export symbols beginning with
7691 # underscore (_), so it is better to generate a list of symbols to export.
7692 always_export_symbols=yes
7693 if test "$aix_use_runtimelinking" = yes; then
7694 # Warning - without using the other runtime loading flags (-brtl),
7695 # -berok will link without error, but may produce a broken library.
7696 allow_undefined_flag='-berok'
7697 # Determine the default libpath from the value encoded in an
7698 # empty executable.
7699 cat >conftest.$ac_ext <<_ACEOF
d7040cdb
SE
7700/* confdefs.h. */
7701_ACEOF
7702cat confdefs.h >>conftest.$ac_ext
7703cat >>conftest.$ac_ext <<_ACEOF
7704/* end confdefs.h. */
7705
d7040cdb
SE
7706int
7707main ()
7708{
ce2cded5 7709
d7040cdb
SE
7710 ;
7711 return 0;
7712}
7713_ACEOF
7714rm -f conftest.$ac_objext conftest$ac_exeext
0ab6f085
AM
7715if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7716 (eval $ac_link) 2>conftest.er1
d7040cdb
SE
7717 ac_status=$?
7718 grep -v '^ *+' conftest.er1 >conftest.err
7719 rm -f conftest.er1
7720 cat conftest.err >&5
7721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0ab6f085
AM
7722 (exit $ac_status); } &&
7723 { ac_try='test -z "$ac_c_werror_flag"
7724 || test ! -s conftest.err'
7725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7726 (eval $ac_try) 2>&5
7727 ac_status=$?
7728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7729 (exit $ac_status); }; } &&
7730 { ac_try='test -s conftest$ac_exeext'
7731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7732 (eval $ac_try) 2>&5
7733 ac_status=$?
7734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7735 (exit $ac_status); }; }; then
d7040cdb 7736
ce2cded5
L
7737lt_aix_libpath_sed='
7738 /Import File Strings/,/^$/ {
7739 /^0/ {
7740 s/^0 *\(.*\)$/\1/
7741 p
7742 }
7743 }'
7744aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7745# Check for a 64-bit object if we didn't find anything.
7746if test -z "$aix_libpath"; then
7747 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
d7040cdb 7748fi
d7040cdb
SE
7749else
7750 echo "$as_me: failed program was:" >&5
7751sed 's/^/| /' conftest.$ac_ext >&5
7752
d7040cdb 7753fi
0ab6f085 7754rm -f conftest.err conftest.$ac_objext \
d7040cdb 7755 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
7756if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7757
7758 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7759 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"
7760 else
7761 if test "$host_cpu" = ia64; then
7762 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7763 allow_undefined_flag="-z nodefs"
7764 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"
7765 else
7766 # Determine the default libpath from the value encoded in an
7767 # empty executable.
7768 cat >conftest.$ac_ext <<_ACEOF
d7040cdb
SE
7769/* confdefs.h. */
7770_ACEOF
7771cat confdefs.h >>conftest.$ac_ext
7772cat >>conftest.$ac_ext <<_ACEOF
7773/* end confdefs.h. */
7774
d7040cdb
SE
7775int
7776main ()
7777{
ce2cded5 7778
d7040cdb
SE
7779 ;
7780 return 0;
7781}
7782_ACEOF
7783rm -f conftest.$ac_objext conftest$ac_exeext
0ab6f085
AM
7784if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7785 (eval $ac_link) 2>conftest.er1
d7040cdb
SE
7786 ac_status=$?
7787 grep -v '^ *+' conftest.er1 >conftest.err
7788 rm -f conftest.er1
1b9750d6 7789 cat conftest.err >&5
d7040cdb 7790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0ab6f085
AM
7791 (exit $ac_status); } &&
7792 { ac_try='test -z "$ac_c_werror_flag"
7793 || test ! -s conftest.err'
7794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7795 (eval $ac_try) 2>&5
7796 ac_status=$?
7797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7798 (exit $ac_status); }; } &&
7799 { ac_try='test -s conftest$ac_exeext'
7800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7801 (eval $ac_try) 2>&5
7802 ac_status=$?
7803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804 (exit $ac_status); }; }; then
ce2cded5
L
7805
7806lt_aix_libpath_sed='
7807 /Import File Strings/,/^$/ {
7808 /^0/ {
7809 s/^0 *\(.*\)$/\1/
7810 p
7811 }
7812 }'
7813aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7814# Check for a 64-bit object if we didn't find anything.
7815if test -z "$aix_libpath"; then
7816 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7817fi
d7040cdb
SE
7818else
7819 echo "$as_me: failed program was:" >&5
7820sed 's/^/| /' conftest.$ac_ext >&5
7821
d7040cdb 7822fi
0ab6f085 7823rm -f conftest.err conftest.$ac_objext \
d7040cdb 7824 conftest$ac_exeext conftest.$ac_ext
ce2cded5 7825if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 7826
ce2cded5
L
7827 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7828 # Warning - without using the other run time loading flags,
7829 # -berok will link without error, but may produce a broken library.
7830 no_undefined_flag=' ${wl}-bernotok'
7831 allow_undefined_flag=' ${wl}-berok'
7832 # Exported symbols can be pulled into shared objects from archives
7833 whole_archive_flag_spec='$convenience'
7834 archive_cmds_need_lc=yes
7835 # This is similar to how AIX traditionally builds its shared libraries.
7836 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'
7837 fi
7838 fi
7839 ;;
d7040cdb 7840
ce2cded5
L
7841 amigaos*)
7842 if test "$host_cpu" = m68k; then
7843 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)'
7844 hardcode_libdir_flag_spec='-L$libdir'
7845 hardcode_minus_L=yes
7846 fi
7847 # see comment about different semantics on the GNU ld section
7848 ld_shlibs=no
7849 ;;
d7040cdb 7850
ce2cded5
L
7851 bsdi[45]*)
7852 export_dynamic_flag_spec=-rdynamic
7853 ;;
d7040cdb 7854
ce2cded5
L
7855 cygwin* | mingw* | pw32*)
7856 # When not using gcc, we currently assume that we are using
7857 # Microsoft Visual C++.
7858 # hardcode_libdir_flag_spec is actually meaningless, as there is
7859 # no search path for DLLs.
7860 hardcode_libdir_flag_spec=' '
7861 allow_undefined_flag=unsupported
7862 # Tell ltmain to make .lib files, not .a files.
7863 libext=lib
7864 # Tell ltmain to make .dll files, not .so files.
7865 shrext_cmds=".dll"
7866 # FIXME: Setting linknames here is a bad hack.
7867 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7868 # The linker will automatically build a .lib file if we build a DLL.
7869 old_archive_from_new_cmds='true'
7870 # FIXME: Should let the user specify the lib program.
7871 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7872 fix_srcfile_path='`cygpath -w "$srcfile"`'
7873 enable_shared_with_static_runtimes=yes
7874 ;;
d7040cdb 7875
ce2cded5
L
7876 darwin* | rhapsody*)
7877 case $host_os in
7878 rhapsody* | darwin1.[012])
7879 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7880 ;;
7881 *) # Darwin 1.3 on
7882 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7883 10.[012])
7884 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7885 ;;
7886 10.*)
7887 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7888 ;;
7889 esac
7890 ;;
7891 esac
7892 archive_cmds_need_lc=no
7893 hardcode_direct=no
7894 hardcode_automatic=yes
7895 hardcode_shlibpath_var=unsupported
7896 whole_archive_flag_spec=''
7897 link_all_deplibs=yes
7898 if test "$GCC" = yes ; then
7899 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7900 echo $ECHO_N "(cached) $ECHO_C" >&6
7901else
7902 lt_cv_apple_cc_single_mod=no
7903 if test -z "${LT_MULTI_MODULE}"; then
7904 # By default we will add the -single_module flag. You can override
7905 # by either setting the environment variable LT_MULTI_MODULE
7906 # non-empty at configure time, or by adding -multi-module to the
7907 # link flags.
7908 echo "int foo(void){return 1;}" > conftest.c
7909 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7910 -dynamiclib ${wl}-single_module conftest.c
7911 if test -f libconftest.dylib; then
7912 lt_cv_apple_cc_single_mod=yes
7913 rm libconftest.dylib
7914 fi
7915 rm conftest.$ac_ext
7916 fi
7917fi
7918
7919 output_verbose_link_cmd=echo
7920 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
7921 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7922 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7923 else
7924 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7925 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7926 fi
7927 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7928 module_expsym_cmds='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7929 else
7930 case $cc_basename in
7931 xlc*)
7932 output_verbose_link_cmd=echo
7933 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
7934 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7935 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7936 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7937 module_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7938 ;;
7939 *)
7940 ld_shlibs=no
7941 ;;
7942 esac
7943 fi
7944 ;;
7945
7946 dgux*)
7947 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7948 hardcode_libdir_flag_spec='-L$libdir'
7949 hardcode_shlibpath_var=no
7950 ;;
7951
7952 freebsd1*)
7953 ld_shlibs=no
7954 ;;
7955
7956 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7957 # support. Future versions do this automatically, but an explicit c++rt0.o
7958 # does not break anything, and helps significantly (at the cost of a little
7959 # extra space).
7960 freebsd2.2*)
7961 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7962 hardcode_libdir_flag_spec='-R$libdir'
7963 hardcode_direct=yes
7964 hardcode_shlibpath_var=no
7965 ;;
7966
7967 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7968 freebsd2*)
7969 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7970 hardcode_direct=yes
7971 hardcode_minus_L=yes
7972 hardcode_shlibpath_var=no
7973 ;;
7974
7975 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7976 freebsd* | dragonfly*)
7977 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7978 hardcode_libdir_flag_spec='-R$libdir'
7979 hardcode_direct=yes
7980 hardcode_shlibpath_var=no
7981 ;;
7982
7983 hpux9*)
7984 if test "$GCC" = yes; then
7985 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'
7986 else
7987 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'
7988 fi
7989 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7990 hardcode_libdir_separator=:
7991 hardcode_direct=yes
7992
7993 # hardcode_minus_L: Not really in the search PATH,
7994 # but as the default location of the library.
7995 hardcode_minus_L=yes
7996 export_dynamic_flag_spec='${wl}-E'
7997 ;;
7998
7999 hpux10*)
8000 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8001 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8002 else
8003 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8004 fi
8005 if test "$with_gnu_ld" = no; then
8006 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8007 hardcode_libdir_flag_spec_ld='+b $libdir'
8008 hardcode_libdir_separator=:
8009 hardcode_direct=yes
8010 hardcode_direct_absolute=yes
8011 export_dynamic_flag_spec='${wl}-E'
8012 # hardcode_minus_L: Not really in the search PATH,
8013 # but as the default location of the library.
8014 hardcode_minus_L=yes
8015 fi
8016 ;;
8017
8018 hpux11*)
8019 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8020 case $host_cpu in
8021 hppa*64*)
8022 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8023 ;;
8024 ia64*)
8025 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8026 ;;
8027 *)
8028 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8029 ;;
8030 esac
8031 else
8032 case $host_cpu in
8033 hppa*64*)
8034 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8035 ;;
8036 ia64*)
8037 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8038 ;;
8039 *)
8040 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8041 ;;
8042 esac
8043 fi
8044 if test "$with_gnu_ld" = no; then
8045 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8046 hardcode_libdir_separator=:
8047
8048 case $host_cpu in
8049 hppa*64*|ia64*)
8050 hardcode_direct=no
8051 hardcode_shlibpath_var=no
8052 ;;
8053 *)
8054 hardcode_direct=yes
8055 hardcode_direct_absolute=yes
8056 export_dynamic_flag_spec='${wl}-E'
8057
8058 # hardcode_minus_L: Not really in the search PATH,
8059 # but as the default location of the library.
8060 hardcode_minus_L=yes
8061 ;;
8062 esac
8063 fi
8064 ;;
8065
8066 irix5* | irix6* | nonstopux*)
8067 if test "$GCC" = yes; then
8068 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'
8069 # Try to use the -exported_symbol ld option, if it does not
8070 # work, assume that -exports_file does not work either and
8071 # implicitly export all symbols.
8072 save_LDFLAGS="$LDFLAGS"
8073 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8074 cat >conftest.$ac_ext <<_ACEOF
8075int foo(void) {}
d7040cdb
SE
8076_ACEOF
8077rm -f conftest.$ac_objext conftest$ac_exeext
0ab6f085
AM
8078if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8079 (eval $ac_link) 2>conftest.er1
d7040cdb
SE
8080 ac_status=$?
8081 grep -v '^ *+' conftest.er1 >conftest.err
8082 rm -f conftest.er1
8083 cat conftest.err >&5
8084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0ab6f085
AM
8085 (exit $ac_status); } &&
8086 { ac_try='test -z "$ac_c_werror_flag"
8087 || test ! -s conftest.err'
8088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8089 (eval $ac_try) 2>&5
8090 ac_status=$?
8091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092 (exit $ac_status); }; } &&
8093 { ac_try='test -s conftest$ac_exeext'
8094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8095 (eval $ac_try) 2>&5
8096 ac_status=$?
8097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8098 (exit $ac_status); }; }; then
ce2cded5
L
8099 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'
8100
d7040cdb
SE
8101else
8102 echo "$as_me: failed program was:" >&5
8103sed 's/^/| /' conftest.$ac_ext >&5
8104
d7040cdb 8105fi
0ab6f085 8106rm -f conftest.err conftest.$ac_objext \
d7040cdb 8107 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
8108 LDFLAGS="$save_LDFLAGS"
8109 else
8110 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'
8111 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'
8112 fi
8113 archive_cmds_need_lc='no'
8114 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8115 hardcode_libdir_separator=:
8116 inherit_rpath=yes
8117 link_all_deplibs=yes
8118 ;;
8119
8120 netbsd*)
8121 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8122 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8123 else
8124 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8125 fi
8126 hardcode_libdir_flag_spec='-R$libdir'
8127 hardcode_direct=yes
8128 hardcode_shlibpath_var=no
8129 ;;
8130
8131 newsos6)
8132 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8133 hardcode_direct=yes
8134 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8135 hardcode_libdir_separator=:
8136 hardcode_shlibpath_var=no
8137 ;;
8138
8139 *nto* | *qnx*)
8140 ;;
8141
8142 openbsd*)
8143 hardcode_direct=yes
8144 hardcode_shlibpath_var=no
8145 hardcode_direct_absolute=yes
8146 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8147 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8148 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8149 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8150 export_dynamic_flag_spec='${wl}-E'
8151 else
8152 case $host_os in
8153 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8154 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8155 hardcode_libdir_flag_spec='-R$libdir'
8156 ;;
8157 *)
8158 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8159 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8160 ;;
8161 esac
8162 fi
8163 ;;
8164
8165 os2*)
8166 hardcode_libdir_flag_spec='-L$libdir'
8167 hardcode_minus_L=yes
8168 allow_undefined_flag=unsupported
8169 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'
8170 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8171 ;;
8172
8173 osf3*)
8174 if test "$GCC" = yes; then
8175 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8176 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'
8177 else
8178 allow_undefined_flag=' -expect_unresolved \*'
8179 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'
8180 fi
8181 archive_cmds_need_lc='no'
8182 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8183 hardcode_libdir_separator=:
8184 ;;
8185
8186 osf4* | osf5*) # as osf3* with the addition of -msym flag
8187 if test "$GCC" = yes; then
8188 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8189 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'
8190 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8191 else
8192 allow_undefined_flag=' -expect_unresolved \*'
8193 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'
8194 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~
8195 $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'
8196
8197 # Both c and cxx compiler support -rpath directly
8198 hardcode_libdir_flag_spec='-rpath $libdir'
8199 fi
8200 archive_cmds_need_lc='no'
8201 hardcode_libdir_separator=:
8202 ;;
8203
8204 solaris*)
8205 no_undefined_flag=' -z defs'
8206 if test "$GCC" = yes; then
8207 wlarc='${wl}'
8208 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8209 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8210 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8211 else
8212 case `$CC -V 2>&1` in
8213 *"Compilers 5.0"*)
8214 wlarc=''
8215 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8216 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8217 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8218 ;;
8219 *)
8220 wlarc='${wl}'
8221 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8222 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8223 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8224 ;;
8225 esac
8226 fi
8227 hardcode_libdir_flag_spec='-R$libdir'
8228 hardcode_shlibpath_var=no
8229 case $host_os in
8230 solaris2.[0-5] | solaris2.[0-5].*) ;;
8231 *)
8232 # The compiler driver will combine and reorder linker options,
8233 # but understands `-z linker_flag'. GCC discards it without `$wl',
8234 # but is careful enough not to reorder.
8235 # Supported since Solaris 2.6 (maybe 2.5.1?)
8236 if test "$GCC" = yes; then
8237 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8238 else
8239 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8240 fi
8241 ;;
8242 esac
8243 link_all_deplibs=yes
8244 ;;
8245
8246 sunos4*)
8247 if test "x$host_vendor" = xsequent; then
8248 # Use $CC to link under sequent, because it throws in some extra .o
8249 # files that make .init and .fini sections work.
8250 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8251 else
8252 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8253 fi
8254 hardcode_libdir_flag_spec='-L$libdir'
8255 hardcode_direct=yes
8256 hardcode_minus_L=yes
8257 hardcode_shlibpath_var=no
8258 ;;
8259
8260 sysv4)
8261 case $host_vendor in
8262 sni)
8263 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8264 hardcode_direct=yes # is this really true???
8265 ;;
8266 siemens)
8267 ## LD is ld it makes a PLAMLIB
8268 ## CC just makes a GrossModule.
8269 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8270 reload_cmds='$CC -r -o $output$reload_objs'
8271 hardcode_direct=no
8272 ;;
8273 motorola)
8274 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8275 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8276 ;;
8277 esac
8278 runpath_var='LD_RUN_PATH'
8279 hardcode_shlibpath_var=no
8280 ;;
8281
8282 sysv4.3*)
8283 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8284 hardcode_shlibpath_var=no
8285 export_dynamic_flag_spec='-Bexport'
8286 ;;
8287
8288 sysv4*MP*)
8289 if test -d /usr/nec; then
8290 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8291 hardcode_shlibpath_var=no
8292 runpath_var=LD_RUN_PATH
8293 hardcode_runpath_var=yes
8294 ld_shlibs=yes
8295 fi
8296 ;;
8297
8298 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8299 no_undefined_flag='${wl}-z,text'
8300 archive_cmds_need_lc=no
8301 hardcode_shlibpath_var=no
8302 runpath_var='LD_RUN_PATH'
8303
8304 if test "$GCC" = yes; then
8305 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8306 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8307 else
8308 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8309 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8310 fi
8311 ;;
8312
8313 sysv5* | sco3.2v5* | sco5v6*)
8314 # Note: We can NOT use -z defs as we might desire, because we do not
8315 # link with -lc, and that would cause any symbols used from libc to
8316 # always be unresolved, which means just about no library would
8317 # ever link correctly. If we're not using GNU ld we use -z text
8318 # though, which does catch some bad symbols but isn't as heavy-handed
8319 # as -z defs.
8320 no_undefined_flag='${wl}-z,text'
8321 allow_undefined_flag='${wl}-z,nodefs'
8322 archive_cmds_need_lc=no
8323 hardcode_shlibpath_var=no
8324 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8325 hardcode_libdir_separator=':'
8326 link_all_deplibs=yes
8327 export_dynamic_flag_spec='${wl}-Bexport'
8328 runpath_var='LD_RUN_PATH'
8329
8330 if test "$GCC" = yes; then
8331 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8332 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8333 else
8334 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8335 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8336 fi
8337 ;;
8338
8339 uts4*)
8340 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8341 hardcode_libdir_flag_spec='-L$libdir'
8342 hardcode_shlibpath_var=no
8343 ;;
8344
8345 *)
8346 ld_shlibs=no
8347 ;;
8348 esac
8349
8350 if test x$host_vendor = xsni; then
8351 case $host in
8352 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8353 export_dynamic_flag_spec='${wl}-Blargedynsym'
8354 ;;
8355 esac
8356 fi
8357 fi
8358
8359echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8360echo "${ECHO_T}$ld_shlibs" >&6
8361test "$ld_shlibs" = no && can_build_shared=no
8362
8363with_gnu_ld=$with_gnu_ld
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379#
8380# Do we need to explicitly link libc?
8381#
8382case "x$archive_cmds_need_lc" in
8383x|xyes)
8384 # Assume -lc should be added
8385 archive_cmds_need_lc=yes
8386
8387 if test "$enable_shared" = yes && test "$GCC" = yes; then
8388 case $archive_cmds in
8389 *'~'*)
8390 # FIXME: we may have to deal with multi-command sequences.
8391 ;;
8392 '$CC '*)
8393 # Test whether the compiler implicitly links with -lc since on some
8394 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8395 # to ld, don't add -lc before -lgcc.
8396 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8397echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8398 $RM conftest*
8399 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8400
8401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8402 (eval $ac_compile) 2>&5
8403 ac_status=$?
8404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405 (exit $ac_status); } 2>conftest.err; then
8406 soname=conftest
8407 lib=conftest
8408 libobjs=conftest.$ac_objext
8409 deplibs=
8410 wl=$lt_prog_compiler_wl
8411 pic_flag=$lt_prog_compiler_pic
8412 compiler_flags=-v
8413 linker_flags=-v
8414 verstring=
8415 output_objdir=.
8416 libname=conftest
8417 lt_save_allow_undefined_flag=$allow_undefined_flag
8418 allow_undefined_flag=
8419 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8420 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8421 ac_status=$?
8422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8423 (exit $ac_status); }
8424 then
8425 archive_cmds_need_lc=no
8426 else
8427 archive_cmds_need_lc=yes
8428 fi
8429 allow_undefined_flag=$lt_save_allow_undefined_flag
8430 else
8431 cat conftest.err 1>&5
8432 fi
8433 $RM conftest*
8434 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8435echo "${ECHO_T}$archive_cmds_need_lc" >&6
8436 ;;
8437 esac
8438 fi
8439 ;;
8440esac
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8599echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8600withGCC=$GCC
8601if test "$withGCC" = yes; then
8602 case $host_os in
8603 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8604 *) lt_awk_arg="/^libraries:/" ;;
8605 esac
8606 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8607 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8608 # if the path contains ";" then we assume it to be the separator
8609 # otherwise default to the standard path separator (i.e. ":") - it is
8610 # assumed that no part of a normal pathname contains ";" but that should
8611 # okay in the real world where ";" in dirpaths is itself problematic.
8612 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8613 else
8614 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8615 fi
8616 # Ok, now we have the path, separated by spaces, we can step through it
8617 # and add multilib dir if necessary.
8618 lt_tmp_lt_search_path_spec=
8619 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8620 for lt_sys_path in $lt_search_path_spec; do
8621 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8622 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8623 else
8624 test -d "$lt_sys_path" && \
8625 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8626 fi
8627 done
8628 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8629BEGIN {RS=" "; FS="/|\n";} {
8630 lt_foo="";
8631 lt_count=0;
8632 for (lt_i = NF; lt_i > 0; lt_i--) {
8633 if ($lt_i != "" && $lt_i != ".") {
8634 if ($lt_i == "..") {
8635 lt_count++;
8636 } else {
8637 if (lt_count == 0) {
8638 lt_foo="/" $lt_i lt_foo;
8639 } else {
8640 lt_count--;
8641 }
8642 }
8643 }
8644 }
8645 if (lt_foo != "") { lt_freq[lt_foo]++; }
8646 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8647}'`
8648 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8649else
8650 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8651fi
8652library_names_spec=
8653libname_spec='lib$name'
8654soname_spec=
8655shrext_cmds=".so"
8656postinstall_cmds=
8657postuninstall_cmds=
8658finish_cmds=
8659finish_eval=
8660shlibpath_var=
8661shlibpath_overrides_runpath=unknown
8662version_type=none
8663dynamic_linker="$host_os ld.so"
8664sys_lib_dlsearch_path_spec="/lib /usr/lib"
8665need_lib_prefix=unknown
8666hardcode_into_libs=no
8667
8668# when you set need_version to no, make sure it does not cause -set_version
8669# flags to be left without arguments
8670need_version=unknown
8671
8672case $host_os in
8673aix3*)
8674 version_type=linux
8675 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8676 shlibpath_var=LIBPATH
8677
8678 # AIX 3 has no versioning support, so we append a major version to the name.
8679 soname_spec='${libname}${release}${shared_ext}$major'
8680 ;;
8681
8682aix4* | aix5*)
8683 version_type=linux
8684 need_lib_prefix=no
8685 need_version=no
8686 hardcode_into_libs=yes
8687 if test "$host_cpu" = ia64; then
8688 # AIX 5 supports IA64
8689 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8690 shlibpath_var=LD_LIBRARY_PATH
8691 else
8692 # With GCC up to 2.95.x, collect2 would create an import file
8693 # for dependence libraries. The import file would start with
8694 # the line `#! .'. This would cause the generated library to
8695 # depend on `.', always an invalid library. This was fixed in
8696 # development snapshots of GCC prior to 3.0.
8697 case $host_os in
8698 aix4 | aix4.[01] | aix4.[01].*)
8699 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8700 echo ' yes '
8701 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8702 :
8703 else
8704 can_build_shared=no
8705 fi
8706 ;;
8707 esac
8708 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8709 # soname into executable. Probably we can add versioning support to
8710 # collect2, so additional links can be useful in future.
8711 if test "$aix_use_runtimelinking" = yes; then
8712 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8713 # instead of lib<name>.a to let people know that these are not
8714 # typical AIX shared libraries.
8715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8716 else
8717 # We preserve .a as extension for shared libraries through AIX4.2
8718 # and later when we are not doing run time linking.
8719 library_names_spec='${libname}${release}.a $libname.a'
8720 soname_spec='${libname}${release}${shared_ext}$major'
8721 fi
8722 shlibpath_var=LIBPATH
8723 fi
8724 ;;
8725
8726amigaos*)
8727 if test "$host_cpu" = m68k; then
8728 library_names_spec='$libname.ixlibrary $libname.a'
8729 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8730 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'
8731 else
8732 dynamic_linker=no
8733 fi
8734 ;;
8735
8736beos*)
8737 library_names_spec='${libname}${shared_ext}'
8738 dynamic_linker="$host_os ld.so"
8739 shlibpath_var=LIBRARY_PATH
8740 ;;
8741
8742bsdi[45]*)
8743 version_type=linux
8744 need_version=no
8745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8746 soname_spec='${libname}${release}${shared_ext}$major'
8747 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8748 shlibpath_var=LD_LIBRARY_PATH
8749 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8750 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8751 # the default ld.so.conf also contains /usr/contrib/lib and
8752 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8753 # libtool to hard-code these into programs
8754 ;;
8755
8756cygwin* | mingw* | pw32*)
8757 version_type=windows
8758 shrext_cmds=".dll"
8759 need_version=no
8760 need_lib_prefix=no
8761
8762 case $withGCC,$host_os in
8763 yes,cygwin* | yes,mingw* | yes,pw32*)
8764 library_names_spec='$libname.dll.a'
8765 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8766 postinstall_cmds='base_file=`basename \${file}`~
8767 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8768 dldir=$destdir/`dirname \$dlpath`~
8769 test -d \$dldir || mkdir -p \$dldir~
8770 $install_prog $dir/$dlname \$dldir/$dlname~
8771 chmod a+x \$dldir/$dlname~
8772 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8773 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8774 fi'
8775 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8776 dlpath=$dir/\$dldll~
8777 $RM \$dlpath'
8778 shlibpath_overrides_runpath=yes
8779
8780 case $host_os in
8781 cygwin*)
8782 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8783 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8784 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8785 ;;
8786 mingw*)
8787 # MinGW DLLs use traditional 'lib' prefix
8788 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8789 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8790 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8791 # It is most probably a Windows format PATH printed by
8792 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8793 # path with ; separators, and with drive letters. We can handle the
8794 # drive letters (cygwin fileutils understands them), so leave them,
8795 # especially as we might pass files found there to a mingw objdump,
8796 # which wouldn't understand a cygwinified path. Ahh.
8797 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8798 else
8799 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8800 fi
8801 ;;
8802 pw32*)
8803 # pw32 DLLs use 'pw' prefix rather than 'lib'
8804 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8805 ;;
8806 esac
8807 ;;
8808
8809 *)
8810 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8811 ;;
8812 esac
8813 dynamic_linker='Win32 ld.exe'
8814 # FIXME: first we should search . and the directory the executable is in
8815 shlibpath_var=PATH
8816 ;;
8817
8818darwin* | rhapsody*)
8819 dynamic_linker="$host_os dyld"
8820 version_type=darwin
8821 need_lib_prefix=no
8822 need_version=no
8823 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8824 soname_spec='${libname}${release}${major}$shared_ext'
8825 shlibpath_overrides_runpath=yes
8826 shlibpath_var=DYLD_LIBRARY_PATH
8827 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8828
8829 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8830 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8831 ;;
8832
8833dgux*)
8834 version_type=linux
8835 need_lib_prefix=no
8836 need_version=no
8837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8838 soname_spec='${libname}${release}${shared_ext}$major'
8839 shlibpath_var=LD_LIBRARY_PATH
8840 ;;
8841
8842freebsd1*)
8843 dynamic_linker=no
8844 ;;
8845
8846freebsd* | dragonfly*)
8847 # DragonFly does not have aout. When/if they implement a new
8848 # versioning mechanism, adjust this.
8849 if test -x /usr/bin/objformat; then
8850 objformat=`/usr/bin/objformat`
8851 else
8852 case $host_os in
8853 freebsd[123]*) objformat=aout ;;
8854 *) objformat=elf ;;
8855 esac
8856 fi
8857 version_type=freebsd-$objformat
8858 case $version_type in
8859 freebsd-elf*)
8860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8861 need_version=no
8862 need_lib_prefix=no
8863 ;;
8864 freebsd-*)
8865 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8866 need_version=yes
8867 ;;
8868 esac
8869 shlibpath_var=LD_LIBRARY_PATH
8870 case $host_os in
8871 freebsd2*)
8872 shlibpath_overrides_runpath=yes
8873 ;;
8874 freebsd3.[01]* | freebsdelf3.[01]*)
8875 shlibpath_overrides_runpath=yes
8876 hardcode_into_libs=yes
8877 ;;
8878 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8879 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8880 shlibpath_overrides_runpath=no
8881 hardcode_into_libs=yes
8882 ;;
8883 *) # from 4.6 on, and DragonFly
8884 shlibpath_overrides_runpath=yes
8885 hardcode_into_libs=yes
8886 ;;
8887 esac
8888 ;;
8889
8890gnu*)
8891 version_type=linux
8892 need_lib_prefix=no
8893 need_version=no
8894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8895 soname_spec='${libname}${release}${shared_ext}$major'
8896 shlibpath_var=LD_LIBRARY_PATH
8897 hardcode_into_libs=yes
8898 ;;
8899
8900hpux9* | hpux10* | hpux11*)
8901 # Give a soname corresponding to the major version so that dld.sl refuses to
8902 # link against other versions.
8903 version_type=sunos
8904 need_lib_prefix=no
8905 need_version=no
8906 case $host_cpu in
8907 ia64*)
8908 shrext_cmds='.so'
8909 hardcode_into_libs=yes
8910 dynamic_linker="$host_os dld.so"
8911 shlibpath_var=LD_LIBRARY_PATH
8912 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8914 soname_spec='${libname}${release}${shared_ext}$major'
8915 if test "X$HPUX_IA64_MODE" = X32; then
8916 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8917 else
8918 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8919 fi
8920 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8921 ;;
8922 hppa*64*)
8923 shrext_cmds='.sl'
8924 hardcode_into_libs=yes
8925 dynamic_linker="$host_os dld.sl"
8926 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8927 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8929 soname_spec='${libname}${release}${shared_ext}$major'
8930 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8931 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8932 ;;
8933 *)
8934 shrext_cmds='.sl'
8935 dynamic_linker="$host_os dld.sl"
8936 shlibpath_var=SHLIB_PATH
8937 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8939 soname_spec='${libname}${release}${shared_ext}$major'
8940 ;;
8941 esac
8942 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8943 postinstall_cmds='chmod 555 $lib'
8944 ;;
8945
8946interix[3-9]*)
8947 version_type=linux
8948 need_lib_prefix=no
8949 need_version=no
8950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8951 soname_spec='${libname}${release}${shared_ext}$major'
8952 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8953 shlibpath_var=LD_LIBRARY_PATH
8954 shlibpath_overrides_runpath=no
8955 hardcode_into_libs=yes
8956 ;;
d7040cdb 8957
ce2cded5
L
8958irix5* | irix6* | nonstopux*)
8959 case $host_os in
8960 nonstopux*) version_type=nonstopux ;;
8961 *)
8962 if test "$lt_cv_prog_gnu_ld" = yes; then
8963 version_type=linux
8964 else
8965 version_type=irix
8966 fi ;;
8967 esac
8968 need_lib_prefix=no
8969 need_version=no
8970 soname_spec='${libname}${release}${shared_ext}$major'
8971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8972 case $host_os in
8973 irix5* | nonstopux*)
8974 libsuff= shlibsuff=
8975 ;;
8976 *)
8977 case $LD in # libtool.m4 will add one of these switches to LD
8978 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8979 libsuff= shlibsuff= libmagic=32-bit;;
8980 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8981 libsuff=32 shlibsuff=N32 libmagic=N32;;
8982 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8983 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8984 *) libsuff= shlibsuff= libmagic=never-match;;
8985 esac
8986 ;;
8987 esac
8988 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8989 shlibpath_overrides_runpath=no
8990 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8991 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8992 hardcode_into_libs=yes
8993 ;;
d7040cdb 8994
ce2cded5
L
8995# No shared lib support for Linux oldld, aout, or coff.
8996linux*oldld* | linux*aout* | linux*coff*)
8997 dynamic_linker=no
8998 ;;
8999
9000# This must be Linux ELF.
9001linux* | k*bsd*-gnu)
9002 version_type=linux
9003 need_lib_prefix=no
9004 need_version=no
9005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9006 soname_spec='${libname}${release}${shared_ext}$major'
9007 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9008 shlibpath_var=LD_LIBRARY_PATH
9009 shlibpath_overrides_runpath=no
9010 # Some binutils ld are patched to set DT_RUNPATH
9011 save_LDFLAGS=$LDFLAGS
9012 save_libdir=$libdir
9013 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9014 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9015 cat >conftest.$ac_ext <<_ACEOF
d7040cdb
SE
9016/* confdefs.h. */
9017_ACEOF
9018cat confdefs.h >>conftest.$ac_ext
9019cat >>conftest.$ac_ext <<_ACEOF
9020/* end confdefs.h. */
9021
d7040cdb
SE
9022int
9023main ()
9024{
ce2cded5 9025
d7040cdb
SE
9026 ;
9027 return 0;
9028}
9029_ACEOF
9030rm -f conftest.$ac_objext conftest$ac_exeext
0ab6f085
AM
9031if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9032 (eval $ac_link) 2>conftest.er1
d7040cdb
SE
9033 ac_status=$?
9034 grep -v '^ *+' conftest.er1 >conftest.err
9035 rm -f conftest.er1
9036 cat conftest.err >&5
9037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0ab6f085
AM
9038 (exit $ac_status); } &&
9039 { ac_try='test -z "$ac_c_werror_flag"
9040 || test ! -s conftest.err'
9041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9042 (eval $ac_try) 2>&5
9043 ac_status=$?
9044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045 (exit $ac_status); }; } &&
9046 { ac_try='test -s conftest$ac_exeext'
9047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9048 (eval $ac_try) 2>&5
9049 ac_status=$?
9050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051 (exit $ac_status); }; }; then
ce2cded5
L
9052 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
9053 shlibpath_overrides_runpath=yes
d7040cdb 9054fi
d7040cdb 9055
d7040cdb
SE
9056else
9057 echo "$as_me: failed program was:" >&5
9058sed 's/^/| /' conftest.$ac_ext >&5
9059
d7040cdb 9060fi
0ab6f085 9061rm -f conftest.err conftest.$ac_objext \
d7040cdb 9062 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
9063 LDFLAGS=$save_LDFLAGS
9064 libdir=$save_libdir
d7040cdb 9065
ce2cded5
L
9066 # This implies no fast_install, which is unacceptable.
9067 # Some rework will be needed to allow for fast_install
9068 # before this can be enabled.
9069 hardcode_into_libs=yes
d7040cdb 9070
ce2cded5
L
9071 # Append ld.so.conf contents to the search path
9072 if test -f /etc/ld.so.conf; then
9073 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9074 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9075 fi
d7040cdb 9076
ce2cded5
L
9077 # We used to test for /lib/ld.so.1 and disable shared libraries on
9078 # powerpc, because MkLinux only supported shared libraries with the
9079 # GNU dynamic linker. Since this was broken with cross compilers,
9080 # most powerpc-linux boxes support dynamic linking these days and
9081 # people can always --disable-shared, the test was removed, and we
9082 # assume the GNU/Linux dynamic linker is in use.
9083 dynamic_linker='GNU/Linux ld.so'
9084 ;;
d7040cdb 9085
ce2cded5
L
9086netbsd*)
9087 version_type=sunos
9088 need_lib_prefix=no
9089 need_version=no
9090 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9092 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9093 dynamic_linker='NetBSD (a.out) ld.so'
9094 else
9095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9096 soname_spec='${libname}${release}${shared_ext}$major'
9097 dynamic_linker='NetBSD ld.elf_so'
9098 fi
9099 shlibpath_var=LD_LIBRARY_PATH
9100 shlibpath_overrides_runpath=yes
9101 hardcode_into_libs=yes
9102 ;;
d7040cdb 9103
ce2cded5
L
9104newsos6)
9105 version_type=linux
9106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9107 shlibpath_var=LD_LIBRARY_PATH
9108 shlibpath_overrides_runpath=yes
9109 ;;
d7040cdb 9110
ce2cded5
L
9111*nto* | *qnx*)
9112 version_type=qnx
9113 need_lib_prefix=no
9114 need_version=no
9115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9116 soname_spec='${libname}${release}${shared_ext}$major'
9117 shlibpath_var=LD_LIBRARY_PATH
9118 shlibpath_overrides_runpath=no
9119 hardcode_into_libs=yes
9120 dynamic_linker='ldqnx.so'
9121 ;;
d7040cdb 9122
ce2cded5
L
9123openbsd*)
9124 version_type=sunos
9125 sys_lib_dlsearch_path_spec="/usr/lib"
9126 need_lib_prefix=no
9127 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9128 case $host_os in
9129 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9130 *) need_version=no ;;
d7040cdb 9131 esac
ce2cded5
L
9132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9133 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9134 shlibpath_var=LD_LIBRARY_PATH
9135 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9136 case $host_os in
9137 openbsd2.[89] | openbsd2.[89].*)
9138 shlibpath_overrides_runpath=no
9139 ;;
9140 *)
9141 shlibpath_overrides_runpath=yes
9142 ;;
9143 esac
d7040cdb 9144 else
ce2cded5 9145 shlibpath_overrides_runpath=yes
d7040cdb 9146 fi
ce2cded5 9147 ;;
d7040cdb 9148
ce2cded5
L
9149os2*)
9150 libname_spec='$name'
9151 shrext_cmds=".dll"
9152 need_lib_prefix=no
9153 library_names_spec='$libname${shared_ext} $libname.a'
9154 dynamic_linker='OS/2 ld.exe'
9155 shlibpath_var=LIBPATH
9156 ;;
d7040cdb 9157
ce2cded5
L
9158osf3* | osf4* | osf5*)
9159 version_type=osf
9160 need_lib_prefix=no
9161 need_version=no
9162 soname_spec='${libname}${release}${shared_ext}$major'
9163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9164 shlibpath_var=LD_LIBRARY_PATH
9165 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9166 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9167 ;;
d7040cdb 9168
ce2cded5
L
9169rdos*)
9170 dynamic_linker=no
9171 ;;
d7040cdb 9172
ce2cded5
L
9173solaris*)
9174 version_type=linux
9175 need_lib_prefix=no
9176 need_version=no
9177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9178 soname_spec='${libname}${release}${shared_ext}$major'
9179 shlibpath_var=LD_LIBRARY_PATH
9180 shlibpath_overrides_runpath=yes
9181 hardcode_into_libs=yes
9182 # ldd complains unless libraries are executable
9183 postinstall_cmds='chmod +x $lib'
9184 ;;
d7040cdb 9185
ce2cded5
L
9186sunos4*)
9187 version_type=sunos
9188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9189 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9190 shlibpath_var=LD_LIBRARY_PATH
9191 shlibpath_overrides_runpath=yes
9192 if test "$with_gnu_ld" = yes; then
9193 need_lib_prefix=no
9194 fi
9195 need_version=yes
9196 ;;
d7040cdb 9197
ce2cded5
L
9198sysv4 | sysv4.3*)
9199 version_type=linux
9200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9201 soname_spec='${libname}${release}${shared_ext}$major'
9202 shlibpath_var=LD_LIBRARY_PATH
9203 case $host_vendor in
9204 sni)
9205 shlibpath_overrides_runpath=no
9206 need_lib_prefix=no
9207 runpath_var=LD_RUN_PATH
9208 ;;
9209 siemens)
9210 need_lib_prefix=no
9211 ;;
9212 motorola)
9213 need_lib_prefix=no
9214 need_version=no
9215 shlibpath_overrides_runpath=no
9216 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9217 ;;
9218 esac
9219 ;;
d7040cdb 9220
ce2cded5
L
9221sysv4*MP*)
9222 if test -d /usr/nec ;then
9223 version_type=linux
9224 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9225 soname_spec='$libname${shared_ext}.$major'
9226 shlibpath_var=LD_LIBRARY_PATH
9227 fi
9228 ;;
d7040cdb 9229
ce2cded5
L
9230sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9231 version_type=freebsd-elf
9232 need_lib_prefix=no
9233 need_version=no
9234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9235 soname_spec='${libname}${release}${shared_ext}$major'
9236 shlibpath_var=LD_LIBRARY_PATH
9237 shlibpath_overrides_runpath=yes
9238 hardcode_into_libs=yes
9239 if test "$with_gnu_ld" = yes; then
9240 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9241 else
9242 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9243 case $host_os in
9244 sco3.2v5*)
9245 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9246 ;;
9247 esac
9248 fi
9249 sys_lib_dlsearch_path_spec='/usr/lib'
9250 ;;
d7040cdb 9251
ce2cded5
L
9252tpf*)
9253 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9254 version_type=linux
9255 need_lib_prefix=no
9256 need_version=no
9257 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9258 shlibpath_var=LD_LIBRARY_PATH
9259 shlibpath_overrides_runpath=no
9260 hardcode_into_libs=yes
9261 ;;
d7040cdb 9262
ce2cded5
L
9263uts4*)
9264 version_type=linux
9265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9266 soname_spec='${libname}${release}${shared_ext}$major'
9267 shlibpath_var=LD_LIBRARY_PATH
9268 ;;
d7040cdb 9269
ce2cded5
L
9270*)
9271 dynamic_linker=no
9272 ;;
9273esac
9274echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9275echo "${ECHO_T}$dynamic_linker" >&6
9276test "$dynamic_linker" = no && can_build_shared=no
d7040cdb 9277
ce2cded5
L
9278variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9279if test "$GCC" = yes; then
9280 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
d7040cdb 9281fi
d7040cdb
SE
9282
9283
d7040cdb 9284
d7040cdb 9285
d7040cdb 9286
d7040cdb 9287
d7040cdb 9288
d7040cdb 9289
d7040cdb 9290
d7040cdb 9291
d7040cdb 9292
d7040cdb
SE
9293
9294
d7040cdb 9295
d7040cdb 9296
d7040cdb 9297
d7040cdb
SE
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
d7040cdb
SE
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
d7040cdb 9327
d7040cdb 9328
d7040cdb 9329
d7040cdb 9330
d7040cdb
SE
9331
9332
9333
9334
d7040cdb 9335
d7040cdb
SE
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
d7040cdb
SE
9349
9350
9351
9352
d7040cdb
SE
9353
9354
9355
d7040cdb
SE
9356
9357
d7040cdb 9358
d7040cdb 9359
d7040cdb 9360
ce2cded5
L
9361
9362
9363
9364
9365
9366
9367
9368
9369 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9370echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9371hardcode_action=
9372if test -n "$hardcode_libdir_flag_spec" ||
9373 test -n "$runpath_var" ||
9374 test "X$hardcode_automatic" = "Xyes" ; then
9375
9376 # We can hardcode non-existent directories.
9377 if test "$hardcode_direct" != no &&
9378 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9379 # have to relink, otherwise we might link with an installed library
9380 # when we should be linking with a yet-to-be-installed one
9381 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9382 test "$hardcode_minus_L" != no; then
9383 # Linking always hardcodes the temporary library directory.
9384 hardcode_action=relink
9385 else
9386 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9387 hardcode_action=immediate
9388 fi
d7040cdb 9389else
ce2cded5
L
9390 # We cannot hardcode anything, or else we can only hardcode existing
9391 # directories.
9392 hardcode_action=unsupported
d7040cdb 9393fi
ce2cded5
L
9394echo "$as_me:$LINENO: result: $hardcode_action" >&5
9395echo "${ECHO_T}$hardcode_action" >&6
d7040cdb 9396
ce2cded5
L
9397if test "$hardcode_action" = relink ||
9398 test "$inherit_rpath" = yes; then
9399 # Fast installation is not supported
9400 enable_fast_install=no
9401elif test "$shlibpath_overrides_runpath" = yes ||
9402 test "$enable_shared" = no; then
9403 # Fast installation is not necessary
9404 enable_fast_install=needless
d7040cdb
SE
9405fi
9406
d7040cdb 9407
d7040cdb 9408
0ab6f085 9409
0ab6f085 9410
0ab6f085 9411
ce2cded5
L
9412 if test "x$enable_dlopen" != xyes; then
9413 enable_dlopen=unknown
9414 enable_dlopen_self=unknown
9415 enable_dlopen_self_static=unknown
d7040cdb 9416else
ce2cded5
L
9417 lt_cv_dlopen=no
9418 lt_cv_dlopen_libs=
d7040cdb 9419
ce2cded5
L
9420 case $host_os in
9421 beos*)
9422 lt_cv_dlopen="load_add_on"
9423 lt_cv_dlopen_libs=
9424 lt_cv_dlopen_self=yes
9425 ;;
d7040cdb 9426
ce2cded5
L
9427 mingw* | pw32*)
9428 lt_cv_dlopen="LoadLibrary"
9429 lt_cv_dlopen_libs=
9430 ;;
9431
9432 cygwin*)
9433 lt_cv_dlopen="dlopen"
9434 lt_cv_dlopen_libs=
9435 ;;
9436
9437 darwin*)
9438 # if libdl is installed we need to link against it
9439 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9440echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9441if test "${ac_cv_lib_dl_dlopen+set}" = set; then
d7040cdb
SE
9442 echo $ECHO_N "(cached) $ECHO_C" >&6
9443else
ce2cded5
L
9444 ac_check_lib_save_LIBS=$LIBS
9445LIBS="-ldl $LIBS"
9446cat >conftest.$ac_ext <<_ACEOF
9447/* confdefs.h. */
9448_ACEOF
9449cat confdefs.h >>conftest.$ac_ext
9450cat >>conftest.$ac_ext <<_ACEOF
9451/* end confdefs.h. */
9452
9453/* Override any gcc2 internal prototype to avoid an error. */
9454#ifdef __cplusplus
9455extern "C"
9456#endif
9457/* We use char because int might match the return type of a gcc2
9458 builtin and then its argument prototype would still apply. */
9459char dlopen ();
9460int
9461main ()
9462{
9463dlopen ();
9464 ;
9465 return 0;
9466}
9467_ACEOF
9468rm -f conftest.$ac_objext conftest$ac_exeext
9469if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9470 (eval $ac_link) 2>conftest.er1
9471 ac_status=$?
9472 grep -v '^ *+' conftest.er1 >conftest.err
9473 rm -f conftest.er1
9474 cat conftest.err >&5
9475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9476 (exit $ac_status); } &&
9477 { ac_try='test -z "$ac_c_werror_flag"
9478 || test ! -s conftest.err'
9479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9480 (eval $ac_try) 2>&5
9481 ac_status=$?
9482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9483 (exit $ac_status); }; } &&
9484 { ac_try='test -s conftest$ac_exeext'
9485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9486 (eval $ac_try) 2>&5
9487 ac_status=$?
9488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9489 (exit $ac_status); }; }; then
9490 ac_cv_lib_dl_dlopen=yes
9491else
9492 echo "$as_me: failed program was:" >&5
9493sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 9494
ce2cded5 9495ac_cv_lib_dl_dlopen=no
d7040cdb 9496fi
ce2cded5
L
9497rm -f conftest.err conftest.$ac_objext \
9498 conftest$ac_exeext conftest.$ac_ext
9499LIBS=$ac_check_lib_save_LIBS
d7040cdb 9500fi
ce2cded5
L
9501echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9502echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9503if test $ac_cv_lib_dl_dlopen = yes; then
9504 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d7040cdb 9505else
d7040cdb 9506
ce2cded5
L
9507 lt_cv_dlopen="dyld"
9508 lt_cv_dlopen_libs=
9509 lt_cv_dlopen_self=yes
9510
d7040cdb 9511fi
ce2cded5
L
9512
9513 ;;
9514
9515 *)
9516 echo "$as_me:$LINENO: checking for shl_load" >&5
9517echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9518if test "${ac_cv_func_shl_load+set}" = set; then
d7040cdb
SE
9519 echo $ECHO_N "(cached) $ECHO_C" >&6
9520else
ce2cded5
L
9521 cat >conftest.$ac_ext <<_ACEOF
9522/* confdefs.h. */
9523_ACEOF
9524cat confdefs.h >>conftest.$ac_ext
9525cat >>conftest.$ac_ext <<_ACEOF
9526/* end confdefs.h. */
9527/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9528 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9529#define shl_load innocuous_shl_load
d7040cdb 9530
ce2cded5
L
9531/* System header to define __stub macros and hopefully few prototypes,
9532 which can conflict with char shl_load (); below.
9533 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9534 <limits.h> exists even on freestanding compilers. */
d7040cdb 9535
ce2cded5
L
9536#ifdef __STDC__
9537# include <limits.h>
9538#else
9539# include <assert.h>
9540#endif
d7040cdb 9541
ce2cded5 9542#undef shl_load
d7040cdb 9543
ce2cded5
L
9544/* Override any gcc2 internal prototype to avoid an error. */
9545#ifdef __cplusplus
9546extern "C"
9547{
9548#endif
9549/* We use char because int might match the return type of a gcc2
9550 builtin and then its argument prototype would still apply. */
9551char shl_load ();
9552/* The GNU C library defines this for functions which it implements
9553 to always fail with ENOSYS. Some functions are actually named
9554 something starting with __ and the normal name is an alias. */
9555#if defined (__stub_shl_load) || defined (__stub___shl_load)
9556choke me
9557#else
9558char (*f) () = shl_load;
9559#endif
9560#ifdef __cplusplus
9561}
9562#endif
d7040cdb 9563
ce2cded5
L
9564int
9565main ()
9566{
9567return f != shl_load;
9568 ;
9569 return 0;
9570}
9571_ACEOF
9572rm -f conftest.$ac_objext conftest$ac_exeext
9573if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9574 (eval $ac_link) 2>conftest.er1
9575 ac_status=$?
9576 grep -v '^ *+' conftest.er1 >conftest.err
9577 rm -f conftest.er1
9578 cat conftest.err >&5
9579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9580 (exit $ac_status); } &&
9581 { ac_try='test -z "$ac_c_werror_flag"
9582 || test ! -s conftest.err'
9583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9584 (eval $ac_try) 2>&5
9585 ac_status=$?
9586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9587 (exit $ac_status); }; } &&
9588 { ac_try='test -s conftest$ac_exeext'
9589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9590 (eval $ac_try) 2>&5
9591 ac_status=$?
9592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9593 (exit $ac_status); }; }; then
9594 ac_cv_func_shl_load=yes
9595else
9596 echo "$as_me: failed program was:" >&5
9597sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 9598
ce2cded5
L
9599ac_cv_func_shl_load=no
9600fi
9601rm -f conftest.err conftest.$ac_objext \
9602 conftest$ac_exeext conftest.$ac_ext
9603fi
9604echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9605echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9606if test $ac_cv_func_shl_load = yes; then
9607 lt_cv_dlopen="shl_load"
9608else
9609 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9610echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9611if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9612 echo $ECHO_N "(cached) $ECHO_C" >&6
9613else
9614 ac_check_lib_save_LIBS=$LIBS
9615LIBS="-ldld $LIBS"
9616cat >conftest.$ac_ext <<_ACEOF
9617/* confdefs.h. */
9618_ACEOF
9619cat confdefs.h >>conftest.$ac_ext
9620cat >>conftest.$ac_ext <<_ACEOF
9621/* end confdefs.h. */
d7040cdb 9622
ce2cded5
L
9623/* Override any gcc2 internal prototype to avoid an error. */
9624#ifdef __cplusplus
9625extern "C"
9626#endif
9627/* We use char because int might match the return type of a gcc2
9628 builtin and then its argument prototype would still apply. */
9629char shl_load ();
9630int
9631main ()
9632{
9633shl_load ();
9634 ;
9635 return 0;
9636}
9637_ACEOF
9638rm -f conftest.$ac_objext conftest$ac_exeext
9639if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9640 (eval $ac_link) 2>conftest.er1
d7040cdb 9641 ac_status=$?
ce2cded5
L
9642 grep -v '^ *+' conftest.er1 >conftest.err
9643 rm -f conftest.er1
9644 cat conftest.err >&5
d7040cdb 9645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9646 (exit $ac_status); } &&
9647 { ac_try='test -z "$ac_c_werror_flag"
9648 || test ! -s conftest.err'
9649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9650 (eval $ac_try) 2>&5
d7040cdb
SE
9651 ac_status=$?
9652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9653 (exit $ac_status); }; } &&
9654 { ac_try='test -s conftest$ac_exeext'
9655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9656 (eval $ac_try) 2>&5
d7040cdb
SE
9657 ac_status=$?
9658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9659 (exit $ac_status); }; }; then
9660 ac_cv_lib_dld_shl_load=yes
9661else
9662 echo "$as_me: failed program was:" >&5
9663sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 9664
ce2cded5
L
9665ac_cv_lib_dld_shl_load=no
9666fi
9667rm -f conftest.err conftest.$ac_objext \
9668 conftest$ac_exeext conftest.$ac_ext
9669LIBS=$ac_check_lib_save_LIBS
9670fi
9671echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9672echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9673if test $ac_cv_lib_dld_shl_load = yes; then
9674 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9675else
9676 echo "$as_me:$LINENO: checking for dlopen" >&5
9677echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9678if test "${ac_cv_func_dlopen+set}" = set; then
d7040cdb
SE
9679 echo $ECHO_N "(cached) $ECHO_C" >&6
9680else
9681 cat >conftest.$ac_ext <<_ACEOF
9682/* confdefs.h. */
9683_ACEOF
9684cat confdefs.h >>conftest.$ac_ext
9685cat >>conftest.$ac_ext <<_ACEOF
9686/* end confdefs.h. */
ce2cded5
L
9687/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9688 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9689#define dlopen innocuous_dlopen
9690
9691/* System header to define __stub macros and hopefully few prototypes,
9692 which can conflict with char dlopen (); below.
9693 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9694 <limits.h> exists even on freestanding compilers. */
9695
9696#ifdef __STDC__
9697# include <limits.h>
9698#else
9699# include <assert.h>
9700#endif
d7040cdb 9701
ce2cded5
L
9702#undef dlopen
9703
9704/* Override any gcc2 internal prototype to avoid an error. */
9705#ifdef __cplusplus
9706extern "C"
d7040cdb 9707{
ce2cded5
L
9708#endif
9709/* We use char because int might match the return type of a gcc2
9710 builtin and then its argument prototype would still apply. */
9711char dlopen ();
9712/* The GNU C library defines this for functions which it implements
9713 to always fail with ENOSYS. Some functions are actually named
9714 something starting with __ and the normal name is an alias. */
9715#if defined (__stub_dlopen) || defined (__stub___dlopen)
9716choke me
9717#else
9718char (*f) () = dlopen;
9719#endif
9720#ifdef __cplusplus
9721}
d7040cdb
SE
9722#endif
9723
ce2cded5
L
9724int
9725main ()
9726{
9727return f != dlopen;
d7040cdb
SE
9728 ;
9729 return 0;
9730}
9731_ACEOF
ce2cded5
L
9732rm -f conftest.$ac_objext conftest$ac_exeext
9733if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9734 (eval $ac_link) 2>conftest.er1
d7040cdb
SE
9735 ac_status=$?
9736 grep -v '^ *+' conftest.er1 >conftest.err
9737 rm -f conftest.er1
9738 cat conftest.err >&5
9739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0ab6f085
AM
9740 (exit $ac_status); } &&
9741 { ac_try='test -z "$ac_c_werror_flag"
9742 || test ! -s conftest.err'
9743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9744 (eval $ac_try) 2>&5
9745 ac_status=$?
9746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747 (exit $ac_status); }; } &&
ce2cded5 9748 { ac_try='test -s conftest$ac_exeext'
0ab6f085
AM
9749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9750 (eval $ac_try) 2>&5
9751 ac_status=$?
9752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753 (exit $ac_status); }; }; then
ce2cded5 9754 ac_cv_func_dlopen=yes
d7040cdb
SE
9755else
9756 echo "$as_me: failed program was:" >&5
9757sed 's/^/| /' conftest.$ac_ext >&5
9758
ce2cded5 9759ac_cv_func_dlopen=no
d7040cdb 9760fi
ce2cded5
L
9761rm -f conftest.err conftest.$ac_objext \
9762 conftest$ac_exeext conftest.$ac_ext
d7040cdb 9763fi
ce2cded5
L
9764echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9765echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9766if test $ac_cv_func_dlopen = yes; then
9767 lt_cv_dlopen="dlopen"
9768else
9769 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9770echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9771if test "${ac_cv_lib_dl_dlopen+set}" = set; then
d7040cdb
SE
9772 echo $ECHO_N "(cached) $ECHO_C" >&6
9773else
ce2cded5
L
9774 ac_check_lib_save_LIBS=$LIBS
9775LIBS="-ldl $LIBS"
9776cat >conftest.$ac_ext <<_ACEOF
d7040cdb
SE
9777/* confdefs.h. */
9778_ACEOF
9779cat confdefs.h >>conftest.$ac_ext
9780cat >>conftest.$ac_ext <<_ACEOF
9781/* end confdefs.h. */
9782
ce2cded5
L
9783/* Override any gcc2 internal prototype to avoid an error. */
9784#ifdef __cplusplus
9785extern "C"
9786#endif
9787/* We use char because int might match the return type of a gcc2
9788 builtin and then its argument prototype would still apply. */
9789char dlopen ();
d7040cdb
SE
9790int
9791main ()
9792{
ce2cded5 9793dlopen ();
d7040cdb
SE
9794 ;
9795 return 0;
9796}
9797_ACEOF
ce2cded5
L
9798rm -f conftest.$ac_objext conftest$ac_exeext
9799if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9800 (eval $ac_link) 2>conftest.er1
d7040cdb
SE
9801 ac_status=$?
9802 grep -v '^ *+' conftest.er1 >conftest.err
9803 rm -f conftest.er1
9804 cat conftest.err >&5
9805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0ab6f085
AM
9806 (exit $ac_status); } &&
9807 { ac_try='test -z "$ac_c_werror_flag"
9808 || test ! -s conftest.err'
9809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9810 (eval $ac_try) 2>&5
d7040cdb
SE
9811 ac_status=$?
9812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0ab6f085 9813 (exit $ac_status); }; } &&
ce2cded5 9814 { ac_try='test -s conftest$ac_exeext'
0ab6f085
AM
9815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9816 (eval $ac_try) 2>&5
d7040cdb
SE
9817 ac_status=$?
9818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0ab6f085 9819 (exit $ac_status); }; }; then
ce2cded5 9820 ac_cv_lib_dl_dlopen=yes
d7040cdb
SE
9821else
9822 echo "$as_me: failed program was:" >&5
9823sed 's/^/| /' conftest.$ac_ext >&5
9824
ce2cded5 9825ac_cv_lib_dl_dlopen=no
1b9750d6 9826fi
ce2cded5
L
9827rm -f conftest.err conftest.$ac_objext \
9828 conftest$ac_exeext conftest.$ac_ext
9829LIBS=$ac_check_lib_save_LIBS
d7040cdb 9830fi
ce2cded5
L
9831echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9832echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9833if test $ac_cv_lib_dl_dlopen = yes; then
9834 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d7040cdb 9835else
ce2cded5
L
9836 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9837echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9838if test "${ac_cv_lib_svld_dlopen+set}" = set; then
d7040cdb
SE
9839 echo $ECHO_N "(cached) $ECHO_C" >&6
9840else
ce2cded5
L
9841 ac_check_lib_save_LIBS=$LIBS
9842LIBS="-lsvld $LIBS"
d7040cdb
SE
9843cat >conftest.$ac_ext <<_ACEOF
9844/* confdefs.h. */
9845_ACEOF
9846cat confdefs.h >>conftest.$ac_ext
9847cat >>conftest.$ac_ext <<_ACEOF
9848/* end confdefs.h. */
d7040cdb 9849
ce2cded5
L
9850/* Override any gcc2 internal prototype to avoid an error. */
9851#ifdef __cplusplus
9852extern "C"
9853#endif
9854/* We use char because int might match the return type of a gcc2
9855 builtin and then its argument prototype would still apply. */
9856char dlopen ();
d7040cdb
SE
9857int
9858main ()
9859{
ce2cded5 9860dlopen ();
d7040cdb
SE
9861 ;
9862 return 0;
9863}
9864_ACEOF
ce2cded5
L
9865rm -f conftest.$ac_objext conftest$ac_exeext
9866if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9867 (eval $ac_link) 2>conftest.er1
0ab6f085
AM
9868 ac_status=$?
9869 grep -v '^ *+' conftest.er1 >conftest.err
9870 rm -f conftest.er1
9871 cat conftest.err >&5
9872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873 (exit $ac_status); } &&
9874 { ac_try='test -z "$ac_c_werror_flag"
9875 || test ! -s conftest.err'
9876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9877 (eval $ac_try) 2>&5
9878 ac_status=$?
9879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880 (exit $ac_status); }; } &&
ce2cded5 9881 { ac_try='test -s conftest$ac_exeext'
0ab6f085
AM
9882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9883 (eval $ac_try) 2>&5
9884 ac_status=$?
9885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886 (exit $ac_status); }; }; then
ce2cded5 9887 ac_cv_lib_svld_dlopen=yes
0ab6f085
AM
9888else
9889 echo "$as_me: failed program was:" >&5
9890sed 's/^/| /' conftest.$ac_ext >&5
9891
ce2cded5 9892ac_cv_lib_svld_dlopen=no
0ab6f085 9893fi
ce2cded5
L
9894rm -f conftest.err conftest.$ac_objext \
9895 conftest$ac_exeext conftest.$ac_ext
9896LIBS=$ac_check_lib_save_LIBS
0ab6f085 9897fi
ce2cded5
L
9898echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9899echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9900if test $ac_cv_lib_svld_dlopen = yes; then
9901 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9902else
9903 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9904echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9905if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9906 echo $ECHO_N "(cached) $ECHO_C" >&6
9907else
9908 ac_check_lib_save_LIBS=$LIBS
9909LIBS="-ldld $LIBS"
9910cat >conftest.$ac_ext <<_ACEOF
0ab6f085
AM
9911/* confdefs.h. */
9912_ACEOF
9913cat confdefs.h >>conftest.$ac_ext
9914cat >>conftest.$ac_ext <<_ACEOF
9915/* end confdefs.h. */
ce2cded5
L
9916
9917/* Override any gcc2 internal prototype to avoid an error. */
9918#ifdef __cplusplus
9919extern "C"
9920#endif
9921/* We use char because int might match the return type of a gcc2
9922 builtin and then its argument prototype would still apply. */
9923char dld_link ();
0ab6f085
AM
9924int
9925main ()
9926{
ce2cded5 9927dld_link ();
0ab6f085
AM
9928 ;
9929 return 0;
9930}
9931_ACEOF
ce2cded5
L
9932rm -f conftest.$ac_objext conftest$ac_exeext
9933if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9934 (eval $ac_link) 2>conftest.er1
0ab6f085
AM
9935 ac_status=$?
9936 grep -v '^ *+' conftest.er1 >conftest.err
9937 rm -f conftest.er1
9938 cat conftest.err >&5
9939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940 (exit $ac_status); } &&
9941 { ac_try='test -z "$ac_c_werror_flag"
9942 || test ! -s conftest.err'
9943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9944 (eval $ac_try) 2>&5
9945 ac_status=$?
9946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9947 (exit $ac_status); }; } &&
ce2cded5 9948 { ac_try='test -s conftest$ac_exeext'
0ab6f085
AM
9949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9950 (eval $ac_try) 2>&5
9951 ac_status=$?
9952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953 (exit $ac_status); }; }; then
ce2cded5 9954 ac_cv_lib_dld_dld_link=yes
0ab6f085
AM
9955else
9956 echo "$as_me: failed program was:" >&5
9957sed 's/^/| /' conftest.$ac_ext >&5
9958
ce2cded5 9959ac_cv_lib_dld_dld_link=no
0ab6f085 9960fi
ce2cded5
L
9961rm -f conftest.err conftest.$ac_objext \
9962 conftest$ac_exeext conftest.$ac_ext
9963LIBS=$ac_check_lib_save_LIBS
9964fi
9965echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9966echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9967if test $ac_cv_lib_dld_dld_link = yes; then
9968 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9969fi
9970
9971
9972fi
9973
9974
9975fi
9976
9977
9978fi
9979
9980
9981fi
9982
9983
9984fi
9985
9986 ;;
9987 esac
9988
9989 if test "x$lt_cv_dlopen" != xno; then
9990 enable_dlopen=yes
9991 else
9992 enable_dlopen=no
9993 fi
9994
9995 case $lt_cv_dlopen in
9996 dlopen)
9997 save_CPPFLAGS="$CPPFLAGS"
9998 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9999
10000 save_LDFLAGS="$LDFLAGS"
10001 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10002
10003 save_LIBS="$LIBS"
10004 LIBS="$lt_cv_dlopen_libs $LIBS"
10005
10006 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10007echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10008if test "${lt_cv_dlopen_self+set}" = set; then
10009 echo $ECHO_N "(cached) $ECHO_C" >&6
10010else
10011 if test "$cross_compiling" = yes; then :
10012 lt_cv_dlopen_self=cross
10013else
10014 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10015 lt_status=$lt_dlunknown
10016 cat > conftest.$ac_ext <<_LT_EOF
10017#line 10017 "configure"
10018#include "confdefs.h"
10019
10020#if HAVE_DLFCN_H
10021#include <dlfcn.h>
10022#endif
10023
10024#include <stdio.h>
10025
10026#ifdef RTLD_GLOBAL
10027# define LT_DLGLOBAL RTLD_GLOBAL
10028#else
10029# ifdef DL_GLOBAL
10030# define LT_DLGLOBAL DL_GLOBAL
10031# else
10032# define LT_DLGLOBAL 0
10033# endif
10034#endif
10035
10036/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10037 find out it does not work in some platform. */
10038#ifndef LT_DLLAZY_OR_NOW
10039# ifdef RTLD_LAZY
10040# define LT_DLLAZY_OR_NOW RTLD_LAZY
10041# else
10042# ifdef DL_LAZY
10043# define LT_DLLAZY_OR_NOW DL_LAZY
10044# else
10045# ifdef RTLD_NOW
10046# define LT_DLLAZY_OR_NOW RTLD_NOW
10047# else
10048# ifdef DL_NOW
10049# define LT_DLLAZY_OR_NOW DL_NOW
10050# else
10051# define LT_DLLAZY_OR_NOW 0
10052# endif
10053# endif
10054# endif
10055# endif
10056#endif
10057
10058#ifdef __cplusplus
10059extern "C" void exit (int);
10060#endif
10061
10062void fnord() { int i=42;}
10063int main ()
0ab6f085 10064{
ce2cded5
L
10065 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10066 int status = $lt_dlunknown;
10067
10068 if (self)
10069 {
10070 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10071 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10072 /* dlclose (self); */
10073 }
10074 else
10075 puts (dlerror ());
10076
10077 exit (status);
10078}
10079_LT_EOF
10080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10081 (eval $ac_link) 2>&5
10082 ac_status=$?
10083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10085 (./conftest; exit; ) >&5 2>/dev/null
10086 lt_status=$?
10087 case x$lt_status in
10088 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10089 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10090 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10091 esac
10092 else :
10093 # compilation failed
10094 lt_cv_dlopen_self=no
10095 fi
10096fi
10097rm -fr conftest*
10098
10099
10100fi
10101echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10102echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10103
10104 if test "x$lt_cv_dlopen_self" = xyes; then
10105 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10106 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10107echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10108if test "${lt_cv_dlopen_self_static+set}" = set; then
10109 echo $ECHO_N "(cached) $ECHO_C" >&6
10110else
10111 if test "$cross_compiling" = yes; then :
10112 lt_cv_dlopen_self_static=cross
10113else
10114 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10115 lt_status=$lt_dlunknown
10116 cat > conftest.$ac_ext <<_LT_EOF
10117#line 10117 "configure"
10118#include "confdefs.h"
10119
10120#if HAVE_DLFCN_H
10121#include <dlfcn.h>
10122#endif
10123
10124#include <stdio.h>
10125
10126#ifdef RTLD_GLOBAL
10127# define LT_DLGLOBAL RTLD_GLOBAL
10128#else
10129# ifdef DL_GLOBAL
10130# define LT_DLGLOBAL DL_GLOBAL
10131# else
10132# define LT_DLGLOBAL 0
10133# endif
10134#endif
10135
10136/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10137 find out it does not work in some platform. */
10138#ifndef LT_DLLAZY_OR_NOW
10139# ifdef RTLD_LAZY
10140# define LT_DLLAZY_OR_NOW RTLD_LAZY
10141# else
10142# ifdef DL_LAZY
10143# define LT_DLLAZY_OR_NOW DL_LAZY
10144# else
10145# ifdef RTLD_NOW
10146# define LT_DLLAZY_OR_NOW RTLD_NOW
10147# else
10148# ifdef DL_NOW
10149# define LT_DLLAZY_OR_NOW DL_NOW
10150# else
10151# define LT_DLLAZY_OR_NOW 0
10152# endif
10153# endif
10154# endif
10155# endif
10156#endif
10157
10158#ifdef __cplusplus
10159extern "C" void exit (int);
10160#endif
10161
10162void fnord() { int i=42;}
10163int main ()
10164{
10165 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10166 int status = $lt_dlunknown;
10167
10168 if (self)
10169 {
10170 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10171 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10172 /* dlclose (self); */
10173 }
10174 else
10175 puts (dlerror ());
10176
10177 exit (status);
0ab6f085 10178}
ce2cded5
L
10179_LT_EOF
10180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10181 (eval $ac_link) 2>&5
0ab6f085
AM
10182 ac_status=$?
10183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
10184 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10185 (./conftest; exit; ) >&5 2>/dev/null
10186 lt_status=$?
10187 case x$lt_status in
10188 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10189 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10190 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10191 esac
10192 else :
10193 # compilation failed
10194 lt_cv_dlopen_self_static=no
10195 fi
10196fi
10197rm -fr conftest*
10198
d7040cdb
SE
10199
10200fi
ce2cded5
L
10201echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10202echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10203 fi
10204
10205 CPPFLAGS="$save_CPPFLAGS"
10206 LDFLAGS="$save_LDFLAGS"
10207 LIBS="$save_LIBS"
10208 ;;
10209 esac
10210
10211 case $lt_cv_dlopen_self in
10212 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10213 *) enable_dlopen_self=unknown ;;
10214 esac
10215
10216 case $lt_cv_dlopen_self_static in
10217 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10218 *) enable_dlopen_self_static=unknown ;;
10219 esac
d7040cdb
SE
10220fi
10221
ce2cded5
L
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238striplib=
10239old_striplib=
10240echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10241echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10242if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10243 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10244 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10245 echo "$as_me:$LINENO: result: yes" >&5
10246echo "${ECHO_T}yes" >&6
0ab6f085 10247else
ce2cded5
L
10248# FIXME - insert some real tests, host_os isn't really good enough
10249 case $host_os in
10250 darwin*)
10251 if test -n "$STRIP" ; then
10252 striplib="$STRIP -x"
10253 old_striplib="$STRIP -S"
10254 echo "$as_me:$LINENO: result: yes" >&5
10255echo "${ECHO_T}yes" >&6
10256 else
10257 echo "$as_me:$LINENO: result: no" >&5
10258echo "${ECHO_T}no" >&6
10259 fi
10260 ;;
10261 *)
10262 echo "$as_me:$LINENO: result: no" >&5
10263echo "${ECHO_T}no" >&6
10264 ;;
10265 esac
10266fi
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279 # Report which library types will actually be built
10280 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10281echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10282 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10283echo "${ECHO_T}$can_build_shared" >&6
10284
10285 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10286echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10287 test "$can_build_shared" = "no" && enable_shared=no
10288
10289 # On AIX, shared libraries and static libraries use the same namespace, and
10290 # are all built from PIC.
10291 case $host_os in
10292 aix3*)
10293 test "$enable_shared" = yes && enable_static=no
10294 if test -n "$RANLIB"; then
10295 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10296 postinstall_cmds='$RANLIB $lib'
10297 fi
10298 ;;
10299
10300 aix4* | aix5*)
10301 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10302 test "$enable_shared" = yes && enable_static=no
10303 fi
10304 ;;
10305 esac
10306 echo "$as_me:$LINENO: result: $enable_shared" >&5
10307echo "${ECHO_T}$enable_shared" >&6
10308
10309 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10310echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10311 # Make sure either enable_shared or enable_static is yes.
10312 test "$enable_shared" = yes || enable_static=yes
10313 echo "$as_me:$LINENO: result: $enable_static" >&5
10314echo "${ECHO_T}$enable_static" >&6
10315
10316
10317
d7040cdb 10318
0ab6f085 10319fi
d7040cdb
SE
10320ac_ext=c
10321ac_cpp='$CPP $CPPFLAGS'
10322ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10323ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10324ac_compiler_gnu=$ac_cv_c_compiler_gnu
10325
ce2cded5 10326CC="$lt_save_CC"
0ab6f085 10327
0ab6f085
AM
10328
10329
d7040cdb
SE
10330
10331
d7040cdb 10332
d7040cdb 10333
d7040cdb 10334
ce2cded5
L
10335
10336
10337
10338
10339
10340 ac_config_commands="$ac_config_commands libtool"
10341
10342
10343
10344
10345# Only expand once:
10346
d7040cdb
SE
10347
10348
10349
10350for ac_func in setmode
10351do
10352as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
0ab6f085
AM
10353echo "$as_me:$LINENO: checking for $ac_func" >&5
10354echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10355if eval "test \"\${$as_ac_var+set}\" = set"; then
d7040cdb
SE
10356 echo $ECHO_N "(cached) $ECHO_C" >&6
10357else
10358 cat >conftest.$ac_ext <<_ACEOF
10359/* confdefs.h. */
10360_ACEOF
10361cat confdefs.h >>conftest.$ac_ext
10362cat >>conftest.$ac_ext <<_ACEOF
10363/* end confdefs.h. */
10364/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10365 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10366#define $ac_func innocuous_$ac_func
10367
10368/* System header to define __stub macros and hopefully few prototypes,
10369 which can conflict with char $ac_func (); below.
10370 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10371 <limits.h> exists even on freestanding compilers. */
10372
10373#ifdef __STDC__
10374# include <limits.h>
10375#else
10376# include <assert.h>
10377#endif
10378
10379#undef $ac_func
10380
0ab6f085 10381/* Override any gcc2 internal prototype to avoid an error. */
d7040cdb
SE
10382#ifdef __cplusplus
10383extern "C"
0ab6f085 10384{
d7040cdb 10385#endif
0ab6f085
AM
10386/* We use char because int might match the return type of a gcc2
10387 builtin and then its argument prototype would still apply. */
d7040cdb
SE
10388char $ac_func ();
10389/* The GNU C library defines this for functions which it implements
10390 to always fail with ENOSYS. Some functions are actually named
10391 something starting with __ and the normal name is an alias. */
0ab6f085 10392#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
d7040cdb 10393choke me
0ab6f085
AM
10394#else
10395char (*f) () = $ac_func;
10396#endif
10397#ifdef __cplusplus
10398}
d7040cdb
SE
10399#endif
10400
10401int
10402main ()
10403{
0ab6f085 10404return f != $ac_func;
d7040cdb
SE
10405 ;
10406 return 0;
10407}
10408_ACEOF
10409rm -f conftest.$ac_objext conftest$ac_exeext
0ab6f085
AM
10410if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10411 (eval $ac_link) 2>conftest.er1
d7040cdb
SE
10412 ac_status=$?
10413 grep -v '^ *+' conftest.er1 >conftest.err
10414 rm -f conftest.er1
10415 cat conftest.err >&5
10416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0ab6f085
AM
10417 (exit $ac_status); } &&
10418 { ac_try='test -z "$ac_c_werror_flag"
10419 || test ! -s conftest.err'
10420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10421 (eval $ac_try) 2>&5
10422 ac_status=$?
10423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424 (exit $ac_status); }; } &&
10425 { ac_try='test -s conftest$ac_exeext'
10426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10427 (eval $ac_try) 2>&5
10428 ac_status=$?
10429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10430 (exit $ac_status); }; }; then
d7040cdb
SE
10431 eval "$as_ac_var=yes"
10432else
10433 echo "$as_me: failed program was:" >&5
10434sed 's/^/| /' conftest.$ac_ext >&5
10435
0ab6f085 10436eval "$as_ac_var=no"
d7040cdb 10437fi
0ab6f085 10438rm -f conftest.err conftest.$ac_objext \
d7040cdb
SE
10439 conftest$ac_exeext conftest.$ac_ext
10440fi
0ab6f085
AM
10441echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10442echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
d7040cdb
SE
10443if test `eval echo '${'$as_ac_var'}'` = yes; then
10444 cat >>confdefs.h <<_ACEOF
10445#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10446_ACEOF
10447
10448fi
10449done
10450
10451
19aec961 10452ALL_LINGUAS="fr tr sv es id da pt_BR de vi rw ga ms fi"
d7040cdb
SE
10453# If we haven't got the data from the intl directory,
10454# assume NLS is disabled.
10455USE_NLS=no
10456LIBINTL=
10457LIBINTL_DEP=
10458INCINTL=
10459XGETTEXT=
10460GMSGFMT=
10461POSUB=
10462
10463if test -f ../intl/config.intl; then
10464 . ../intl/config.intl
10465fi
0ab6f085
AM
10466echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10467echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
d7040cdb 10468if test x"$USE_NLS" != xyes; then
0ab6f085
AM
10469 echo "$as_me:$LINENO: result: no" >&5
10470echo "${ECHO_T}no" >&6
d7040cdb 10471else
0ab6f085
AM
10472 echo "$as_me:$LINENO: result: yes" >&5
10473echo "${ECHO_T}yes" >&6
d7040cdb
SE
10474
10475cat >>confdefs.h <<\_ACEOF
10476#define ENABLE_NLS 1
10477_ACEOF
10478
10479
0ab6f085
AM
10480 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
10481echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
d7040cdb
SE
10482 # Look for .po and .gmo files in the source directory.
10483 CATALOGS=
10484 XLINGUAS=
10485 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
10486 # If there aren't any .gmo files the shell will give us the
10487 # literal string "../path/to/srcdir/po/*.gmo" which has to be
10488 # weeded out.
10489 case "$cat" in *\**)
10490 continue;;
10491 esac
10492 # The quadruple backslash is collapsed to a double backslash
10493 # by the backticks, then collapsed again by the double quotes,
10494 # leaving us with one backslash in the sed expression (right
10495 # before the dot that mustn't act as a wildcard).
10496 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10497 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
10498 # The user is allowed to set LINGUAS to a list of languages to
10499 # install catalogs for. If it's empty that means "all of them."
10500 if test "x$LINGUAS" = x; then
10501 CATALOGS="$CATALOGS $cat"
10502 XLINGUAS="$XLINGUAS $lang"
10503 else
10504 case "$LINGUAS" in *$lang*)
10505 CATALOGS="$CATALOGS $cat"
10506 XLINGUAS="$XLINGUAS $lang"
10507 ;;
10508 esac
10509 fi
10510 done
10511 LINGUAS="$XLINGUAS"
0ab6f085
AM
10512 echo "$as_me:$LINENO: result: $LINGUAS" >&5
10513echo "${ECHO_T}$LINGUAS" >&6
d7040cdb
SE
10514
10515
10516 DATADIRNAME=share
10517
10518 INSTOBJEXT=.mo
10519
10520 GENCAT=gencat
10521
10522 CATOBJEXT=.gmo
10523
10524fi
10525
10526 MKINSTALLDIRS=
10527 if test -n "$ac_aux_dir"; then
10528 case "$ac_aux_dir" in
10529 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
10530 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
10531 esac
10532 fi
10533 if test -z "$MKINSTALLDIRS"; then
10534 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
10535 fi
10536
10537
10538
0ab6f085
AM
10539 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10540echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10541 # Check whether --enable-nls or --disable-nls was given.
d7040cdb 10542if test "${enable_nls+set}" = set; then
0ab6f085
AM
10543 enableval="$enable_nls"
10544 USE_NLS=$enableval
d7040cdb
SE
10545else
10546 USE_NLS=yes
0ab6f085
AM
10547fi;
10548 echo "$as_me:$LINENO: result: $USE_NLS" >&5
10549echo "${ECHO_T}$USE_NLS" >&6
d7040cdb
SE
10550
10551
10552
10553
10554
10555
10556# Prepare PATH_SEPARATOR.
10557# The user is always right.
10558if test "${PATH_SEPARATOR+set}" != set; then
10559 echo "#! /bin/sh" >conf$$.sh
10560 echo "exit 0" >>conf$$.sh
10561 chmod +x conf$$.sh
10562 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10563 PATH_SEPARATOR=';'
10564 else
10565 PATH_SEPARATOR=:
10566 fi
10567 rm -f conf$$.sh
10568fi
10569
10570# Find out how to test for executable files. Don't use a zero-byte file,
10571# as systems may use methods other than mode bits to determine executability.
10572cat >conf$$.file <<_ASEOF
10573#! /bin/sh
10574exit 0
10575_ASEOF
10576chmod +x conf$$.file
10577if test -x conf$$.file >/dev/null 2>&1; then
10578 ac_executable_p="test -x"
10579else
10580 ac_executable_p="test -f"
10581fi
10582rm -f conf$$.file
10583
10584# Extract the first word of "msgfmt", so it can be a program name with args.
10585set dummy msgfmt; ac_word=$2
0ab6f085
AM
10586echo "$as_me:$LINENO: checking for $ac_word" >&5
10587echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d7040cdb
SE
10588if test "${ac_cv_path_MSGFMT+set}" = set; then
10589 echo $ECHO_N "(cached) $ECHO_C" >&6
10590else
10591 case "$MSGFMT" in
10592 [\\/]* | ?:[\\/]*)
10593 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10594 ;;
10595 *)
10596 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10597 for ac_dir in $PATH; do
10598 IFS="$ac_save_IFS"
10599 test -z "$ac_dir" && ac_dir=.
10600 for ac_exec_ext in '' $ac_executable_extensions; do
10601 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10602 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
10603 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10604 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
10605 break 2
10606 fi
10607 fi
10608 done
10609 done
10610 IFS="$ac_save_IFS"
10611 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
10612 ;;
10613esac
10614fi
10615MSGFMT="$ac_cv_path_MSGFMT"
10616if test "$MSGFMT" != ":"; then
0ab6f085
AM
10617 echo "$as_me:$LINENO: result: $MSGFMT" >&5
10618echo "${ECHO_T}$MSGFMT" >&6
d7040cdb 10619else
0ab6f085
AM
10620 echo "$as_me:$LINENO: result: no" >&5
10621echo "${ECHO_T}no" >&6
d7040cdb
SE
10622fi
10623
10624 # Extract the first word of "gmsgfmt", so it can be a program name with args.
10625set dummy gmsgfmt; ac_word=$2
0ab6f085
AM
10626echo "$as_me:$LINENO: checking for $ac_word" >&5
10627echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d7040cdb
SE
10628if test "${ac_cv_path_GMSGFMT+set}" = set; then
10629 echo $ECHO_N "(cached) $ECHO_C" >&6
10630else
10631 case $GMSGFMT in
10632 [\\/]* | ?:[\\/]*)
10633 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
10634 ;;
10635 *)
10636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10637for as_dir in $PATH
10638do
10639 IFS=$as_save_IFS
10640 test -z "$as_dir" && as_dir=.
10641 for ac_exec_ext in '' $ac_executable_extensions; do
0ab6f085 10642 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb
SE
10643 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
10644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10645 break 2
10646 fi
10647done
10648done
10649
10650 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
10651 ;;
10652esac
10653fi
10654GMSGFMT=$ac_cv_path_GMSGFMT
0ab6f085 10655
d7040cdb 10656if test -n "$GMSGFMT"; then
0ab6f085
AM
10657 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
10658echo "${ECHO_T}$GMSGFMT" >&6
d7040cdb 10659else
0ab6f085
AM
10660 echo "$as_me:$LINENO: result: no" >&5
10661echo "${ECHO_T}no" >&6
d7040cdb
SE
10662fi
10663
10664
10665
10666# Prepare PATH_SEPARATOR.
10667# The user is always right.
10668if test "${PATH_SEPARATOR+set}" != set; then
10669 echo "#! /bin/sh" >conf$$.sh
10670 echo "exit 0" >>conf$$.sh
10671 chmod +x conf$$.sh
10672 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10673 PATH_SEPARATOR=';'
10674 else
10675 PATH_SEPARATOR=:
10676 fi
10677 rm -f conf$$.sh
10678fi
10679
10680# Find out how to test for executable files. Don't use a zero-byte file,
10681# as systems may use methods other than mode bits to determine executability.
10682cat >conf$$.file <<_ASEOF
10683#! /bin/sh
10684exit 0
10685_ASEOF
10686chmod +x conf$$.file
10687if test -x conf$$.file >/dev/null 2>&1; then
10688 ac_executable_p="test -x"
10689else
10690 ac_executable_p="test -f"
10691fi
10692rm -f conf$$.file
10693
10694# Extract the first word of "xgettext", so it can be a program name with args.
10695set dummy xgettext; ac_word=$2
0ab6f085
AM
10696echo "$as_me:$LINENO: checking for $ac_word" >&5
10697echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d7040cdb
SE
10698if test "${ac_cv_path_XGETTEXT+set}" = set; then
10699 echo $ECHO_N "(cached) $ECHO_C" >&6
10700else
10701 case "$XGETTEXT" in
10702 [\\/]* | ?:[\\/]*)
10703 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
10704 ;;
10705 *)
10706 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10707 for ac_dir in $PATH; do
10708 IFS="$ac_save_IFS"
10709 test -z "$ac_dir" && ac_dir=.
10710 for ac_exec_ext in '' $ac_executable_extensions; do
10711 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10712 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
10713 (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
10714 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
10715 break 2
10716 fi
10717 fi
10718 done
10719 done
10720 IFS="$ac_save_IFS"
10721 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
10722 ;;
10723esac
10724fi
10725XGETTEXT="$ac_cv_path_XGETTEXT"
10726if test "$XGETTEXT" != ":"; then
0ab6f085
AM
10727 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
10728echo "${ECHO_T}$XGETTEXT" >&6
d7040cdb 10729else
0ab6f085
AM
10730 echo "$as_me:$LINENO: result: no" >&5
10731echo "${ECHO_T}no" >&6
d7040cdb
SE
10732fi
10733
10734 rm -f messages.po
10735
10736
10737# Prepare PATH_SEPARATOR.
10738# The user is always right.
10739if test "${PATH_SEPARATOR+set}" != set; then
10740 echo "#! /bin/sh" >conf$$.sh
10741 echo "exit 0" >>conf$$.sh
10742 chmod +x conf$$.sh
10743 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10744 PATH_SEPARATOR=';'
10745 else
10746 PATH_SEPARATOR=:
10747 fi
10748 rm -f conf$$.sh
10749fi
10750
10751# Find out how to test for executable files. Don't use a zero-byte file,
10752# as systems may use methods other than mode bits to determine executability.
10753cat >conf$$.file <<_ASEOF
10754#! /bin/sh
10755exit 0
10756_ASEOF
10757chmod +x conf$$.file
10758if test -x conf$$.file >/dev/null 2>&1; then
10759 ac_executable_p="test -x"
10760else
10761 ac_executable_p="test -f"
10762fi
10763rm -f conf$$.file
10764
10765# Extract the first word of "msgmerge", so it can be a program name with args.
10766set dummy msgmerge; ac_word=$2
0ab6f085
AM
10767echo "$as_me:$LINENO: checking for $ac_word" >&5
10768echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d7040cdb
SE
10769if test "${ac_cv_path_MSGMERGE+set}" = set; then
10770 echo $ECHO_N "(cached) $ECHO_C" >&6
10771else
10772 case "$MSGMERGE" in
10773 [\\/]* | ?:[\\/]*)
10774 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
10775 ;;
10776 *)
10777 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10778 for ac_dir in $PATH; do
10779 IFS="$ac_save_IFS"
10780 test -z "$ac_dir" && ac_dir=.
10781 for ac_exec_ext in '' $ac_executable_extensions; do
10782 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10783 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
10784 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
10785 break 2
10786 fi
10787 fi
10788 done
10789 done
10790 IFS="$ac_save_IFS"
10791 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
10792 ;;
10793esac
10794fi
10795MSGMERGE="$ac_cv_path_MSGMERGE"
10796if test "$MSGMERGE" != ":"; then
0ab6f085
AM
10797 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
10798echo "${ECHO_T}$MSGMERGE" >&6
d7040cdb 10799else
0ab6f085
AM
10800 echo "$as_me:$LINENO: result: no" >&5
10801echo "${ECHO_T}no" >&6
d7040cdb
SE
10802fi
10803
10804
10805 if test "$GMSGFMT" != ":"; then
10806 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
10807 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10808 : ;
10809 else
10810 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
0ab6f085
AM
10811 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
10812echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
d7040cdb
SE
10813 GMSGFMT=":"
10814 fi
10815 fi
10816
10817 if test "$XGETTEXT" != ":"; then
10818 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
10819 (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
10820 : ;
10821 else
0ab6f085
AM
10822 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
10823echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
d7040cdb
SE
10824 XGETTEXT=":"
10825 fi
10826 rm -f messages.po
10827 fi
10828
0ab6f085 10829 ac_config_commands="$ac_config_commands default-1"
d7040cdb
SE
10830
10831
10832
0ab6f085
AM
10833echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
10834echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
10835 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
d7040cdb 10836if test "${enable_maintainer_mode+set}" = set; then
0ab6f085
AM
10837 enableval="$enable_maintainer_mode"
10838 USE_MAINTAINER_MODE=$enableval
252b5132 10839else
d7040cdb 10840 USE_MAINTAINER_MODE=no
0ab6f085
AM
10841fi;
10842 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
10843echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
6bf9431b 10844
d7040cdb
SE
10845
10846if test $USE_MAINTAINER_MODE = yes; then
10847 MAINTAINER_MODE_TRUE=
10848 MAINTAINER_MODE_FALSE='#'
10849else
10850 MAINTAINER_MODE_TRUE='#'
10851 MAINTAINER_MODE_FALSE=
20e95c23 10852fi
6bf9431b 10853
d7040cdb
SE
10854 MAINT=$MAINTAINER_MODE_TRUE
10855
10856
10857
10858
10859if false; then
10860 GENINSRC_NEVER_TRUE=
10861 GENINSRC_NEVER_FALSE='#'
10862else
10863 GENINSRC_NEVER_TRUE='#'
10864 GENINSRC_NEVER_FALSE=
20e95c23 10865fi
6bf9431b
BE
10866
10867
10868
10869
10870for ac_header in sys/gmon_out.h
10871do
10872as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
0ab6f085
AM
10873if eval "test \"\${$as_ac_Header+set}\" = set"; then
10874 echo "$as_me:$LINENO: checking for $ac_header" >&5
10875echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10876if eval "test \"\${$as_ac_Header+set}\" = set"; then
6bf9431b
BE
10877 echo $ECHO_N "(cached) $ECHO_C" >&6
10878fi
0ab6f085
AM
10879echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10880echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6bf9431b
BE
10881else
10882 # Is the header compilable?
0ab6f085
AM
10883echo "$as_me:$LINENO: checking $ac_header usability" >&5
10884echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6bf9431b
BE
10885cat >conftest.$ac_ext <<_ACEOF
10886/* confdefs.h. */
10887_ACEOF
10888cat confdefs.h >>conftest.$ac_ext
10889cat >>conftest.$ac_ext <<_ACEOF
10890/* end confdefs.h. */
10891$ac_includes_default
10892#include <$ac_header>
10893_ACEOF
10894rm -f conftest.$ac_objext
0ab6f085
AM
10895if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10896 (eval $ac_compile) 2>conftest.er1
6bf9431b
BE
10897 ac_status=$?
10898 grep -v '^ *+' conftest.er1 >conftest.err
10899 rm -f conftest.er1
10900 cat conftest.err >&5
10901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0ab6f085
AM
10902 (exit $ac_status); } &&
10903 { ac_try='test -z "$ac_c_werror_flag"
10904 || test ! -s conftest.err'
10905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10906 (eval $ac_try) 2>&5
10907 ac_status=$?
10908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10909 (exit $ac_status); }; } &&
10910 { ac_try='test -s conftest.$ac_objext'
10911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10912 (eval $ac_try) 2>&5
10913 ac_status=$?
10914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10915 (exit $ac_status); }; }; then
6bf9431b
BE
10916 ac_header_compiler=yes
10917else
10918 echo "$as_me: failed program was:" >&5
10919sed 's/^/| /' conftest.$ac_ext >&5
10920
0ab6f085 10921ac_header_compiler=no
6bf9431b 10922fi
0ab6f085
AM
10923rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10924echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10925echo "${ECHO_T}$ac_header_compiler" >&6
6bf9431b
BE
10926
10927# Is the header present?
0ab6f085
AM
10928echo "$as_me:$LINENO: checking $ac_header presence" >&5
10929echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6bf9431b
BE
10930cat >conftest.$ac_ext <<_ACEOF
10931/* confdefs.h. */
10932_ACEOF
10933cat confdefs.h >>conftest.$ac_ext
10934cat >>conftest.$ac_ext <<_ACEOF
10935/* end confdefs.h. */
10936#include <$ac_header>
10937_ACEOF
0ab6f085
AM
10938if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10939 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6bf9431b
BE
10940 ac_status=$?
10941 grep -v '^ *+' conftest.er1 >conftest.err
10942 rm -f conftest.er1
10943 cat conftest.err >&5
10944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0ab6f085
AM
10945 (exit $ac_status); } >/dev/null; then
10946 if test -s conftest.err; then
10947 ac_cpp_err=$ac_c_preproc_warn_flag
10948 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10949 else
10950 ac_cpp_err=
10951 fi
10952else
10953 ac_cpp_err=yes
10954fi
10955if test -z "$ac_cpp_err"; then
6bf9431b
BE
10956 ac_header_preproc=yes
10957else
10958 echo "$as_me: failed program was:" >&5
10959sed 's/^/| /' conftest.$ac_ext >&5
10960
10961 ac_header_preproc=no
10962fi
10963rm -f conftest.err conftest.$ac_ext
0ab6f085
AM
10964echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10965echo "${ECHO_T}$ac_header_preproc" >&6
6bf9431b
BE
10966
10967# So? What about this header?
10968case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10969 yes:no: )
10970 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10971echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10972 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10973echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10974 ac_header_preproc=yes
10975 ;;
10976 no:yes:* )
10977 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10978echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10979 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10980echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10981 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10982echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10983 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10984echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10985 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10986echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10987 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10988echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
0ab6f085
AM
10989 (
10990 cat <<\_ASBOX
10991## ------------------------------------------ ##
10992## Report this to the AC_PACKAGE_NAME lists. ##
10993## ------------------------------------------ ##
10994_ASBOX
10995 ) |
10996 sed "s/^/$as_me: WARNING: /" >&2
6bf9431b
BE
10997 ;;
10998esac
0ab6f085
AM
10999echo "$as_me:$LINENO: checking for $ac_header" >&5
11000echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11001if eval "test \"\${$as_ac_Header+set}\" = set"; then
6bf9431b
BE
11002 echo $ECHO_N "(cached) $ECHO_C" >&6
11003else
11004 eval "$as_ac_Header=\$ac_header_preproc"
11005fi
0ab6f085
AM
11006echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11007echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6bf9431b
BE
11008
11009fi
11010if test `eval echo '${'$as_ac_Header'}'` = yes; then
11011 cat >>confdefs.h <<_ACEOF
11012#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11013_ACEOF
11014
11015fi
11016
11017done
11018
11019
0ab6f085
AM
11020echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
11021echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
34875e64
NC
11022if test "${gprof_cv_decl_getopt_unistd_h+set}" = set; then
11023 echo $ECHO_N "(cached) $ECHO_C" >&6
11024else
11025 cat >conftest.$ac_ext <<_ACEOF
11026/* confdefs.h. */
11027_ACEOF
11028cat confdefs.h >>conftest.$ac_ext
11029cat >>conftest.$ac_ext <<_ACEOF
11030/* end confdefs.h. */
11031#include <unistd.h>
11032int
11033main ()
11034{
11035extern int getopt (int, char *const*, const char *);
11036 ;
11037 return 0;
11038}
11039_ACEOF
11040rm -f conftest.$ac_objext
0ab6f085
AM
11041if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11042 (eval $ac_compile) 2>conftest.er1
34875e64
NC
11043 ac_status=$?
11044 grep -v '^ *+' conftest.er1 >conftest.err
11045 rm -f conftest.er1
11046 cat conftest.err >&5
11047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0ab6f085
AM
11048 (exit $ac_status); } &&
11049 { ac_try='test -z "$ac_c_werror_flag"
11050 || test ! -s conftest.err'
11051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11052 (eval $ac_try) 2>&5
11053 ac_status=$?
11054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11055 (exit $ac_status); }; } &&
11056 { ac_try='test -s conftest.$ac_objext'
11057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11058 (eval $ac_try) 2>&5
11059 ac_status=$?
11060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061 (exit $ac_status); }; }; then
34875e64
NC
11062 gprof_cv_decl_getopt_unistd_h=yes
11063else
11064 echo "$as_me: failed program was:" >&5
11065sed 's/^/| /' conftest.$ac_ext >&5
11066
0ab6f085 11067gprof_cv_decl_getopt_unistd_h=no
34875e64 11068fi
0ab6f085 11069rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34875e64
NC
11070fi
11071
0ab6f085
AM
11072echo "$as_me:$LINENO: result: $gprof_cv_decl_getopt_unistd_h" >&5
11073echo "${ECHO_T}$gprof_cv_decl_getopt_unistd_h" >&6
34875e64
NC
11074if test $gprof_cv_decl_getopt_unistd_h = yes; then
11075
11076cat >>confdefs.h <<\_ACEOF
11077#define HAVE_DECL_GETOPT 1
11078_ACEOF
11079
11080fi
11081
1b9750d6 11082# Some systems have fabs only in -lm, not in -lc.
0ab6f085
AM
11083echo "$as_me:$LINENO: checking for library containing fabs" >&5
11084echo $ECHO_N "checking for library containing fabs... $ECHO_C" >&6
1b9750d6
NC
11085if test "${ac_cv_search_fabs+set}" = set; then
11086 echo $ECHO_N "(cached) $ECHO_C" >&6
11087else
11088 ac_func_search_save_LIBS=$LIBS
0ab6f085 11089ac_cv_search_fabs=no
1b9750d6
NC
11090cat >conftest.$ac_ext <<_ACEOF
11091/* confdefs.h. */
11092_ACEOF
11093cat confdefs.h >>conftest.$ac_ext
11094cat >>conftest.$ac_ext <<_ACEOF
11095/* end confdefs.h. */
11096
0ab6f085 11097/* Override any gcc2 internal prototype to avoid an error. */
1b9750d6
NC
11098#ifdef __cplusplus
11099extern "C"
11100#endif
0ab6f085
AM
11101/* We use char because int might match the return type of a gcc2
11102 builtin and then its argument prototype would still apply. */
1b9750d6
NC
11103char fabs ();
11104int
11105main ()
11106{
0ab6f085 11107fabs ();
1b9750d6
NC
11108 ;
11109 return 0;
11110}
11111_ACEOF
0ab6f085
AM
11112rm -f conftest.$ac_objext conftest$ac_exeext
11113if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11114 (eval $ac_link) 2>conftest.er1
1b9750d6
NC
11115 ac_status=$?
11116 grep -v '^ *+' conftest.er1 >conftest.err
11117 rm -f conftest.er1
11118 cat conftest.err >&5
11119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0ab6f085
AM
11120 (exit $ac_status); } &&
11121 { ac_try='test -z "$ac_c_werror_flag"
11122 || test ! -s conftest.err'
11123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11124 (eval $ac_try) 2>&5
11125 ac_status=$?
11126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11127 (exit $ac_status); }; } &&
11128 { ac_try='test -s conftest$ac_exeext'
11129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11130 (eval $ac_try) 2>&5
11131 ac_status=$?
11132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11133 (exit $ac_status); }; }; then
11134 ac_cv_search_fabs="none required"
1b9750d6
NC
11135else
11136 echo "$as_me: failed program was:" >&5
11137sed 's/^/| /' conftest.$ac_ext >&5
11138
1b9750d6 11139fi
0ab6f085
AM
11140rm -f conftest.err conftest.$ac_objext \
11141 conftest$ac_exeext conftest.$ac_ext
11142if test "$ac_cv_search_fabs" = no; then
11143 for ac_lib in m; do
11144 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11145 cat >conftest.$ac_ext <<_ACEOF
11146/* confdefs.h. */
11147_ACEOF
11148cat confdefs.h >>conftest.$ac_ext
11149cat >>conftest.$ac_ext <<_ACEOF
11150/* end confdefs.h. */
1b9750d6 11151
0ab6f085
AM
11152/* Override any gcc2 internal prototype to avoid an error. */
11153#ifdef __cplusplus
11154extern "C"
11155#endif
11156/* We use char because int might match the return type of a gcc2
11157 builtin and then its argument prototype would still apply. */
11158char fabs ();
11159int
11160main ()
11161{
11162fabs ();
11163 ;
11164 return 0;
11165}
11166_ACEOF
11167rm -f conftest.$ac_objext conftest$ac_exeext
11168if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11169 (eval $ac_link) 2>conftest.er1
11170 ac_status=$?
11171 grep -v '^ *+' conftest.er1 >conftest.err
11172 rm -f conftest.er1
11173 cat conftest.err >&5
11174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11175 (exit $ac_status); } &&
11176 { ac_try='test -z "$ac_c_werror_flag"
11177 || test ! -s conftest.err'
11178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11179 (eval $ac_try) 2>&5
11180 ac_status=$?
11181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11182 (exit $ac_status); }; } &&
11183 { ac_try='test -s conftest$ac_exeext'
11184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11185 (eval $ac_try) 2>&5
11186 ac_status=$?
11187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188 (exit $ac_status); }; }; then
11189 ac_cv_search_fabs="-l$ac_lib"
11190break
1b9750d6 11191else
0ab6f085
AM
11192 echo "$as_me: failed program was:" >&5
11193sed 's/^/| /' conftest.$ac_ext >&5
11194
11195fi
11196rm -f conftest.err conftest.$ac_objext \
11197 conftest$ac_exeext conftest.$ac_ext
11198 done
1b9750d6 11199fi
1b9750d6
NC
11200LIBS=$ac_func_search_save_LIBS
11201fi
0ab6f085
AM
11202echo "$as_me:$LINENO: result: $ac_cv_search_fabs" >&5
11203echo "${ECHO_T}$ac_cv_search_fabs" >&6
11204if test "$ac_cv_search_fabs" != no; then
11205 test "$ac_cv_search_fabs" = "none required" || LIBS="$ac_cv_search_fabs $LIBS"
1b9750d6
NC
11206
11207fi
11208
11209
9e9b66a9 11210
a541e3ce 11211GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
1ad12f97 11212
0ab6f085 11213# Check whether --enable-werror or --disable-werror was given.
569acd2c 11214if test "${enable_werror+set}" = set; then
0ab6f085
AM
11215 enableval="$enable_werror"
11216 case "${enableval}" in
1ad12f97
NC
11217 yes | y) ERROR_ON_WARNING="yes" ;;
11218 no | n) ERROR_ON_WARNING="no" ;;
569acd2c
NC
11219 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
11220echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
1ad12f97
NC
11221 { (exit 1); exit 1; }; } ;;
11222 esac
0ab6f085 11223fi;
1ad12f97 11224
9e9b66a9
AM
11225# Enable -Werror by default when using gcc
11226if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11227 ERROR_ON_WARNING=yes
11228fi
11229
11230NO_WERROR=
11231if test "${ERROR_ON_WARNING}" = yes ; then
a541e3ce 11232 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
9e9b66a9 11233 NO_WERROR="-Wno-error"
1ad12f97
NC
11234fi
11235
a541e3ce
SE
11236if test "${GCC}" = yes ; then
11237 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
11238fi
11239
0ab6f085 11240# Check whether --enable-build-warnings or --disable-build-warnings was given.
6bf9431b 11241if test "${enable_build_warnings+set}" = set; then
0ab6f085
AM
11242 enableval="$enable_build_warnings"
11243 case "${enableval}" in
a541e3ce
SE
11244 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
11245 no) if test "${GCC}" = yes ; then
11246 WARN_CFLAGS="-w"
11247 fi;;
6bf9431b 11248 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
a541e3ce 11249 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
6bf9431b 11250 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
a541e3ce 11251 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
9e9b66a9 11252 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6bf9431b 11253esac
0ab6f085 11254fi;
9e9b66a9
AM
11255
11256if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
11257 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
6bf9431b
BE
11258fi
11259
11260
9e9b66a9
AM
11261
11262
11263
108a6f8e
CD
11264
11265
11266
11267
0ab6f085 11268 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
6bf9431b 11269
6bf9431b
BE
11270cat >confcache <<\_ACEOF
11271# This file is a shell script that caches the results of configure
11272# tests run on this system so they can be shared between configure
11273# scripts and configure runs, see configure's option --config-cache.
11274# It is not useful on other systems. If it contains results you don't
11275# want to keep, you may remove or edit it.
11276#
11277# config.status only pays attention to the cache file if you give it
11278# the --recheck option to rerun configure.
11279#
11280# `ac_cv_env_foo' variables (set or unset) will be overridden when
11281# loading this file, other *unset* `ac_cv_foo' will be assigned the
11282# following values.
11283
11284_ACEOF
11285
11286# The following way of writing the cache mishandles newlines in values,
11287# but we know of no workaround that is simple, portable, and efficient.
0ab6f085 11288# So, don't put newlines in cache variables' values.
6bf9431b
BE
11289# Ultrix sh set writes to stderr and can't be redirected directly,
11290# and sets the high bit in the cache file unless we assign to the vars.
0ab6f085 11291{
6bf9431b 11292 (set) 2>&1 |
0ab6f085
AM
11293 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11294 *ac_space=\ *)
6bf9431b
BE
11295 # `set' does not quote correctly, so add quotes (double-quote
11296 # substitution turns \\\\ into \\, and sed turns \\ into \).
11297 sed -n \
11298 "s/'/'\\\\''/g;
11299 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
0ab6f085 11300 ;;
6bf9431b
BE
11301 *)
11302 # `set' quotes correctly as required by POSIX, so do not add quotes.
0ab6f085
AM
11303 sed -n \
11304 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6bf9431b 11305 ;;
0ab6f085
AM
11306 esac;
11307} |
6bf9431b
BE
11308 sed '
11309 t clear
0ab6f085 11310 : clear
6bf9431b
BE
11311 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11312 t end
0ab6f085
AM
11313 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11314 : end' >>confcache
11315if diff $cache_file confcache >/dev/null 2>&1; then :; else
11316 if test -w $cache_file; then
11317 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6bf9431b
BE
11318 cat confcache >$cache_file
11319 else
0ab6f085 11320 echo "not updating unwritable cache $cache_file"
6bf9431b
BE
11321 fi
11322fi
11323rm -f confcache
11324
11325test "x$prefix" = xNONE && prefix=$ac_default_prefix
11326# Let make expand exec_prefix.
11327test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11328
0ab6f085
AM
11329# VPATH may cause trouble with some makes, so we remove $(srcdir),
11330# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11331# trailing colons and then remove the whole line if VPATH becomes empty
11332# (actually we leave an empty line to preserve line numbers).
11333if test "x$srcdir" = x.; then
11334 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11335s/:*\$(srcdir):*/:/;
11336s/:*\${srcdir}:*/:/;
11337s/:*@srcdir@:*/:/;
11338s/^\([^=]*=[ ]*\):*/\1/;
11339s/:*$//;
11340s/^[^=]*=[ ]*$//;
11341}'
11342fi
11343
6bf9431b
BE
11344DEFS=-DHAVE_CONFIG_H
11345
11346ac_libobjs=
11347ac_ltlibobjs=
11348for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11349 # 1. Remove the extension, and $U if already installed.
0ab6f085
AM
11350 ac_i=`echo "$ac_i" |
11351 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11352 # 2. Add them.
11353 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11354 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6bf9431b
BE
11355done
11356LIBOBJS=$ac_libobjs
11357
11358LTLIBOBJS=$ac_ltlibobjs
11359
11360
11361if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11362 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11363Usually this means the macro was only invoked conditionally." >&5
11364echo "$as_me: error: conditional \"AMDEP\" was never defined.
11365Usually this means the macro was only invoked conditionally." >&2;}
11366 { (exit 1); exit 1; }; }
11367fi
11368if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11369 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11370Usually this means the macro was only invoked conditionally." >&5
11371echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11372Usually this means the macro was only invoked conditionally." >&2;}
11373 { (exit 1); exit 1; }; }
11374fi
11375if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11376 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
11377Usually this means the macro was only invoked conditionally." >&5
11378echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
11379Usually this means the macro was only invoked conditionally." >&2;}
11380 { (exit 1); exit 1; }; }
11381fi
d5fbea21
DJ
11382if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
11383 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
11384Usually this means the macro was only invoked conditionally." >&5
11385echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
11386Usually this means the macro was only invoked conditionally." >&2;}
11387 { (exit 1); exit 1; }; }
11388fi
6bf9431b
BE
11389
11390: ${CONFIG_STATUS=./config.status}
11391ac_clean_files_save=$ac_clean_files
11392ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11393{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11394echo "$as_me: creating $CONFIG_STATUS" >&6;}
11395cat >$CONFIG_STATUS <<_ACEOF
11396#! $SHELL
11397# Generated by $as_me.
11398# Run this file to recreate the current configuration.
11399# Compiler output produced by configure, useful for debugging
11400# configure, is in config.log if it exists.
11401
11402debug=false
11403ac_cs_recheck=false
11404ac_cs_silent=false
11405SHELL=\${CONFIG_SHELL-$SHELL}
11406_ACEOF
11407
11408cat >>$CONFIG_STATUS <<\_ACEOF
11409## --------------------- ##
11410## M4sh Initialization. ##
11411## --------------------- ##
11412
0ab6f085 11413# Be Bourne compatible
6bf9431b
BE
11414if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11415 emulate sh
11416 NULLCMD=:
11417 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11418 # is contrary to our usage. Disable this feature.
11419 alias -g '${1+"$@"}'='"$@"'
0ab6f085
AM
11420elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11421 set -o posix
6bf9431b 11422fi
0ab6f085 11423DUALCASE=1; export DUALCASE # for MKS sh
6bf9431b
BE
11424
11425# Support unset when possible.
11426if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11427 as_unset=unset
11428else
11429 as_unset=false
11430fi
11431
11432
11433# Work around bugs in pre-3.0 UWIN ksh.
0ab6f085 11434$as_unset ENV MAIL MAILPATH
6bf9431b
BE
11435PS1='$ '
11436PS2='> '
11437PS4='+ '
11438
11439# NLS nuisances.
11440for as_var in \
11441 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11442 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11443 LC_TELEPHONE LC_TIME
11444do
11445 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11446 eval $as_var=C; export $as_var
11447 else
0ab6f085 11448 $as_unset $as_var
6bf9431b
BE
11449 fi
11450done
11451
11452# Required to use basename.
0ab6f085 11453if expr a : '\(a\)' >/dev/null 2>&1; then
6bf9431b
BE
11454 as_expr=expr
11455else
11456 as_expr=false
11457fi
11458
0ab6f085 11459if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6bf9431b
BE
11460 as_basename=basename
11461else
11462 as_basename=false
252b5132 11463fi
252b5132 11464
252b5132 11465
6bf9431b 11466# Name of the executable.
0ab6f085 11467as_me=`$as_basename "$0" ||
6bf9431b
BE
11468$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11469 X"$0" : 'X\(//\)$' \| \
0ab6f085
AM
11470 X"$0" : 'X\(/\)$' \| \
11471 . : '\(.\)' 2>/dev/null ||
6bf9431b 11472echo X/"$0" |
0ab6f085
AM
11473 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11474 /^X\/\(\/\/\)$/{ s//\1/; q; }
11475 /^X\/\(\/\).*/{ s//\1/; q; }
11476 s/.*/./; q'`
6bf9431b 11477
0ab6f085
AM
11478
11479# PATH needs CR, and LINENO needs CR and PATH.
11480# Avoid depending upon Character Ranges.
11481as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11482as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11483as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11484as_cr_digits='0123456789'
11485as_cr_alnum=$as_cr_Letters$as_cr_digits
11486
11487# The user is always right.
11488if test "${PATH_SEPARATOR+set}" != set; then
11489 echo "#! /bin/sh" >conf$$.sh
11490 echo "exit 0" >>conf$$.sh
11491 chmod +x conf$$.sh
11492 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11493 PATH_SEPARATOR=';'
11494 else
11495 PATH_SEPARATOR=:
11496 fi
11497 rm -f conf$$.sh
11498fi
252b5132 11499
252b5132 11500
0ab6f085
AM
11501 as_lineno_1=$LINENO
11502 as_lineno_2=$LINENO
11503 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11504 test "x$as_lineno_1" != "x$as_lineno_2" &&
11505 test "x$as_lineno_3" = "x$as_lineno_2" || {
11506 # Find who we are. Look in the path if we contain no path at all
11507 # relative or not.
11508 case $0 in
11509 *[\\/]* ) as_myself=$0 ;;
11510 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11511for as_dir in $PATH
11512do
11513 IFS=$as_save_IFS
11514 test -z "$as_dir" && as_dir=.
11515 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11516done
252b5132 11517
0ab6f085
AM
11518 ;;
11519 esac
11520 # We did not find ourselves, most probably we were run as `sh COMMAND'
11521 # in which case we are not to be found in the path.
11522 if test "x$as_myself" = x; then
11523 as_myself=$0
11524 fi
11525 if test ! -f "$as_myself"; then
11526 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11527echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11528 { (exit 1); exit 1; }; }
11529 fi
11530 case $CONFIG_SHELL in
11531 '')
11532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11533for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11534do
11535 IFS=$as_save_IFS
11536 test -z "$as_dir" && as_dir=.
11537 for as_base in sh bash ksh sh5; do
11538 case $as_dir in
11539 /*)
11540 if ("$as_dir/$as_base" -c '
6bf9431b
BE
11541 as_lineno_1=$LINENO
11542 as_lineno_2=$LINENO
0ab6f085 11543 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6bf9431b 11544 test "x$as_lineno_1" != "x$as_lineno_2" &&
0ab6f085
AM
11545 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11546 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11547 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11548 CONFIG_SHELL=$as_dir/$as_base
11549 export CONFIG_SHELL
11550 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11551 fi;;
11552 esac
11553 done
11554done
11555;;
11556 esac
6bf9431b
BE
11557
11558 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11559 # uniformly replaced by the line number. The first 'sed' inserts a
0ab6f085
AM
11560 # line-number line before each line; the second 'sed' does the real
11561 # work. The second script uses 'N' to pair each line-number line
11562 # with the numbered line, and appends trailing '-' during
11563 # substitution so that $LINENO is not a special case at line end.
6bf9431b 11564 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
0ab6f085
AM
11565 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11566 sed '=' <$as_myself |
6bf9431b
BE
11567 sed '
11568 N
0ab6f085
AM
11569 s,$,-,
11570 : loop
11571 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6bf9431b 11572 t loop
0ab6f085
AM
11573 s,-$,,
11574 s,^['$as_cr_digits']*\n,,
6bf9431b 11575 ' >$as_me.lineno &&
0ab6f085
AM
11576 chmod +x $as_me.lineno ||
11577 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11578echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6bf9431b
BE
11579 { (exit 1); exit 1; }; }
11580
11581 # Don't try to exec as it changes $[0], causing all sort of problems
11582 # (the dirname of $[0] is not the place where we might find the
0ab6f085
AM
11583 # original and so on. Autoconf is especially sensible to this).
11584 . ./$as_me.lineno
6bf9431b
BE
11585 # Exit status is that of the last command.
11586 exit
11587}
11588
11589
0ab6f085
AM
11590case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11591 *c*,-n*) ECHO_N= ECHO_C='
11592' ECHO_T=' ' ;;
11593 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11594 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6bf9431b
BE
11595esac
11596
0ab6f085 11597if expr a : '\(a\)' >/dev/null 2>&1; then
6bf9431b 11598 as_expr=expr
0eee5820 11599else
6bf9431b 11600 as_expr=false
0eee5820 11601fi
6bf9431b
BE
11602
11603rm -f conf$$ conf$$.exe conf$$.file
11604echo >conf$$.file
11605if ln -s conf$$.file conf$$ 2>/dev/null; then
0ab6f085
AM
11606 # We could just check for DJGPP; but this test a) works b) is more generic
11607 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11608 if test -f conf$$.exe; then
11609 # Don't use ln at all; we don't have any links
6bf9431b 11610 as_ln_s='cp -p'
0ab6f085
AM
11611 else
11612 as_ln_s='ln -s'
11613 fi
6bf9431b
BE
11614elif ln conf$$.file conf$$ 2>/dev/null; then
11615 as_ln_s=ln
11616else
11617 as_ln_s='cp -p'
0eee5820 11618fi
0ab6f085 11619rm -f conf$$ conf$$.exe conf$$.file
6bf9431b
BE
11620
11621if mkdir -p . 2>/dev/null; then
11622 as_mkdir_p=:
0ab6f085
AM
11623else
11624 test -d ./-p && rmdir ./-p
11625 as_mkdir_p=false
1b9750d6 11626fi
0ab6f085
AM
11627
11628as_executable_p="test -f"
0eee5820 11629
6bf9431b
BE
11630# Sed expression to map a string onto a valid CPP name.
11631as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11632
11633# Sed expression to map a string onto a valid variable name.
11634as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11635
1b9750d6 11636
0ab6f085
AM
11637# IFS
11638# We need space, tab and new line, in precisely that order.
11639as_nl='
11640'
11641IFS=" $as_nl"
11642
11643# CDPATH.
11644$as_unset CDPATH
11645
6bf9431b
BE
11646exec 6>&1
11647
0ab6f085 11648# Open the log real soon, to keep \$[0] and so on meaningful, and to
6bf9431b 11649# report actual input values of CONFIG_FILES etc. instead of their
0ab6f085
AM
11650# values after options handling. Logging --version etc. is OK.
11651exec 5>>config.log
11652{
11653 echo
11654 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11655## Running $as_me. ##
11656_ASBOX
11657} >&5
11658cat >&5 <<_CSEOF
11659
6bf9431b 11660This file was extended by $as_me, which was
0ab6f085 11661generated by GNU Autoconf 2.59. Invocation command line was
6bf9431b
BE
11662
11663 CONFIG_FILES = $CONFIG_FILES
11664 CONFIG_HEADERS = $CONFIG_HEADERS
11665 CONFIG_LINKS = $CONFIG_LINKS
11666 CONFIG_COMMANDS = $CONFIG_COMMANDS
11667 $ $0 $@
11668
0ab6f085
AM
11669_CSEOF
11670echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11671echo >&5
6bf9431b
BE
11672_ACEOF
11673
11674# Files that config.status was made for.
0ab6f085
AM
11675if test -n "$ac_config_files"; then
11676 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11677fi
a2d91340 11678
0ab6f085
AM
11679if test -n "$ac_config_headers"; then
11680 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11681fi
11682
11683if test -n "$ac_config_links"; then
11684 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11685fi
11686
11687if test -n "$ac_config_commands"; then
11688 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11689fi
a2d91340 11690
6bf9431b 11691cat >>$CONFIG_STATUS <<\_ACEOF
0ab6f085 11692
6bf9431b
BE
11693ac_cs_usage="\
11694\`$as_me' instantiates files from templates according to the
11695current configuration.
11696
11697Usage: $0 [OPTIONS] [FILE]...
11698
11699 -h, --help print this help, then exit
0ab6f085 11700 -V, --version print version number, then exit
6bf9431b
BE
11701 -q, --quiet do not print progress messages
11702 -d, --debug don't remove temporary files
11703 --recheck update $as_me by reconfiguring in the same conditions
11704 --file=FILE[:TEMPLATE]
11705 instantiate the configuration file FILE
11706 --header=FILE[:TEMPLATE]
11707 instantiate the configuration header FILE
11708
11709Configuration files:
11710$config_files
11711
11712Configuration headers:
11713$config_headers
11714
11715Configuration commands:
11716$config_commands
11717
11718Report bugs to <bug-autoconf@gnu.org>."
1b9750d6 11719_ACEOF
0ab6f085 11720
6bf9431b
BE
11721cat >>$CONFIG_STATUS <<_ACEOF
11722ac_cs_version="\\
11723config.status
0ab6f085
AM
11724configured by $0, generated by GNU Autoconf 2.59,
11725 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6bf9431b 11726
0ab6f085 11727Copyright (C) 2003 Free Software Foundation, Inc.
6bf9431b
BE
11728This config.status script is free software; the Free Software Foundation
11729gives unlimited permission to copy, distribute and modify it."
0ab6f085
AM
11730srcdir=$srcdir
11731INSTALL="$INSTALL"
6bf9431b
BE
11732_ACEOF
11733
11734cat >>$CONFIG_STATUS <<\_ACEOF
11735# If no file are specified by the user, then we need to provide default
11736# value. By we need to know if files were specified by the user.
11737ac_need_defaults=:
11738while test $# != 0
11739do
11740 case $1 in
11741 --*=*)
0ab6f085
AM
11742 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11743 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6bf9431b 11744 ac_shift=:
252b5132 11745 ;;
0ab6f085 11746 -*)
6bf9431b
BE
11747 ac_option=$1
11748 ac_optarg=$2
11749 ac_shift=shift
252b5132 11750 ;;
0ab6f085
AM
11751 *) # This is not an option, so the user has probably given explicit
11752 # arguments.
11753 ac_option=$1
11754 ac_need_defaults=false;;
6bf9431b 11755 esac
252b5132 11756
6bf9431b
BE
11757 case $ac_option in
11758 # Handling of the options.
0ab6f085
AM
11759_ACEOF
11760cat >>$CONFIG_STATUS <<\_ACEOF
6bf9431b
BE
11761 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11762 ac_cs_recheck=: ;;
0ab6f085
AM
11763 --version | --vers* | -V )
11764 echo "$ac_cs_version"; exit 0 ;;
11765 --he | --h)
11766 # Conflict between --help and --header
11767 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11768Try \`$0 --help' for more information." >&5
11769echo "$as_me: error: ambiguous option: $1
11770Try \`$0 --help' for more information." >&2;}
11771 { (exit 1); exit 1; }; };;
11772 --help | --hel | -h )
11773 echo "$ac_cs_usage"; exit 0 ;;
11774 --debug | --d* | -d )
6bf9431b
BE
11775 debug=: ;;
11776 --file | --fil | --fi | --f )
11777 $ac_shift
11778 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11779 ac_need_defaults=false;;
11780 --header | --heade | --head | --hea )
11781 $ac_shift
11782 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11783 ac_need_defaults=false;;
11784 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11785 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11786 ac_cs_silent=: ;;
252b5132 11787
6bf9431b 11788 # This is an error.
0ab6f085
AM
11789 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11790Try \`$0 --help' for more information." >&5
11791echo "$as_me: error: unrecognized option: $1
11792Try \`$0 --help' for more information." >&2;}
6bf9431b 11793 { (exit 1); exit 1; }; } ;;
252b5132 11794
0ab6f085 11795 *) ac_config_targets="$ac_config_targets $1" ;;
252b5132 11796
6bf9431b
BE
11797 esac
11798 shift
11799done
252b5132 11800
6bf9431b 11801ac_configure_extra_args=
252b5132 11802
6bf9431b
BE
11803if $ac_cs_silent; then
11804 exec 6>/dev/null
11805 ac_configure_extra_args="$ac_configure_extra_args --silent"
11806fi
252b5132 11807
6bf9431b
BE
11808_ACEOF
11809cat >>$CONFIG_STATUS <<_ACEOF
11810if \$ac_cs_recheck; then
0ab6f085
AM
11811 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11812 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6bf9431b
BE
11813fi
11814
11815_ACEOF
11816
11817cat >>$CONFIG_STATUS <<_ACEOF
252b5132 11818#
0ab6f085 11819# INIT-COMMANDS section.
252b5132 11820#
0ab6f085 11821
6bf9431b 11822AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
11823
11824
11825# The HP-UX ksh and POSIX shell print the target directory to stdout
11826# if CDPATH is set.
11827(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11828
11829sed_quote_subst='$sed_quote_subst'
11830double_quote_subst='$double_quote_subst'
11831delay_variable_subst='$delay_variable_subst'
11832macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
11833macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
11834enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
11835enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
11836pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
11837enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
11838host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
11839host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
11840host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
11841build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
11842build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
11843build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
11844SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
11845Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
11846GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
11847EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
11848FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
11849LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
11850NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
11851LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
11852max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
11853ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
11854exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
11855lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
11856lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
11857lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
11858reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
11859reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11860deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
11861file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
11862AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
11863AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11864STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
11865RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
11866old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11867old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11868old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11869CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
11870CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11871compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
11872GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
11873lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
11874lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
11875lt_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"`'
11876objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
11877SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
11878ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
11879MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
11880lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
11881lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
11882lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
11883lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
11884lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
11885need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
11886libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
11887shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11888extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11889archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
11890enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
11891export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11892whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11893compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
11894old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11895old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11896archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11897archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11898module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11899module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11900with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
11901allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11902no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11903hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11904hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
11905hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
11906hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
11907hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
11908hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
11909hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11910hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
11911inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
11912link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
11913fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
11914always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
11915export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11916exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11917include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11918prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11919file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
11920variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
11921need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
11922need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
11923version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
11924runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11925shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11926shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
11927libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11928library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
11929soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11930postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11931postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11932finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11933finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
11934hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
11935sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11936sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11937hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
11938enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
11939enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
11940enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
11941old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
11942striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
11943
11944LTCC='$LTCC'
11945LTCFLAGS='$LTCFLAGS'
11946compiler='$compiler_DEFAULT'
11947
11948# Quote evaled strings.
11949for var in SED \
11950GREP \
11951EGREP \
11952FGREP \
11953LD \
11954NM \
11955LN_S \
11956lt_SP2NL \
11957lt_NL2SP \
11958reload_flag \
11959deplibs_check_method \
11960file_magic_cmd \
11961AR \
11962AR_FLAGS \
11963STRIP \
11964RANLIB \
11965CC \
11966CFLAGS \
11967compiler \
11968lt_cv_sys_global_symbol_pipe \
11969lt_cv_sys_global_symbol_to_cdecl \
11970lt_cv_sys_global_symbol_to_c_name_address \
11971SHELL \
11972ECHO \
11973lt_prog_compiler_no_builtin_flag \
11974lt_prog_compiler_wl \
11975lt_prog_compiler_pic \
11976lt_prog_compiler_static \
11977lt_cv_prog_compiler_c_o \
11978need_locks \
11979shrext_cmds \
11980export_dynamic_flag_spec \
11981whole_archive_flag_spec \
11982compiler_needs_object \
11983with_gnu_ld \
11984allow_undefined_flag \
11985no_undefined_flag \
11986hardcode_libdir_flag_spec \
11987hardcode_libdir_flag_spec_ld \
11988hardcode_libdir_separator \
11989fix_srcfile_path \
11990exclude_expsyms \
11991include_expsyms \
11992file_list_spec \
11993variables_saved_for_relink \
11994libname_spec \
11995library_names_spec \
11996soname_spec \
11997finish_eval \
11998old_striplib \
11999striplib; do
12000 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12001 *[\\\\\\\`\\"\\\$]*)
12002 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12003 ;;
12004 *)
12005 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12006 ;;
12007 esac
12008done
12009
12010# Double-quote double-evaled strings.
12011for var in reload_cmds \
12012old_postinstall_cmds \
12013old_postuninstall_cmds \
12014old_archive_cmds \
12015extract_expsyms_cmds \
12016old_archive_from_new_cmds \
12017old_archive_from_expsyms_cmds \
12018archive_cmds \
12019archive_expsym_cmds \
12020module_cmds \
12021module_expsym_cmds \
12022export_symbols_cmds \
12023prelink_cmds \
12024postinstall_cmds \
12025postuninstall_cmds \
12026finish_cmds \
12027sys_lib_search_path_spec \
12028sys_lib_dlsearch_path_spec; do
12029 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12030 *[\\\\\\\`\\"\\\$]*)
12031 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12032 ;;
12033 *)
12034 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12035 ;;
12036 esac
12037done
12038
12039# Fix-up fallback echo if it was mangled by the above quoting rules.
12040case \$lt_ECHO in
12041*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12042 ;;
12043esac
12044
12045ac_aux_dir='$ac_aux_dir'
12046xsi_shell='$xsi_shell'
12047lt_shell_append='$lt_shell_append'
12048
12049# See if we are running on zsh, and set the options which allow our
12050# commands through without removal of \ escapes INIT.
12051if test -n "\${ZSH_VERSION+set}" ; then
12052 setopt NO_GLOB_SUBST
12053fi
12054
12055
12056 PACKAGE='$PACKAGE'
12057 VERSION='$VERSION'
12058 TIMESTAMP='$TIMESTAMP'
12059 RM='$RM'
12060 ofile='$ofile'
12061
12062
12063
20e95c23
DJ
12064# Capture the value of obsolete ALL_LINGUAS because we need it to compute
12065 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
12066 # from automake.
12067 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12068 # Capture the value of LINGUAS because we need it to compute CATALOGS.
12069 LINGUAS="${LINGUAS-%UNSET%}"
6bf9431b
BE
12070
12071
12072_ACEOF
12073
1b9750d6 12074
0ab6f085
AM
12075
12076cat >>$CONFIG_STATUS <<\_ACEOF
6bf9431b 12077for ac_config_target in $ac_config_targets
252b5132 12078do
0ab6f085
AM
12079 case "$ac_config_target" in
12080 # Handling of arguments.
12081 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12082 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
12083 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12084 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12085 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12086 "gconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gconfig.h:gconfig.in" ;;
6bf9431b
BE
12087 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12088echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12089 { (exit 1); exit 1; }; };;
252b5132
RH
12090 esac
12091done
12092
6bf9431b
BE
12093# If the user did not use the arguments to specify the items to instantiate,
12094# then the envvar interface is used. Set only those that are not.
12095# We use the long form for the default assignment because of an extremely
12096# bizarre bug on SunOS 4.1.3.
12097if $ac_need_defaults; then
12098 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12099 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12100 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12101fi
12102
12103# Have a temporary directory for convenience. Make it in the build tree
0ab6f085 12104# simply because there is no reason to put it here, and in addition,
6bf9431b 12105# creating and moving files from /tmp can sometimes cause problems.
0ab6f085 12106# Create a temporary directory, and hook for its removal unless debugging.
6bf9431b
BE
12107$debug ||
12108{
0ab6f085 12109 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6bf9431b
BE
12110 trap '{ (exit 1); exit 1; }' 1 2 13 15
12111}
0ab6f085 12112
6bf9431b 12113# Create a (secure) tmp directory for tmp files.
252b5132 12114
6bf9431b 12115{
0ab6f085 12116 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6bf9431b
BE
12117 test -n "$tmp" && test -d "$tmp"
12118} ||
12119{
0ab6f085
AM
12120 tmp=./confstat$$-$RANDOM
12121 (umask 077 && mkdir $tmp)
6bf9431b
BE
12122} ||
12123{
12124 echo "$me: cannot create a temporary directory in ." >&2
12125 { (exit 1); exit 1; }
12126}
252b5132 12127
0ab6f085
AM
12128_ACEOF
12129
12130cat >>$CONFIG_STATUS <<_ACEOF
12131
6bf9431b 12132#
0ab6f085 12133# CONFIG_FILES section.
6bf9431b
BE
12134#
12135
12136# No need to generate the scripts if there are no CONFIG_FILES.
12137# This happens for instance when ./config.status config.h
0ab6f085
AM
12138if test -n "\$CONFIG_FILES"; then
12139 # Protect against being on the right side of a sed subst in config.status.
12140 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12141 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12142s,@SHELL@,$SHELL,;t t
12143s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12144s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12145s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12146s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12147s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12148s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12149s,@exec_prefix@,$exec_prefix,;t t
12150s,@prefix@,$prefix,;t t
12151s,@program_transform_name@,$program_transform_name,;t t
12152s,@bindir@,$bindir,;t t
12153s,@sbindir@,$sbindir,;t t
12154s,@libexecdir@,$libexecdir,;t t
12155s,@datadir@,$datadir,;t t
12156s,@sysconfdir@,$sysconfdir,;t t
12157s,@sharedstatedir@,$sharedstatedir,;t t
12158s,@localstatedir@,$localstatedir,;t t
12159s,@libdir@,$libdir,;t t
12160s,@includedir@,$includedir,;t t
12161s,@oldincludedir@,$oldincludedir,;t t
12162s,@infodir@,$infodir,;t t
12163s,@mandir@,$mandir,;t t
12164s,@build_alias@,$build_alias,;t t
12165s,@host_alias@,$host_alias,;t t
12166s,@target_alias@,$target_alias,;t t
12167s,@DEFS@,$DEFS,;t t
12168s,@ECHO_C@,$ECHO_C,;t t
12169s,@ECHO_N@,$ECHO_N,;t t
12170s,@ECHO_T@,$ECHO_T,;t t
12171s,@LIBS@,$LIBS,;t t
12172s,@build@,$build,;t t
12173s,@build_cpu@,$build_cpu,;t t
12174s,@build_vendor@,$build_vendor,;t t
12175s,@build_os@,$build_os,;t t
12176s,@host@,$host,;t t
12177s,@host_cpu@,$host_cpu,;t t
12178s,@host_vendor@,$host_vendor,;t t
12179s,@host_os@,$host_os,;t t
12180s,@target@,$target,;t t
12181s,@target_cpu@,$target_cpu,;t t
12182s,@target_vendor@,$target_vendor,;t t
12183s,@target_os@,$target_os,;t t
12184s,@CC@,$CC,;t t
12185s,@CFLAGS@,$CFLAGS,;t t
12186s,@LDFLAGS@,$LDFLAGS,;t t
12187s,@CPPFLAGS@,$CPPFLAGS,;t t
12188s,@ac_ct_CC@,$ac_ct_CC,;t t
12189s,@EXEEXT@,$EXEEXT,;t t
12190s,@OBJEXT@,$OBJEXT,;t t
12191s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12192s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12193s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12194s,@CYGPATH_W@,$CYGPATH_W,;t t
12195s,@PACKAGE@,$PACKAGE,;t t
12196s,@VERSION@,$VERSION,;t t
12197s,@ACLOCAL@,$ACLOCAL,;t t
12198s,@AUTOCONF@,$AUTOCONF,;t t
12199s,@AUTOMAKE@,$AUTOMAKE,;t t
12200s,@AUTOHEADER@,$AUTOHEADER,;t t
12201s,@MAKEINFO@,$MAKEINFO,;t t
12202s,@install_sh@,$install_sh,;t t
12203s,@STRIP@,$STRIP,;t t
12204s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12205s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
12206s,@mkdir_p@,$mkdir_p,;t t
12207s,@AWK@,$AWK,;t t
12208s,@SET_MAKE@,$SET_MAKE,;t t
12209s,@am__leading_dot@,$am__leading_dot,;t t
12210s,@AMTAR@,$AMTAR,;t t
12211s,@am__tar@,$am__tar,;t t
12212s,@am__untar@,$am__untar,;t t
12213s,@DEPDIR@,$DEPDIR,;t t
12214s,@am__include@,$am__include,;t t
12215s,@am__quote@,$am__quote,;t t
12216s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
12217s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
12218s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
12219s,@CCDEPMODE@,$CCDEPMODE,;t t
12220s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
12221s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
12222s,@LIBTOOL@,$LIBTOOL,;t t
12223s,@SED@,$SED,;t t
12224s,@EGREP@,$EGREP,;t t
12225s,@FGREP@,$FGREP,;t t
12226s,@GREP@,$GREP,;t t
12227s,@LD@,$LD,;t t
12228s,@DUMPBIN@,$DUMPBIN,;t t
12229s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
12230s,@NM@,$NM,;t t
12231s,@LN_S@,$LN_S,;t t
12232s,@AR@,$AR,;t t
12233s,@ac_ct_AR@,$ac_ct_AR,;t t
12234s,@RANLIB@,$RANLIB,;t t
12235s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12236s,@lt_ECHO@,$lt_ECHO,;t t
12237s,@CPP@,$CPP,;t t
12238s,@USE_NLS@,$USE_NLS,;t t
12239s,@LIBINTL@,$LIBINTL,;t t
12240s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
12241s,@INCINTL@,$INCINTL,;t t
12242s,@XGETTEXT@,$XGETTEXT,;t t
12243s,@GMSGFMT@,$GMSGFMT,;t t
12244s,@POSUB@,$POSUB,;t t
12245s,@CATALOGS@,$CATALOGS,;t t
12246s,@DATADIRNAME@,$DATADIRNAME,;t t
12247s,@INSTOBJEXT@,$INSTOBJEXT,;t t
12248s,@GENCAT@,$GENCAT,;t t
12249s,@CATOBJEXT@,$CATOBJEXT,;t t
12250s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
12251s,@MSGFMT@,$MSGFMT,;t t
12252s,@MSGMERGE@,$MSGMERGE,;t t
12253s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12254s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12255s,@MAINT@,$MAINT,;t t
12256s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
12257s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
12258s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
12259s,@NO_WERROR@,$NO_WERROR,;t t
12260s,@datarootdir@,$datarootdir,;t t
12261s,@docdir@,$docdir,;t t
12262s,@htmldir@,$htmldir,;t t
12263s,@LIBOBJS@,$LIBOBJS,;t t
12264s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12265CEOF
1b9750d6 12266
1b9750d6 12267_ACEOF
1b9750d6 12268
0ab6f085
AM
12269 cat >>$CONFIG_STATUS <<\_ACEOF
12270 # Split the substitutions into bite-sized pieces for seds with
12271 # small command number limits, like on Digital OSF/1 and HP-UX.
12272 ac_max_sed_lines=48
12273 ac_sed_frag=1 # Number of current file.
12274 ac_beg=1 # First line for current file.
12275 ac_end=$ac_max_sed_lines # Line after last line for current file.
12276 ac_more_lines=:
12277 ac_sed_cmds=
12278 while $ac_more_lines; do
12279 if test $ac_beg -gt 1; then
12280 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12281 else
12282 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12283 fi
12284 if test ! -s $tmp/subs.frag; then
12285 ac_more_lines=false
12286 else
12287 # The purpose of the label and of the branching condition is to
12288 # speed up the sed processing (if there are no `@' at all, there
12289 # is no need to browse any of the substitutions).
12290 # These are the two extra sed commands mentioned above.
12291 (echo ':t
12292 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12293 if test -z "$ac_sed_cmds"; then
12294 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12295 else
12296 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12297 fi
12298 ac_sed_frag=`expr $ac_sed_frag + 1`
12299 ac_beg=$ac_end
12300 ac_end=`expr $ac_end + $ac_max_sed_lines`
12301 fi
12302 done
12303 if test -z "$ac_sed_cmds"; then
12304 ac_sed_cmds=cat
12305 fi
12306fi # test -n "$CONFIG_FILES"
1b9750d6 12307
1b9750d6 12308_ACEOF
6bf9431b 12309cat >>$CONFIG_STATUS <<\_ACEOF
0ab6f085
AM
12310for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12311 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12312 case $ac_file in
12313 - | *:- | *:-:* ) # input from stdin
12314 cat >$tmp/stdin
12315 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12316 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12317 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12318 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12319 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
12320 esac
12321
0ab6f085
AM
12322 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12323 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6bf9431b
BE
12324$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12325 X"$ac_file" : 'X\(//\)[^/]' \| \
12326 X"$ac_file" : 'X\(//\)$' \| \
0ab6f085
AM
12327 X"$ac_file" : 'X\(/\)' \| \
12328 . : '\(.\)' 2>/dev/null ||
6bf9431b 12329echo X"$ac_file" |
0ab6f085
AM
12330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12331 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12332 /^X\(\/\/\)$/{ s//\1/; q; }
12333 /^X\(\/\).*/{ s//\1/; q; }
12334 s/.*/./; q'`
12335 { if $as_mkdir_p; then
12336 mkdir -p "$ac_dir"
12337 else
12338 as_dir="$ac_dir"
6bf9431b 12339 as_dirs=
0ab6f085
AM
12340 while test ! -d "$as_dir"; do
12341 as_dirs="$as_dir $as_dirs"
12342 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6bf9431b
BE
12343$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12344 X"$as_dir" : 'X\(//\)[^/]' \| \
12345 X"$as_dir" : 'X\(//\)$' \| \
0ab6f085
AM
12346 X"$as_dir" : 'X\(/\)' \| \
12347 . : '\(.\)' 2>/dev/null ||
6bf9431b 12348echo X"$as_dir" |
0ab6f085
AM
12349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12350 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12351 /^X\(\/\/\)$/{ s//\1/; q; }
12352 /^X\(\/\).*/{ s//\1/; q; }
12353 s/.*/./; q'`
6bf9431b 12354 done
0ab6f085
AM
12355 test ! -n "$as_dirs" || mkdir $as_dirs
12356 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12357echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6bf9431b 12358 { (exit 1); exit 1; }; }; }
0ab6f085 12359
6bf9431b
BE
12360 ac_builddir=.
12361
0ab6f085 12362if test "$ac_dir" != .; then
6bf9431b 12363 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
0ab6f085
AM
12364 # A "../" for each directory in $ac_dir_suffix.
12365 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12366else
12367 ac_dir_suffix= ac_top_builddir=
12368fi
252b5132 12369
6bf9431b 12370case $srcdir in
0ab6f085 12371 .) # No --srcdir option. We are building in place.
6bf9431b 12372 ac_srcdir=.
0ab6f085
AM
12373 if test -z "$ac_top_builddir"; then
12374 ac_top_srcdir=.
12375 else
12376 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12377 fi ;;
12378 [\\/]* | ?:[\\/]* ) # Absolute path.
6bf9431b 12379 ac_srcdir=$srcdir$ac_dir_suffix;
0ab6f085
AM
12380 ac_top_srcdir=$srcdir ;;
12381 *) # Relative path.
12382 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12383 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6bf9431b 12384esac
252b5132 12385
0ab6f085
AM
12386# Do not use `cd foo && pwd` to compute absolute paths, because
12387# the directories may not exist.
12388case `pwd` in
12389.) ac_abs_builddir="$ac_dir";;
12390*)
12391 case "$ac_dir" in
12392 .) ac_abs_builddir=`pwd`;;
12393 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12394 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12395 esac;;
12396esac
12397case $ac_abs_builddir in
12398.) ac_abs_top_builddir=${ac_top_builddir}.;;
12399*)
12400 case ${ac_top_builddir}. in
12401 .) ac_abs_top_builddir=$ac_abs_builddir;;
12402 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12403 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12404 esac;;
12405esac
12406case $ac_abs_builddir in
12407.) ac_abs_srcdir=$ac_srcdir;;
12408*)
12409 case $ac_srcdir in
12410 .) ac_abs_srcdir=$ac_abs_builddir;;
12411 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12412 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12413 esac;;
12414esac
12415case $ac_abs_builddir in
12416.) ac_abs_top_srcdir=$ac_top_srcdir;;
12417*)
12418 case $ac_top_srcdir in
12419 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12420 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12421 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12422 esac;;
12423esac
252b5132 12424
6bf9431b
BE
12425
12426 case $INSTALL in
12427 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
0ab6f085 12428 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
252b5132 12429 esac
1b9750d6 12430
0ab6f085
AM
12431 if test x"$ac_file" != x-; then
12432 { echo "$as_me:$LINENO: creating $ac_file" >&5
12433echo "$as_me: creating $ac_file" >&6;}
12434 rm -f "$ac_file"
12435 fi
12436 # Let's still pretend it is `configure' which instantiates (i.e., don't
12437 # use $as_me), people would be surprised to read:
12438 # /* config.h. Generated by config.status. */
12439 if test x"$ac_file" = x-; then
12440 configure_input=
12441 else
12442 configure_input="$ac_file. "
12443 fi
12444 configure_input=$configure_input"Generated from `echo $ac_file_in |
12445 sed 's,.*/,,'` by configure."
12446
12447 # First look for the input files in the build tree, otherwise in the
12448 # src tree.
12449 ac_file_inputs=`IFS=:
12450 for f in $ac_file_in; do
12451 case $f in
12452 -) echo $tmp/stdin ;;
12453 [\\/$]*)
12454 # Absolute (can't be DOS-style, as IFS=:)
12455 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12456echo "$as_me: error: cannot find input file: $f" >&2;}
12457 { (exit 1); exit 1; }; }
12458 echo "$f";;
12459 *) # Relative
12460 if test -f "$f"; then
12461 # Build tree
12462 echo "$f"
12463 elif test -f "$srcdir/$f"; then
12464 # Source tree
12465 echo "$srcdir/$f"
12466 else
12467 # /dev/null tree
12468 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12469echo "$as_me: error: cannot find input file: $f" >&2;}
12470 { (exit 1); exit 1; }; }
12471 fi;;
12472 esac
12473 done` || { (exit 1); exit 1; }
6bf9431b
BE
12474_ACEOF
12475cat >>$CONFIG_STATUS <<_ACEOF
12476 sed "$ac_vpsub
12477$extrasub
12478_ACEOF
12479cat >>$CONFIG_STATUS <<\_ACEOF
12480:t
12481/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
0ab6f085
AM
12482s,@configure_input@,$configure_input,;t t
12483s,@srcdir@,$ac_srcdir,;t t
12484s,@abs_srcdir@,$ac_abs_srcdir,;t t
12485s,@top_srcdir@,$ac_top_srcdir,;t t
12486s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12487s,@builddir@,$ac_builddir,;t t
12488s,@abs_builddir@,$ac_abs_builddir,;t t
12489s,@top_builddir@,$ac_top_builddir,;t t
12490s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12491s,@INSTALL@,$ac_INSTALL,;t t
12492" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12493 rm -f $tmp/stdin
12494 if test x"$ac_file" != x-; then
12495 mv $tmp/out $ac_file
12496 else
12497 cat $tmp/out
12498 rm -f $tmp/out
12499 fi
12500
12501done
12502_ACEOF
12503cat >>$CONFIG_STATUS <<\_ACEOF
12504
12505#
12506# CONFIG_HEADER section.
12507#
12508
12509# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12510# NAME is the cpp macro being defined and VALUE is the value it is being given.
12511#
12512# ac_d sets the value in "#define NAME VALUE" lines.
12513ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12514ac_dB='[ ].*$,\1#\2'
12515ac_dC=' '
12516ac_dD=',;t'
12517# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12518ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12519ac_uB='$,\1#\2define\3'
12520ac_uC=' '
12521ac_uD=',;t'
12522
12523for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12524 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6bf9431b 12525 case $ac_file in
0ab6f085
AM
12526 - | *:- | *:-:* ) # input from stdin
12527 cat >$tmp/stdin
12528 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12529 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12530 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12531 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12532 * ) ac_file_in=$ac_file.in ;;
252b5132 12533 esac
0ab6f085
AM
12534
12535 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12536echo "$as_me: creating $ac_file" >&6;}
12537
12538 # First look for the input files in the build tree, otherwise in the
12539 # src tree.
12540 ac_file_inputs=`IFS=:
12541 for f in $ac_file_in; do
12542 case $f in
12543 -) echo $tmp/stdin ;;
12544 [\\/$]*)
12545 # Absolute (can't be DOS-style, as IFS=:)
12546 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12547echo "$as_me: error: cannot find input file: $f" >&2;}
12548 { (exit 1); exit 1; }; }
12549 # Do quote $f, to prevent DOS paths from being IFS'd.
12550 echo "$f";;
12551 *) # Relative
12552 if test -f "$f"; then
12553 # Build tree
12554 echo "$f"
12555 elif test -f "$srcdir/$f"; then
12556 # Source tree
12557 echo "$srcdir/$f"
12558 else
12559 # /dev/null tree
12560 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12561echo "$as_me: error: cannot find input file: $f" >&2;}
12562 { (exit 1); exit 1; }; }
12563 fi;;
12564 esac
12565 done` || { (exit 1); exit 1; }
12566 # Remove the trailing spaces.
12567 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
12568
12569_ACEOF
12570
12571# Transform confdefs.h into two sed scripts, `conftest.defines' and
12572# `conftest.undefs', that substitutes the proper values into
12573# config.h.in to produce config.h. The first handles `#define'
12574# templates, and the second `#undef' templates.
12575# And first: Protect against being on the right side of a sed subst in
12576# config.status. Protect against being in an unquoted here document
12577# in config.status.
12578rm -f conftest.defines conftest.undefs
12579# Using a here document instead of a string reduces the quoting nightmare.
12580# Putting comments in sed scripts is not portable.
12581#
12582# `end' is used to avoid that the second main sed command (meant for
12583# 0-ary CPP macros) applies to n-ary macro definitions.
12584# See the Autoconf documentation for `clear'.
12585cat >confdef2sed.sed <<\_ACEOF
12586s/[\\&,]/\\&/g
12587s,[\\$`],\\&,g
12588t clear
12589: clear
12590s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12591t end
12592s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12593: end
12594_ACEOF
12595# If some macros were called several times there might be several times
12596# the same #defines, which is useless. Nevertheless, we may not want to
12597# sort them, since we want the *last* AC-DEFINE to be honored.
12598uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12599sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12600rm -f confdef2sed.sed
12601
12602# This sed command replaces #undef with comments. This is necessary, for
252b5132
RH
12603# example, in the case of _POSIX_SOURCE, which is predefined and required
12604# on some systems where configure will not decide to define it.
0ab6f085
AM
12605cat >>conftest.undefs <<\_ACEOF
12606s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12607_ACEOF
12608
12609# Break up conftest.defines because some shells have a limit on the size
12610# of here documents, and old seds have small limits too (100 cmds).
12611echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12612echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12613echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12614echo ' :' >>$CONFIG_STATUS
12615rm -f conftest.tail
12616while grep . conftest.defines >/dev/null
6bf9431b 12617do
0ab6f085
AM
12618 # Write a limited-size here document to $tmp/defines.sed.
12619 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12620 # Speed up: don't consider the non `#define' lines.
12621 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
12622 # Work around the forget-to-reset-the-flag bug.
12623 echo 't clr' >>$CONFIG_STATUS
12624 echo ': clr' >>$CONFIG_STATUS
12625 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6bf9431b 12626 echo 'CEOF
0ab6f085
AM
12627 sed -f $tmp/defines.sed $tmp/in >$tmp/out
12628 rm -f $tmp/in
12629 mv $tmp/out $tmp/in
12630' >>$CONFIG_STATUS
12631 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6bf9431b
BE
12632 rm -f conftest.defines
12633 mv conftest.tail conftest.defines
12634done
0ab6f085
AM
12635rm -f conftest.defines
12636echo ' fi # grep' >>$CONFIG_STATUS
12637echo >>$CONFIG_STATUS
12638
12639# Break up conftest.undefs because some shells have a limit on the size
12640# of here documents, and old seds have small limits too (100 cmds).
12641echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
12642rm -f conftest.tail
12643while grep . conftest.undefs >/dev/null
12644do
12645 # Write a limited-size here document to $tmp/undefs.sed.
12646 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12647 # Speed up: don't consider the non `#undef'
12648 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
12649 # Work around the forget-to-reset-the-flag bug.
12650 echo 't clr' >>$CONFIG_STATUS
12651 echo ': clr' >>$CONFIG_STATUS
12652 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12653 echo 'CEOF
12654 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12655 rm -f $tmp/in
12656 mv $tmp/out $tmp/in
12657' >>$CONFIG_STATUS
12658 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12659 rm -f conftest.undefs
12660 mv conftest.tail conftest.undefs
12661done
12662rm -f conftest.undefs
6bf9431b
BE
12663
12664cat >>$CONFIG_STATUS <<\_ACEOF
0ab6f085
AM
12665 # Let's still pretend it is `configure' which instantiates (i.e., don't
12666 # use $as_me), people would be surprised to read:
12667 # /* config.h. Generated by config.status. */
12668 if test x"$ac_file" = x-; then
12669 echo "/* Generated by configure. */" >$tmp/config.h
12670 else
12671 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
12672 fi
12673 cat $tmp/in >>$tmp/config.h
12674 rm -f $tmp/in
6bf9431b 12675 if test x"$ac_file" != x-; then
0ab6f085 12676 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
6bf9431b
BE
12677 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12678echo "$as_me: $ac_file is unchanged" >&6;}
12679 else
0ab6f085
AM
12680 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12681$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12682 X"$ac_file" : 'X\(//\)[^/]' \| \
12683 X"$ac_file" : 'X\(//\)$' \| \
12684 X"$ac_file" : 'X\(/\)' \| \
12685 . : '\(.\)' 2>/dev/null ||
12686echo X"$ac_file" |
12687 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12688 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12689 /^X\(\/\/\)$/{ s//\1/; q; }
12690 /^X\(\/\).*/{ s//\1/; q; }
12691 s/.*/./; q'`
12692 { if $as_mkdir_p; then
12693 mkdir -p "$ac_dir"
12694 else
12695 as_dir="$ac_dir"
12696 as_dirs=
12697 while test ! -d "$as_dir"; do
12698 as_dirs="$as_dir $as_dirs"
12699 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12700$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12701 X"$as_dir" : 'X\(//\)[^/]' \| \
12702 X"$as_dir" : 'X\(//\)$' \| \
12703 X"$as_dir" : 'X\(/\)' \| \
12704 . : '\(.\)' 2>/dev/null ||
12705echo X"$as_dir" |
12706 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12707 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12708 /^X\(\/\/\)$/{ s//\1/; q; }
12709 /^X\(\/\).*/{ s//\1/; q; }
12710 s/.*/./; q'`
12711 done
12712 test ! -n "$as_dirs" || mkdir $as_dirs
12713 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12714echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12715 { (exit 1); exit 1; }; }; }
12716
6bf9431b 12717 rm -f $ac_file
0ab6f085 12718 mv $tmp/config.h $ac_file
252b5132 12719 fi
6bf9431b 12720 else
0ab6f085
AM
12721 cat $tmp/config.h
12722 rm -f $tmp/config.h
252b5132 12723 fi
6bf9431b
BE
12724# Compute $ac_file's index in $config_headers.
12725_am_stamp_count=1
12726for _am_header in $config_headers :; do
12727 case $_am_header in
12728 $ac_file | $ac_file:* )
12729 break ;;
12730 * )
12731 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12732 esac
12733done
0ab6f085 12734echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
6bf9431b
BE
12735$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12736 X$ac_file : 'X\(//\)[^/]' \| \
12737 X$ac_file : 'X\(//\)$' \| \
0ab6f085
AM
12738 X$ac_file : 'X\(/\)' \| \
12739 . : '\(.\)' 2>/dev/null ||
6bf9431b 12740echo X$ac_file |
0ab6f085
AM
12741 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12742 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12743 /^X\(\/\/\)$/{ s//\1/; q; }
12744 /^X\(\/\).*/{ s//\1/; q; }
12745 s/.*/./; q'`/stamp-h$_am_stamp_count
12746done
12747_ACEOF
12748cat >>$CONFIG_STATUS <<\_ACEOF
6bf9431b 12749
0ab6f085
AM
12750#
12751# CONFIG_COMMANDS section.
12752#
12753for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12754 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12755 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12756 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12757$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12758 X"$ac_dest" : 'X\(//\)[^/]' \| \
12759 X"$ac_dest" : 'X\(//\)$' \| \
12760 X"$ac_dest" : 'X\(/\)' \| \
12761 . : '\(.\)' 2>/dev/null ||
12762echo X"$ac_dest" |
12763 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12764 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12765 /^X\(\/\/\)$/{ s//\1/; q; }
12766 /^X\(\/\).*/{ s//\1/; q; }
12767 s/.*/./; q'`
12768 { if $as_mkdir_p; then
12769 mkdir -p "$ac_dir"
12770 else
12771 as_dir="$ac_dir"
12772 as_dirs=
12773 while test ! -d "$as_dir"; do
12774 as_dirs="$as_dir $as_dirs"
12775 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12776$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12777 X"$as_dir" : 'X\(//\)[^/]' \| \
12778 X"$as_dir" : 'X\(//\)$' \| \
12779 X"$as_dir" : 'X\(/\)' \| \
12780 . : '\(.\)' 2>/dev/null ||
12781echo X"$as_dir" |
12782 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12783 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12784 /^X\(\/\/\)$/{ s//\1/; q; }
12785 /^X\(\/\).*/{ s//\1/; q; }
12786 s/.*/./; q'`
12787 done
12788 test ! -n "$as_dirs" || mkdir $as_dirs
12789 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12790echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12791 { (exit 1); exit 1; }; }; }
12792
12793 ac_builddir=.
12794
12795if test "$ac_dir" != .; then
12796 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12797 # A "../" for each directory in $ac_dir_suffix.
12798 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12799else
12800 ac_dir_suffix= ac_top_builddir=
12801fi
12802
12803case $srcdir in
12804 .) # No --srcdir option. We are building in place.
12805 ac_srcdir=.
12806 if test -z "$ac_top_builddir"; then
12807 ac_top_srcdir=.
12808 else
12809 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12810 fi ;;
12811 [\\/]* | ?:[\\/]* ) # Absolute path.
12812 ac_srcdir=$srcdir$ac_dir_suffix;
12813 ac_top_srcdir=$srcdir ;;
12814 *) # Relative path.
12815 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12816 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12817esac
12818
12819# Do not use `cd foo && pwd` to compute absolute paths, because
12820# the directories may not exist.
12821case `pwd` in
12822.) ac_abs_builddir="$ac_dir";;
12823*)
12824 case "$ac_dir" in
12825 .) ac_abs_builddir=`pwd`;;
12826 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12827 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12828 esac;;
12829esac
12830case $ac_abs_builddir in
12831.) ac_abs_top_builddir=${ac_top_builddir}.;;
12832*)
12833 case ${ac_top_builddir}. in
12834 .) ac_abs_top_builddir=$ac_abs_builddir;;
12835 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12836 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12837 esac;;
12838esac
12839case $ac_abs_builddir in
12840.) ac_abs_srcdir=$ac_srcdir;;
12841*)
12842 case $ac_srcdir in
12843 .) ac_abs_srcdir=$ac_abs_builddir;;
12844 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12845 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12846 esac;;
12847esac
12848case $ac_abs_builddir in
12849.) ac_abs_top_srcdir=$ac_top_srcdir;;
12850*)
12851 case $ac_top_srcdir in
12852 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12853 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12854 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12855 esac;;
12856esac
6bf9431b
BE
12857
12858
0ab6f085
AM
12859 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12860echo "$as_me: executing $ac_dest commands" >&6;}
12861 case $ac_dest in
12862 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
6bf9431b
BE
12863 # Strip MF so we end up with the name of the file.
12864 mf=`echo "$mf" | sed -e 's/:.*$//'`
12865 # Check whether this is an Automake generated Makefile or not.
12866 # We used to match only the files named `Makefile.in', but
12867 # some people rename them; so instead we look at the file content.
12868 # Grep'ing the first line is not enough: some people post-process
12869 # each Makefile.in and add a new line on top of each file to say so.
12870 # So let's grep whole file.
12871 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
0ab6f085 12872 dirpart=`(dirname "$mf") 2>/dev/null ||
6bf9431b
BE
12873$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12874 X"$mf" : 'X\(//\)[^/]' \| \
12875 X"$mf" : 'X\(//\)$' \| \
0ab6f085
AM
12876 X"$mf" : 'X\(/\)' \| \
12877 . : '\(.\)' 2>/dev/null ||
6bf9431b 12878echo X"$mf" |
0ab6f085
AM
12879 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12880 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12881 /^X\(\/\/\)$/{ s//\1/; q; }
12882 /^X\(\/\).*/{ s//\1/; q; }
12883 s/.*/./; q'`
6bf9431b
BE
12884 else
12885 continue
12886 fi
df76639a
AM
12887 # Extract the definition of DEPDIR, am__include, and am__quote
12888 # from the Makefile without running `make'.
6bf9431b
BE
12889 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12890 test -z "$DEPDIR" && continue
df76639a
AM
12891 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12892 test -z "am__include" && continue
12893 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6bf9431b
BE
12894 # When using ansi2knr, U may be empty or an underscore; expand it
12895 U=`sed -n 's/^U = //p' < "$mf"`
df76639a
AM
12896 # Find all dependency output files, they are included files with
12897 # $(DEPDIR) in their names. We invoke sed twice because it is the
12898 # simplest approach to changing $(DEPDIR) to its actual value in the
12899 # expansion.
12900 for file in `sed -n "
12901 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6bf9431b
BE
12902 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12903 # Make sure the directory exists.
12904 test -f "$dirpart/$file" && continue
0ab6f085 12905 fdir=`(dirname "$file") 2>/dev/null ||
6bf9431b
BE
12906$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12907 X"$file" : 'X\(//\)[^/]' \| \
12908 X"$file" : 'X\(//\)$' \| \
0ab6f085
AM
12909 X"$file" : 'X\(/\)' \| \
12910 . : '\(.\)' 2>/dev/null ||
6bf9431b 12911echo X"$file" |
0ab6f085
AM
12912 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12913 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12914 /^X\(\/\/\)$/{ s//\1/; q; }
12915 /^X\(\/\).*/{ s//\1/; q; }
12916 s/.*/./; q'`
12917 { if $as_mkdir_p; then
12918 mkdir -p $dirpart/$fdir
12919 else
12920 as_dir=$dirpart/$fdir
6bf9431b 12921 as_dirs=
0ab6f085
AM
12922 while test ! -d "$as_dir"; do
12923 as_dirs="$as_dir $as_dirs"
12924 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6bf9431b
BE
12925$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12926 X"$as_dir" : 'X\(//\)[^/]' \| \
12927 X"$as_dir" : 'X\(//\)$' \| \
0ab6f085
AM
12928 X"$as_dir" : 'X\(/\)' \| \
12929 . : '\(.\)' 2>/dev/null ||
6bf9431b 12930echo X"$as_dir" |
0ab6f085
AM
12931 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12932 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12933 /^X\(\/\/\)$/{ s//\1/; q; }
12934 /^X\(\/\).*/{ s//\1/; q; }
12935 s/.*/./; q'`
6bf9431b 12936 done
0ab6f085
AM
12937 test ! -n "$as_dirs" || mkdir $as_dirs
12938 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
12939echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
6bf9431b 12940 { (exit 1); exit 1; }; }; }
0ab6f085 12941
6bf9431b
BE
12942 # echo "creating $dirpart/$file"
12943 echo '# dummy' > "$dirpart/$file"
12944 done
12945done
d7040cdb 12946 ;;
0ab6f085 12947 libtool )
d7040cdb
SE
12948
12949 # See if we are running on zsh, and set the options which allow our
12950 # commands through without removal of \ escapes.
12951 if test -n "${ZSH_VERSION+set}" ; then
12952 setopt NO_GLOB_SUBST
12953 fi
12954
12955 cfgfile="${ofile}T"
12956 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12957 $RM "$cfgfile"
12958
12959 cat <<_LT_EOF >> "$cfgfile"
12960#! $SHELL
12961
12962# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12963# Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
12964# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12965# NOTE: Changes made to this file will be lost: look at ltmain.sh.
12966#
12967# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12968# 2006, 2007 Free Software Foundation, Inc.
12969#
12970# This file is part of GNU Libtool:
12971# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
12972#
12973# This program is free software; you can redistribute it and/or modify
12974# it under the terms of the GNU General Public License as published by
12975# the Free Software Foundation; either version 2 of the License, or
12976# (at your option) any later version.
12977#
12978# This program is distributed in the hope that it will be useful, but
12979# WITHOUT ANY WARRANTY; without even the implied warranty of
12980# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12981# General Public License for more details.
12982#
12983# You should have received a copy of the GNU General Public License
12984# along with this program; if not, a copy can be downloaded from
12985# http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
12986# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
12987# MA 02110-1301, USA.
12988#
12989# As a special exception to the GNU General Public License, if you
12990# distribute this file as part of a program that contains a
12991# configuration script generated by Autoconf, you may include it under
12992# the same distribution terms that you use for the rest of that program.
12993
12994
12995# The names of the tagged configurations supported by this script.
12996available_tags=""
12997
12998# ### BEGIN LIBTOOL CONFIG
12999
13000# Which release of libtool.m4 was used?
13001macro_version=$macro_version
13002macro_revision=$macro_revision
13003
13004# Whether or not to build shared libraries.
13005build_libtool_libs=$enable_shared
13006
13007# Whether or not to build static libraries.
13008build_old_libs=$enable_static
13009
13010# What type of objects to build.
13011pic_mode=$pic_mode
13012
13013# Whether or not to optimize for fast installation.
13014fast_install=$enable_fast_install
13015
13016# The host system.
13017host_alias=$host_alias
13018host=$host
13019host_os=$host_os
13020
13021# The build system.
13022build_alias=$build_alias
13023build=$build
13024build_os=$build_os
13025
13026# A sed program that does not truncate output.
13027SED=$lt_SED
13028
13029# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13030Xsed="\$SED -e 1s/^X//"
13031
13032# A grep program that handles long lines.
13033GREP=$lt_GREP
13034
13035# An ERE matcher.
13036EGREP=$lt_EGREP
13037
13038# A literal string matcher.
13039FGREP=$lt_FGREP
13040
13041# A BSD- or MS-compatible name lister.
13042NM=$lt_NM
13043
13044# Whether we need soft or hard links.
13045LN_S=$lt_LN_S
13046
13047# What is the maximum length of a command?
13048max_cmd_len=$max_cmd_len
13049
13050# Object file suffix (normally "o").
13051objext=$ac_objext
13052
13053# Executable file suffix (normally "").
13054exeext=$exeext
13055
13056# whether the shell understands "unset".
13057lt_unset=$lt_unset
13058
13059# turn spaces into newlines.
13060SP2NL=$lt_lt_SP2NL
13061
13062# turn newlines into spaces.
13063NL2SP=$lt_lt_NL2SP
13064
13065# How to create reloadable object files.
13066reload_flag=$lt_reload_flag
13067reload_cmds=$lt_reload_cmds
13068
13069# Method to check whether dependent libraries are shared objects.
13070deplibs_check_method=$lt_deplibs_check_method
13071
13072# Command to use when deplibs_check_method == "file_magic".
13073file_magic_cmd=$lt_file_magic_cmd
13074
13075# The archiver.
13076AR=$lt_AR
13077AR_FLAGS=$lt_AR_FLAGS
13078
13079# A symbol stripping program.
13080STRIP=$lt_STRIP
13081
13082# Commands used to install an old-style archive.
13083RANLIB=$lt_RANLIB
13084old_postinstall_cmds=$lt_old_postinstall_cmds
13085old_postuninstall_cmds=$lt_old_postuninstall_cmds
13086
13087# A C compiler.
13088LTCC=$lt_CC
13089
13090# LTCC compiler flags.
13091LTCFLAGS=$lt_CFLAGS
13092
13093# Take the output of nm and produce a listing of raw symbols and C names.
13094global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13095
13096# Transform the output of nm in a proper C declaration.
13097global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13098
13099# Transform the output of nm in a C name address pair.
13100global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13101
13102# The name of the directory that contains temporary libtool files.
13103objdir=$objdir
13104
13105# Shell to use when invoking shell scripts.
13106SHELL=$lt_SHELL
13107
13108# An echo program that does not interpret backslashes.
13109ECHO=$lt_ECHO
13110
13111# Used to examine libraries when file_magic_cmd begins with "file".
13112MAGIC_CMD=$MAGIC_CMD
13113
13114# Must we lock files when doing compilation?
13115need_locks=$lt_need_locks
13116
13117# Old archive suffix (normally "a").
13118libext=$libext
13119
13120# Shared library suffix (normally ".so").
13121shrext_cmds=$lt_shrext_cmds
13122
13123# The commands to extract the exported symbol list from a shared archive.
13124extract_expsyms_cmds=$lt_extract_expsyms_cmds
13125
13126# Variables whose values should be saved in libtool wrapper scripts and
13127# restored at link time.
13128variables_saved_for_relink=$lt_variables_saved_for_relink
13129
13130# Do we need the "lib" prefix for modules?
13131need_lib_prefix=$need_lib_prefix
13132
13133# Do we need a version for libraries?
13134need_version=$need_version
13135
13136# Library versioning type.
13137version_type=$version_type
13138
13139# Shared library runtime path variable.
13140runpath_var=$runpath_var
13141
13142# Shared library path variable.
13143shlibpath_var=$shlibpath_var
13144
13145# Is shlibpath searched before the hard-coded library search path?
13146shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13147
13148# Format of library name prefix.
13149libname_spec=$lt_libname_spec
13150
13151# List of archive names. First name is the real one, the rest are links.
13152# The last name is the one that the linker finds with -lNAME
13153library_names_spec=$lt_library_names_spec
13154
13155# The coded name of the library, if different from the real name.
13156soname_spec=$lt_soname_spec
13157
13158# Command to use after installation of a shared archive.
13159postinstall_cmds=$lt_postinstall_cmds
13160
13161# Command to use after uninstallation of a shared archive.
13162postuninstall_cmds=$lt_postuninstall_cmds
13163
13164# Commands used to finish a libtool library installation in a directory.
13165finish_cmds=$lt_finish_cmds
13166
13167# As "finish_cmds", except a single script fragment to be evaled but
13168# not shown.
13169finish_eval=$lt_finish_eval
13170
13171# Whether we should hardcode library paths into libraries.
13172hardcode_into_libs=$hardcode_into_libs
13173
13174# Compile-time system search path for libraries.
13175sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13176
13177# Run-time system search path for libraries.
13178sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13179
13180# Whether dlopen is supported.
13181dlopen_support=$enable_dlopen
13182
13183# Whether dlopen of programs is supported.
13184dlopen_self=$enable_dlopen_self
13185
13186# Whether dlopen of statically linked programs is supported.
13187dlopen_self_static=$enable_dlopen_self_static
13188
13189# Commands to strip libraries.
13190old_striplib=$lt_old_striplib
13191striplib=$lt_striplib
13192
13193
13194# The linker used to build libraries.
13195LD=$lt_LD
13196
13197# Commands used to build an old-style archive.
13198old_archive_cmds=$lt_old_archive_cmds
13199
13200# A language specific compiler.
13201CC=$lt_compiler
13202
13203# Is the compiler the GNU compiler?
13204with_gcc=$GCC
13205
13206# Compiler flag to turn off builtin functions.
13207no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13208
13209# How to pass a linker flag through the compiler.
13210wl=$lt_lt_prog_compiler_wl
13211
13212# Additional compiler flags for building library objects.
13213pic_flag=$lt_lt_prog_compiler_pic
13214
13215# Compiler flag to prevent dynamic linking.
13216link_static_flag=$lt_lt_prog_compiler_static
13217
13218# Does compiler simultaneously support -c and -o options?
13219compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13220
13221# Whether or not to add -lc for building shared libraries.
13222build_libtool_need_lc=$archive_cmds_need_lc
13223
13224# Whether or not to disallow shared libs when runtime libs are static.
13225allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13226
13227# Compiler flag to allow reflexive dlopens.
13228export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13229
13230# Compiler flag to generate shared objects directly from archives.
13231whole_archive_flag_spec=$lt_whole_archive_flag_spec
13232
13233# Whether the compiler copes with passing no objects directly.
13234compiler_needs_object=$lt_compiler_needs_object
13235
13236# Create an old-style archive from a shared archive.
13237old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13238
13239# Create a temporary old-style archive to link instead of a shared archive.
13240old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13241
13242# Commands used to build a shared archive.
13243archive_cmds=$lt_archive_cmds
13244archive_expsym_cmds=$lt_archive_expsym_cmds
13245
13246# Commands used to build a loadable module if different from building
13247# a shared archive.
13248module_cmds=$lt_module_cmds
13249module_expsym_cmds=$lt_module_expsym_cmds
13250
13251# Whether we are building with GNU ld or not.
13252with_gnu_ld=$lt_with_gnu_ld
13253
13254# Flag that allows shared libraries with undefined symbols to be built.
13255allow_undefined_flag=$lt_allow_undefined_flag
13256
13257# Flag that enforces no undefined symbols.
13258no_undefined_flag=$lt_no_undefined_flag
13259
13260# Flag to hardcode \$libdir into a binary during linking.
13261# This must work even if \$libdir does not exist
13262hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13263
13264# If ld is used when linking, flag to hardcode \$libdir into a binary
13265# during linking. This must work even if \$libdir does not exist.
13266hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13267
13268# Whether we need a single "-rpath" flag with a separated argument.
13269hardcode_libdir_separator=$lt_hardcode_libdir_separator
13270
13271# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13272# DIR into the resulting binary.
13273hardcode_direct=$hardcode_direct
13274
13275# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13276# DIR into the resulting binary and the resulting library dependency is
13277# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13278# library is relocated.
13279hardcode_direct_absolute=$hardcode_direct_absolute
13280
13281# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13282# into the resulting binary.
13283hardcode_minus_L=$hardcode_minus_L
13284
13285# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13286# into the resulting binary.
13287hardcode_shlibpath_var=$hardcode_shlibpath_var
13288
13289# Set to "yes" if building a shared library automatically hardcodes DIR
13290# into the library and all subsequent libraries and executables linked
13291# against it.
13292hardcode_automatic=$hardcode_automatic
13293
13294# Set to yes if linker adds runtime paths of dependent libraries
13295# to runtime path list.
13296inherit_rpath=$inherit_rpath
13297
13298# Whether libtool must link a program against all its dependency libraries.
13299link_all_deplibs=$link_all_deplibs
13300
13301# Fix the shell variable \$srcfile for the compiler.
13302fix_srcfile_path=$lt_fix_srcfile_path
13303
13304# Set to "yes" if exported symbols are required.
13305always_export_symbols=$always_export_symbols
13306
13307# The commands to list exported symbols.
13308export_symbols_cmds=$lt_export_symbols_cmds
13309
13310# Symbols that should not be listed in the preloaded symbols.
13311exclude_expsyms=$lt_exclude_expsyms
13312
13313# Symbols that must always be exported.
13314include_expsyms=$lt_include_expsyms
13315
13316# Commands necessary for linking programs (against libraries) with templates.
13317prelink_cmds=$lt_prelink_cmds
13318
13319# Specify filename containing input files.
13320file_list_spec=$lt_file_list_spec
13321
13322# How to hardcode a shared library path into an executable.
13323hardcode_action=$hardcode_action
13324
13325# ### END LIBTOOL CONFIG
13326
13327_LT_EOF
13328
13329 case $host_os in
13330 aix3*)
13331 cat <<\_LT_EOF >> "$cfgfile"
13332# AIX sometimes has problems with the GCC collect2 program. For some
13333# reason, if we set the COLLECT_NAMES environment variable, the problems
13334# vanish in a puff of smoke.
13335if test "X${COLLECT_NAMES+set}" != Xset; then
13336 COLLECT_NAMES=
13337 export COLLECT_NAMES
13338fi
13339_LT_EOF
13340 ;;
13341 esac
13342
13343
13344ltmain="$ac_aux_dir/ltmain.sh"
13345
13346
13347 # We use sed instead of cat because bash on DJGPP gets confused if
13348 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13349 # text mode, it properly converts lines to CR/LF. This bash problem
13350 # is reportedly fixed, but why not run on old versions too?
13351 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13352 || (rm -f "$cfgfile"; exit 1)
13353
13354 case $xsi_shell in
13355 yes)
13356 cat << \_LT_EOF >> "$cfgfile"
13357# func_dirname file append nondir_replacement
13358# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13359# otherwise set result to NONDIR_REPLACEMENT.
13360func_dirname ()
13361{
13362 case ${1} in
13363 */*) func_dirname_result="${1%/*}${2}" ;;
13364 * ) func_dirname_result="${3}" ;;
13365 esac
13366}
13367
13368# func_basename file
13369func_basename ()
13370{
13371 func_basename_result="${1##*/}"
13372}
13373
13374# func_stripname prefix suffix name
13375# strip PREFIX and SUFFIX off of NAME.
13376# PREFIX and SUFFIX must not contain globbing or regex special
13377# characters, hashes, percent signs, but SUFFIX may contain a leading
13378# dot (in which case that matches only a dot).
13379func_stripname ()
13380{
13381 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13382 # positional parameters, so assign one to ordinary parameter first.
13383 func_stripname_result=${3}
13384 func_stripname_result=${func_stripname_result#"${1}"}
13385 func_stripname_result=${func_stripname_result%"${2}"}
13386}
13387
13388# func_opt_split
13389func_opt_split ()
13390{
13391 func_opt_split_opt=${1%%=*}
13392 func_opt_split_arg=${1#*=}
13393}
13394
13395# func_lo2o object
13396func_lo2o ()
13397{
13398 case ${1} in
13399 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13400 *) func_lo2o_result=${1} ;;
13401 esac
13402}
13403_LT_EOF
13404 ;;
13405 *) # Bourne compatible functions.
13406 cat << \_LT_EOF >> "$cfgfile"
13407# func_dirname file append nondir_replacement
13408# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13409# otherwise set result to NONDIR_REPLACEMENT.
13410func_dirname ()
13411{
13412 # Extract subdirectory from the argument.
13413 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13414 if test "X$func_dirname_result" = "X${1}"; then
13415 func_dirname_result="${3}"
13416 else
13417 func_dirname_result="$func_dirname_result${2}"
13418 fi
13419}
13420
13421# func_basename file
13422func_basename ()
13423{
13424 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13425}
13426
13427# func_stripname prefix suffix name
13428# strip PREFIX and SUFFIX off of NAME.
13429# PREFIX and SUFFIX must not contain globbing or regex special
13430# characters, hashes, percent signs, but SUFFIX may contain a leading
13431# dot (in which case that matches only a dot).
13432# func_strip_suffix prefix name
13433func_stripname ()
13434{
13435 case ${2} in
13436 .*) func_stripname_result=`$ECHO "X${3}" \
13437 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13438 *) func_stripname_result=`$ECHO "X${3}" \
13439 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13440 esac
13441}
13442
13443# sed scripts:
13444my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13445my_sed_long_arg='1s/^-[^=]*=//'
13446
13447# func_opt_split
13448func_opt_split ()
13449{
13450 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13451 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13452}
13453
13454# func_lo2o object
13455func_lo2o ()
13456{
13457 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13458}
13459_LT_EOF
13460esac
13461
13462case $lt_shell_append in
13463 yes)
13464 cat << \_LT_EOF >> "$cfgfile"
13465
13466# func_append var value
13467# Append VALUE to the end of shell variable VAR.
13468func_append ()
13469{
13470 eval "$1+=\$2"
13471}
13472_LT_EOF
13473 ;;
13474 *)
13475 cat << \_LT_EOF >> "$cfgfile"
13476
13477# func_append var value
13478# Append VALUE to the end of shell variable VAR.
13479func_append ()
13480{
13481 eval "$1=\$$1\$2"
13482}
13483_LT_EOF
13484 ;;
13485 esac
13486
13487
13488 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13489 || (rm -f "$cfgfile"; exit 1)
13490
13491 mv -f "$cfgfile" "$ofile" ||
13492 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13493 chmod +x "$ofile"
13494
6bf9431b 13495 ;;
0ab6f085 13496 default-1 )
20e95c23
DJ
13497 for ac_file in $CONFIG_FILES; do
13498 # Support "outfile[:infile[:infile...]]"
13499 case "$ac_file" in
13500 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13501 esac
13502 # PO directories have a Makefile.in generated from Makefile.in.in.
13503 case "$ac_file" in */Makefile.in)
13504 # Adjust a relative srcdir.
13505 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
13506 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
13507 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
13508 # In autoconf-2.13 it is called $ac_given_srcdir.
13509 # In autoconf-2.50 it is called $srcdir.
13510 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
13511 case "$ac_given_srcdir" in
13512 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
13513 /*) top_srcdir="$ac_given_srcdir" ;;
13514 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
13515 esac
13516 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
13517 rm -f "$ac_dir/POTFILES"
13518 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
13519 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
13520 POMAKEFILEDEPS="POTFILES.in"
13521 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
13522 # on $ac_dir but don't depend on user-specified configuration
13523 # parameters.
13524 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
13525 # The LINGUAS file contains the set of available languages.
13526 if test -n "$OBSOLETE_ALL_LINGUAS"; then
13527 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
13528 fi
13529 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
13530 # Hide the ALL_LINGUAS assigment from automake.
13531 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
13532 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
13533 else
13534 # The set of available languages was given in configure.in.
13535 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
13536 fi
13537 case "$ac_given_srcdir" in
13538 .) srcdirpre= ;;
13539 *) srcdirpre='$(srcdir)/' ;;
13540 esac
13541 POFILES=
13542 GMOFILES=
13543 UPDATEPOFILES=
13544 DUMMYPOFILES=
13545 for lang in $ALL_LINGUAS; do
13546 POFILES="$POFILES $srcdirpre$lang.po"
13547 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
13548 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
13549 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
13550 done
13551 # CATALOGS depends on both $ac_dir and the user's LINGUAS
13552 # environment variable.
13553 INST_LINGUAS=
13554 if test -n "$ALL_LINGUAS"; then
13555 for presentlang in $ALL_LINGUAS; do
13556 useit=no
13557 if test "%UNSET%" != "$LINGUAS"; then
13558 desiredlanguages="$LINGUAS"
13559 else
13560 desiredlanguages="$ALL_LINGUAS"
13561 fi
13562 for desiredlang in $desiredlanguages; do
13563 # Use the presentlang catalog if desiredlang is
13564 # a. equal to presentlang, or
13565 # b. a variant of presentlang (because in this case,
13566 # presentlang can be used as a fallback for messages
13567 # which are not translated in the desiredlang catalog).
13568 case "$desiredlang" in
13569 "$presentlang"*) useit=yes;;
13570 esac
13571 done
13572 if test $useit = yes; then
13573 INST_LINGUAS="$INST_LINGUAS $presentlang"
13574 fi
13575 done
13576 fi
13577 CATALOGS=
13578 if test -n "$INST_LINGUAS"; then
13579 for lang in $INST_LINGUAS; do
13580 CATALOGS="$CATALOGS $lang.gmo"
13581 done
13582 fi
13583 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
13584 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"
13585 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
13586 if test -f "$f"; then
13587 case "$f" in
13588 *.orig | *.bak | *~) ;;
13589 *) cat "$f" >> "$ac_dir/Makefile" ;;
13590 esac
13591 fi
13592 done
13593 fi
13594 ;;
13595 esac
13596 done ;;
6bf9431b 13597 esac
0ab6f085
AM
13598done
13599_ACEOF
6bf9431b 13600
0ab6f085 13601cat >>$CONFIG_STATUS <<\_ACEOF
6bf9431b
BE
13602
13603{ (exit 0); exit 0; }
13604_ACEOF
252b5132 13605chmod +x $CONFIG_STATUS
6bf9431b
BE
13606ac_clean_files=$ac_clean_files_save
13607
13608
13609# configure is writing to config.log, and then calls config.status.
13610# config.status does its own redirection, appending to config.log.
13611# Unfortunately, on DOS this fails, as config.log is still kept open
13612# by configure, so config.status won't be able to write to it; its
13613# output is simply discarded. So we exec the FD to /dev/null,
13614# effectively closing config.log, so it can be properly (re)opened and
13615# appended to by config.status. When coming back to configure, we
13616# need to make the FD available again.
13617if test "$no_create" != yes; then
13618 ac_cs_success=:
13619 ac_config_status_args=
13620 test "$silent" = yes &&
13621 ac_config_status_args="$ac_config_status_args --quiet"
13622 exec 5>/dev/null
13623 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13624 exec 5>>config.log
13625 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13626 # would make configure fail if this is the last instruction.
13627 $ac_cs_success || { (exit 1); exit 1; }
13628fi
252b5132 13629
This page took 1.420031 seconds and 4 git commands to generate.