2007-09-11 Jan Beulich <jbeulich@novell.com>
[deliverable/binutils-gdb.git] / gprof / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
6bf9431b 3# Generated by GNU Autoconf 2.59.
252b5132 4#
6bf9431b 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
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
d7040cdb
SE
244
245# Check that we are running under the correct shell.
246SHELL=${CONFIG_SHELL-/bin/sh}
247
248case X$lt_ECHO in
249X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
252 ;;
253esac
254
255ECHO=${lt_ECHO-echo}
256if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
258 shift
259elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
261 :
262elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $ECHO works!
264 :
265else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
268fi
269
270if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
272 shift
273 cat <<_LT_EOF
274$*
275_LT_EOF
276 exit 0
277fi
278
279# The HP-UX ksh and POSIX shell print the target directory to stdout
280# if CDPATH is set.
281(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
282
283if test -z "$lt_ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
289 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
290 then
291 break
292 fi
293 done
294 fi
295
296 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
297 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
298 test "X$echo_testing_string" = "X$echo_test_string"; then
299 :
300 else
301 # The Solaris, AIX, and Digital Unix default echo programs unquote
302 # backslashes. This makes it impossible to quote backslashes using
303 # echo "$something" | sed 's/\\/\\\\/g'
304 #
305 # So, first we look for a working echo in the user's PATH.
306
307 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
308 for dir in $PATH /usr/ucb; do
309 IFS="$lt_save_ifs"
310 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
311 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313 test "X$echo_testing_string" = "X$echo_test_string"; then
314 ECHO="$dir/echo"
315 break
316 fi
317 done
318 IFS="$lt_save_ifs"
319
320 if test "X$ECHO" = Xecho; then
321 # We didn't find a better echo, so look for alternatives.
322 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
323 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
324 test "X$echo_testing_string" = "X$echo_test_string"; then
325 # This shell has a builtin print -r that does the trick.
326 ECHO='print -r'
327 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
328 test "X$CONFIG_SHELL" != X/bin/ksh; then
329 # If we have ksh, try running configure again with it.
330 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
331 export ORIGINAL_CONFIG_SHELL
332 CONFIG_SHELL=/bin/ksh
333 export CONFIG_SHELL
334 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
335 else
336 # Try using printf.
337 ECHO='printf %s\n'
338 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
339 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
340 test "X$echo_testing_string" = "X$echo_test_string"; then
341 # Cool, printf works
342 :
343 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344 test "X$echo_testing_string" = 'X\t' &&
345 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346 test "X$echo_testing_string" = "X$echo_test_string"; then
347 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
348 export CONFIG_SHELL
349 SHELL="$CONFIG_SHELL"
350 export SHELL
351 ECHO="$CONFIG_SHELL $0 --fallback-echo"
352 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353 test "X$echo_testing_string" = 'X\t' &&
354 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355 test "X$echo_testing_string" = "X$echo_test_string"; then
356 ECHO="$CONFIG_SHELL $0 --fallback-echo"
357 else
358 # maybe with a smaller string...
359 prev=:
360
361 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
363 then
364 break
365 fi
366 prev="$cmd"
367 done
368
369 if test "$prev" != 'sed 50q "$0"'; then
370 echo_test_string=`eval $prev`
371 export echo_test_string
372 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
373 else
374 # Oops. We lost completely, so just stick with echo.
375 ECHO=echo
376 fi
377 fi
378 fi
379 fi
380 fi
381fi
382
383# Copy echo and quote the copy suitably for passing to libtool from
384# the Makefile, instead of quoting the original, which is used later.
385lt_ECHO=$ECHO
386if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
388fi
389
390
391
392
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
6bf9431b
BE
398exec 6>&1
399
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
411# Maximum number of lines to put in a shell here document.
412# This variable seems obsolete. It should probably be removed, and
413# only ac_max_sed_lines should be used.
414: ${ac_max_here_lines=38}
415
416# Identity of this package.
417PACKAGE_NAME=
418PACKAGE_TARNAME=
419PACKAGE_VERSION=
420PACKAGE_STRING=
421PACKAGE_BUGREPORT=
422
423ac_unique_file="gprof.c"
424# Factoring default headers for most tests.
425ac_includes_default="\
426#include <stdio.h>
427#if HAVE_SYS_TYPES_H
428# include <sys/types.h>
429#endif
430#if HAVE_SYS_STAT_H
431# include <sys/stat.h>
432#endif
433#if STDC_HEADERS
434# include <stdlib.h>
435# include <stddef.h>
436#else
437# if HAVE_STDLIB_H
438# include <stdlib.h>
439# endif
440#endif
441#if HAVE_STRING_H
442# if !STDC_HEADERS && HAVE_MEMORY_H
443# include <memory.h>
444# endif
445# include <string.h>
446#endif
447#if HAVE_STRINGS_H
448# include <strings.h>
449#endif
450#if HAVE_INTTYPES_H
451# include <inttypes.h>
452#else
453# if HAVE_STDINT_H
454# include <stdint.h>
455# endif
456#endif
457#if HAVE_UNISTD_H
458# include <unistd.h>
459#endif"
460
d7040cdb 461ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO CPP 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'
492datadir='${prefix}/share'
493sysconfdir='${prefix}/etc'
494sharedstatedir='${prefix}/com'
495localstatedir='${prefix}/var'
496libdir='${exec_prefix}/lib'
497includedir='${prefix}/include'
498oldincludedir='/usr/include'
499infodir='${prefix}/info'
500mandir='${prefix}/man'
501
252b5132
RH
502ac_prev=
503for ac_option
504do
252b5132
RH
505 # If the previous option needs an argument, assign it.
506 if test -n "$ac_prev"; then
507 eval "$ac_prev=\$ac_option"
508 ac_prev=
509 continue
510 fi
511
6bf9431b 512 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
252b5132
RH
513
514 # Accept the important Cygnus configure options, so we can diagnose typos.
515
6bf9431b 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
RH
537
538 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
539 ac_prev=datadir ;;
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.
6bf9431b
BE
547 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
548 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
549 { (exit 1); exit 1; }; }
550 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
551 eval "enable_$ac_feature=no" ;;
252b5132
RH
552
553 -enable-* | --enable-*)
6bf9431b 554 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 555 # Reject names that are not valid shell variable names.
6bf9431b
BE
556 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558 { (exit 1); exit 1; }; }
559 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560 case $ac_option in
561 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252b5132
RH
562 *) ac_optarg=yes ;;
563 esac
6bf9431b 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 \
616 | --localstate | --localstat | --localsta | --localst \
617 | --locals | --local | --loca | --loc | --lo)
618 ac_prev=localstatedir ;;
619 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
620 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
621 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
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.
6bf9431b
BE
738 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
739 { echo "$as_me: error: invalid package name: $ac_package" >&2
740 { (exit 1); exit 1; }; }
252b5132 741 ac_package=`echo $ac_package| sed 's/-/_/g'`
6bf9431b
BE
742 case $ac_option in
743 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252b5132
RH
744 *) ac_optarg=yes ;;
745 esac
6bf9431b 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.
6bf9431b
BE
751 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
752 { echo "$as_me: error: invalid package name: $ac_package" >&2
753 { (exit 1); exit 1; }; }
754 ac_package=`echo $ac_package | sed 's/-/_/g'`
755 eval "with_$ac_package=no" ;;
252b5132
RH
756
757 --x)
758 # Obsolete; use --with-x.
759 with_x=yes ;;
760
761 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
762 | --x-incl | --x-inc | --x-in | --x-i)
763 ac_prev=x_includes ;;
764 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
765 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
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; }; }
786 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
787 eval "$ac_envvar='$ac_optarg'"
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
6bf9431b
BE
807# Be sure to have absolute paths.
808for ac_var in exec_prefix prefix
809do
810 eval ac_val=$`echo $ac_var`
811 case $ac_val in
812 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
813 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
814 { (exit 1); exit 1; }; };;
815 esac
816done
252b5132 817
6bf9431b
BE
818# Be sure to have absolute paths.
819for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
820 localstatedir libdir includedir oldincludedir infodir mandir
252b5132 821do
6bf9431b
BE
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
857 # Try the directory containing this script, then its parent.
6bf9431b
BE
858 ac_confdir=`(dirname "$0") 2>/dev/null ||
859$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
860 X"$0" : 'X\(//\)[^/]' \| \
861 X"$0" : 'X\(//\)$' \| \
862 X"$0" : 'X\(/\)' \| \
863 . : '\(.\)' 2>/dev/null ||
864echo X"$0" |
865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
866 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
867 /^X\(\/\/\)$/{ s//\1/; q; }
868 /^X\(\/\).*/{ s//\1/; q; }
869 s/.*/./; q'`
252b5132
RH
870 srcdir=$ac_confdir
871 if test ! -r $srcdir/$ac_unique_file; then
872 srcdir=..
873 fi
874else
875 ac_srcdir_defaulted=no
876fi
877if test ! -r $srcdir/$ac_unique_file; then
878 if test "$ac_srcdir_defaulted" = yes; then
6bf9431b
BE
879 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
880 { (exit 1); exit 1; }; }
252b5132 881 else
6bf9431b
BE
882 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
883 { (exit 1); exit 1; }; }
252b5132
RH
884 fi
885fi
6bf9431b
BE
886(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
887 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
888 { (exit 1); exit 1; }; }
889srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
890ac_env_build_alias_set=${build_alias+set}
891ac_env_build_alias_value=$build_alias
892ac_cv_env_build_alias_set=${build_alias+set}
893ac_cv_env_build_alias_value=$build_alias
894ac_env_host_alias_set=${host_alias+set}
895ac_env_host_alias_value=$host_alias
896ac_cv_env_host_alias_set=${host_alias+set}
897ac_cv_env_host_alias_value=$host_alias
898ac_env_target_alias_set=${target_alias+set}
899ac_env_target_alias_value=$target_alias
900ac_cv_env_target_alias_set=${target_alias+set}
901ac_cv_env_target_alias_value=$target_alias
902ac_env_CC_set=${CC+set}
903ac_env_CC_value=$CC
904ac_cv_env_CC_set=${CC+set}
905ac_cv_env_CC_value=$CC
906ac_env_CFLAGS_set=${CFLAGS+set}
907ac_env_CFLAGS_value=$CFLAGS
908ac_cv_env_CFLAGS_set=${CFLAGS+set}
909ac_cv_env_CFLAGS_value=$CFLAGS
910ac_env_LDFLAGS_set=${LDFLAGS+set}
911ac_env_LDFLAGS_value=$LDFLAGS
912ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
913ac_cv_env_LDFLAGS_value=$LDFLAGS
914ac_env_CPPFLAGS_set=${CPPFLAGS+set}
915ac_env_CPPFLAGS_value=$CPPFLAGS
916ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
917ac_cv_env_CPPFLAGS_value=$CPPFLAGS
918ac_env_CPP_set=${CPP+set}
919ac_env_CPP_value=$CPP
920ac_cv_env_CPP_set=${CPP+set}
921ac_cv_env_CPP_value=$CPP
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
950_ACEOF
951
952 cat <<_ACEOF
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]
970 --datadir=DIR read-only architecture-independent data [PREFIX/share]
971 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
972 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
973 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
974 --libdir=DIR object code libraries [EPREFIX/lib]
975 --includedir=DIR C header files [PREFIX/include]
976 --oldincludedir=DIR C header files for non-gcc [/usr/include]
977 --infodir=DIR info documentation [PREFIX/info]
978 --mandir=DIR man documentation [PREFIX/man]
979_ACEOF
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
d7040cdb
SE
1004 --enable-shared[=PKGS]
1005 build shared libraries [default=yes]
1006 --enable-static[=PKGS]
1007 build static libraries [default=yes]
1008 --enable-fast-install[=PKGS]
1009 optimize for fast installation [default=yes]
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>
1029 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1030 headers in a nonstandard directory <include dir>
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.
1041 ac_popdir=`pwd`
1042 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1043 test -d $ac_dir || continue
1044 ac_builddir=.
252b5132 1045
6bf9431b
BE
1046if test "$ac_dir" != .; then
1047 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
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
1053
1054case $srcdir in
1055 .) # No --srcdir option. We are building in place.
1056 ac_srcdir=.
1057 if test -z "$ac_top_builddir"; then
1058 ac_top_srcdir=.
1059 else
1060 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
252b5132 1061 fi ;;
6bf9431b
BE
1062 [\\/]* | ?:[\\/]* ) # Absolute path.
1063 ac_srcdir=$srcdir$ac_dir_suffix;
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 ;;
252b5132
RH
1068esac
1069
6bf9431b
BE
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;;
252b5132 1080esac
6bf9431b
BE
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;;
1089esac
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;;
252b5132
RH
1107esac
1108
6bf9431b
BE
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
1121 else
1122 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1123 fi
df76639a 1124 cd $ac_popdir
6bf9431b
BE
1125 done
1126fi
252b5132 1127
6bf9431b
BE
1128test -n "$ac_init_help" && exit 0
1129if $ac_init_version; then
1130 cat <<\_ACEOF
252b5132 1131
6bf9431b
BE
1132Copyright (C) 2003 Free Software Foundation, Inc.
1133This configure script is free software; the Free Software Foundation
1134gives unlimited permission to copy, distribute and modify it.
1135_ACEOF
1136 exit 0
1137fi
1138exec 5>config.log
1139cat >&5 <<_ACEOF
1140This file contains any messages produced by compilers while
1141running configure, to aid debugging if configure makes a mistake.
66477e87 1142
6bf9431b
BE
1143It was created by $as_me, which was
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`
1167hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
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=
1202ac_sep=
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 ;;
1213 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
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
1235 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1236 # Get rid of the leading space.
1237 ac_sep=" "
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.
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.
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,
1262{
1263 (set) 2>&1 |
1264 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1265 *ac_space=\ *)
1266 sed -n \
1267 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1268 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1269 ;;
1270 *)
1271 sed -n \
1272 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1273 ;;
1274 esac;
1275}
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
1286 eval ac_val=$`echo $ac_var`
1287 echo "$ac_var='"'"'$ac_val'"'"'"
1288 done | sort
1289 echo
1290
1291 if test -n "$ac_subst_files"; then
1292 cat <<\_ASBOX
1293## ------------- ##
1294## Output files. ##
1295## ------------- ##
1296_ASBOX
1297 echo
1298 for ac_var in $ac_subst_files
1299 do
1300 eval ac_val=$`echo $ac_var`
1301 echo "$ac_var='"'"'$ac_val'"'"'"
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
1313 sed "/^$/d" confdefs.h | sort
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
1320 rm -f core *.core &&
1321 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1322 exit $exit_status
1323 ' 0
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.
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
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.
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
1369fi
1370for ac_site_file in $CONFIG_SITE; do
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
1386 [\\/]* | ?:[\\/]* ) . $cache_file;;
1387 *) . ./$cache_file;;
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
1399for ac_var in `(set) 2>&1 |
1400 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1401 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1402 eval ac_new_set=\$ac_env_${ac_var}_set
1403 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1404 eval ac_new_val="\$ac_env_${ac_var}_value"
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
1429 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1430 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
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
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
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473ac_aux_dir=
1474for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1475 if test -f $ac_dir/install-sh; then
1476 ac_aux_dir=$ac_dir
1477 ac_install_sh="$ac_aux_dir/install-sh -c"
1478 break
1479 elif test -f $ac_dir/install.sh; then
1480 ac_aux_dir=$ac_dir
1481 ac_install_sh="$ac_aux_dir/install.sh -c"
1482 break
1483 elif test -f $ac_dir/shtool; then
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
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;}
1492 { (exit 1); exit 1; }; }
1493fi
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.
1497
1498# Make sure we can run config.sub.
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;}
1502 { (exit 1); exit 1; }; }
1503
1504echo "$as_me:$LINENO: checking build system type" >&5
1505echo $ECHO_N "checking build system type... $ECHO_C" >&6
1506if test "${ac_cv_build+set}" = set; then
1507 echo $ECHO_N "(cached) $ECHO_C" >&6
1508else
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" &&
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; }; }
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;}
1519 { (exit 1); exit 1; }; }
1520
1521fi
1522echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1523echo "${ECHO_T}$ac_cv_build" >&6
1524build=$ac_cv_build
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
1532if test "${ac_cv_host+set}" = set; then
1533 echo $ECHO_N "(cached) $ECHO_C" >&6
1534else
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;}
1541 { (exit 1); exit 1; }; }
1542
1543fi
1544echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1545echo "${ECHO_T}$ac_cv_host" >&6
1546host=$ac_cv_host
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
1554if test "${ac_cv_target+set}" = set; then
1555 echo $ECHO_N "(cached) $ECHO_C" >&6
1556else
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;}
1563 { (exit 1); exit 1; }; }
1564
1565fi
1566echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1567echo "${ECHO_T}$ac_cv_target" >&6
1568target=$ac_cv_target
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/'`
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
1588echo "$as_me:$LINENO: checking for $ac_word" >&5
1589echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
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
1602 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
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
1614 echo "$as_me:$LINENO: result: $CC" >&5
1615echo "${ECHO_T}$CC" >&6
1616else
1617 echo "$as_me:$LINENO: result: no" >&5
1618echo "${ECHO_T}no" >&6
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
1626echo "$as_me:$LINENO: checking for $ac_word" >&5
1627echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
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
1640 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
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
1652 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1653echo "${ECHO_T}$ac_ct_CC" >&6
1654else
1655 echo "$as_me:$LINENO: result: no" >&5
1656echo "${ECHO_T}no" >&6
1657fi
1658
1659 CC=$ac_ct_CC
1660else
1661 CC="$ac_cv_prog_CC"
1662fi
1663
1664if test -z "$CC"; then
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.
1667set dummy ${ac_tool_prefix}cc; ac_word=$2
1668echo "$as_me:$LINENO: checking for $ac_word" >&5
1669echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
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
1682 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
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
1694 echo "$as_me:$LINENO: result: $CC" >&5
1695echo "${ECHO_T}$CC" >&6
1696else
1697 echo "$as_me:$LINENO: result: no" >&5
1698echo "${ECHO_T}no" >&6
1699fi
1700
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
1724 fi
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
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
1748echo "$as_me:$LINENO: checking for $ac_word" >&5
1749echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
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
1763 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
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
1791 echo "$as_me:$LINENO: result: $CC" >&5
1792echo "${ECHO_T}$CC" >&6
1793else
1794 echo "$as_me:$LINENO: result: no" >&5
1795echo "${ECHO_T}no" >&6
1796fi
1797
1798fi
1799if test -z "$CC"; then
1800 if test -n "$ac_tool_prefix"; then
1801 for ac_prog in cl
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
1805echo "$as_me:$LINENO: checking for $ac_word" >&5
1806echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
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
1819 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
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
1831 echo "$as_me:$LINENO: result: $CC" >&5
1832echo "${ECHO_T}$CC" >&6
1833else
1834 echo "$as_me:$LINENO: result: no" >&5
1835echo "${ECHO_T}no" >&6
1836fi
1837
1838 test -n "$CC" && break
1839 done
1840fi
1841if test -z "$CC"; then
1842 ac_ct_CC=$CC
1843 for ac_prog in cl
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
1847echo "$as_me:$LINENO: checking for $ac_word" >&5
1848echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
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
1861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
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
1873 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1874echo "${ECHO_T}$ac_ct_CC" >&6
1875else
1876 echo "$as_me:$LINENO: result: no" >&5
1877echo "${ECHO_T}no" >&6
1878fi
1879
1880 test -n "$ac_ct_CC" && break
1881done
1882
1883 CC=$ac_ct_CC
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.
1896echo "$as_me:$LINENO:" \
1897 "checking for C compiler version" >&5
1898ac_compiler=`set X $ac_compile; echo $2`
1899{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1900 (eval $ac_compiler --version </dev/null >&5) 2>&5
1901 ac_status=$?
1902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1903 (exit $ac_status); }
1904{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1905 (eval $ac_compiler -v </dev/null >&5) 2>&5
1906 ac_status=$?
1907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1908 (exit $ac_status); }
1909{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1910 (eval $ac_compiler -V </dev/null >&5) 2>&5
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.
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
1937ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1938if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1939 (eval $ac_link_default) 2>&5
1940 ac_status=$?
1941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1942 (exit $ac_status); }; then
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
1952do
1953 test -f "$ac_file" || continue
1954 case $ac_file in
1955 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1956 ;;
1957 conftest.$ac_ext )
1958 # This is the source file.
1959 ;;
1960 [ab].out )
1961 # We found the default executable, but exeext='' is most
1962 # certainly right.
1963 break;;
1964 *.* )
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
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
1987echo "$as_me:$LINENO: result: $ac_file" >&5
1988echo "${ECHO_T}$ac_file" >&6
1989
1990# Check the compiler produces executables we can run. If not, either
1991# the compiler is broken, or we cross compile.
1992echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1993echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
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'
1998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1999 (eval $ac_try) 2>&5
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
2018echo "$as_me:$LINENO: result: yes" >&5
2019echo "${ECHO_T}yes" >&6
2020
2021rm -f a.out a.exe conftest$ac_cv_exeext b.out
2022ac_clean_files=$ac_clean_files_save
2023# Check the compiler produces executables we can run. If not, either
2024# the compiler is broken, or we cross compile.
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
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
2044 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2045 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2046 export ac_cv_exeext
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
2060echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2061echo "${ECHO_T}$ac_cv_exeext" >&6
2062
2063rm -f conftest.$ac_ext
2064EXEEXT=$ac_cv_exeext
2065ac_exeext=$EXEEXT
2066echo "$as_me:$LINENO: checking for suffix of object files" >&5
2067echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
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
2087if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2088 (eval $ac_compile) 2>&5
2089 ac_status=$?
2090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091 (exit $ac_status); }; then
2092 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2093 case $ac_file in
2094 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
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
2112echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2113echo "${ECHO_T}$ac_cv_objext" >&6
2114OBJEXT=$ac_cv_objext
2115ac_objext=$OBJEXT
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
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
2140if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2141 (eval $ac_compile) 2>conftest.er1
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
2147 (exit $ac_status); } &&
df76639a
AM
2148 { ac_try='test -z "$ac_c_werror_flag"
2149 || test ! -s conftest.err'
6bf9431b
BE
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
2161 ac_compiler_gnu=yes
2162else
2163 echo "$as_me: failed program was:" >&5
2164sed 's/^/| /' conftest.$ac_ext >&5
2165
2166ac_compiler_gnu=no
2167fi
2168rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2169ac_cv_c_compiler_gnu=$ac_compiler_gnu
2170
2171fi
2172echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2173echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2174GCC=`test $ac_compiler_gnu = yes && echo yes`
2175ac_test_CFLAGS=${CFLAGS+set}
2176ac_save_CFLAGS=$CFLAGS
2177CFLAGS="-g"
2178echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2179echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2180if test "${ac_cv_prog_cc_g+set}" = set; then
2181 echo $ECHO_N "(cached) $ECHO_C" >&6
2182else
2183 cat >conftest.$ac_ext <<_ACEOF
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
2199if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2200 (eval $ac_compile) 2>conftest.er1
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
2206 (exit $ac_status); } &&
df76639a
AM
2207 { ac_try='test -z "$ac_c_werror_flag"
2208 || test ! -s conftest.err'
6bf9431b
BE
2209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2210 (eval $ac_try) 2>&5
2211 ac_status=$?
2212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
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
2217 ac_status=$?
2218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219 (exit $ac_status); }; }; then
2220 ac_cv_prog_cc_g=yes
2221else
2222 echo "$as_me: failed program was:" >&5
2223sed 's/^/| /' conftest.$ac_ext >&5
2224
2225ac_cv_prog_cc_g=no
2226fi
2227rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2228fi
2229echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2230echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
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
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
2249 echo $ECHO_N "(cached) $ECHO_C" >&6
2250else
2251 ac_cv_prog_cc_stdc=no
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
2285 as 'x'. The following induces an error, until -std1 is added to get
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
2288 that's true only with -std1. */
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
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__"
2313do
2314 CC="$ac_save_CC $ac_arg"
2315 rm -f conftest.$ac_objext
2316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2317 (eval $ac_compile) 2>conftest.er1
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
2323 (exit $ac_status); } &&
df76639a
AM
2324 { ac_try='test -z "$ac_c_werror_flag"
2325 || test ! -s conftest.err'
6bf9431b
BE
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
2339else
2340 echo "$as_me: failed program was:" >&5
2341sed 's/^/| /' conftest.$ac_ext >&5
2342
2343fi
2344rm -f conftest.err conftest.$ac_objext
2345done
2346rm -f conftest.$ac_ext conftest.$ac_objext
2347CC=$ac_save_CC
2348
2349fi
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 ;;
2355 *)
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" ;;
2359esac
2360
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); } &&
df76639a
AM
2379 { ac_try='test -z "$ac_c_werror_flag"
2380 || test ! -s conftest.err'
6bf9431b
BE
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); } &&
df76639a
AM
2425 { ac_try='test -z "$ac_c_werror_flag"
2426 || test ! -s conftest.err'
6bf9431b
BE
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); } &&
df76639a
AM
2470 { ac_try='test -z "$ac_c_werror_flag"
2471 || test ! -s conftest.err'
6bf9431b
BE
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
2501
2502fi
2503rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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
2511echo "$as_me:$LINENO: checking for library containing strerror" >&5
2512echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
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
2517ac_cv_search_strerror=no
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
2525/* Override any gcc2 internal prototype to avoid an error. */
2526#ifdef __cplusplus
2527extern "C"
2528#endif
2529/* We use char because int might match the return type of a gcc2
2530 builtin and then its argument prototype would still apply. */
2531char strerror ();
2532int
2533main ()
2534{
2535strerror ();
2536 ;
2537 return 0;
2538}
2539_ACEOF
2540rm -f conftest.$ac_objext conftest$ac_exeext
2541if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2542 (eval $ac_link) 2>conftest.er1
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
2548 (exit $ac_status); } &&
df76639a
AM
2549 { ac_try='test -z "$ac_c_werror_flag"
2550 || test ! -s conftest.err'
6bf9431b
BE
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"
2563else
2564 echo "$as_me: failed program was:" >&5
2565sed 's/^/| /' conftest.$ac_ext >&5
2566
2567fi
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. */
2579
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); } &&
df76639a
AM
2604 { ac_try='test -z "$ac_c_werror_flag"
2605 || test ! -s conftest.err'
6bf9431b
BE
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
2619else
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
2627fi
2628LIBS=$ac_func_search_save_LIBS
2629fi
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"
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.
2653echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2654echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
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
2676 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
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
RH
2700 else
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
2703 # break other packages using the cache if that directory is
2704 # removed, or if the path is relative.
6bf9431b 2705 INSTALL=$ac_install_sh
252b5132
RH
2706 fi
2707fi
6bf9431b
BE
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
6bf9431b
BE
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
6bf9431b
BE
2762echo "$as_me:$LINENO: result: yes" >&5
2763echo "${ECHO_T}yes" >&6
252b5132 2764test "$program_prefix" != NONE &&
6bf9431b 2765 program_transform_name="s,^,$program_prefix,;$program_transform_name"
252b5132
RH
2766# Use a double $ so make ignores it.
2767test "$program_suffix" != NONE &&
6bf9431b
BE
2768 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
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`
2775rm conftest.sed
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
2827echo "$as_me:$LINENO: checking for $ac_word" >&5
2828echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
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
2841 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
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
2853 echo "$as_me:$LINENO: result: $AWK" >&5
2854echo "${ECHO_T}$AWK" >&6
2855else
2856 echo "$as_me:$LINENO: result: no" >&5
2857echo "${ECHO_T}no" >&6
2858fi
2859
2860 test -n "$AWK" && break
2861done
252b5132 2862
6bf9431b
BE
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
2867 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 2868else
6bf9431b 2869 cat >conftest.make <<\_ACEOF
252b5132 2870all:
6bf9431b
BE
2871 @echo 'ac_maketemp="$(MAKE)"'
2872_ACEOF
252b5132 2873# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6bf9431b 2874eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
252b5132
RH
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
RH
2881fi
2882if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6bf9431b
BE
2883 echo "$as_me:$LINENO: result: yes" >&5
2884echo "${ECHO_T}yes" >&6
252b5132
RH
2885 SET_MAKE=
2886else
6bf9431b
BE
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
2903 ac_config_commands="$ac_config_commands depfiles"
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.
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
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
6bf9431b
BE
2941echo "$as_me:$LINENO: result: $_am_result" >&5
2942echo "${ECHO_T}$_am_result" >&6
2943rm -f confinc confmf
252b5132 2944
6bf9431b
BE
2945# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2946if test "${enable_dependency_tracking+set}" = set; then
2947 enableval="$enable_dependency_tracking"
252b5132 2948
6bf9431b
BE
2949fi;
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
3024echo "$as_me:$LINENO: checking for $ac_word" >&5
3025echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
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
3038 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
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
3050 echo "$as_me:$LINENO: result: $STRIP" >&5
3051echo "${ECHO_T}$STRIP" >&6
3052else
3053 echo "$as_me:$LINENO: result: no" >&5
3054echo "${ECHO_T}no" >&6
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
3062echo "$as_me:$LINENO: checking for $ac_word" >&5
3063echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
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
3076 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
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
6bf9431b
BE
3084 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3085fi
3086fi
3087ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3088if test -n "$ac_ct_STRIP"; then
3089 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3090echo "${ECHO_T}$ac_ct_STRIP" >&6
252b5132 3091else
6bf9431b
BE
3092 echo "$as_me:$LINENO: result: no" >&5
3093echo "${ECHO_T}no" >&6
252b5132
RH
3094fi
3095
6bf9431b 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
3117echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3118echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
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
6bf9431b
BE
3207echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3208echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
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
d7040cdb
SE
3226
3227
3228macro_version='2.1a'
3229macro_revision='1.2435'
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242ltmain="$ac_aux_dir/ltmain.sh"
3243
3244# Set options
3245
3246enable_dlopen=no
3247
3248
3249enable_win32_dll=no
3250
3251
252b5132
RH
3252# Check whether --enable-shared or --disable-shared was given.
3253if test "${enable_shared+set}" = set; then
3254 enableval="$enable_shared"
3255 p=${PACKAGE-default}
d7040cdb
SE
3256 case $enableval in
3257 yes) enable_shared=yes ;;
3258 no) enable_shared=no ;;
3259 *)
3260 enable_shared=no
3261 # Look at the argument we got. We use all the common list separators.
3262 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3263 for pkg in $enableval; do
3264 IFS="$lt_save_ifs"
3265 if test "X$pkg" = "X$p"; then
3266 enable_shared=yes
3267 fi
3268 done
3269 IFS="$lt_save_ifs"
3270 ;;
3271 esac
252b5132
RH
3272else
3273 enable_shared=yes
6bf9431b 3274fi;
d7040cdb
SE
3275
3276
3277
3278
3279
3280
3281
3282
252b5132
RH
3283# Check whether --enable-static or --disable-static was given.
3284if test "${enable_static+set}" = set; then
3285 enableval="$enable_static"
3286 p=${PACKAGE-default}
d7040cdb
SE
3287 case $enableval in
3288 yes) enable_static=yes ;;
3289 no) enable_static=no ;;
3290 *)
3291 enable_static=no
3292 # Look at the argument we got. We use all the common list separators.
3293 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3294 for pkg in $enableval; do
3295 IFS="$lt_save_ifs"
3296 if test "X$pkg" = "X$p"; then
3297 enable_static=yes
3298 fi
3299 done
3300 IFS="$lt_save_ifs"
3301 ;;
3302 esac
252b5132
RH
3303else
3304 enable_static=yes
6bf9431b 3305fi;
d7040cdb
SE
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315# Check whether --with-pic or --without-pic was given.
3316if test "${with_pic+set}" = set; then
3317 withval="$with_pic"
3318 pic_mode="$withval"
3319else
3320 pic_mode=default
3321fi;
3322
3323test -z "$pic_mode" && pic_mode=default
3324
3325
3326
3327
3328
3329
3330
252b5132
RH
3331# Check whether --enable-fast-install or --disable-fast-install was given.
3332if test "${enable_fast_install+set}" = set; then
3333 enableval="$enable_fast_install"
3334 p=${PACKAGE-default}
d7040cdb
SE
3335 case $enableval in
3336 yes) enable_fast_install=yes ;;
3337 no) enable_fast_install=no ;;
3338 *)
3339 enable_fast_install=no
3340 # Look at the argument we got. We use all the common list separators.
3341 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3342 for pkg in $enableval; do
3343 IFS="$lt_save_ifs"
3344 if test "X$pkg" = "X$p"; then
3345 enable_fast_install=yes
3346 fi
3347 done
3348 IFS="$lt_save_ifs"
3349 ;;
3350 esac
252b5132
RH
3351else
3352 enable_fast_install=yes
6bf9431b 3353fi;
093872ec 3354
d7040cdb
SE
3355
3356
3357
3358
3359
3360
3361
3362echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3363echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3364if test "${lt_cv_path_SED+set}" = set; then
3365 echo $ECHO_N "(cached) $ECHO_C" >&6
3366else
3367 # Loop through the user's path and test for sed and gsed.
3368# Then use that list of sed's as ones to test for truncation.
3369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3370for as_dir in $PATH
3371do
3372 IFS=$as_save_IFS
3373 test -z "$as_dir" && as_dir=.
3374 for lt_ac_prog in sed gsed; do
3375 for ac_exec_ext in '' $ac_executable_extensions; do
3376 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3377 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3378 fi
3379 done
3380 done
3381done
3382IFS=$as_save_IFS
3383lt_ac_max=0
3384lt_ac_count=0
3385# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3386# along with /bin/sed that truncates output.
3387for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3388 test ! -f $lt_ac_sed && continue
3389 cat /dev/null > conftest.in
3390 lt_ac_count=0
3391 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3392 # Check for GNU sed and select it if it is found.
3393 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3394 lt_cv_path_SED=$lt_ac_sed
3395 break
3396 fi
3397 while true; do
3398 cat conftest.in conftest.in >conftest.tmp
3399 mv conftest.tmp conftest.in
3400 cp conftest.in conftest.nl
3401 echo >>conftest.nl
3402 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3403 cmp -s conftest.out conftest.nl || break
3404 # 10000 chars as input seems more than enough
3405 test $lt_ac_count -gt 10 && break
3406 lt_ac_count=`expr $lt_ac_count + 1`
3407 if test $lt_ac_count -gt $lt_ac_max; then
3408 lt_ac_max=$lt_ac_count
3409 lt_cv_path_SED=$lt_ac_sed
3410 fi
3411 done
3412done
3413
3414fi
3415
3416SED=$lt_cv_path_SED
3417
3418echo "$as_me:$LINENO: result: $SED" >&5
3419echo "${ECHO_T}$SED" >&6
3420
3421test -z "$SED" && SED=sed
3422Xsed="$SED -e 1s/^X//"
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434echo "$as_me:$LINENO: checking for egrep" >&5
3435echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3436if test "${ac_cv_prog_egrep+set}" = set; then
3437 echo $ECHO_N "(cached) $ECHO_C" >&6
3438else
3439 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3440 then ac_cv_prog_egrep='grep -E'
3441 else ac_cv_prog_egrep='egrep'
3442 fi
3443fi
3444echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3445echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3446 EGREP=$ac_cv_prog_egrep
3447
3448
3449echo "$as_me:$LINENO: checking for fgrep" >&5
3450echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
3451if test "${ac_cv_prog_fgrep+set}" = set; then
3452 echo $ECHO_N "(cached) $ECHO_C" >&6
3453else
3454 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
3455 then ac_cv_prog_fgrep='grep -F'
3456 else ac_cv_prog_fgrep='fgrep'
3457 fi
3458fi
3459echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
3460echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
3461 FGREP=$ac_cv_prog_fgrep
3462
3463
3464test -z "$GREP" && GREP=grep
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
252b5132
RH
3484# Check whether --with-gnu-ld or --without-gnu-ld was given.
3485if test "${with_gnu_ld+set}" = set; then
3486 withval="$with_gnu_ld"
3487 test "$withval" = no || with_gnu_ld=yes
3488else
3489 with_gnu_ld=no
6bf9431b 3490fi;
252b5132 3491ac_prog=ld
6be7c12c 3492if test "$GCC" = yes; then
252b5132 3493 # Check if gcc -print-prog-name=ld gives a path.
d7040cdb
SE
3494 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3495echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
ac48eca1
AO
3496 case $host in
3497 *-*-mingw*)
3498 # gcc leaves a trailing carriage return which upsets mingw
3499 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3500 *)
3501 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3502 esac
6be7c12c 3503 case $ac_prog in
252b5132 3504 # Accept absolute paths.
d7040cdb 3505 [\\/]* | ?:[\\/]*)
252b5132 3506 re_direlt='/[^/][^/]*/\.\./'
d7040cdb
SE
3507 # Canonicalize the pathname of ld
3508 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3509 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3510 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
252b5132
RH
3511 done
3512 test -z "$LD" && LD="$ac_prog"
3513 ;;
3514 "")
3515 # If it fails, then pretend we aren't using GCC.
3516 ac_prog=ld
3517 ;;
3518 *)
3519 # If it is relative, then search for the first ld in PATH.
3520 with_gnu_ld=unknown
3521 ;;
3522 esac
3523elif test "$with_gnu_ld" = yes; then
6bf9431b
BE
3524 echo "$as_me:$LINENO: checking for GNU ld" >&5
3525echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
252b5132 3526else
6bf9431b
BE
3527 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3528echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
252b5132 3529fi
6bf9431b
BE
3530if test "${lt_cv_path_LD+set}" = set; then
3531 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3532else
3533 if test -z "$LD"; then
d7040cdb 3534 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
252b5132 3535 for ac_dir in $PATH; do
d7040cdb 3536 IFS="$lt_save_ifs"
252b5132 3537 test -z "$ac_dir" && ac_dir=.
5af11cab 3538 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6be7c12c 3539 lt_cv_path_LD="$ac_dir/$ac_prog"
252b5132 3540 # Check to see if the program is GNU ld. I'd rather use --version,
d7040cdb 3541 # but apparently some variants of GNU ld only accept -v.
252b5132 3542 # Break only if it was the GNU/non-GNU ld that we prefer.
d7040cdb
SE
3543 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3544 *GNU* | *'with BFD'*)
252b5132 3545 test "$with_gnu_ld" != no && break
d7040cdb
SE
3546 ;;
3547 *)
252b5132 3548 test "$with_gnu_ld" != yes && break
d7040cdb
SE
3549 ;;
3550 esac
252b5132
RH
3551 fi
3552 done
d7040cdb 3553 IFS="$lt_save_ifs"
252b5132 3554else
6be7c12c 3555 lt_cv_path_LD="$LD" # Let the user override the test with a path.
252b5132
RH
3556fi
3557fi
3558
6be7c12c 3559LD="$lt_cv_path_LD"
252b5132 3560if test -n "$LD"; then
6bf9431b
BE
3561 echo "$as_me:$LINENO: result: $LD" >&5
3562echo "${ECHO_T}$LD" >&6
252b5132 3563else
6bf9431b
BE
3564 echo "$as_me:$LINENO: result: no" >&5
3565echo "${ECHO_T}no" >&6
252b5132 3566fi
6bf9431b
BE
3567test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3568echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3569 { (exit 1); exit 1; }; }
3570echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3571echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3572if test "${lt_cv_prog_gnu_ld+set}" = set; then
3573 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3574else
d7040cdb
SE
3575 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3576case `$LD -v 2>&1 </dev/null` in
3577*GNU* | *'with BFD'*)
6be7c12c 3578 lt_cv_prog_gnu_ld=yes
d7040cdb
SE
3579 ;;
3580*)
6be7c12c 3581 lt_cv_prog_gnu_ld=no
d7040cdb
SE
3582 ;;
3583esac
252b5132 3584fi
6bf9431b
BE
3585echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3586echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6be7c12c 3587with_gnu_ld=$lt_cv_prog_gnu_ld
252b5132
RH
3588
3589
ac48eca1 3590
d7040cdb
SE
3591
3592
3593
3594
3595
3596
3597
3598echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
3599echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
6bf9431b
BE
3600if test "${lt_cv_path_NM+set}" = set; then
3601 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3602else
3603 if test -n "$NM"; then
3604 # Let the user override the test.
6be7c12c 3605 lt_cv_path_NM="$NM"
252b5132 3606else
d7040cdb
SE
3607 lt_nm_to_check="${ac_tool_prefix}nm"
3608 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3609 lt_nm_to_check="$lt_nm_to_check nm"
3610 fi
3611 for lt_tmp_nm in $lt_nm_to_check; do
3612 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3613 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3614 IFS="$lt_save_ifs"
3615 test -z "$ac_dir" && ac_dir=.
3616 tmp_nm="$ac_dir/$lt_tmp_nm"
3617 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3618 # Check to see if the nm accepts a BSD-compat flag.
3619 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3620 # nm: unknown option "B" ignored
3621 # Tru64's nm complains that /dev/null is an invalid object file
3622 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3623 */dev/null* | *'Invalid file or object type'*)
3624 lt_cv_path_NM="$tmp_nm -B"
3625 break
3626 ;;
3627 *)
3628 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3629 */dev/null*)
3630 lt_cv_path_NM="$tmp_nm -p"
3631 break
3632 ;;
3633 *)
3634 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3635 continue # so that we can try to find one that supports BSD flags
3636 ;;
3637 esac
3638 ;;
3639 esac
252b5132 3640 fi
d7040cdb
SE
3641 done
3642 IFS="$lt_save_ifs"
252b5132 3643 done
d7040cdb 3644 : ${lt_cv_path_NM=no}
252b5132
RH
3645fi
3646fi
d7040cdb
SE
3647echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3648echo "${ECHO_T}$lt_cv_path_NM" >&6
3649if test "$lt_cv_path_NM" != "no"; then
3650 NM="$lt_cv_path_NM"
252b5132 3651else
d7040cdb
SE
3652 # Didn't find any BSD compatible name lister, look for dumpbin.
3653 if test -n "$ac_tool_prefix"; then
3654 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3655 do
3656 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3657set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3658echo "$as_me:$LINENO: checking for $ac_word" >&5
3659echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3660if test "${ac_cv_prog_DUMPBIN+set}" = set; then
3661 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3662else
d7040cdb
SE
3663 if test -n "$DUMPBIN"; then
3664 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3665else
3666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3667for as_dir in $PATH
3668do
3669 IFS=$as_save_IFS
3670 test -z "$as_dir" && as_dir=.
3671 for ac_exec_ext in '' $ac_executable_extensions; do
3672 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3673 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3675 break 2
3676 fi
3677done
3678done
ac48eca1 3679
d7040cdb
SE
3680fi
3681fi
3682DUMPBIN=$ac_cv_prog_DUMPBIN
3683if test -n "$DUMPBIN"; then
3684 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
3685echo "${ECHO_T}$DUMPBIN" >&6
3686else
3687 echo "$as_me:$LINENO: result: no" >&5
3688echo "${ECHO_T}no" >&6
3689fi
6be7c12c 3690
d7040cdb
SE
3691 test -n "$DUMPBIN" && break
3692 done
3693fi
3694if test -z "$DUMPBIN"; then
3695 ac_ct_DUMPBIN=$DUMPBIN
3696 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3697do
3698 # Extract the first word of "$ac_prog", so it can be a program name with args.
3699set dummy $ac_prog; ac_word=$2
3700echo "$as_me:$LINENO: checking for $ac_word" >&5
3701echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3702if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
3703 echo $ECHO_N "(cached) $ECHO_C" >&6
3704else
3705 if test -n "$ac_ct_DUMPBIN"; then
3706 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3707else
3708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3709for as_dir in $PATH
3710do
3711 IFS=$as_save_IFS
3712 test -z "$as_dir" && as_dir=.
3713 for ac_exec_ext in '' $ac_executable_extensions; do
3714 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3715 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3717 break 2
ac48eca1 3718 fi
d7040cdb
SE
3719done
3720done
ac48eca1 3721
d7040cdb
SE
3722fi
3723fi
3724ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3725if test -n "$ac_ct_DUMPBIN"; then
3726 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
3727echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
3728else
3729 echo "$as_me:$LINENO: result: no" >&5
3730echo "${ECHO_T}no" >&6
3731fi
ac48eca1 3732
d7040cdb
SE
3733 test -n "$ac_ct_DUMPBIN" && break
3734done
3735test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
ac48eca1 3736
d7040cdb
SE
3737 DUMPBIN=$ac_ct_DUMPBIN
3738fi
ac48eca1 3739
ac48eca1 3740
d7040cdb
SE
3741 if test "$DUMPBIN" != ":"; then
3742 NM="$DUMPBIN"
ac48eca1 3743 fi
d7040cdb
SE
3744fi
3745test -z "$NM" && NM=nm
6be7c12c 3746
ac48eca1 3747
ac48eca1 3748
ac48eca1 3749
6be7c12c 3750
ac48eca1 3751
d7040cdb
SE
3752echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
3753echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
3754if test "${lt_cv_nm_interface+set}" = set; then
3755 echo $ECHO_N "(cached) $ECHO_C" >&6
3756else
3757 lt_cv_nm_interface="BSD nm"
3758 echo "int some_variable = 0;" > conftest.$ac_ext
3759 (eval echo "\"\$as_me:3759: $ac_compile\"" >&5)
3760 (eval "$ac_compile" 2>conftest.err)
3761 cat conftest.err >&5
3762 (eval echo "\"\$as_me:3762: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3763 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3764 cat conftest.err >&5
3765 (eval echo "\"\$as_me:3765: output\"" >&5)
3766 cat conftest.out >&5
3767 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3768 lt_cv_nm_interface="MS dumpbin"
3769 fi
3770 rm -f conftest*
ac48eca1 3771fi
d7040cdb
SE
3772echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
3773echo "${ECHO_T}$lt_cv_nm_interface" >&6
ac48eca1 3774
d7040cdb
SE
3775echo "$as_me:$LINENO: checking whether ln -s works" >&5
3776echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3777LN_S=$as_ln_s
3778if test "$LN_S" = "ln -s"; then
3779 echo "$as_me:$LINENO: result: yes" >&5
3780echo "${ECHO_T}yes" >&6
3781else
3782 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3783echo "${ECHO_T}no, using $LN_S" >&6
3784fi
ac48eca1 3785
108a6f8e
CD
3786# find the maximum length of command line arguments
3787echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3788echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3789if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3790 echo $ECHO_N "(cached) $ECHO_C" >&6
3791else
3792 i=0
3793 teststring="ABCD"
3794
3795 case $build_os in
3796 msdosdjgpp*)
3797 # On DJGPP, this test can blow up pretty badly due to problems in libc
3798 # (any single argument exceeding 2000 bytes causes a buffer overrun
3799 # during glob expansion). Even if it were fixed, the result of this
3800 # check would be larger than it should be.
3801 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3802 ;;
3803
d7040cdb
SE
3804 gnu*)
3805 # Under GNU Hurd, this test is not required because there is
3806 # no limit to the length of command line arguments.
3807 # Libtool will interpret -1 as no limit whatsoever
3808 lt_cv_sys_max_cmd_len=-1;
3809 ;;
3810
108a6f8e
CD
3811 cygwin* | mingw*)
3812 # On Win9x/ME, this test blows up -- it succeeds, but takes
3813 # about 5 minutes as the teststring grows exponentially.
3814 # Worse, since 9x/ME are not pre-emptively multitasking,
3815 # you end up with a "frozen" computer, even though with patience
3816 # the test eventually succeeds (with a max line length of 256k).
3817 # Instead, let's just punt: use the minimum linelength reported by
3818 # all of the supported platforms: 8192 (on NT/2K/XP).
3819 lt_cv_sys_max_cmd_len=8192;
3820 ;;
3821
3822 amigaos*)
3823 # On AmigaOS with pdksh, this test takes hours, literally.
3824 # So we just punt and use a minimum line length of 8192.
3825 lt_cv_sys_max_cmd_len=8192;
3826 ;;
3827
3828 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3829 # This has been around since 386BSD, at least. Likely further.
3830 if test -x /sbin/sysctl; then
3831 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3832 elif test -x /usr/sbin/sysctl; then
3833 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3834 else
d7040cdb 3835 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
108a6f8e
CD
3836 fi
3837 # And add a safety zone
3838 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3839 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3840 ;;
d7040cdb
SE
3841
3842 interix*)
3843 # We know the value 262144 and hardcode it with a safety zone (like BSD)
3844 lt_cv_sys_max_cmd_len=196608
3845 ;;
3846
3847 osf*)
3848 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3849 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3850 # nice to cause kernel panics so lets avoid the loop below.
3851 # First set a reasonable default.
3852 lt_cv_sys_max_cmd_len=16384
3853 #
3854 if test -x /sbin/sysconfig; then
3855 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
3856 *1*) lt_cv_sys_max_cmd_len=-1 ;;
3857 esac
3858 fi
3859 ;;
3860 sco3.2v5*)
3861 lt_cv_sys_max_cmd_len=102400
3862 ;;
3863 sysv5* | sco5v6* | sysv4.2uw2*)
3864 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
3865 if test -n "$kargmax"; then
3866 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
3867 else
3868 lt_cv_sys_max_cmd_len=32768
3869 fi
3870 ;;
3871 *)
79887925
L
3872 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
3873 if test -n $lt_cv_sys_max_cmd_len; then
3874 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3875 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3876 else
3877 # Make teststring a little bigger before we do anything with it.
3878 # a 1K string should be a reasonable start.
3879 for i in 1 2 3 4 5 6 7 8 ; do
3880 teststring=$teststring$teststring
3881 done
3882 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
3883 # If test is not a shell built-in, we'll probably end up computing a
3884 # maximum length that is only half of the actual maximum length, but
3885 # we can't tell.
3886 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
3887 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
3888 test $i != 17 # 1/2 MB should be enough
3889 do
3890 i=`expr $i + 1`
3891 teststring=$teststring$teststring
3892 done
3893 # Only check the string length outside the loop.
3894 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
3895 teststring=
3896 # Add a significant safety factor because C++ compilers can tack on
3897 # massive amounts of additional arguments before passing them to the
3898 # linker. It appears as though 1/2 is a usable value.
3899 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
3900 fi
d7040cdb 3901 ;;
108a6f8e
CD
3902 esac
3903
3904fi
3905
d7040cdb 3906if test -n $lt_cv_sys_max_cmd_len ; then
108a6f8e
CD
3907 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3908echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3909else
3910 echo "$as_me:$LINENO: result: none" >&5
3911echo "${ECHO_T}none" >&6
3912fi
d7040cdb 3913max_cmd_len=$lt_cv_sys_max_cmd_len
108a6f8e
CD
3914
3915
ac48eca1 3916
ac48eca1 3917
ac48eca1 3918
d7040cdb
SE
3919
3920
3921: ${CP="cp -f"}
3922: ${MV="mv -f"}
3923: ${RM="rm -f"}
3924
3925echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
3926echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
3927# Try some XSI features
3928xsi_shell=no
3929( _lt_dummy="a/b/c"
3930 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
3931 = c,a/b,, ) >/dev/null 2>&1 \
3932 && xsi_shell=yes
3933echo "$as_me:$LINENO: result: $xsi_shell" >&5
3934echo "${ECHO_T}$xsi_shell" >&6
3935
3936
3937echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
3938echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
3939lt_shell_append=no
3940( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
3941 >/dev/null 2>&1 \
3942 && lt_shell_append=yes
3943echo "$as_me:$LINENO: result: $lt_shell_append" >&5
3944echo "${ECHO_T}$lt_shell_append" >&6
3945
3946
3947if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3948 lt_unset=unset
ac48eca1 3949else
d7040cdb 3950 lt_unset=false
ac48eca1
AO
3951fi
3952
d7040cdb
SE
3953
3954
3955
3956
3957# test EBCDIC or ASCII
3958case `echo X|tr X '\101'` in
3959 A) # ASCII based system
3960 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
3961 lt_SP2NL='tr \040 \012'
3962 lt_NL2SP='tr \015\012 \040\040'
3963 ;;
3964 *) # EBCDIC based system
3965 lt_SP2NL='tr \100 \n'
3966 lt_NL2SP='tr \r\n \100\100'
3967 ;;
3968esac
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3979echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3980if test "${lt_cv_ld_reload_flag+set}" = set; then
6bf9431b 3981 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3982else
d7040cdb
SE
3983 lt_cv_ld_reload_flag='-r'
3984fi
3985echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3986echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3987reload_flag=$lt_cv_ld_reload_flag
3988case $reload_flag in
3989"" | " "*) ;;
3990*) reload_flag=" $reload_flag" ;;
3991esac
3992reload_cmds='$LD$reload_flag -o $output$reload_objs'
3993case $host_os in
3994 darwin*)
3995 if test "$GCC" = yes; then
3996 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3997 else
3998 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3999 fi
4000 ;;
4001esac
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4013echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4014if test "${lt_cv_deplibs_check_method+set}" = set; then
4015 echo $ECHO_N "(cached) $ECHO_C" >&6
4016else
4017 lt_cv_file_magic_cmd='$MAGIC_CMD'
4018lt_cv_file_magic_test_file=
4019lt_cv_deplibs_check_method='unknown'
4020# Need to set the preceding variable on all platforms that support
4021# interlibrary dependencies.
4022# 'none' -- dependencies not supported.
4023# `unknown' -- same as none, but documents that we really don't know.
4024# 'pass_all' -- all dependencies passed with no checks.
4025# 'test_compile' -- check by making test program.
4026# 'file_magic [[regex]]' -- check by looking for files in library path
4027# which responds to the $file_magic_cmd with a given extended regex.
4028# If you have `file' or equivalent on your system and you're not sure
4029# whether `pass_all' will *always* work, you probably want this one.
4030
4031case $host_os in
4032aix4* | aix5*)
4033 lt_cv_deplibs_check_method=pass_all
4034 ;;
4035
4036beos*)
4037 lt_cv_deplibs_check_method=pass_all
ac48eca1 4038 ;;
d7040cdb
SE
4039
4040bsdi[45]*)
4041 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4042 lt_cv_file_magic_cmd='/usr/bin/file -L'
4043 lt_cv_file_magic_test_file=/shlib/libc.so
4044 ;;
4045
4046cygwin*)
4047 # func_win32_libid is a shell function defined in ltmain.sh
4048 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4049 lt_cv_file_magic_cmd='func_win32_libid'
4050 ;;
4051
4052mingw* | pw32*)
4053 # Base MSYS/MinGW do not provide the 'file' command needed by
4054 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4055 # unless we find 'file', for example because we are cross-compiling.
4056 if ( file / ) >/dev/null 2>&1; then
4057 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4058 lt_cv_file_magic_cmd='func_win32_libid'
4059 else
4060 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4061 lt_cv_file_magic_cmd='$OBJDUMP -f'
4062 fi
4063 ;;
4064
4065darwin* | rhapsody*)
4066 lt_cv_deplibs_check_method=pass_all
4067 ;;
4068
4069freebsd* | dragonfly*)
4070 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4071 case $host_cpu in
4072 i*86 )
4073 # Not sure whether the presence of OpenBSD here was a mistake.
4074 # Let's accept both of them until this is cleared up.
4075 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4076 lt_cv_file_magic_cmd=/usr/bin/file
4077 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4078 ;;
4079 esac
4080 else
4081 lt_cv_deplibs_check_method=pass_all
4082 fi
4083 ;;
4084
4085gnu*)
4086 lt_cv_deplibs_check_method=pass_all
ac48eca1 4087 ;;
d7040cdb
SE
4088
4089hpux10.20* | hpux11*)
4090 lt_cv_file_magic_cmd=/usr/bin/file
4091 case $host_cpu in
4092 ia64*)
4093 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4094 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4095 ;;
4096 hppa*64*)
4097 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]'
4098 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4099 ;;
ac48eca1 4100 *)
d7040cdb
SE
4101 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4102 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4103 ;;
4104 esac
4105 ;;
ac48eca1 4106
d7040cdb
SE
4107interix[3-9]*)
4108 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4109 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4110 ;;
ac48eca1 4111
d7040cdb
SE
4112irix5* | irix6* | nonstopux*)
4113 case $LD in
4114 *-32|*"-32 ") libmagic=32-bit;;
4115 *-n32|*"-n32 ") libmagic=N32;;
4116 *-64|*"-64 ") libmagic=64-bit;;
4117 *) libmagic=never-match;;
4118 esac
4119 lt_cv_deplibs_check_method=pass_all
ac48eca1 4120 ;;
ac48eca1 4121
d7040cdb
SE
4122# This must be Linux ELF.
4123linux* | k*bsd*-gnu)
4124 lt_cv_deplibs_check_method=pass_all
4125 ;;
ac48eca1 4126
d7040cdb
SE
4127netbsd*)
4128 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4129 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
ac48eca1 4130 else
d7040cdb 4131 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
ac48eca1 4132 fi
d7040cdb
SE
4133 ;;
4134
4135newos6*)
4136 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4137 lt_cv_file_magic_cmd=/usr/bin/file
4138 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4139 ;;
4140
4141*nto* | *qnx*)
4142 lt_cv_deplibs_check_method=pass_all
4143 ;;
252b5132 4144
d7040cdb
SE
4145openbsd*)
4146 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4147 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4148 else
4149 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
ac48eca1
AO
4150 fi
4151 ;;
d7040cdb
SE
4152
4153osf3* | osf4* | osf5*)
4154 lt_cv_deplibs_check_method=pass_all
4155 ;;
4156
4157rdos*)
4158 lt_cv_deplibs_check_method=pass_all
4159 ;;
4160
4161solaris*)
4162 lt_cv_deplibs_check_method=pass_all
4163 ;;
4164
4165sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4166 lt_cv_deplibs_check_method=pass_all
4167 ;;
4168
4169sysv4 | sysv4.3*)
4170 case $host_vendor in
4171 motorola)
4172 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]'
4173 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4174 ;;
4175 ncr)
4176 lt_cv_deplibs_check_method=pass_all
4177 ;;
4178 sequent)
4179 lt_cv_file_magic_cmd='/bin/file'
4180 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4181 ;;
4182 sni)
4183 lt_cv_file_magic_cmd='/bin/file'
4184 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4185 lt_cv_file_magic_test_file=/lib/libc.so
4186 ;;
4187 siemens)
4188 lt_cv_deplibs_check_method=pass_all
4189 ;;
4190 pc)
4191 lt_cv_deplibs_check_method=pass_all
4192 ;;
4193 esac
4194 ;;
4195
4196tpf*)
4197 lt_cv_deplibs_check_method=pass_all
4198 ;;
5af11cab 4199esac
252b5132 4200
d7040cdb
SE
4201fi
4202echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4203echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4204file_magic_cmd=$lt_cv_file_magic_cmd
4205deplibs_check_method=$lt_cv_deplibs_check_method
4206test -z "$deplibs_check_method" && deplibs_check_method=unknown
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
6bf9431b 4219if test -n "$ac_tool_prefix"; then
d7040cdb
SE
4220 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4221set dummy ${ac_tool_prefix}ar; ac_word=$2
6bf9431b
BE
4222echo "$as_me:$LINENO: checking for $ac_word" >&5
4223echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d7040cdb 4224if test "${ac_cv_prog_AR+set}" = set; then
6bf9431b 4225 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 4226else
d7040cdb
SE
4227 if test -n "$AR"; then
4228 ac_cv_prog_AR="$AR" # Let the user override the test.
ac48eca1 4229else
6bf9431b
BE
4230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4231for as_dir in $PATH
4232do
4233 IFS=$as_save_IFS
4234 test -z "$as_dir" && as_dir=.
4235 for ac_exec_ext in '' $ac_executable_extensions; do
4236 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 4237 ac_cv_prog_AR="${ac_tool_prefix}ar"
6bf9431b
BE
4238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4239 break 2
4240 fi
4241done
4242done
4243
ac48eca1
AO
4244fi
4245fi
d7040cdb
SE
4246AR=$ac_cv_prog_AR
4247if test -n "$AR"; then
4248 echo "$as_me:$LINENO: result: $AR" >&5
4249echo "${ECHO_T}$AR" >&6
ac48eca1 4250else
6bf9431b
BE
4251 echo "$as_me:$LINENO: result: no" >&5
4252echo "${ECHO_T}no" >&6
ac48eca1
AO
4253fi
4254
6bf9431b 4255fi
d7040cdb
SE
4256if test -z "$ac_cv_prog_AR"; then
4257 ac_ct_AR=$AR
4258 # Extract the first word of "ar", so it can be a program name with args.
4259set dummy ar; ac_word=$2
6bf9431b
BE
4260echo "$as_me:$LINENO: checking for $ac_word" >&5
4261echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d7040cdb 4262if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6bf9431b 4263 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 4264else
d7040cdb
SE
4265 if test -n "$ac_ct_AR"; then
4266 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
ac48eca1 4267else
6bf9431b
BE
4268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4269for as_dir in $PATH
4270do
4271 IFS=$as_save_IFS
4272 test -z "$as_dir" && as_dir=.
4273 for ac_exec_ext in '' $ac_executable_extensions; do
4274 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 4275 ac_cv_prog_ac_ct_AR="ar"
6bf9431b
BE
4276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4277 break 2
4278 fi
4279done
4280done
4281
d7040cdb 4282 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
ac48eca1
AO
4283fi
4284fi
d7040cdb
SE
4285ac_ct_AR=$ac_cv_prog_ac_ct_AR
4286if test -n "$ac_ct_AR"; then
4287 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4288echo "${ECHO_T}$ac_ct_AR" >&6
ac48eca1 4289else
6bf9431b
BE
4290 echo "$as_me:$LINENO: result: no" >&5
4291echo "${ECHO_T}no" >&6
ac48eca1
AO
4292fi
4293
d7040cdb 4294 AR=$ac_ct_AR
ac48eca1 4295else
d7040cdb 4296 AR="$ac_cv_prog_AR"
ac48eca1
AO
4297fi
4298
d7040cdb
SE
4299test -z "$AR" && AR=ar
4300test -z "$AR_FLAGS" && AR_FLAGS=cru
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
6bf9431b
BE
4312if test -n "$ac_tool_prefix"; then
4313 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
ac48eca1 4314set dummy ${ac_tool_prefix}strip; ac_word=$2
6bf9431b
BE
4315echo "$as_me:$LINENO: checking for $ac_word" >&5
4316echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4317if test "${ac_cv_prog_STRIP+set}" = set; then
4318 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
4319else
4320 if test -n "$STRIP"; then
4321 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4322else
6bf9431b
BE
4323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4324for as_dir in $PATH
4325do
4326 IFS=$as_save_IFS
4327 test -z "$as_dir" && as_dir=.
4328 for ac_exec_ext in '' $ac_executable_extensions; do
4329 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4330 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4332 break 2
4333 fi
4334done
4335done
4336
ac48eca1
AO
4337fi
4338fi
6bf9431b 4339STRIP=$ac_cv_prog_STRIP
ac48eca1 4340if test -n "$STRIP"; then
6bf9431b
BE
4341 echo "$as_me:$LINENO: result: $STRIP" >&5
4342echo "${ECHO_T}$STRIP" >&6
ac48eca1 4343else
6bf9431b
BE
4344 echo "$as_me:$LINENO: result: no" >&5
4345echo "${ECHO_T}no" >&6
ac48eca1
AO
4346fi
4347
6bf9431b 4348fi
ac48eca1 4349if test -z "$ac_cv_prog_STRIP"; then
6bf9431b 4350 ac_ct_STRIP=$STRIP
ac48eca1
AO
4351 # Extract the first word of "strip", so it can be a program name with args.
4352set dummy strip; ac_word=$2
6bf9431b
BE
4353echo "$as_me:$LINENO: checking for $ac_word" >&5
4354echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4355if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4356 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 4357else
6bf9431b
BE
4358 if test -n "$ac_ct_STRIP"; then
4359 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
ac48eca1 4360else
6bf9431b
BE
4361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4362for as_dir in $PATH
4363do
4364 IFS=$as_save_IFS
4365 test -z "$as_dir" && as_dir=.
4366 for ac_exec_ext in '' $ac_executable_extensions; do
4367 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4368 ac_cv_prog_ac_ct_STRIP="strip"
4369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4370 break 2
4371 fi
4372done
4373done
4374
4375 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
ac48eca1
AO
4376fi
4377fi
6bf9431b
BE
4378ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4379if test -n "$ac_ct_STRIP"; then
4380 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4381echo "${ECHO_T}$ac_ct_STRIP" >&6
ac48eca1 4382else
6bf9431b
BE
4383 echo "$as_me:$LINENO: result: no" >&5
4384echo "${ECHO_T}no" >&6
ac48eca1
AO
4385fi
4386
6bf9431b 4387 STRIP=$ac_ct_STRIP
ac48eca1 4388else
6bf9431b 4389 STRIP="$ac_cv_prog_STRIP"
ac48eca1
AO
4390fi
4391
d7040cdb 4392test -z "$STRIP" && STRIP=:
ac48eca1 4393
252b5132 4394
5af11cab 4395
5af11cab 4396
5af11cab 4397
6bf9431b 4398
6bf9431b 4399if test -n "$ac_tool_prefix"; then
d7040cdb
SE
4400 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4401set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6bf9431b
BE
4402echo "$as_me:$LINENO: checking for $ac_word" >&5
4403echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d7040cdb 4404if test "${ac_cv_prog_RANLIB+set}" = set; then
6bf9431b
BE
4405 echo $ECHO_N "(cached) $ECHO_C" >&6
4406else
d7040cdb
SE
4407 if test -n "$RANLIB"; then
4408 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6bf9431b
BE
4409else
4410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4411for as_dir in $PATH
4412do
4413 IFS=$as_save_IFS
4414 test -z "$as_dir" && as_dir=.
4415 for ac_exec_ext in '' $ac_executable_extensions; do
4416 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 4417 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6bf9431b
BE
4418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4419 break 2
4420 fi
4421done
4422done
4423
4424fi
4425fi
d7040cdb
SE
4426RANLIB=$ac_cv_prog_RANLIB
4427if test -n "$RANLIB"; then
4428 echo "$as_me:$LINENO: result: $RANLIB" >&5
4429echo "${ECHO_T}$RANLIB" >&6
6bf9431b
BE
4430else
4431 echo "$as_me:$LINENO: result: no" >&5
4432echo "${ECHO_T}no" >&6
4433fi
4434
4435fi
d7040cdb
SE
4436if test -z "$ac_cv_prog_RANLIB"; then
4437 ac_ct_RANLIB=$RANLIB
4438 # Extract the first word of "ranlib", so it can be a program name with args.
4439set dummy ranlib; ac_word=$2
6bf9431b
BE
4440echo "$as_me:$LINENO: checking for $ac_word" >&5
4441echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d7040cdb 4442if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6bf9431b
BE
4443 echo $ECHO_N "(cached) $ECHO_C" >&6
4444else
d7040cdb
SE
4445 if test -n "$ac_ct_RANLIB"; then
4446 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6bf9431b
BE
4447else
4448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4449for as_dir in $PATH
4450do
4451 IFS=$as_save_IFS
4452 test -z "$as_dir" && as_dir=.
4453 for ac_exec_ext in '' $ac_executable_extensions; do
4454 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 4455 ac_cv_prog_ac_ct_RANLIB="ranlib"
6bf9431b
BE
4456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4457 break 2
4458 fi
4459done
4460done
4461
d7040cdb 4462 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6bf9431b
BE
4463fi
4464fi
d7040cdb
SE
4465ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4466if test -n "$ac_ct_RANLIB"; then
4467 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4468echo "${ECHO_T}$ac_ct_RANLIB" >&6
6bf9431b
BE
4469else
4470 echo "$as_me:$LINENO: result: no" >&5
4471echo "${ECHO_T}no" >&6
4472fi
4473
d7040cdb 4474 RANLIB=$ac_ct_RANLIB
6bf9431b 4475else
d7040cdb 4476 RANLIB="$ac_cv_prog_RANLIB"
6bf9431b
BE
4477fi
4478
d7040cdb 4479test -z "$RANLIB" && RANLIB=:
6bf9431b 4480
6bf9431b 4481
6bf9431b 4482
6bf9431b 4483
252b5132 4484
6bf9431b 4485
d7040cdb
SE
4486# Determine commands to create old-style static archives.
4487old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4488old_postinstall_cmds='chmod 644 $oldlib'
4489old_postuninstall_cmds=
252b5132 4490
d7040cdb
SE
4491if test -n "$RANLIB"; then
4492 case $host_os in
4493 openbsd*)
4494 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4495 ;;
4496 *)
4497 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4498 ;;
4499 esac
4500 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6bf9431b 4501fi
6bf9431b 4502
252b5132 4503
6bf9431b 4504
252b5132 4505
252b5132 4506
6bf9431b 4507
6bf9431b
BE
4508
4509
6bf9431b 4510
d7040cdb
SE
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536# If no C compiler was specified, use CC.
4537LTCC=${LTCC-"$CC"}
4538
4539# If no C compiler flags were specified, use CFLAGS.
4540LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4541
4542# Allow CC to be a program name with arguments.
4543compiler=$CC
4544
4545
4546# Check for command to grab the raw symbol name followed by C symbol from nm.
4547echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4548echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
4549if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4550 echo $ECHO_N "(cached) $ECHO_C" >&6
4551else
4552
4553# These are sane defaults that work on at least a few old systems.
4554# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4555
4556# Character class describing NM global symbol codes.
4557symcode='[BCDEGRST]'
4558
4559# Regexp to match symbols that can be accessed directly from C.
4560sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4561
4562# Define system-specific variables.
4563case $host_os in
4564aix*)
4565 symcode='[BCDT]'
4566 ;;
4567cygwin* | mingw* | pw32*)
4568 symcode='[ABCDGISTW]'
4569 ;;
4570hpux*)
4571 if test "$host_cpu" = ia64; then
4572 symcode='[ABCDEGRST]'
4573 fi
4574 ;;
4575irix* | nonstopux*)
4576 symcode='[BCDEGRST]'
4577 ;;
4578osf*)
4579 symcode='[BCDEGQRST]'
4580 ;;
4581solaris*)
4582 symcode='[BDRT]'
4583 ;;
4584sco3.2v5*)
4585 symcode='[DT]'
4586 ;;
4587sysv4.2uw2*)
4588 symcode='[DT]'
4589 ;;
4590sysv5* | sco5v6* | unixware* | OpenUNIX*)
4591 symcode='[ABDT]'
4592 ;;
4593sysv4)
4594 symcode='[DFNSTU]'
4595 ;;
4596esac
4597
4598# If we're using GNU nm, then use its standard symbol codes.
4599case `$NM -V 2>&1` in
4600*GNU* | *'with BFD'*)
4601 symcode='[ABCDGIRSTW]' ;;
4602esac
4603
4604# Transform an extracted symbol line into a proper C declaration.
4605# Some systems (esp. on ia64) link data and code symbols differently,
4606# so use this general approach.
4607lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4608
4609# Transform an extracted symbol line into symbol name and symbol address
4610lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
4611
4612# Handle CRLF in mingw tool chain
4613opt_cr=
4614case $build_os in
4615mingw*)
4616 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4617 ;;
4618esac
4619
4620# Try without a prefix underscore, then with it.
4621for ac_symprfx in "" "_"; do
4622
4623 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4624 symxfrm="\\1 $ac_symprfx\\2 \\2"
4625
4626 # Write the raw and C identifiers.
4627 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4628 # Fake it for dumpbin and say T for any non-static function
4629 # and D for any global variable.
4630 # Also find C++ and __fastcall symbols from MSVC++,
4631 # which start with @ or ?.
4632 lt_cv_sys_global_symbol_pipe="$AWK '"\
4633" {last_section=section; section=\$ 3};"\
4634" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4635" \$ 0!~/External *\|/{next};"\
4636" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4637" {if(hide[section]) next};"\
4638" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4639" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4640" s[1]~/^[@?]/{print s[1], s[1]; next};"\
4641" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4642" ' prfx=^$ac_symprfx"
4643 else
4644 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4645 fi
4646
4647 # Check to see that the pipe works correctly.
4648 pipe_works=no
4649
4650 rm -f conftest*
4651 cat > conftest.$ac_ext <<_LT_EOF
4652#ifdef __cplusplus
4653extern "C" {
4654#endif
4655char nm_test_var;
4656void nm_test_func(void);
4657void nm_test_func(void){}
4658#ifdef __cplusplus
4659}
4660#endif
4661int main(){nm_test_var='a';nm_test_func();return(0);}
4662_LT_EOF
4663
4664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4665 (eval $ac_compile) 2>&5
6bf9431b
BE
4666 ac_status=$?
4667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
4668 (exit $ac_status); }; then
4669 # Now try to grab the symbols.
4670 nlist=conftest.nm
4671 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4672 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6bf9431b
BE
4673 ac_status=$?
4674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
4675 (exit $ac_status); } && test -s "$nlist"; then
4676 # Try sorting and uniquifying the output.
4677 if sort "$nlist" | uniq > "$nlist"T; then
4678 mv -f "$nlist"T "$nlist"
4679 else
4680 rm -f "$nlist"T
4681 fi
4682
4683 # Make sure that we snagged all the symbols we need.
4684 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4685 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4686 cat <<_LT_EOF > conftest.$ac_ext
4687#ifdef __cplusplus
4688extern "C" {
4689#endif
4690
4691_LT_EOF
4692 # Now generate the symbol file.
4693 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4694
4695 cat <<_LT_EOF >> conftest.$ac_ext
4696
4697/* The mapping between symbol names and symbols. */
4698const struct {
4699 const char *name;
4700 void *address;
4701}
4702lt__PROGRAM__LTX_preloaded_symbols[] =
4703{
4704 { "@PROGRAM@", (void *) 0 },
4705_LT_EOF
4706 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4707 cat <<\_LT_EOF >> conftest.$ac_ext
4708 {0, (void *) 0}
4709};
4710
4711/* This works around a problem in FreeBSD linker */
4712#ifdef FREEBSD_WORKAROUND
4713static const void *lt_preloaded_setup() {
4714 return lt__PROGRAM__LTX_preloaded_symbols;
4715}
4716#endif
4717
4718#ifdef __cplusplus
4719}
4720#endif
4721_LT_EOF
4722 # Now try linking the two files.
4723 mv conftest.$ac_objext conftstm.$ac_objext
4724 lt_save_LIBS="$LIBS"
4725 lt_save_CFLAGS="$CFLAGS"
4726 LIBS="conftstm.$ac_objext"
4727 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4729 (eval $ac_link) 2>&5
6bf9431b
BE
4730 ac_status=$?
4731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
4732 (exit $ac_status); } && test -s conftest${ac_exeext}; then
4733 pipe_works=yes
4734 fi
4735 LIBS="$lt_save_LIBS"
4736 CFLAGS="$lt_save_CFLAGS"
4737 else
4738 echo "cannot find nm_test_func in $nlist" >&5
4739 fi
4740 else
4741 echo "cannot find nm_test_var in $nlist" >&5
4742 fi
4743 else
4744 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4745 fi
4746 else
4747 echo "$progname: failed program was:" >&5
4748 cat conftest.$ac_ext >&5
4749 fi
4750 rm -f conftest* conftst*
6bf9431b 4751
d7040cdb
SE
4752 # Do not use the global_symbol_pipe unless it works.
4753 if test "$pipe_works" = yes; then
4754 break
4755 else
4756 lt_cv_sys_global_symbol_pipe=
4757 fi
4758done
4759
4760fi
4761
4762if test -z "$lt_cv_sys_global_symbol_pipe"; then
4763 lt_cv_sys_global_symbol_to_cdecl=
4764fi
4765if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4766 echo "$as_me:$LINENO: result: failed" >&5
4767echo "${ECHO_T}failed" >&6
4768else
4769 echo "$as_me:$LINENO: result: ok" >&5
4770echo "${ECHO_T}ok" >&6
4771fi
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4790if test "${enable_libtool_lock+set}" = set; then
4791 enableval="$enable_libtool_lock"
4792
4793fi;
4794test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4795
4796# Some flags need to be propagated to the compiler or linker for good
4797# libtool support.
4798case $host in
4799ia64-*-hpux*)
4800 # Find out which ABI we are using.
4801 echo 'int i;' > conftest.$ac_ext
4802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4803 (eval $ac_compile) 2>&5
4804 ac_status=$?
4805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806 (exit $ac_status); }; then
4807 case `/usr/bin/file conftest.$ac_objext` in
4808 *ELF-32*)
4809 HPUX_IA64_MODE="32"
4810 ;;
4811 *ELF-64*)
4812 HPUX_IA64_MODE="64"
4813 ;;
4814 esac
4815 fi
4816 rm -rf conftest*
4817 ;;
4818*-*-irix6*)
4819 # Find out which ABI we are using.
79887925 4820 echo '#line 4820 "configure"' > conftest.$ac_ext
d7040cdb
SE
4821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4822 (eval $ac_compile) 2>&5
4823 ac_status=$?
4824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4825 (exit $ac_status); }; then
4826 if test "$lt_cv_prog_gnu_ld" = yes; then
4827 case `/usr/bin/file conftest.$ac_objext` in
4828 *32-bit*)
4829 LD="${LD-ld} -melf32bsmip"
4830 ;;
4831 *N32*)
4832 LD="${LD-ld} -melf32bmipn32"
4833 ;;
4834 *64-bit*)
4835 LD="${LD-ld} -melf64bmip"
4836 ;;
4837 esac
4838 else
4839 case `/usr/bin/file conftest.$ac_objext` in
4840 *32-bit*)
4841 LD="${LD-ld} -32"
4842 ;;
4843 *N32*)
4844 LD="${LD-ld} -n32"
4845 ;;
4846 *64-bit*)
4847 LD="${LD-ld} -64"
4848 ;;
4849 esac
4850 fi
4851 fi
4852 rm -rf conftest*
4853 ;;
4854
4855x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4856s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
4857 # Find out which ABI we are using.
4858 echo 'int i;' > conftest.$ac_ext
4859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4860 (eval $ac_compile) 2>&5
4861 ac_status=$?
4862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863 (exit $ac_status); }; then
4864 case `/usr/bin/file conftest.o` in
4865 *32-bit*)
4866 case $host in
4867 x86_64-*kfreebsd*-gnu)
4868 LD="${LD-ld} -m elf_i386_fbsd"
4869 ;;
4870 x86_64-*linux*)
4871 LD="${LD-ld} -m elf_i386"
4872 ;;
4873 ppc64-*linux*|powerpc64-*linux*)
4874 LD="${LD-ld} -m elf32ppclinux"
4875 ;;
4876 s390x-*linux*)
4877 LD="${LD-ld} -m elf_s390"
4878 ;;
4879 sparc64-*linux*)
4880 LD="${LD-ld} -m elf32_sparc"
4881 ;;
4882 esac
4883 ;;
4884 *64-bit*)
4885 case $host in
4886 x86_64-*kfreebsd*-gnu)
4887 LD="${LD-ld} -m elf_x86_64_fbsd"
4888 ;;
4889 x86_64-*linux*)
4890 LD="${LD-ld} -m elf_x86_64"
4891 ;;
4892 ppc*-*linux*|powerpc*-*linux*)
4893 LD="${LD-ld} -m elf64ppc"
4894 ;;
4895 s390*-*linux*|s390*-*tpf*)
4896 LD="${LD-ld} -m elf64_s390"
4897 ;;
4898 sparc*-*linux*)
4899 LD="${LD-ld} -m elf64_sparc"
4900 ;;
4901 esac
4902 ;;
4903 esac
4904 fi
4905 rm -rf conftest*
4906 ;;
4907
4908*-*-sco3.2v5*)
4909 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4910 SAVE_CFLAGS="$CFLAGS"
4911 CFLAGS="$CFLAGS -belf"
4912 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4913echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4914if test "${lt_cv_cc_needs_belf+set}" = set; then
6bf9431b
BE
4915 echo $ECHO_N "(cached) $ECHO_C" >&6
4916else
d7040cdb
SE
4917 ac_ext=c
4918ac_cpp='$CPP $CPPFLAGS'
4919ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4920ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4921ac_compiler_gnu=$ac_cv_c_compiler_gnu
4922
4923 cat >conftest.$ac_ext <<_ACEOF
6bf9431b
BE
4924/* confdefs.h. */
4925_ACEOF
4926cat confdefs.h >>conftest.$ac_ext
4927cat >>conftest.$ac_ext <<_ACEOF
4928/* end confdefs.h. */
4929
4930int
4931main ()
4932{
252b5132 4933
6bf9431b
BE
4934 ;
4935 return 0;
4936}
4937_ACEOF
d7040cdb
SE
4938rm -f conftest.$ac_objext conftest$ac_exeext
4939if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4940 (eval $ac_link) 2>conftest.er1
6bf9431b
BE
4941 ac_status=$?
4942 grep -v '^ *+' conftest.er1 >conftest.err
4943 rm -f conftest.er1
4944 cat conftest.err >&5
4945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946 (exit $ac_status); } &&
df76639a
AM
4947 { ac_try='test -z "$ac_c_werror_flag"
4948 || test ! -s conftest.err'
6bf9431b
BE
4949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4950 (eval $ac_try) 2>&5
4951 ac_status=$?
4952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953 (exit $ac_status); }; } &&
d7040cdb 4954 { ac_try='test -s conftest$ac_exeext'
6bf9431b
BE
4955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4956 (eval $ac_try) 2>&5
4957 ac_status=$?
4958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959 (exit $ac_status); }; }; then
d7040cdb 4960 lt_cv_cc_needs_belf=yes
6bf9431b
BE
4961else
4962 echo "$as_me: failed program was:" >&5
4963sed 's/^/| /' conftest.$ac_ext >&5
4964
d7040cdb 4965lt_cv_cc_needs_belf=no
6bf9431b 4966fi
d7040cdb
SE
4967rm -f conftest.err conftest.$ac_objext \
4968 conftest$ac_exeext conftest.$ac_ext
4969 ac_ext=c
4970ac_cpp='$CPP $CPPFLAGS'
4971ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4972ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4973ac_compiler_gnu=$ac_cv_c_compiler_gnu
6bf9431b
BE
4974
4975fi
d7040cdb
SE
4976echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4977echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4978 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4979 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4980 CFLAGS="$SAVE_CFLAGS"
4981 fi
4982 ;;
4983sparc*-*solaris*)
4984 # Find out which ABI we are using.
4985 echo 'int i;' > conftest.$ac_ext
4986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4987 (eval $ac_compile) 2>&5
4988 ac_status=$?
4989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990 (exit $ac_status); }; then
4991 case `/usr/bin/file conftest.o` in
4992 *64-bit*)
4993 case $lt_cv_prog_gnu_ld in
4994 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4995 *) LD="${LD-ld} -64" ;;
4996 esac
4997 ;;
4998 esac
4999 fi
5000 rm -rf conftest*
5001 ;;
5002esac
5003
5004need_locks="$enable_libtool_lock"
5005
5006ac_ext=c
5007ac_cpp='$CPP $CPPFLAGS'
5008ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5009ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5010ac_compiler_gnu=$ac_cv_c_compiler_gnu
5011echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5012echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5013# On Suns, sometimes $CPP names a directory.
5014if test -n "$CPP" && test -d "$CPP"; then
5015 CPP=
5016fi
5017if test -z "$CPP"; then
5018 if test "${ac_cv_prog_CPP+set}" = set; then
5019 echo $ECHO_N "(cached) $ECHO_C" >&6
5020else
5021 # Double quotes because CPP needs to be expanded
5022 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5023 do
5024 ac_preproc_ok=false
5025for ac_c_preproc_warn_flag in '' yes
5026do
5027 # Use a header file that comes with gcc, so configuring glibc
5028 # with a fresh cross-compiler works.
5029 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5030 # <limits.h> exists even on freestanding compilers.
5031 # On the NeXT, cc -E runs the code through the compiler's parser,
5032 # not just through cpp. "Syntax error" is here to catch this case.
5033 cat >conftest.$ac_ext <<_ACEOF
5034/* confdefs.h. */
6bf9431b
BE
5035_ACEOF
5036cat confdefs.h >>conftest.$ac_ext
5037cat >>conftest.$ac_ext <<_ACEOF
5038/* end confdefs.h. */
d7040cdb
SE
5039#ifdef __STDC__
5040# include <limits.h>
5041#else
5042# include <assert.h>
5043#endif
5044 Syntax error
6bf9431b 5045_ACEOF
d7040cdb
SE
5046if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5047 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6bf9431b
BE
5048 ac_status=$?
5049 grep -v '^ *+' conftest.er1 >conftest.err
5050 rm -f conftest.er1
5051 cat conftest.err >&5
5052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
5053 (exit $ac_status); } >/dev/null; then
5054 if test -s conftest.err; then
5055 ac_cpp_err=$ac_c_preproc_warn_flag
5056 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
252b5132 5057 else
d7040cdb 5058 ac_cpp_err=
252b5132
RH
5059 fi
5060else
d7040cdb 5061 ac_cpp_err=yes
252b5132 5062fi
d7040cdb
SE
5063if test -z "$ac_cpp_err"; then
5064 :
6bf9431b 5065else
d7040cdb
SE
5066 echo "$as_me: failed program was:" >&5
5067sed 's/^/| /' conftest.$ac_ext >&5
5068
5069 # Broken: fails on valid input.
5070continue
5071fi
5072rm -f conftest.err conftest.$ac_ext
5073
5074 # OK, works on sane cases. Now check whether non-existent headers
5075 # can be detected and how.
5076 cat >conftest.$ac_ext <<_ACEOF
6bf9431b
BE
5077/* confdefs.h. */
5078_ACEOF
5079cat confdefs.h >>conftest.$ac_ext
5080cat >>conftest.$ac_ext <<_ACEOF
5081/* end confdefs.h. */
d7040cdb 5082#include <ac_nonexistent.h>
6bf9431b 5083_ACEOF
d7040cdb
SE
5084if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5085 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6bf9431b
BE
5086 ac_status=$?
5087 grep -v '^ *+' conftest.er1 >conftest.err
5088 rm -f conftest.er1
5089 cat conftest.err >&5
5090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
5091 (exit $ac_status); } >/dev/null; then
5092 if test -s conftest.err; then
5093 ac_cpp_err=$ac_c_preproc_warn_flag
5094 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5095 else
5096 ac_cpp_err=
5097 fi
5098else
5099 ac_cpp_err=yes
5100fi
5101if test -z "$ac_cpp_err"; then
5102 # Broken: success on invalid input.
5103continue
6bf9431b
BE
5104else
5105 echo "$as_me: failed program was:" >&5
5106sed 's/^/| /' conftest.$ac_ext >&5
5107
d7040cdb
SE
5108 # Passes both tests.
5109ac_preproc_ok=:
5110break
6bf9431b 5111fi
d7040cdb 5112rm -f conftest.err conftest.$ac_ext
6bf9431b 5113
d7040cdb
SE
5114done
5115# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5116rm -f conftest.err conftest.$ac_ext
5117if $ac_preproc_ok; then
5118 break
6bf9431b
BE
5119fi
5120
d7040cdb
SE
5121 done
5122 ac_cv_prog_CPP=$CPP
6bf9431b 5123
d7040cdb
SE
5124fi
5125 CPP=$ac_cv_prog_CPP
5126else
5127 ac_cv_prog_CPP=$CPP
5128fi
5129echo "$as_me:$LINENO: result: $CPP" >&5
5130echo "${ECHO_T}$CPP" >&6
5131ac_preproc_ok=false
5132for ac_c_preproc_warn_flag in '' yes
5133do
5134 # Use a header file that comes with gcc, so configuring glibc
5135 # with a fresh cross-compiler works.
5136 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5137 # <limits.h> exists even on freestanding compilers.
5138 # On the NeXT, cc -E runs the code through the compiler's parser,
5139 # not just through cpp. "Syntax error" is here to catch this case.
5140 cat >conftest.$ac_ext <<_ACEOF
5141/* confdefs.h. */
6bf9431b 5142_ACEOF
d7040cdb
SE
5143cat confdefs.h >>conftest.$ac_ext
5144cat >>conftest.$ac_ext <<_ACEOF
5145/* end confdefs.h. */
5146#ifdef __STDC__
5147# include <limits.h>
5148#else
5149# include <assert.h>
5150#endif
5151 Syntax error
5152_ACEOF
5153if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5154 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6bf9431b
BE
5155 ac_status=$?
5156 grep -v '^ *+' conftest.er1 >conftest.err
5157 rm -f conftest.er1
5158 cat conftest.err >&5
5159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
5160 (exit $ac_status); } >/dev/null; then
5161 if test -s conftest.err; then
5162 ac_cpp_err=$ac_c_preproc_warn_flag
5163 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5164 else
5165 ac_cpp_err=
5166 fi
5167else
5168 ac_cpp_err=yes
5169fi
5170if test -z "$ac_cpp_err"; then
5171 :
5172else
5173 echo "$as_me: failed program was:" >&5
5174sed 's/^/| /' conftest.$ac_ext >&5
5175
5176 # Broken: fails on valid input.
5177continue
5178fi
5179rm -f conftest.err conftest.$ac_ext
5180
5181 # OK, works on sane cases. Now check whether non-existent headers
5182 # can be detected and how.
5183 cat >conftest.$ac_ext <<_ACEOF
5184/* confdefs.h. */
5185_ACEOF
5186cat confdefs.h >>conftest.$ac_ext
5187cat >>conftest.$ac_ext <<_ACEOF
5188/* end confdefs.h. */
5189#include <ac_nonexistent.h>
5190_ACEOF
5191if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5192 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6bf9431b 5193 ac_status=$?
d7040cdb
SE
5194 grep -v '^ *+' conftest.er1 >conftest.err
5195 rm -f conftest.er1
5196 cat conftest.err >&5
6bf9431b 5197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
5198 (exit $ac_status); } >/dev/null; then
5199 if test -s conftest.err; then
5200 ac_cpp_err=$ac_c_preproc_warn_flag
5201 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5202 else
5203 ac_cpp_err=
5204 fi
5205else
5206 ac_cpp_err=yes
5207fi
5208if test -z "$ac_cpp_err"; then
5209 # Broken: success on invalid input.
5210continue
5211else
5212 echo "$as_me: failed program was:" >&5
5213sed 's/^/| /' conftest.$ac_ext >&5
5214
5215 # Passes both tests.
5216ac_preproc_ok=:
5217break
5218fi
5219rm -f conftest.err conftest.$ac_ext
5220
5221done
5222# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5223rm -f conftest.err conftest.$ac_ext
5224if $ac_preproc_ok; then
5225 :
5226else
5227 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5228See \`config.log' for more details." >&5
5229echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5230See \`config.log' for more details." >&2;}
5231 { (exit 1); exit 1; }; }
5232fi
5233
5234ac_ext=c
5235ac_cpp='$CPP $CPPFLAGS'
5236ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5237ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5238ac_compiler_gnu=$ac_cv_c_compiler_gnu
5239
5240
5241echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5242echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5243if test "${ac_cv_header_stdc+set}" = set; then
5244 echo $ECHO_N "(cached) $ECHO_C" >&6
5245else
6bf9431b
BE
5246 cat >conftest.$ac_ext <<_ACEOF
5247/* confdefs.h. */
5248_ACEOF
5249cat confdefs.h >>conftest.$ac_ext
5250cat >>conftest.$ac_ext <<_ACEOF
5251/* end confdefs.h. */
6bf9431b 5252#include <stdlib.h>
d7040cdb
SE
5253#include <stdarg.h>
5254#include <string.h>
5255#include <float.h>
5256
6bf9431b
BE
5257int
5258main ()
5259{
d7040cdb 5260
6bf9431b
BE
5261 ;
5262 return 0;
5263}
5264_ACEOF
5265rm -f conftest.$ac_objext
5266if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5267 (eval $ac_compile) 2>conftest.er1
5268 ac_status=$?
5269 grep -v '^ *+' conftest.er1 >conftest.err
5270 rm -f conftest.er1
5271 cat conftest.err >&5
5272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5273 (exit $ac_status); } &&
df76639a
AM
5274 { ac_try='test -z "$ac_c_werror_flag"
5275 || test ! -s conftest.err'
6bf9431b
BE
5276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5277 (eval $ac_try) 2>&5
5278 ac_status=$?
5279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280 (exit $ac_status); }; } &&
5281 { ac_try='test -s conftest.$ac_objext'
5282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5283 (eval $ac_try) 2>&5
5284 ac_status=$?
5285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286 (exit $ac_status); }; }; then
d7040cdb 5287 ac_cv_header_stdc=yes
6bf9431b
BE
5288else
5289 echo "$as_me: failed program was:" >&5
5290sed 's/^/| /' conftest.$ac_ext >&5
5291
d7040cdb 5292ac_cv_header_stdc=no
6bf9431b
BE
5293fi
5294rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d7040cdb
SE
5295
5296if test $ac_cv_header_stdc = yes; then
5297 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6bf9431b
BE
5298 cat >conftest.$ac_ext <<_ACEOF
5299/* confdefs.h. */
5300_ACEOF
5301cat confdefs.h >>conftest.$ac_ext
5302cat >>conftest.$ac_ext <<_ACEOF
5303/* end confdefs.h. */
d7040cdb
SE
5304#include <string.h>
5305
5306_ACEOF
5307if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5308 $EGREP "memchr" >/dev/null 2>&1; then
5309 :
5310else
5311 ac_cv_header_stdc=no
5312fi
5313rm -f conftest*
5314
5315fi
5316
5317if test $ac_cv_header_stdc = yes; then
5318 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5319 cat >conftest.$ac_ext <<_ACEOF
5320/* confdefs.h. */
5321_ACEOF
5322cat confdefs.h >>conftest.$ac_ext
5323cat >>conftest.$ac_ext <<_ACEOF
5324/* end confdefs.h. */
5325#include <stdlib.h>
5326
5327_ACEOF
5328if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5329 $EGREP "free" >/dev/null 2>&1; then
5330 :
5331else
5332 ac_cv_header_stdc=no
5333fi
5334rm -f conftest*
5335
5336fi
5337
5338if test $ac_cv_header_stdc = yes; then
5339 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5340 if test "$cross_compiling" = yes; then
5341 :
5342else
5343 cat >conftest.$ac_ext <<_ACEOF
5344/* confdefs.h. */
5345_ACEOF
5346cat confdefs.h >>conftest.$ac_ext
5347cat >>conftest.$ac_ext <<_ACEOF
5348/* end confdefs.h. */
5349#include <ctype.h>
5350#if ((' ' & 0x0FF) == 0x020)
5351# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5352# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5353#else
5354# define ISLOWER(c) \
5355 (('a' <= (c) && (c) <= 'i') \
5356 || ('j' <= (c) && (c) <= 'r') \
5357 || ('s' <= (c) && (c) <= 'z'))
5358# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5359#endif
5360
5361#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6bf9431b
BE
5362int
5363main ()
5364{
d7040cdb
SE
5365 int i;
5366 for (i = 0; i < 256; i++)
5367 if (XOR (islower (i), ISLOWER (i))
5368 || toupper (i) != TOUPPER (i))
5369 exit(2);
5370 exit (0);
6bf9431b
BE
5371}
5372_ACEOF
d7040cdb
SE
5373rm -f conftest$ac_exeext
5374if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5375 (eval $ac_link) 2>&5
6bf9431b
BE
5376 ac_status=$?
5377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb 5378 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6bf9431b
BE
5379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5380 (eval $ac_try) 2>&5
5381 ac_status=$?
5382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383 (exit $ac_status); }; }; then
d7040cdb 5384 :
6bf9431b 5385else
d7040cdb
SE
5386 echo "$as_me: program exited with status $ac_status" >&5
5387echo "$as_me: failed program was:" >&5
6bf9431b
BE
5388sed 's/^/| /' conftest.$ac_ext >&5
5389
d7040cdb
SE
5390( exit $ac_status )
5391ac_cv_header_stdc=no
6bf9431b 5392fi
d7040cdb 5393rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6bf9431b 5394fi
d7040cdb
SE
5395fi
5396fi
5397echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5398echo "${ECHO_T}$ac_cv_header_stdc" >&6
5399if test $ac_cv_header_stdc = yes; then
5400
5401cat >>confdefs.h <<\_ACEOF
5402#define STDC_HEADERS 1
5403_ACEOF
6bf9431b
BE
5404
5405fi
252b5132 5406
d7040cdb 5407# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6bf9431b 5408
252b5132 5409
252b5132 5410
252b5132 5411
252b5132 5412
252b5132
RH
5413
5414
6bf9431b 5415
d7040cdb
SE
5416
5417for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5418 inttypes.h stdint.h unistd.h
5af11cab 5419do
d7040cdb
SE
5420as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5421echo "$as_me:$LINENO: checking for $ac_header" >&5
5422echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5423if eval "test \"\${$as_ac_Header+set}\" = set"; then
6bf9431b
BE
5424 echo $ECHO_N "(cached) $ECHO_C" >&6
5425else
5426 cat >conftest.$ac_ext <<_ACEOF
5427/* confdefs.h. */
5428_ACEOF
5429cat confdefs.h >>conftest.$ac_ext
5430cat >>conftest.$ac_ext <<_ACEOF
5431/* end confdefs.h. */
d7040cdb 5432$ac_includes_default
6bf9431b 5433
d7040cdb
SE
5434#include <$ac_header>
5435_ACEOF
5436rm -f conftest.$ac_objext
5437if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5438 (eval $ac_compile) 2>conftest.er1
5439 ac_status=$?
5440 grep -v '^ *+' conftest.er1 >conftest.err
5441 rm -f conftest.er1
5442 cat conftest.err >&5
5443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444 (exit $ac_status); } &&
5445 { ac_try='test -z "$ac_c_werror_flag"
5446 || test ! -s conftest.err'
5447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5448 (eval $ac_try) 2>&5
5449 ac_status=$?
5450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5451 (exit $ac_status); }; } &&
5452 { ac_try='test -s conftest.$ac_objext'
5453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5454 (eval $ac_try) 2>&5
5455 ac_status=$?
5456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457 (exit $ac_status); }; }; then
5458 eval "$as_ac_Header=yes"
5459else
5460 echo "$as_me: failed program was:" >&5
5461sed 's/^/| /' conftest.$ac_ext >&5
6bf9431b 5462
d7040cdb
SE
5463eval "$as_ac_Header=no"
5464fi
5465rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5466fi
5467echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5468echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5469if test `eval echo '${'$as_ac_Header'}'` = yes; then
5470 cat >>confdefs.h <<_ACEOF
5471#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5472_ACEOF
6bf9431b 5473
d7040cdb 5474fi
6bf9431b 5475
d7040cdb 5476done
6bf9431b 5477
d7040cdb
SE
5478
5479
5480for ac_header in dlfcn.h
5481do
5482as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5483echo "$as_me:$LINENO: checking for $ac_header" >&5
5484echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5485if eval "test \"\${$as_ac_Header+set}\" = set"; then
5486 echo $ECHO_N "(cached) $ECHO_C" >&6
5487else
5488 cat >conftest.$ac_ext <<_ACEOF
5489/* confdefs.h. */
6bf9431b 5490_ACEOF
d7040cdb
SE
5491cat confdefs.h >>conftest.$ac_ext
5492cat >>conftest.$ac_ext <<_ACEOF
5493/* end confdefs.h. */
5494$ac_includes_default
5495
5496#include <$ac_header>
5497_ACEOF
5498rm -f conftest.$ac_objext
5499if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5500 (eval $ac_compile) 2>conftest.er1
6bf9431b
BE
5501 ac_status=$?
5502 grep -v '^ *+' conftest.er1 >conftest.err
5503 rm -f conftest.er1
5504 cat conftest.err >&5
5505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506 (exit $ac_status); } &&
df76639a
AM
5507 { ac_try='test -z "$ac_c_werror_flag"
5508 || test ! -s conftest.err'
6bf9431b
BE
5509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5510 (eval $ac_try) 2>&5
5511 ac_status=$?
5512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5513 (exit $ac_status); }; } &&
d7040cdb 5514 { ac_try='test -s conftest.$ac_objext'
6bf9431b
BE
5515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5516 (eval $ac_try) 2>&5
5517 ac_status=$?
5518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5519 (exit $ac_status); }; }; then
d7040cdb 5520 eval "$as_ac_Header=yes"
6bf9431b
BE
5521else
5522 echo "$as_me: failed program was:" >&5
5523sed 's/^/| /' conftest.$ac_ext >&5
5524
d7040cdb 5525eval "$as_ac_Header=no"
6bf9431b 5526fi
d7040cdb 5527rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6bf9431b 5528fi
d7040cdb
SE
5529echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5530echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5531if test `eval echo '${'$as_ac_Header'}'` = yes; then
6bf9431b 5532 cat >>confdefs.h <<_ACEOF
d7040cdb 5533#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6bf9431b
BE
5534_ACEOF
5535
5536fi
d7040cdb 5537
6bf9431b
BE
5538done
5539
5540
221ca466 5541
d7040cdb
SE
5542# This can be used to rebuild libtool when needed
5543LIBTOOL_DEPS="$ltmain"
20e95c23 5544
d7040cdb
SE
5545# Always use our own libtool.
5546LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20e95c23
DJ
5547
5548
20e95c23
DJ
5549
5550
20e95c23 5551
20e95c23 5552
20e95c23 5553
20e95c23 5554
20e95c23 5555
20e95c23
DJ
5556
5557
5558
20e95c23
DJ
5559
5560
5561
5562
5563
5564
20e95c23 5565
d7040cdb
SE
5566
5567
5568
5569
5570
5571
5572test -z "$LN_S" && LN_S="ln -s"
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587if test -n "${ZSH_VERSION+set}" ; then
5588 setopt NO_GLOB_SUBST
20e95c23 5589fi
20e95c23 5590
d7040cdb
SE
5591echo "$as_me:$LINENO: checking for objdir" >&5
5592echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5593if test "${lt_cv_objdir+set}" = set; then
6bf9431b
BE
5594 echo $ECHO_N "(cached) $ECHO_C" >&6
5595else
d7040cdb
SE
5596 rm -f .libs 2>/dev/null
5597mkdir .libs 2>/dev/null
5598if test -d .libs; then
5599 lt_cv_objdir=.libs
6bf9431b 5600else
d7040cdb
SE
5601 # MS-DOS does not allow filenames that begin with a dot.
5602 lt_cv_objdir=_libs
5603fi
5604rmdir .libs 2>/dev/null
20e95c23 5605fi
d7040cdb
SE
5606echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5607echo "${ECHO_T}$lt_cv_objdir" >&6
5608objdir=$lt_cv_objdir
20e95c23 5609
d7040cdb
SE
5610
5611
5612
5613
5614cat >>confdefs.h <<_ACEOF
5615#define LT_OBJDIR "$lt_cv_objdir/"
5616_ACEOF
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634case $host_os in
5635aix3*)
5636 # AIX sometimes has problems with the GCC collect2 program. For some
5637 # reason, if we set the COLLECT_NAMES environment variable, the problems
5638 # vanish in a puff of smoke.
5639 if test "X${COLLECT_NAMES+set}" != Xset; then
5640 COLLECT_NAMES=
5641 export COLLECT_NAMES
5642 fi
5643 ;;
5644esac
5645
5646# Sed substitution that helps us do robust quoting. It backslashifies
5647# metacharacters that are still active within double-quoted strings.
5648sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5649
5650# Same as above, but do not quote variable references.
5651double_quote_subst='s/\(["`\\]\)/\\\1/g'
5652
5653# Sed substitution to delay expansion of an escaped shell variable in a
5654# double_quote_subst'ed string.
5655delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5656
5657# Sed substitution to delay expansion of an escaped single quote.
5658delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5659
5660# Sed substitution to avoid accidental globbing in evaled expressions
5661no_glob_subst='s/\*/\\\*/g'
5662
5663# Global variables:
5664ofile=libtool
5665can_build_shared=yes
5666
5667# All known linkers require a `.a' archive for static linking (except MSVC,
5668# which needs '.lib').
5669libext=a
5670
5671with_gnu_ld="$lt_cv_prog_gnu_ld"
5672
5673old_CC="$CC"
5674old_CFLAGS="$CFLAGS"
5675
5676# Set sane defaults for various variables
5677test -z "$CC" && CC=cc
5678test -z "$LTCC" && LTCC=$CC
5679test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
5680test -z "$LD" && LD=ld
5681test -z "$ac_objext" && ac_objext=o
5682
5683for cc_temp in $compiler""; do
5684 case $cc_temp in
5685 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5686 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5687 \-*) ;;
5688 *) break;;
5689 esac
5690done
5691cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
5692
5693
5694# Only perform the check for file, if the check method requires it
5695test -z "$MAGIC_CMD" && MAGIC_CMD=file
5696case $deplibs_check_method in
5697file_magic*)
5698 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5699 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5700echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5701if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
20e95c23
DJ
5702 echo $ECHO_N "(cached) $ECHO_C" >&6
5703else
d7040cdb
SE
5704 case $MAGIC_CMD in
5705[\\/*] | ?:[\\/]*)
5706 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
20e95c23 5707 ;;
d7040cdb
SE
5708*)
5709 lt_save_MAGIC_CMD="$MAGIC_CMD"
5710 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5711 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5712 for ac_dir in $ac_dummy; do
5713 IFS="$lt_save_ifs"
5714 test -z "$ac_dir" && ac_dir=.
5715 if test -f $ac_dir/${ac_tool_prefix}file; then
5716 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5717 if test -n "$file_magic_test_file"; then
5718 case $deplibs_check_method in
5719 "file_magic "*)
5720 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5721 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5722 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5723 $EGREP "$file_magic_regex" > /dev/null; then
5724 :
5725 else
5726 cat <<_LT_EOF 1>&2
5af11cab 5727
d7040cdb
SE
5728*** Warning: the command libtool uses to detect shared libraries,
5729*** $file_magic_cmd, produces output that libtool cannot recognize.
5730*** The result is that libtool may fail to recognize shared libraries
5731*** as such. This will affect the creation of libtool libraries that
5732*** depend on shared libraries, but programs linked with such libtool
5733*** libraries will work regardless of this problem. Nevertheless, you
5734*** may want to report the problem to your system manager and/or to
5735*** bug-libtool@gnu.org
5736
5737_LT_EOF
5738 fi ;;
5739 esac
5740 fi
5741 break
5742 fi
5743 done
5744 IFS="$lt_save_ifs"
5745 MAGIC_CMD="$lt_save_MAGIC_CMD"
20e95c23
DJ
5746 ;;
5747esac
6bf9431b 5748fi
20e95c23 5749
d7040cdb
SE
5750MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5751if test -n "$MAGIC_CMD"; then
5752 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5753echo "${ECHO_T}$MAGIC_CMD" >&6
5af11cab 5754else
6bf9431b
BE
5755 echo "$as_me:$LINENO: result: no" >&5
5756echo "${ECHO_T}no" >&6
5af11cab 5757fi
6bf9431b 5758
20e95c23
DJ
5759
5760
20e95c23 5761
20e95c23 5762
d7040cdb
SE
5763if test -z "$lt_cv_path_MAGIC_CMD"; then
5764 if test -n "$ac_tool_prefix"; then
5765 echo "$as_me:$LINENO: checking for file" >&5
5766echo $ECHO_N "checking for file... $ECHO_C" >&6
5767if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6bf9431b
BE
5768 echo $ECHO_N "(cached) $ECHO_C" >&6
5769else
d7040cdb
SE
5770 case $MAGIC_CMD in
5771[\\/*] | ?:[\\/]*)
5772 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5773 ;;
5774*)
5775 lt_save_MAGIC_CMD="$MAGIC_CMD"
5776 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5777 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5778 for ac_dir in $ac_dummy; do
5779 IFS="$lt_save_ifs"
5780 test -z "$ac_dir" && ac_dir=.
5781 if test -f $ac_dir/file; then
5782 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5783 if test -n "$file_magic_test_file"; then
5784 case $deplibs_check_method in
5785 "file_magic "*)
5786 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5787 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5788 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5789 $EGREP "$file_magic_regex" > /dev/null; then
5790 :
5791 else
5792 cat <<_LT_EOF 1>&2
5793
5794*** Warning: the command libtool uses to detect shared libraries,
5795*** $file_magic_cmd, produces output that libtool cannot recognize.
5796*** The result is that libtool may fail to recognize shared libraries
5797*** as such. This will affect the creation of libtool libraries that
5798*** depend on shared libraries, but programs linked with such libtool
5799*** libraries will work regardless of this problem. Nevertheless, you
5800*** may want to report the problem to your system manager and/or to
5801*** bug-libtool@gnu.org
5802
5803_LT_EOF
5804 fi ;;
5805 esac
5806 fi
5807 break
5808 fi
5809 done
5810 IFS="$lt_save_ifs"
5811 MAGIC_CMD="$lt_save_MAGIC_CMD"
5812 ;;
20e95c23
DJ
5813esac
5814fi
d7040cdb
SE
5815
5816MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5817if test -n "$MAGIC_CMD"; then
5818 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5819echo "${ECHO_T}$MAGIC_CMD" >&6
6bf9431b 5820else
20e95c23
DJ
5821 echo "$as_me:$LINENO: result: no" >&5
5822echo "${ECHO_T}no" >&6
5823fi
5824
20e95c23 5825
20e95c23 5826 else
d7040cdb 5827 MAGIC_CMD=:
6bf9431b 5828 fi
20e95c23 5829fi
5af11cab 5830
d7040cdb
SE
5831 fi
5832 ;;
5833esac
20e95c23 5834
d7040cdb
SE
5835# Use C for the default configuration in the libtool script
5836
5837lt_save_CC="$CC"
5838ac_ext=c
5839ac_cpp='$CPP $CPPFLAGS'
5840ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5841ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5842ac_compiler_gnu=$ac_cv_c_compiler_gnu
5843
5844
5845# Source file extension for C test sources.
5846ac_ext=c
5847
5848# Object file extension for compiled C test sources.
5849objext=o
5850objext=$objext
5851
5852# Code to be used in simple compile tests
5853lt_simple_compile_test_code="int some_variable = 0;"
5854
5855# Code to be used in simple link tests
5856lt_simple_link_test_code='int main(){return(0);}'
5857
5858
5859
5860
5861
5862
5863
5864# If no C compiler was specified, use CC.
5865LTCC=${LTCC-"$CC"}
5866
5867# If no C compiler flags were specified, use CFLAGS.
5868LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5869
5870# Allow CC to be a program name with arguments.
5871compiler=$CC
5872
5873# Save the default compiler, since it gets overwritten when the other
5874# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
5875compiler_DEFAULT=$CC
5876
5877# save warnings/boilerplate of simple test code
5878ac_outfile=conftest.$ac_objext
5879echo "$lt_simple_compile_test_code" >conftest.$ac_ext
5880eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
5881_lt_compiler_boilerplate=`cat conftest.err`
5882$RM conftest*
5883
5884ac_outfile=conftest.$ac_objext
5885echo "$lt_simple_link_test_code" >conftest.$ac_ext
5886eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
5887_lt_linker_boilerplate=`cat conftest.err`
5888$RM conftest*
5889
5890
5891## CAVEAT EMPTOR:
5892## There is no encapsulation within the following macros, do not change
5893## the running order or otherwise move them around unless you know exactly
5894## what you are doing...
5895if test -n "$compiler"; then
5896
5897lt_prog_compiler_no_builtin_flag=
5898
5899if test "$GCC" = yes; then
5900 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5901
5902 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5903echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5904if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
20e95c23
DJ
5905 echo $ECHO_N "(cached) $ECHO_C" >&6
5906else
d7040cdb
SE
5907 lt_cv_prog_compiler_rtti_exceptions=no
5908 ac_outfile=conftest.$ac_objext
5909 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5910 lt_compiler_flag="-fno-rtti -fno-exceptions"
5911 # Insert the option either (1) after the last *FLAGS variable, or
5912 # (2) before a word containing "conftest.", or (3) at the end.
5913 # Note that $ac_compile itself does not contain backslashes and begins
5914 # with a dollar sign (not a hyphen), so the echo should work correctly.
5915 # The option is referenced via a variable to avoid confusing sed.
5916 lt_compile=`echo "$ac_compile" | $SED \
5917 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
5918 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5919 -e 's:$: $lt_compiler_flag:'`
79887925 5920 (eval echo "\"\$as_me:5920: $lt_compile\"" >&5)
d7040cdb
SE
5921 (eval "$lt_compile" 2>conftest.err)
5922 ac_status=$?
5923 cat conftest.err >&5
79887925 5924 echo "$as_me:5924: \$? = $ac_status" >&5
d7040cdb
SE
5925 if (exit $ac_status) && test -s "$ac_outfile"; then
5926 # The compiler can only warn and ignore the option if not recognized
5927 # So say no if there are warnings other than the usual output.
5928 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
5929 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
5930 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
5931 lt_cv_prog_compiler_rtti_exceptions=yes
5932 fi
5933 fi
5934 $RM conftest*
5935
6bf9431b 5936fi
d7040cdb
SE
5937echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5938echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5939
5940if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5941 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5af11cab 5942else
d7040cdb 5943 :
5af11cab 5944fi
5af11cab 5945
d7040cdb 5946fi
20e95c23 5947
20e95c23 5948
20e95c23 5949
20e95c23
DJ
5950
5951
5952
d7040cdb
SE
5953 lt_prog_compiler_wl=
5954lt_prog_compiler_pic=
5955lt_prog_compiler_static=
20e95c23 5956
d7040cdb
SE
5957echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5958echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
20e95c23 5959
d7040cdb
SE
5960 if test "$GCC" = yes; then
5961 lt_prog_compiler_wl='-Wl,'
5962 lt_prog_compiler_static='-static'
5963
5964 case $host_os in
5965 aix*)
5966 # All AIX code is PIC.
5967 if test "$host_cpu" = ia64; then
5968 # AIX 5 now supports IA64 processor
5969 lt_prog_compiler_static='-Bstatic'
5970 fi
5971 ;;
252b5132 5972
d7040cdb
SE
5973 amigaos*)
5974 if test "$host_cpu" = m68k; then
5975 # FIXME: we need at least 68020 code to build shared libraries, but
5976 # adding the `-m68020' flag to GCC prevents building anything better,
5977 # like `-m68040'.
5978 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5979 fi
5980 ;;
20e95c23 5981
d7040cdb
SE
5982 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5983 # PIC is the default for these OSes.
5984 ;;
20e95c23 5985
d7040cdb
SE
5986 mingw* | cygwin* | pw32* | os2*)
5987 # This hack is so that the source file can tell whether it is being
5988 # built for inclusion in a dll (and should export symbols for example).
5989 # Although the cygwin gcc ignores -fPIC, still need this for old-style
5990 # (--disable-auto-import) libraries
5991 lt_prog_compiler_pic='-DDLL_EXPORT'
5992 ;;
20e95c23 5993
d7040cdb
SE
5994 darwin* | rhapsody*)
5995 # PIC is the default on this platform
5996 # Common symbols not allowed in MH_DYLIB files
5997 lt_prog_compiler_pic='-fno-common'
5998 ;;
20e95c23 5999
d7040cdb
SE
6000 hpux*)
6001 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6002 # not for PA HP-UX.
6003 case $host_cpu in
6004 hppa*64*|ia64*)
6005 # +Z the default
6006 ;;
6007 *)
6008 lt_prog_compiler_pic='-fPIC'
6009 ;;
6010 esac
6011 ;;
d5fbea21 6012
d7040cdb
SE
6013 interix[3-9]*)
6014 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6015 # Instead, we relocate shared libraries at runtime.
6016 ;;
d5fbea21 6017
d7040cdb
SE
6018 msdosdjgpp*)
6019 # Just because we use GCC doesn't mean we suddenly get shared libraries
6020 # on systems that don't support them.
6021 lt_prog_compiler_can_build_shared=no
6022 enable_shared=no
6023 ;;
d5fbea21 6024
d7040cdb
SE
6025 *nto* | *qnx*)
6026 # QNX uses GNU C++, but need to define -shared option too, otherwise
6027 # it will coredump.
6028 lt_prog_compiler_pic='-fPIC -shared'
6029 ;;
6030
6031 sysv4*MP*)
6032 if test -d /usr/nec; then
6033 lt_prog_compiler_pic=-Kconform_pic
6034 fi
6035 ;;
6036
6037 *)
6038 lt_prog_compiler_pic='-fPIC'
6039 ;;
6040 esac
6bf9431b 6041 else
d7040cdb
SE
6042 # PORTME Check for flag to pass linker flags through the system compiler.
6043 case $host_os in
6044 aix*)
6045 lt_prog_compiler_wl='-Wl,'
6046 if test "$host_cpu" = ia64; then
6047 # AIX 5 now supports IA64 processor
6048 lt_prog_compiler_static='-Bstatic'
6049 else
6050 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6051 fi
6052 ;;
6053 darwin*)
6054 # PIC is the default on this platform
6055 # Common symbols not allowed in MH_DYLIB files
6056 case $cc_basename in
6057 xlc*)
6058 lt_prog_compiler_pic='-qnocommon'
6059 lt_prog_compiler_wl='-Wl,'
6060 ;;
6061 esac
6062 ;;
6063
6064 mingw* | cygwin* | pw32* | os2*)
6065 # This hack is so that the source file can tell whether it is being
6066 # built for inclusion in a dll (and should export symbols for example).
6067 lt_prog_compiler_pic='-DDLL_EXPORT'
6068 ;;
6069
6070 hpux9* | hpux10* | hpux11*)
6071 lt_prog_compiler_wl='-Wl,'
6072 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6073 # not for PA HP-UX.
6074 case $host_cpu in
6075 hppa*64*|ia64*)
6076 # +Z the default
6077 ;;
6078 *)
6079 lt_prog_compiler_pic='+Z'
6080 ;;
6081 esac
6082 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6083 lt_prog_compiler_static='${wl}-a ${wl}archive'
6084 ;;
6085
6086 irix5* | irix6* | nonstopux*)
6087 lt_prog_compiler_wl='-Wl,'
6088 # PIC (with -KPIC) is the default.
6089 lt_prog_compiler_static='-non_shared'
6090 ;;
6091
6092 linux* | k*bsd*-gnu)
6093 case $cc_basename in
6094 icc* | ecc*)
6095 lt_prog_compiler_wl='-Wl,'
6096 lt_prog_compiler_pic='-KPIC'
6097 lt_prog_compiler_static='-static'
6098 ;;
6099 pgcc* | pgf77* | pgf90* | pgf95*)
6100 # Portland Group compilers (*not* the Pentium gcc compiler,
6101 # which looks to be a dead project)
6102 lt_prog_compiler_wl='-Wl,'
6103 lt_prog_compiler_pic='-fpic'
6104 lt_prog_compiler_static='-Bstatic'
6105 ;;
6106 ccc*)
6107 lt_prog_compiler_wl='-Wl,'
6108 # All Alpha code is PIC.
6109 lt_prog_compiler_static='-non_shared'
6110 ;;
6111 *)
6112 case `$CC -V 2>&1 | sed 5q` in
6113 *Sun\ C*)
6114 # Sun C 5.9
6115 lt_prog_compiler_pic='-KPIC'
6116 lt_prog_compiler_static='-Bstatic'
6117 lt_prog_compiler_wl='-Wl,'
6118 ;;
6119 *Sun\ F*)
6120 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6121 lt_prog_compiler_pic='-KPIC'
6122 lt_prog_compiler_static='-Bstatic'
6123 lt_prog_compiler_wl=''
6124 ;;
6125 esac
6126 ;;
6127 esac
6128 ;;
6129
6130 newsos6)
6131 lt_prog_compiler_pic='-KPIC'
6132 lt_prog_compiler_static='-Bstatic'
6133 ;;
6134
6135 *nto* | *qnx*)
6136 # QNX uses GNU C++, but need to define -shared option too, otherwise
6137 # it will coredump.
6138 lt_prog_compiler_pic='-fPIC -shared'
6139 ;;
6140
6141 osf3* | osf4* | osf5*)
6142 lt_prog_compiler_wl='-Wl,'
6143 # All OSF/1 code is PIC.
6144 lt_prog_compiler_static='-non_shared'
6145 ;;
6146
6147 rdos*)
6148 lt_prog_compiler_static='-non_shared'
6149 ;;
6150
6151 solaris*)
6152 lt_prog_compiler_pic='-KPIC'
6153 lt_prog_compiler_static='-Bstatic'
6154 case $cc_basename in
6155 f77* | f90* | f95*)
6156 lt_prog_compiler_wl='-Qoption ld ';;
6157 *)
6158 lt_prog_compiler_wl='-Wl,';;
6159 esac
6160 ;;
6161
6162 sunos4*)
6163 lt_prog_compiler_wl='-Qoption ld '
6164 lt_prog_compiler_pic='-PIC'
6165 lt_prog_compiler_static='-Bstatic'
6166 ;;
6167
6168 sysv4 | sysv4.2uw2* | sysv4.3*)
6169 lt_prog_compiler_wl='-Wl,'
6170 lt_prog_compiler_pic='-KPIC'
6171 lt_prog_compiler_static='-Bstatic'
6172 ;;
6173
6174 sysv4*MP*)
6175 if test -d /usr/nec ;then
6176 lt_prog_compiler_pic='-Kconform_pic'
6177 lt_prog_compiler_static='-Bstatic'
6178 fi
6179 ;;
6180
6181 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6182 lt_prog_compiler_wl='-Wl,'
6183 lt_prog_compiler_pic='-KPIC'
6184 lt_prog_compiler_static='-Bstatic'
6185 ;;
6186
6187 unicos*)
6188 lt_prog_compiler_wl='-Wl,'
6189 lt_prog_compiler_can_build_shared=no
6190 ;;
6191
6192 uts4*)
6193 lt_prog_compiler_pic='-pic'
6194 lt_prog_compiler_static='-Bstatic'
6195 ;;
6196
6197 *)
6198 lt_prog_compiler_can_build_shared=no
6199 ;;
6200 esac
6bf9431b 6201 fi
d7040cdb
SE
6202
6203case $host_os in
6204 # For platforms which do not support PIC, -DPIC is meaningless:
6205 *djgpp*)
6206 lt_prog_compiler_pic=
6207 ;;
6208 *)
6209 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6210 ;;
6211esac
6212echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6213echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6214
6215
6216
6217
6218
6219
6220#
6221# Check to make sure the PIC flag actually works.
6222#
6223if test -n "$lt_prog_compiler_pic"; then
6224 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6225echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6226if test "${lt_prog_compiler_pic_works+set}" = set; then
6227 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6228else
d7040cdb
SE
6229 lt_prog_compiler_pic_works=no
6230 ac_outfile=conftest.$ac_objext
6231 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6232 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6233 # Insert the option either (1) after the last *FLAGS variable, or
6234 # (2) before a word containing "conftest.", or (3) at the end.
6235 # Note that $ac_compile itself does not contain backslashes and begins
6236 # with a dollar sign (not a hyphen), so the echo should work correctly.
6237 # The option is referenced via a variable to avoid confusing sed.
6238 lt_compile=`echo "$ac_compile" | $SED \
6239 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6240 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6241 -e 's:$: $lt_compiler_flag:'`
79887925 6242 (eval echo "\"\$as_me:6242: $lt_compile\"" >&5)
d7040cdb
SE
6243 (eval "$lt_compile" 2>conftest.err)
6244 ac_status=$?
6245 cat conftest.err >&5
79887925 6246 echo "$as_me:6246: \$? = $ac_status" >&5
d7040cdb
SE
6247 if (exit $ac_status) && test -s "$ac_outfile"; then
6248 # The compiler can only warn and ignore the option if not recognized
6249 # So say no if there are warnings other than the usual output.
6250 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6251 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6252 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6253 lt_prog_compiler_pic_works=yes
6254 fi
6255 fi
6256 $RM conftest*
6bf9431b 6257
6bf9431b 6258fi
d7040cdb
SE
6259echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6260echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6bf9431b 6261
d7040cdb
SE
6262if test x"$lt_prog_compiler_pic_works" = xyes; then
6263 case $lt_prog_compiler_pic in
6264 "" | " "*) ;;
6265 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6266 esac
252b5132 6267else
d7040cdb
SE
6268 lt_prog_compiler_pic=
6269 lt_prog_compiler_can_build_shared=no
252b5132 6270fi
6bf9431b 6271
252b5132 6272fi
6bf9431b 6273
6bf9431b 6274
6bf9431b 6275
d7040cdb
SE
6276
6277
6278
6279#
6280# Check to make sure the static flag actually works.
6281#
6282wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6283echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6284echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6285if test "${lt_prog_compiler_static_works+set}" = set; then
6286 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6287else
d7040cdb
SE
6288 lt_prog_compiler_static_works=no
6289 save_LDFLAGS="$LDFLAGS"
6290 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6291 echo "$lt_simple_link_test_code" > conftest.$ac_ext
6292 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6293 # The linker can only warn and ignore the option if not recognized
6294 # So say no if there are warnings
6295 if test -s conftest.err; then
6296 # Append any errors to the config.log.
6297 cat conftest.err 1>&5
6298 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6299 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6300 if diff conftest.exp conftest.er2 >/dev/null; then
6301 lt_prog_compiler_static_works=yes
6302 fi
6303 else
6304 lt_prog_compiler_static_works=yes
6305 fi
6306 fi
6307 $RM conftest*
6308 LDFLAGS="$save_LDFLAGS"
6309
252b5132 6310fi
d7040cdb
SE
6311echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6312echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6313
6314if test x"$lt_prog_compiler_static_works" = xyes; then
6315 :
ac48eca1 6316else
d7040cdb 6317 lt_prog_compiler_static=
6bf9431b 6318fi
d7040cdb
SE
6319
6320
6321
6322
6323
6324
6325
6326 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6327echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6328if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6329 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 6330else
d7040cdb
SE
6331 lt_cv_prog_compiler_c_o=no
6332 $RM -r conftest 2>/dev/null
6333 mkdir conftest
6334 cd conftest
6335 mkdir out
6336 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6337
6338 lt_compiler_flag="-o out/conftest2.$ac_objext"
6339 # Insert the option either (1) after the last *FLAGS variable, or
6340 # (2) before a word containing "conftest.", or (3) at the end.
6341 # Note that $ac_compile itself does not contain backslashes and begins
6342 # with a dollar sign (not a hyphen), so the echo should work correctly.
6343 lt_compile=`echo "$ac_compile" | $SED \
6344 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6345 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6346 -e 's:$: $lt_compiler_flag:'`
79887925 6347 (eval echo "\"\$as_me:6347: $lt_compile\"" >&5)
d7040cdb
SE
6348 (eval "$lt_compile" 2>out/conftest.err)
6349 ac_status=$?
6350 cat out/conftest.err >&5
79887925 6351 echo "$as_me:6351: \$? = $ac_status" >&5
d7040cdb
SE
6352 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6353 then
6354 # The compiler can only warn and ignore the option if not recognized
6355 # So say no if there are warnings
6356 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6357 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6358 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6359 lt_cv_prog_compiler_c_o=yes
6360 fi
6361 fi
6362 chmod u+w . 2>&5
6363 $RM conftest*
6364 # SGI C++ compiler will create directory out/ii_files/ for
6365 # template instantiation
6366 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6367 $RM out/* && rmdir out
6368 cd ..
6369 $RM -r conftest
6370 $RM conftest*
6bf9431b 6371
6bf9431b 6372fi
d7040cdb
SE
6373echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6374echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6bf9431b 6375
6bf9431b 6376
6bf9431b 6377
6bf9431b 6378
6bf9431b
BE
6379
6380
d7040cdb
SE
6381 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6382echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6383if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6bf9431b 6384 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 6385else
d7040cdb
SE
6386 lt_cv_prog_compiler_c_o=no
6387 $RM -r conftest 2>/dev/null
6388 mkdir conftest
6389 cd conftest
6390 mkdir out
6391 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6392
6393 lt_compiler_flag="-o out/conftest2.$ac_objext"
6394 # Insert the option either (1) after the last *FLAGS variable, or
6395 # (2) before a word containing "conftest.", or (3) at the end.
6396 # Note that $ac_compile itself does not contain backslashes and begins
6397 # with a dollar sign (not a hyphen), so the echo should work correctly.
6398 lt_compile=`echo "$ac_compile" | $SED \
6399 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6400 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6401 -e 's:$: $lt_compiler_flag:'`
79887925 6402 (eval echo "\"\$as_me:6402: $lt_compile\"" >&5)
d7040cdb
SE
6403 (eval "$lt_compile" 2>out/conftest.err)
6404 ac_status=$?
6405 cat out/conftest.err >&5
79887925 6406 echo "$as_me:6406: \$? = $ac_status" >&5
d7040cdb
SE
6407 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6408 then
6409 # The compiler can only warn and ignore the option if not recognized
6410 # So say no if there are warnings
6411 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6412 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6413 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6414 lt_cv_prog_compiler_c_o=yes
6415 fi
6416 fi
6417 chmod u+w . 2>&5
6418 $RM conftest*
6419 # SGI C++ compiler will create directory out/ii_files/ for
6420 # template instantiation
6421 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6422 $RM out/* && rmdir out
6423 cd ..
6424 $RM -r conftest
6425 $RM conftest*
6426
6427fi
6428echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6429echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6430
6431
6432
6433
6434hard_links="nottested"
6435if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6436 # do not overwrite the value of need_locks provided by the user
6437 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6438echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6439 hard_links=yes
6440 $RM conftest*
6441 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6442 touch conftest.a
6443 ln conftest.a conftest.b 2>&5 || hard_links=no
6444 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6445 echo "$as_me:$LINENO: result: $hard_links" >&5
6446echo "${ECHO_T}$hard_links" >&6
6447 if test "$hard_links" = no; then
6448 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6449echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6450 need_locks=warn
6451 fi
6452else
6453 need_locks=no
6454fi
6455
6456
6457
6458
6459
6460
6461 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6462echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6463
6464 runpath_var=
6465 allow_undefined_flag=
6466 always_export_symbols=no
6467 archive_cmds=
6468 archive_expsym_cmds=
6469 compiler_needs_object=no
6470 enable_shared_with_static_runtimes=no
6471 export_dynamic_flag_spec=
6472 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6473 hardcode_automatic=no
6474 hardcode_direct=no
6475 hardcode_direct_absolute=no
6476 hardcode_libdir_flag_spec=
6477 hardcode_libdir_flag_spec_ld=
6478 hardcode_libdir_separator=
6479 hardcode_minus_L=no
6480 hardcode_shlibpath_var=unsupported
6481 inherit_rpath=no
6482 link_all_deplibs=unknown
6483 module_cmds=
6484 module_expsym_cmds=
6485 old_archive_from_new_cmds=
6486 old_archive_from_expsyms_cmds=
6487 thread_safe_flag_spec=
6488 whole_archive_flag_spec=
6489 # include_expsyms should be a list of space-separated symbols to be *always*
6490 # included in the symbol list
6491 include_expsyms=
6492 # exclude_expsyms can be an extended regexp of symbols to exclude
6493 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6494 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6495 # as well as any symbol that contains `d'.
6496 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6497 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6498 # platforms (ab)use it in PIC code, but their linkers get confused if
6499 # the symbol is explicitly referenced. Since portable code cannot
6500 # rely on this symbol name, it's probably fine to never include it in
6501 # preloaded symbol tables.
6502 extract_expsyms_cmds=
6503
6504 case $host_os in
6505 cygwin* | mingw* | pw32*)
6506 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6507 # When not using gcc, we currently assume that we are using
6508 # Microsoft Visual C++.
6509 if test "$GCC" != yes; then
6510 with_gnu_ld=no
6bf9431b 6511 fi
d7040cdb
SE
6512 ;;
6513 interix*)
6514 # we just hope/assume this is gcc and not c89 (= MSVC++)
6515 with_gnu_ld=yes
6516 ;;
6517 openbsd*)
6518 with_gnu_ld=no
6519 ;;
6520 esac
6521
6522 ld_shlibs=yes
6523 if test "$with_gnu_ld" = yes; then
6524 # If archive_cmds runs LD, not CC, wlarc should be empty
6525 wlarc='${wl}'
6526
6527 # Set some defaults for GNU ld with shared library support. These
6528 # are reset later if shared libraries are not supported. Putting them
6529 # here allows them to be overridden if necessary.
6530 runpath_var=LD_RUN_PATH
6531 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6532 export_dynamic_flag_spec='${wl}--export-dynamic'
6533 # ancient GNU ld didn't support --whole-archive et. al.
6534 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
6535 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6536 else
6537 whole_archive_flag_spec=
6538 fi
6539 supports_anon_versioning=no
6540 case `$LD -v 2>&1` in
6541 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6542 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6543 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6544 *\ 2.11.*) ;; # other 2.11 versions
6545 *) supports_anon_versioning=yes ;;
6546 esac
6bf9431b 6547
d7040cdb
SE
6548 # See if GNU ld supports shared libraries.
6549 case $host_os in
6550 aix3* | aix4* | aix5*)
6551 # On AIX/PPC, the GNU linker is very broken
6552 if test "$host_cpu" != ia64; then
6553 ld_shlibs=no
6554 cat <<_LT_EOF 1>&2
6555
6556*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6557*** to be unable to reliably create shared libraries on AIX.
6558*** Therefore, libtool is disabling shared libraries support. If you
6559*** really care for shared libraries, you may want to modify your PATH
6560*** so that a non-GNU linker is found, and then restart.
6561
6562_LT_EOF
6563 fi
6564 ;;
ac48eca1 6565
d7040cdb
SE
6566 amigaos*)
6567 if test "$host_cpu" = m68k; then
6568 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)'
6569 hardcode_libdir_flag_spec='-L$libdir'
6570 hardcode_minus_L=yes
6571 fi
6572
6573 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6574 # that the semantics of dynamic libraries on AmigaOS, at least up
6575 # to version 4, is to share data among multiple programs linked
6576 # with the same dynamic library. Since this doesn't match the
6577 # behavior of shared libraries on other platforms, we can't use
6578 # them.
6579 ld_shlibs=no
6580 ;;
6581
6582 beos*)
6583 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6584 allow_undefined_flag=unsupported
6585 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6586 # support --undefined. This deserves some investigation. FIXME
6587 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6588 else
6589 ld_shlibs=no
6590 fi
6591 ;;
6592
6593 cygwin* | mingw* | pw32*)
6594 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6595 # as there is no search path for DLLs.
6596 hardcode_libdir_flag_spec='-L$libdir'
6597 allow_undefined_flag=unsupported
6598 always_export_symbols=no
6599 enable_shared_with_static_runtimes=yes
6600 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
6601
6602 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6603 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6604 # If the export-symbols file already is a .def file (1st line
6605 # is EXPORTS), use it as is; otherwise, prepend...
6606 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6607 cp $export_symbols $output_objdir/$soname.def;
6608 else
6609 echo EXPORTS > $output_objdir/$soname.def;
6610 cat $export_symbols >> $output_objdir/$soname.def;
6611 fi~
6612 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6613 else
6614 ld_shlibs=no
6615 fi
6616 ;;
6617
6618 interix[3-9]*)
6619 hardcode_direct=no
6620 hardcode_shlibpath_var=no
6621 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6622 export_dynamic_flag_spec='${wl}-E'
6623 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6624 # Instead, shared libraries are loaded at an image base (0x10000000 by
6625 # default) and relocated if they conflict, which is a slow very memory
6626 # consuming and fragmenting process. To avoid this, we pick a random,
6627 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6628 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6629 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6630 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'
6631 ;;
6632
6633 gnu* | linux* | tpf* | k*bsd*-gnu)
6634 tmp_diet=no
6635 if test "$host_os" = linux-dietlibc; then
6636 case $cc_basename in
6637 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
6638 esac
6639 fi
6640 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
6641 && test "$tmp_diet" = no
6642 then
6643 tmp_addflag=
6644 case $cc_basename,$host_cpu in
6645 pgcc*) # Portland Group C compiler
6646 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'
6647 tmp_addflag=' $pic_flag'
6648 ;;
6649 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
6650 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'
6651 tmp_addflag=' $pic_flag -Mnomain' ;;
6652 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6653 tmp_addflag=' -i_dynamic' ;;
6654 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6655 tmp_addflag=' -i_dynamic -nofor_main' ;;
6656 ifc* | ifort*) # Intel Fortran compiler
6657 tmp_addflag=' -nofor_main' ;;
6658 esac
6659 case `$CC -V 2>&1 | sed 5q` in
6660 *Sun\ C*) # Sun C 5.9
6661 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'
6662 compiler_needs_object=yes
6663 tmp_sharedflag='-G' ;;
6664 *Sun\ F*) # Sun Fortran 8.3
6665 tmp_sharedflag='-G' ;;
6666 *)
6667 tmp_sharedflag='-shared' ;;
6668 esac
6669 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6670
6671 if test "x$supports_anon_versioning" = xyes; then
6672 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
6673 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6674 echo "local: *; };" >> $output_objdir/$libname.ver~
6675 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6676 fi
6677 else
6678 ld_shlibs=no
6679 fi
6680 ;;
6681
6682 netbsd*)
6683 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6684 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6685 wlarc=
6686 else
6687 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6688 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6689 fi
6690 ;;
6691
6692 solaris*)
6693 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
6694 ld_shlibs=no
6695 cat <<_LT_EOF 1>&2
6696
6697*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6698*** create shared libraries on Solaris systems. Therefore, libtool
6699*** is disabling shared libraries support. We urge you to upgrade GNU
6700*** binutils to release 2.9.1 or newer. Another option is to modify
6701*** your PATH or compiler configuration so that the native linker is
6702*** used, and then restart.
6703
6704_LT_EOF
6705 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6706 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6707 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6708 else
6709 ld_shlibs=no
6710 fi
6711 ;;
6712
6713 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6714 case `$LD -v 2>&1` in
6715 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
6716 ld_shlibs=no
6717 cat <<_LT_EOF 1>&2
6718
6719*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
6720*** reliably create shared libraries on SCO systems. Therefore, libtool
6721*** is disabling shared libraries support. We urge you to upgrade GNU
6722*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
6723*** your PATH or compiler configuration so that the native linker is
6724*** used, and then restart.
6725
6726_LT_EOF
6727 ;;
6728 *)
6729 # For security reasons, it is highly recommended that you always
6730 # use absolute paths for naming shared libraries, and exclude the
6731 # DT_RUNPATH tag from executables and libraries. But doing so
6732 # requires that you compile everything twice, which is a pain.
6733 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6734 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6735 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6736 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6737 else
6738 ld_shlibs=no
6739 fi
6740 ;;
6741 esac
6742 ;;
6743
6744 sunos4*)
6745 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6746 wlarc=
6747 hardcode_direct=yes
6748 hardcode_shlibpath_var=no
6749 ;;
6750
6751 *)
6752 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6753 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6754 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6755 else
6756 ld_shlibs=no
6757 fi
6758 ;;
6759 esac
6760
6761 if test "$ld_shlibs" = no; then
6762 runpath_var=
6763 hardcode_libdir_flag_spec=
6764 export_dynamic_flag_spec=
6765 whole_archive_flag_spec=
6766 fi
6767 else
6768 # PORTME fill in a description of your system's linker (not GNU ld)
6769 case $host_os in
6770 aix3*)
6771 allow_undefined_flag=unsupported
6772 always_export_symbols=yes
6773 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'
6774 # Note: this linker hardcodes the directories in LIBPATH if there
6775 # are no directories specified by -L.
6776 hardcode_minus_L=yes
6777 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
6778 # Neither direct hardcoding nor static linking is supported with a
6779 # broken collect2.
6780 hardcode_direct=unsupported
6781 fi
6782 ;;
6783
6784 aix4* | aix5*)
6785 if test "$host_cpu" = ia64; then
6786 # On IA64, the linker does run time linking by default, so we don't
6787 # have to do anything special.
6788 aix_use_runtimelinking=no
6789 exp_sym_flag='-Bexport'
6790 no_entry_flag=""
6791 else
6792 # If we're using GNU nm, then we don't want the "-C" option.
6793 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6794 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
6795 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'
6796 else
6797 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'
6798 fi
6799 aix_use_runtimelinking=no
6800
6801 # Test if we are trying to use run time linking or normal
6802 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6803 # need to do runtime linking.
6804 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6805 for ld_flag in $LDFLAGS; do
6806 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6807 aix_use_runtimelinking=yes
6808 break
6809 fi
6810 done
6811 ;;
6812 esac
6813
6814 exp_sym_flag='-bexport'
6815 no_entry_flag='-bnoentry'
6816 fi
6817
6818 # When large executables or shared objects are built, AIX ld can
6819 # have problems creating the table of contents. If linking a library
6820 # or program results in "error TOC overflow" add -mminimal-toc to
6821 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6822 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6823
6824 archive_cmds=''
6825 hardcode_direct=yes
6826 hardcode_direct_absolute=yes
6827 hardcode_libdir_separator=':'
6828 link_all_deplibs=yes
6829 file_list_spec='${wl}-f,'
6830
6831 if test "$GCC" = yes; then
6832 case $host_os in aix4.[012]|aix4.[012].*)
6833 # We only want to do this on AIX 4.2 and lower, the check
6834 # below for broken collect2 doesn't work under 4.3+
6835 collect2name=`${CC} -print-prog-name=collect2`
6836 if test -f "$collect2name" &&
6837 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
6838 then
6839 # We have reworked collect2
6840 :
6841 else
6842 # We have old collect2
6843 hardcode_direct=unsupported
6844 # It fails to find uninstalled libraries when the uninstalled
6845 # path is not listed in the libpath. Setting hardcode_minus_L
6846 # to unsupported forces relinking
6847 hardcode_minus_L=yes
6848 hardcode_libdir_flag_spec='-L$libdir'
6849 hardcode_libdir_separator=
6850 fi
6851 ;;
6852 esac
6853 shared_flag='-shared'
6854 if test "$aix_use_runtimelinking" = yes; then
6855 shared_flag="$shared_flag "'${wl}-G'
6856 fi
6857 else
6858 # not using gcc
6859 if test "$host_cpu" = ia64; then
6860 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6861 # chokes on -Wl,-G. The following line is correct:
6862 shared_flag='-G'
6863 else
6864 if test "$aix_use_runtimelinking" = yes; then
6865 shared_flag='${wl}-G'
6866 else
6867 shared_flag='${wl}-bM:SRE'
6868 fi
6869 fi
6870 fi
6871
6872 # It seems that -bexpall does not export symbols beginning with
6873 # underscore (_), so it is better to generate a list of symbols to export.
6874 always_export_symbols=yes
6875 if test "$aix_use_runtimelinking" = yes; then
6876 # Warning - without using the other runtime loading flags (-brtl),
6877 # -berok will link without error, but may produce a broken library.
6878 allow_undefined_flag='-berok'
6879 # Determine the default libpath from the value encoded in an
6880 # empty executable.
6881 cat >conftest.$ac_ext <<_ACEOF
6bf9431b
BE
6882/* confdefs.h. */
6883_ACEOF
6884cat confdefs.h >>conftest.$ac_ext
6885cat >>conftest.$ac_ext <<_ACEOF
6886/* end confdefs.h. */
20e95c23
DJ
6887
6888int
6889main ()
6890{
6891
6892 ;
6893 return 0;
6894}
6bf9431b 6895_ACEOF
d7040cdb
SE
6896rm -f conftest.$ac_objext conftest$ac_exeext
6897if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6898 (eval $ac_link) 2>conftest.er1
6bf9431b
BE
6899 ac_status=$?
6900 grep -v '^ *+' conftest.er1 >conftest.err
6901 rm -f conftest.er1
6902 cat conftest.err >&5
6903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6904 (exit $ac_status); } &&
df76639a
AM
6905 { ac_try='test -z "$ac_c_werror_flag"
6906 || test ! -s conftest.err'
6bf9431b
BE
6907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6908 (eval $ac_try) 2>&5
6909 ac_status=$?
6910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6911 (exit $ac_status); }; } &&
d7040cdb 6912 { ac_try='test -s conftest$ac_exeext'
6bf9431b
BE
6913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6914 (eval $ac_try) 2>&5
6915 ac_status=$?
6916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6917 (exit $ac_status); }; }; then
6bf9431b 6918
d7040cdb
SE
6919lt_aix_libpath_sed='
6920 /Import File Strings/,/^$/ {
6921 /^0/ {
6922 s/^0 *\(.*\)$/\1/
6923 p
6924 }
6925 }'
6926aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
6927# Check for a 64-bit object if we didn't find anything.
6928if test -z "$aix_libpath"; then
6929 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
252b5132 6930fi
6bf9431b 6931else
d7040cdb
SE
6932 echo "$as_me: failed program was:" >&5
6933sed 's/^/| /' conftest.$ac_ext >&5
6bf9431b
BE
6934
6935fi
d7040cdb
SE
6936rm -f conftest.err conftest.$ac_objext \
6937 conftest$ac_exeext conftest.$ac_ext
6938if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20e95c23 6939
d7040cdb
SE
6940 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6941 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"
6942 else
6943 if test "$host_cpu" = ia64; then
6944 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6945 allow_undefined_flag="-z nodefs"
6946 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"
6947 else
6948 # Determine the default libpath from the value encoded in an
6949 # empty executable.
6950 cat >conftest.$ac_ext <<_ACEOF
20e95c23
DJ
6951/* confdefs.h. */
6952_ACEOF
6953cat confdefs.h >>conftest.$ac_ext
6954cat >>conftest.$ac_ext <<_ACEOF
6955/* end confdefs.h. */
20e95c23 6956
20e95c23
DJ
6957int
6958main ()
6959{
d7040cdb
SE
6960
6961 ;
6962 return 0;
20e95c23
DJ
6963}
6964_ACEOF
d7040cdb 6965rm -f conftest.$ac_objext conftest$ac_exeext
20e95c23 6966if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d7040cdb
SE
6967 (eval $ac_link) 2>conftest.er1
6968 ac_status=$?
6969 grep -v '^ *+' conftest.er1 >conftest.err
6970 rm -f conftest.er1
6971 cat conftest.err >&5
6972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973 (exit $ac_status); } &&
6974 { ac_try='test -z "$ac_c_werror_flag"
6975 || test ! -s conftest.err'
6976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6977 (eval $ac_try) 2>&5
20e95c23
DJ
6978 ac_status=$?
6979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
6980 (exit $ac_status); }; } &&
6981 { ac_try='test -s conftest$ac_exeext'
20e95c23
DJ
6982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6983 (eval $ac_try) 2>&5
6984 ac_status=$?
6985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6986 (exit $ac_status); }; }; then
d7040cdb
SE
6987
6988lt_aix_libpath_sed='
6989 /Import File Strings/,/^$/ {
6990 /^0/ {
6991 s/^0 *\(.*\)$/\1/
6992 p
6993 }
6994 }'
6995aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
6996# Check for a 64-bit object if we didn't find anything.
6997if test -z "$aix_libpath"; then
6998 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
6999fi
20e95c23 7000else
d7040cdb 7001 echo "$as_me: failed program was:" >&5
20e95c23 7002sed 's/^/| /' conftest.$ac_ext >&5
252b5132 7003
20e95c23 7004fi
d7040cdb
SE
7005rm -f conftest.err conftest.$ac_objext \
7006 conftest$ac_exeext conftest.$ac_ext
7007if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7008
7009 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7010 # Warning - without using the other run time loading flags,
7011 # -berok will link without error, but may produce a broken library.
7012 no_undefined_flag=' ${wl}-bernotok'
7013 allow_undefined_flag=' ${wl}-berok'
7014 # Exported symbols can be pulled into shared objects from archives
7015 whole_archive_flag_spec='$convenience'
7016 archive_cmds_need_lc=yes
7017 # This is similar to how AIX traditionally builds its shared libraries.
7018 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'
7019 fi
7020 fi
7021 ;;
252b5132 7022
d7040cdb
SE
7023 amigaos*)
7024 if test "$host_cpu" = m68k; then
7025 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)'
7026 hardcode_libdir_flag_spec='-L$libdir'
7027 hardcode_minus_L=yes
7028 fi
7029 # see comment about different semantics on the GNU ld section
7030 ld_shlibs=no
7031 ;;
6bf9431b 7032
d7040cdb
SE
7033 bsdi[45]*)
7034 export_dynamic_flag_spec=-rdynamic
7035 ;;
252b5132 7036
d7040cdb
SE
7037 cygwin* | mingw* | pw32*)
7038 # When not using gcc, we currently assume that we are using
7039 # Microsoft Visual C++.
7040 # hardcode_libdir_flag_spec is actually meaningless, as there is
7041 # no search path for DLLs.
7042 hardcode_libdir_flag_spec=' '
7043 allow_undefined_flag=unsupported
7044 # Tell ltmain to make .lib files, not .a files.
7045 libext=lib
7046 # Tell ltmain to make .dll files, not .so files.
7047 shrext_cmds=".dll"
7048 # FIXME: Setting linknames here is a bad hack.
7049 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7050 # The linker will automatically build a .lib file if we build a DLL.
7051 old_archive_from_new_cmds='true'
7052 # FIXME: Should let the user specify the lib program.
7053 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7054 fix_srcfile_path='`cygpath -w "$srcfile"`'
7055 enable_shared_with_static_runtimes=yes
7056 ;;
6bf9431b 7057
d7040cdb
SE
7058 darwin* | rhapsody*)
7059 case $host_os in
7060 rhapsody* | darwin1.[012])
7061 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7062 ;;
7063 *) # Darwin 1.3 on
7064 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7065 10.[012])
7066 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7067 ;;
7068 10.*)
7069 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7070 ;;
7071 esac
7072 ;;
7073 esac
7074 archive_cmds_need_lc=no
7075 hardcode_direct=no
7076 hardcode_automatic=yes
7077 hardcode_shlibpath_var=unsupported
7078 whole_archive_flag_spec=''
7079 link_all_deplibs=yes
7080 if test "$GCC" = yes ; then
7081 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7082 echo $ECHO_N "(cached) $ECHO_C" >&6
7083else
7084 lt_cv_apple_cc_single_mod=no
7085 if test -z "${LT_MULTI_MODULE}"; then
7086 # By default we will add the -single_module flag. You can override
7087 # by either setting the environment variable LT_MULTI_MODULE
7088 # non-empty at configure time, or by adding -multi-module to the
7089 # link flags.
7090 echo "int foo(void){return 1;}" > conftest.c
7091 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7092 -dynamiclib ${wl}-single_module conftest.c
7093 if test -f libconftest.dylib; then
7094 lt_cv_apple_cc_single_mod=yes
7095 rm libconftest.dylib
7096 fi
7097 rm conftest.$ac_ext
7098 fi
7099fi
6bf9431b 7100
d7040cdb
SE
7101 output_verbose_link_cmd=echo
7102 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
7103 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7104 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}'
7105 else
7106 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7107 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}'
7108 fi
7109 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7110 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}'
7111 else
7112 case $cc_basename in
7113 xlc*)
7114 output_verbose_link_cmd=echo
7115 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
7116 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7117 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7118 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}'
7119 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}'
7120 ;;
7121 *)
7122 ld_shlibs=no
7123 ;;
7124 esac
7125 fi
7126 ;;
252b5132 7127
d7040cdb
SE
7128 dgux*)
7129 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7130 hardcode_libdir_flag_spec='-L$libdir'
7131 hardcode_shlibpath_var=no
7132 ;;
6bf9431b 7133
d7040cdb
SE
7134 freebsd1*)
7135 ld_shlibs=no
7136 ;;
252b5132 7137
d7040cdb
SE
7138 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7139 # support. Future versions do this automatically, but an explicit c++rt0.o
7140 # does not break anything, and helps significantly (at the cost of a little
7141 # extra space).
7142 freebsd2.2*)
7143 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7144 hardcode_libdir_flag_spec='-R$libdir'
7145 hardcode_direct=yes
7146 hardcode_shlibpath_var=no
7147 ;;
6bf9431b 7148
d7040cdb
SE
7149 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7150 freebsd2*)
7151 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7152 hardcode_direct=yes
7153 hardcode_minus_L=yes
7154 hardcode_shlibpath_var=no
7155 ;;
252b5132 7156
d7040cdb
SE
7157 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7158 freebsd* | dragonfly*)
7159 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7160 hardcode_libdir_flag_spec='-R$libdir'
7161 hardcode_direct=yes
7162 hardcode_shlibpath_var=no
7163 ;;
252b5132 7164
d7040cdb
SE
7165 hpux9*)
7166 if test "$GCC" = yes; then
7167 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'
7168 else
7169 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'
7170 fi
7171 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7172 hardcode_libdir_separator=:
7173 hardcode_direct=yes
7174
7175 # hardcode_minus_L: Not really in the search PATH,
7176 # but as the default location of the library.
7177 hardcode_minus_L=yes
7178 export_dynamic_flag_spec='${wl}-E'
7179 ;;
6bf9431b 7180
d7040cdb
SE
7181 hpux10*)
7182 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7183 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7184 else
7185 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7186 fi
7187 if test "$with_gnu_ld" = no; then
7188 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7189 hardcode_libdir_flag_spec_ld='+b $libdir'
7190 hardcode_libdir_separator=:
7191 hardcode_direct=yes
7192 hardcode_direct_absolute=yes
7193 export_dynamic_flag_spec='${wl}-E'
7194 # hardcode_minus_L: Not really in the search PATH,
7195 # but as the default location of the library.
7196 hardcode_minus_L=yes
7197 fi
7198 ;;
252b5132 7199
d7040cdb
SE
7200 hpux11*)
7201 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7202 case $host_cpu in
7203 hppa*64*)
7204 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7205 ;;
7206 ia64*)
7207 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7208 ;;
7209 *)
7210 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7211 ;;
7212 esac
7213 else
7214 case $host_cpu in
7215 hppa*64*)
7216 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7217 ;;
7218 ia64*)
7219 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7220 ;;
7221 *)
7222 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7223 ;;
7224 esac
7225 fi
7226 if test "$with_gnu_ld" = no; then
7227 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7228 hardcode_libdir_separator=:
7229
7230 case $host_cpu in
7231 hppa*64*|ia64*)
7232 hardcode_direct=no
7233 hardcode_shlibpath_var=no
7234 ;;
7235 *)
7236 hardcode_direct=yes
7237 hardcode_direct_absolute=yes
7238 export_dynamic_flag_spec='${wl}-E'
7239
7240 # hardcode_minus_L: Not really in the search PATH,
7241 # but as the default location of the library.
7242 hardcode_minus_L=yes
7243 ;;
7244 esac
7245 fi
7246 ;;
7247
7248 irix5* | irix6* | nonstopux*)
7249 if test "$GCC" = yes; then
7250 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'
7251 # Try to use the -exported_symbol ld option, if it does not
7252 # work, assume that -exports_file does not work either and
7253 # implicitly export all symbols.
7254 save_LDFLAGS="$LDFLAGS"
7255 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
7256 cat >conftest.$ac_ext <<_ACEOF
7257int foo(void) {}
20e95c23 7258_ACEOF
d7040cdb
SE
7259rm -f conftest.$ac_objext conftest$ac_exeext
7260if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7261 (eval $ac_link) 2>conftest.er1
20e95c23
DJ
7262 ac_status=$?
7263 grep -v '^ *+' conftest.er1 >conftest.err
7264 rm -f conftest.er1
7265 cat conftest.err >&5
7266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267 (exit $ac_status); } &&
7268 { ac_try='test -z "$ac_c_werror_flag"
7269 || test ! -s conftest.err'
7270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7271 (eval $ac_try) 2>&5
7272 ac_status=$?
7273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7274 (exit $ac_status); }; } &&
d7040cdb 7275 { ac_try='test -s conftest$ac_exeext'
20e95c23
DJ
7276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7277 (eval $ac_try) 2>&5
7278 ac_status=$?
7279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7280 (exit $ac_status); }; }; then
d7040cdb
SE
7281 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'
7282
7283else
7284 echo "$as_me: failed program was:" >&5
7285sed 's/^/| /' conftest.$ac_ext >&5
7286
7287fi
7288rm -f conftest.err conftest.$ac_objext \
7289 conftest$ac_exeext conftest.$ac_ext
7290 LDFLAGS="$save_LDFLAGS"
7291 else
7292 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'
7293 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'
7294 fi
7295 archive_cmds_need_lc='no'
7296 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7297 hardcode_libdir_separator=:
7298 inherit_rpath=yes
7299 link_all_deplibs=yes
7300 ;;
7301
7302 netbsd*)
7303 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7304 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7305 else
7306 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7307 fi
7308 hardcode_libdir_flag_spec='-R$libdir'
7309 hardcode_direct=yes
7310 hardcode_shlibpath_var=no
7311 ;;
7312
7313 newsos6)
7314 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7315 hardcode_direct=yes
7316 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7317 hardcode_libdir_separator=:
7318 hardcode_shlibpath_var=no
7319 ;;
7320
7321 *nto* | *qnx*)
7322 ;;
7323
7324 openbsd*)
7325 hardcode_direct=yes
7326 hardcode_shlibpath_var=no
7327 hardcode_direct_absolute=yes
7328 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7329 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7330 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7331 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7332 export_dynamic_flag_spec='${wl}-E'
7333 else
7334 case $host_os in
7335 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7336 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7337 hardcode_libdir_flag_spec='-R$libdir'
7338 ;;
7339 *)
7340 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7341 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7342 ;;
7343 esac
7344 fi
7345 ;;
7346
7347 os2*)
7348 hardcode_libdir_flag_spec='-L$libdir'
7349 hardcode_minus_L=yes
7350 allow_undefined_flag=unsupported
7351 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'
7352 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7353 ;;
7354
7355 osf3*)
7356 if test "$GCC" = yes; then
7357 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7358 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'
7359 else
7360 allow_undefined_flag=' -expect_unresolved \*'
7361 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'
7362 fi
7363 archive_cmds_need_lc='no'
7364 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7365 hardcode_libdir_separator=:
7366 ;;
7367
7368 osf4* | osf5*) # as osf3* with the addition of -msym flag
7369 if test "$GCC" = yes; then
7370 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7371 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'
7372 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7373 else
7374 allow_undefined_flag=' -expect_unresolved \*'
7375 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'
7376 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~
7377 $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'
7378
7379 # Both c and cxx compiler support -rpath directly
7380 hardcode_libdir_flag_spec='-rpath $libdir'
7381 fi
7382 archive_cmds_need_lc='no'
7383 hardcode_libdir_separator=:
7384 ;;
7385
7386 solaris*)
7387 no_undefined_flag=' -z defs'
7388 if test "$GCC" = yes; then
7389 wlarc='${wl}'
7390 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7391 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7392 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7393 else
7394 case `$CC -V 2>&1` in
7395 *"Compilers 5.0"*)
7396 wlarc=''
7397 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7398 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7399 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
7400 ;;
7401 *)
7402 wlarc='${wl}'
7403 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
7404 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7405 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7406 ;;
7407 esac
7408 fi
7409 hardcode_libdir_flag_spec='-R$libdir'
7410 hardcode_shlibpath_var=no
7411 case $host_os in
7412 solaris2.[0-5] | solaris2.[0-5].*) ;;
7413 *)
7414 # The compiler driver will combine and reorder linker options,
7415 # but understands `-z linker_flag'. GCC discards it without `$wl',
7416 # but is careful enough not to reorder.
7417 # Supported since Solaris 2.6 (maybe 2.5.1?)
7418 if test "$GCC" = yes; then
7419 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7420 else
7421 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
7422 fi
7423 ;;
7424 esac
7425 link_all_deplibs=yes
7426 ;;
7427
7428 sunos4*)
7429 if test "x$host_vendor" = xsequent; then
7430 # Use $CC to link under sequent, because it throws in some extra .o
7431 # files that make .init and .fini sections work.
7432 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7433 else
7434 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7435 fi
7436 hardcode_libdir_flag_spec='-L$libdir'
7437 hardcode_direct=yes
7438 hardcode_minus_L=yes
7439 hardcode_shlibpath_var=no
7440 ;;
7441
7442 sysv4)
7443 case $host_vendor in
7444 sni)
7445 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7446 hardcode_direct=yes # is this really true???
7447 ;;
7448 siemens)
7449 ## LD is ld it makes a PLAMLIB
7450 ## CC just makes a GrossModule.
7451 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7452 reload_cmds='$CC -r -o $output$reload_objs'
7453 hardcode_direct=no
7454 ;;
7455 motorola)
7456 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7457 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7458 ;;
7459 esac
7460 runpath_var='LD_RUN_PATH'
7461 hardcode_shlibpath_var=no
7462 ;;
7463
7464 sysv4.3*)
7465 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7466 hardcode_shlibpath_var=no
7467 export_dynamic_flag_spec='-Bexport'
7468 ;;
7469
7470 sysv4*MP*)
7471 if test -d /usr/nec; then
7472 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7473 hardcode_shlibpath_var=no
7474 runpath_var=LD_RUN_PATH
7475 hardcode_runpath_var=yes
7476 ld_shlibs=yes
7477 fi
7478 ;;
7479
7480 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
7481 no_undefined_flag='${wl}-z,text'
7482 archive_cmds_need_lc=no
7483 hardcode_shlibpath_var=no
7484 runpath_var='LD_RUN_PATH'
7485
7486 if test "$GCC" = yes; then
7487 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7488 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7489 else
7490 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7491 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7492 fi
7493 ;;
7494
7495 sysv5* | sco3.2v5* | sco5v6*)
7496 # Note: We can NOT use -z defs as we might desire, because we do not
7497 # link with -lc, and that would cause any symbols used from libc to
7498 # always be unresolved, which means just about no library would
7499 # ever link correctly. If we're not using GNU ld we use -z text
7500 # though, which does catch some bad symbols but isn't as heavy-handed
7501 # as -z defs.
7502 no_undefined_flag='${wl}-z,text'
7503 allow_undefined_flag='${wl}-z,nodefs'
7504 archive_cmds_need_lc=no
7505 hardcode_shlibpath_var=no
7506 hardcode_libdir_flag_spec='${wl}-R,$libdir'
7507 hardcode_libdir_separator=':'
7508 link_all_deplibs=yes
7509 export_dynamic_flag_spec='${wl}-Bexport'
7510 runpath_var='LD_RUN_PATH'
7511
7512 if test "$GCC" = yes; then
7513 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7514 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7515 else
7516 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7517 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7518 fi
7519 ;;
7520
7521 uts4*)
7522 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7523 hardcode_libdir_flag_spec='-L$libdir'
7524 hardcode_shlibpath_var=no
7525 ;;
7526
7527 *)
7528 ld_shlibs=no
7529 ;;
7530 esac
7531
7532 if test x$host_vendor = xsni; then
7533 case $host in
7534 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7535 export_dynamic_flag_spec='${wl}-Blargedynsym'
7536 ;;
7537 esac
7538 fi
7539 fi
7540
7541echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7542echo "${ECHO_T}$ld_shlibs" >&6
7543test "$ld_shlibs" = no && can_build_shared=no
7544
7545with_gnu_ld=$with_gnu_ld
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561#
7562# Do we need to explicitly link libc?
7563#
7564case "x$archive_cmds_need_lc" in
7565x|xyes)
7566 # Assume -lc should be added
7567 archive_cmds_need_lc=yes
7568
7569 if test "$enable_shared" = yes && test "$GCC" = yes; then
7570 case $archive_cmds in
7571 *'~'*)
7572 # FIXME: we may have to deal with multi-command sequences.
7573 ;;
7574 '$CC '*)
7575 # Test whether the compiler implicitly links with -lc since on some
7576 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7577 # to ld, don't add -lc before -lgcc.
7578 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7579echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7580 $RM conftest*
7581 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7582
7583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7584 (eval $ac_compile) 2>&5
7585 ac_status=$?
7586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587 (exit $ac_status); } 2>conftest.err; then
7588 soname=conftest
7589 lib=conftest
7590 libobjs=conftest.$ac_objext
7591 deplibs=
7592 wl=$lt_prog_compiler_wl
7593 pic_flag=$lt_prog_compiler_pic
7594 compiler_flags=-v
7595 linker_flags=-v
7596 verstring=
7597 output_objdir=.
7598 libname=conftest
7599 lt_save_allow_undefined_flag=$allow_undefined_flag
7600 allow_undefined_flag=
7601 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
7602 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
7603 ac_status=$?
7604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605 (exit $ac_status); }
7606 then
7607 archive_cmds_need_lc=no
7608 else
7609 archive_cmds_need_lc=yes
7610 fi
7611 allow_undefined_flag=$lt_save_allow_undefined_flag
7612 else
7613 cat conftest.err 1>&5
7614 fi
7615 $RM conftest*
7616 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7617echo "${ECHO_T}$archive_cmds_need_lc" >&6
7618 ;;
7619 esac
7620 fi
7621 ;;
7622esac
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7781echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7782withGCC=$GCC
7783if test "$withGCC" = yes; then
7784 case $host_os in
7785 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
7786 *) lt_awk_arg="/^libraries:/" ;;
7787 esac
7788 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7789 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
7790 # if the path contains ";" then we assume it to be the separator
7791 # otherwise default to the standard path separator (i.e. ":") - it is
7792 # assumed that no part of a normal pathname contains ";" but that should
7793 # okay in the real world where ";" in dirpaths is itself problematic.
7794 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
7795 else
7796 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7797 fi
7798 # Ok, now we have the path, separated by spaces, we can step through it
7799 # and add multilib dir if necessary.
7800 lt_tmp_lt_search_path_spec=
7801 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
7802 for lt_sys_path in $lt_search_path_spec; do
7803 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
7804 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
7805 else
7806 test -d "$lt_sys_path" && \
7807 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
7808 fi
7809 done
7810 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
7811BEGIN {RS=" "; FS="/|\n";} {
7812 lt_foo="";
7813 lt_count=0;
7814 for (lt_i = NF; lt_i > 0; lt_i--) {
7815 if ($lt_i != "" && $lt_i != ".") {
7816 if ($lt_i == "..") {
7817 lt_count++;
7818 } else {
7819 if (lt_count == 0) {
7820 lt_foo="/" $lt_i lt_foo;
7821 } else {
7822 lt_count--;
7823 }
7824 }
7825 }
7826 }
7827 if (lt_foo != "") { lt_freq[lt_foo]++; }
7828 if (lt_freq[lt_foo] == 1) { print lt_foo; }
7829}'`
7830 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
7831else
7832 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7833fi
7834library_names_spec=
7835libname_spec='lib$name'
7836soname_spec=
7837shrext_cmds=".so"
7838postinstall_cmds=
7839postuninstall_cmds=
7840finish_cmds=
7841finish_eval=
7842shlibpath_var=
7843shlibpath_overrides_runpath=unknown
7844version_type=none
7845dynamic_linker="$host_os ld.so"
7846sys_lib_dlsearch_path_spec="/lib /usr/lib"
7847need_lib_prefix=unknown
7848hardcode_into_libs=no
7849
7850# when you set need_version to no, make sure it does not cause -set_version
7851# flags to be left without arguments
7852need_version=unknown
7853
7854case $host_os in
7855aix3*)
7856 version_type=linux
7857 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7858 shlibpath_var=LIBPATH
7859
7860 # AIX 3 has no versioning support, so we append a major version to the name.
7861 soname_spec='${libname}${release}${shared_ext}$major'
7862 ;;
7863
7864aix4* | aix5*)
7865 version_type=linux
7866 need_lib_prefix=no
7867 need_version=no
7868 hardcode_into_libs=yes
7869 if test "$host_cpu" = ia64; then
7870 # AIX 5 supports IA64
7871 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7872 shlibpath_var=LD_LIBRARY_PATH
7873 else
7874 # With GCC up to 2.95.x, collect2 would create an import file
7875 # for dependence libraries. The import file would start with
7876 # the line `#! .'. This would cause the generated library to
7877 # depend on `.', always an invalid library. This was fixed in
7878 # development snapshots of GCC prior to 3.0.
7879 case $host_os in
7880 aix4 | aix4.[01] | aix4.[01].*)
7881 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7882 echo ' yes '
7883 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
7884 :
7885 else
7886 can_build_shared=no
7887 fi
7888 ;;
7889 esac
7890 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7891 # soname into executable. Probably we can add versioning support to
7892 # collect2, so additional links can be useful in future.
7893 if test "$aix_use_runtimelinking" = yes; then
7894 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7895 # instead of lib<name>.a to let people know that these are not
7896 # typical AIX shared libraries.
7897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7898 else
7899 # We preserve .a as extension for shared libraries through AIX4.2
7900 # and later when we are not doing run time linking.
7901 library_names_spec='${libname}${release}.a $libname.a'
7902 soname_spec='${libname}${release}${shared_ext}$major'
7903 fi
7904 shlibpath_var=LIBPATH
7905 fi
7906 ;;
7907
7908amigaos*)
7909 if test "$host_cpu" = m68k; then
7910 library_names_spec='$libname.ixlibrary $libname.a'
7911 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7912 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'
7913 else
7914 dynamic_linker=no
7915 fi
7916 ;;
7917
7918beos*)
7919 library_names_spec='${libname}${shared_ext}'
7920 dynamic_linker="$host_os ld.so"
7921 shlibpath_var=LIBRARY_PATH
7922 ;;
7923
7924bsdi[45]*)
7925 version_type=linux
7926 need_version=no
7927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7928 soname_spec='${libname}${release}${shared_ext}$major'
7929 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7930 shlibpath_var=LD_LIBRARY_PATH
7931 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7932 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7933 # the default ld.so.conf also contains /usr/contrib/lib and
7934 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7935 # libtool to hard-code these into programs
7936 ;;
7937
7938cygwin* | mingw* | pw32*)
7939 version_type=windows
7940 shrext_cmds=".dll"
7941 need_version=no
7942 need_lib_prefix=no
7943
7944 case $withGCC,$host_os in
7945 yes,cygwin* | yes,mingw* | yes,pw32*)
7946 library_names_spec='$libname.dll.a'
7947 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7948 postinstall_cmds='base_file=`basename \${file}`~
7949 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
7950 dldir=$destdir/`dirname \$dlpath`~
7951 test -d \$dldir || mkdir -p \$dldir~
7952 $install_prog $dir/$dlname \$dldir/$dlname~
7953 chmod a+x \$dldir/$dlname~
7954 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
7955 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
7956 fi'
7957 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7958 dlpath=$dir/\$dldll~
7959 $RM \$dlpath'
7960 shlibpath_overrides_runpath=yes
7961
7962 case $host_os in
7963 cygwin*)
7964 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7965 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7966 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7967 ;;
7968 mingw*)
7969 # MinGW DLLs use traditional 'lib' prefix
7970 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7971 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7972 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
7973 # It is most probably a Windows format PATH printed by
7974 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7975 # path with ; separators, and with drive letters. We can handle the
7976 # drive letters (cygwin fileutils understands them), so leave them,
7977 # especially as we might pass files found there to a mingw objdump,
7978 # which wouldn't understand a cygwinified path. Ahh.
7979 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7980 else
7981 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7982 fi
7983 ;;
7984 pw32*)
7985 # pw32 DLLs use 'pw' prefix rather than 'lib'
7986 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7987 ;;
7988 esac
7989 ;;
7990
7991 *)
7992 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7993 ;;
7994 esac
7995 dynamic_linker='Win32 ld.exe'
7996 # FIXME: first we should search . and the directory the executable is in
7997 shlibpath_var=PATH
7998 ;;
7999
8000darwin* | rhapsody*)
8001 dynamic_linker="$host_os dyld"
8002 version_type=darwin
8003 need_lib_prefix=no
8004 need_version=no
8005 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8006 soname_spec='${libname}${release}${major}$shared_ext'
8007 shlibpath_overrides_runpath=yes
8008 shlibpath_var=DYLD_LIBRARY_PATH
8009 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8010
8011 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8012 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8013 ;;
8014
8015dgux*)
8016 version_type=linux
8017 need_lib_prefix=no
8018 need_version=no
8019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8020 soname_spec='${libname}${release}${shared_ext}$major'
8021 shlibpath_var=LD_LIBRARY_PATH
8022 ;;
8023
8024freebsd1*)
8025 dynamic_linker=no
8026 ;;
8027
8028freebsd* | dragonfly*)
8029 # DragonFly does not have aout. When/if they implement a new
8030 # versioning mechanism, adjust this.
8031 if test -x /usr/bin/objformat; then
8032 objformat=`/usr/bin/objformat`
8033 else
8034 case $host_os in
8035 freebsd[123]*) objformat=aout ;;
8036 *) objformat=elf ;;
8037 esac
8038 fi
8039 version_type=freebsd-$objformat
8040 case $version_type in
8041 freebsd-elf*)
8042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8043 need_version=no
8044 need_lib_prefix=no
8045 ;;
8046 freebsd-*)
8047 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8048 need_version=yes
8049 ;;
8050 esac
8051 shlibpath_var=LD_LIBRARY_PATH
8052 case $host_os in
8053 freebsd2*)
8054 shlibpath_overrides_runpath=yes
8055 ;;
8056 freebsd3.[01]* | freebsdelf3.[01]*)
8057 shlibpath_overrides_runpath=yes
8058 hardcode_into_libs=yes
8059 ;;
8060 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8061 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8062 shlibpath_overrides_runpath=no
8063 hardcode_into_libs=yes
8064 ;;
8065 *) # from 4.6 on, and DragonFly
8066 shlibpath_overrides_runpath=yes
8067 hardcode_into_libs=yes
8068 ;;
8069 esac
8070 ;;
8071
8072gnu*)
8073 version_type=linux
8074 need_lib_prefix=no
8075 need_version=no
8076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8077 soname_spec='${libname}${release}${shared_ext}$major'
8078 shlibpath_var=LD_LIBRARY_PATH
8079 hardcode_into_libs=yes
8080 ;;
8081
8082hpux9* | hpux10* | hpux11*)
8083 # Give a soname corresponding to the major version so that dld.sl refuses to
8084 # link against other versions.
8085 version_type=sunos
8086 need_lib_prefix=no
8087 need_version=no
8088 case $host_cpu in
8089 ia64*)
8090 shrext_cmds='.so'
8091 hardcode_into_libs=yes
8092 dynamic_linker="$host_os dld.so"
8093 shlibpath_var=LD_LIBRARY_PATH
8094 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8096 soname_spec='${libname}${release}${shared_ext}$major'
8097 if test "X$HPUX_IA64_MODE" = X32; then
8098 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8099 else
8100 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8101 fi
8102 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8103 ;;
8104 hppa*64*)
8105 shrext_cmds='.sl'
8106 hardcode_into_libs=yes
8107 dynamic_linker="$host_os dld.sl"
8108 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8109 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8111 soname_spec='${libname}${release}${shared_ext}$major'
8112 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8113 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8114 ;;
8115 *)
8116 shrext_cmds='.sl'
8117 dynamic_linker="$host_os dld.sl"
8118 shlibpath_var=SHLIB_PATH
8119 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8121 soname_spec='${libname}${release}${shared_ext}$major'
8122 ;;
8123 esac
8124 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8125 postinstall_cmds='chmod 555 $lib'
8126 ;;
8127
8128interix[3-9]*)
8129 version_type=linux
8130 need_lib_prefix=no
8131 need_version=no
8132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8133 soname_spec='${libname}${release}${shared_ext}$major'
8134 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8135 shlibpath_var=LD_LIBRARY_PATH
8136 shlibpath_overrides_runpath=no
8137 hardcode_into_libs=yes
8138 ;;
8139
8140irix5* | irix6* | nonstopux*)
8141 case $host_os in
8142 nonstopux*) version_type=nonstopux ;;
8143 *)
8144 if test "$lt_cv_prog_gnu_ld" = yes; then
8145 version_type=linux
8146 else
8147 version_type=irix
8148 fi ;;
8149 esac
8150 need_lib_prefix=no
8151 need_version=no
8152 soname_spec='${libname}${release}${shared_ext}$major'
8153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8154 case $host_os in
8155 irix5* | nonstopux*)
8156 libsuff= shlibsuff=
8157 ;;
8158 *)
8159 case $LD in # libtool.m4 will add one of these switches to LD
8160 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8161 libsuff= shlibsuff= libmagic=32-bit;;
8162 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8163 libsuff=32 shlibsuff=N32 libmagic=N32;;
8164 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8165 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8166 *) libsuff= shlibsuff= libmagic=never-match;;
8167 esac
8168 ;;
8169 esac
8170 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8171 shlibpath_overrides_runpath=no
8172 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8173 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8174 hardcode_into_libs=yes
8175 ;;
8176
8177# No shared lib support for Linux oldld, aout, or coff.
8178linux*oldld* | linux*aout* | linux*coff*)
8179 dynamic_linker=no
8180 ;;
8181
8182# This must be Linux ELF.
8183linux* | k*bsd*-gnu)
8184 version_type=linux
8185 need_lib_prefix=no
8186 need_version=no
8187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8188 soname_spec='${libname}${release}${shared_ext}$major'
8189 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8190 shlibpath_var=LD_LIBRARY_PATH
8191 shlibpath_overrides_runpath=no
8192 # Some binutils ld are patched to set DT_RUNPATH
8193 save_LDFLAGS=$LDFLAGS
8194 save_libdir=$libdir
8195 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8196 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8197 cat >conftest.$ac_ext <<_ACEOF
8198/* confdefs.h. */
8199_ACEOF
8200cat confdefs.h >>conftest.$ac_ext
8201cat >>conftest.$ac_ext <<_ACEOF
8202/* end confdefs.h. */
8203
8204int
8205main ()
8206{
8207
8208 ;
8209 return 0;
8210}
8211_ACEOF
8212rm -f conftest.$ac_objext conftest$ac_exeext
8213if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8214 (eval $ac_link) 2>conftest.er1
8215 ac_status=$?
8216 grep -v '^ *+' conftest.er1 >conftest.err
8217 rm -f conftest.er1
8218 cat conftest.err >&5
8219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8220 (exit $ac_status); } &&
8221 { ac_try='test -z "$ac_c_werror_flag"
8222 || test ! -s conftest.err'
8223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8224 (eval $ac_try) 2>&5
8225 ac_status=$?
8226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8227 (exit $ac_status); }; } &&
8228 { ac_try='test -s conftest$ac_exeext'
8229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8230 (eval $ac_try) 2>&5
8231 ac_status=$?
8232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233 (exit $ac_status); }; }; then
8234 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
8235 shlibpath_overrides_runpath=yes
8236fi
8237
8238else
8239 echo "$as_me: failed program was:" >&5
8240sed 's/^/| /' conftest.$ac_ext >&5
8241
8242fi
8243rm -f conftest.err conftest.$ac_objext \
8244 conftest$ac_exeext conftest.$ac_ext
8245 LDFLAGS=$save_LDFLAGS
8246 libdir=$save_libdir
8247
8248 # This implies no fast_install, which is unacceptable.
8249 # Some rework will be needed to allow for fast_install
8250 # before this can be enabled.
8251 hardcode_into_libs=yes
8252
8253 # Append ld.so.conf contents to the search path
8254 if test -f /etc/ld.so.conf; then
8255 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' ' '`
8256 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8257 fi
8258
8259 # We used to test for /lib/ld.so.1 and disable shared libraries on
8260 # powerpc, because MkLinux only supported shared libraries with the
8261 # GNU dynamic linker. Since this was broken with cross compilers,
8262 # most powerpc-linux boxes support dynamic linking these days and
8263 # people can always --disable-shared, the test was removed, and we
8264 # assume the GNU/Linux dynamic linker is in use.
8265 dynamic_linker='GNU/Linux ld.so'
8266 ;;
8267
8268netbsd*)
8269 version_type=sunos
8270 need_lib_prefix=no
8271 need_version=no
8272 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8274 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8275 dynamic_linker='NetBSD (a.out) ld.so'
8276 else
8277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8278 soname_spec='${libname}${release}${shared_ext}$major'
8279 dynamic_linker='NetBSD ld.elf_so'
8280 fi
8281 shlibpath_var=LD_LIBRARY_PATH
8282 shlibpath_overrides_runpath=yes
8283 hardcode_into_libs=yes
8284 ;;
8285
8286newsos6)
8287 version_type=linux
8288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8289 shlibpath_var=LD_LIBRARY_PATH
8290 shlibpath_overrides_runpath=yes
8291 ;;
8292
8293*nto* | *qnx*)
8294 version_type=qnx
8295 need_lib_prefix=no
8296 need_version=no
8297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8298 soname_spec='${libname}${release}${shared_ext}$major'
8299 shlibpath_var=LD_LIBRARY_PATH
8300 shlibpath_overrides_runpath=no
8301 hardcode_into_libs=yes
8302 dynamic_linker='ldqnx.so'
8303 ;;
8304
8305openbsd*)
8306 version_type=sunos
8307 sys_lib_dlsearch_path_spec="/usr/lib"
8308 need_lib_prefix=no
8309 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8310 case $host_os in
8311 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8312 *) need_version=no ;;
8313 esac
8314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8315 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8316 shlibpath_var=LD_LIBRARY_PATH
8317 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8318 case $host_os in
8319 openbsd2.[89] | openbsd2.[89].*)
8320 shlibpath_overrides_runpath=no
8321 ;;
8322 *)
8323 shlibpath_overrides_runpath=yes
8324 ;;
8325 esac
8326 else
8327 shlibpath_overrides_runpath=yes
8328 fi
8329 ;;
8330
8331os2*)
8332 libname_spec='$name'
8333 shrext_cmds=".dll"
8334 need_lib_prefix=no
8335 library_names_spec='$libname${shared_ext} $libname.a'
8336 dynamic_linker='OS/2 ld.exe'
8337 shlibpath_var=LIBPATH
8338 ;;
8339
8340osf3* | osf4* | osf5*)
8341 version_type=osf
8342 need_lib_prefix=no
8343 need_version=no
8344 soname_spec='${libname}${release}${shared_ext}$major'
8345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8346 shlibpath_var=LD_LIBRARY_PATH
8347 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8348 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8349 ;;
8350
8351rdos*)
8352 dynamic_linker=no
8353 ;;
8354
8355solaris*)
8356 version_type=linux
8357 need_lib_prefix=no
8358 need_version=no
8359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8360 soname_spec='${libname}${release}${shared_ext}$major'
8361 shlibpath_var=LD_LIBRARY_PATH
8362 shlibpath_overrides_runpath=yes
8363 hardcode_into_libs=yes
8364 # ldd complains unless libraries are executable
8365 postinstall_cmds='chmod +x $lib'
8366 ;;
8367
8368sunos4*)
8369 version_type=sunos
8370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8371 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8372 shlibpath_var=LD_LIBRARY_PATH
8373 shlibpath_overrides_runpath=yes
8374 if test "$with_gnu_ld" = yes; then
8375 need_lib_prefix=no
8376 fi
8377 need_version=yes
8378 ;;
8379
8380sysv4 | sysv4.3*)
8381 version_type=linux
8382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8383 soname_spec='${libname}${release}${shared_ext}$major'
8384 shlibpath_var=LD_LIBRARY_PATH
8385 case $host_vendor in
8386 sni)
8387 shlibpath_overrides_runpath=no
8388 need_lib_prefix=no
8389 runpath_var=LD_RUN_PATH
8390 ;;
8391 siemens)
8392 need_lib_prefix=no
8393 ;;
8394 motorola)
8395 need_lib_prefix=no
8396 need_version=no
8397 shlibpath_overrides_runpath=no
8398 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8399 ;;
8400 esac
8401 ;;
8402
8403sysv4*MP*)
8404 if test -d /usr/nec ;then
8405 version_type=linux
8406 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8407 soname_spec='$libname${shared_ext}.$major'
8408 shlibpath_var=LD_LIBRARY_PATH
8409 fi
8410 ;;
8411
8412sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8413 version_type=freebsd-elf
8414 need_lib_prefix=no
8415 need_version=no
8416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8417 soname_spec='${libname}${release}${shared_ext}$major'
8418 shlibpath_var=LD_LIBRARY_PATH
8419 shlibpath_overrides_runpath=yes
8420 hardcode_into_libs=yes
8421 if test "$with_gnu_ld" = yes; then
8422 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8423 else
8424 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8425 case $host_os in
8426 sco3.2v5*)
8427 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8428 ;;
8429 esac
8430 fi
8431 sys_lib_dlsearch_path_spec='/usr/lib'
8432 ;;
8433
8434tpf*)
8435 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
8436 version_type=linux
8437 need_lib_prefix=no
8438 need_version=no
8439 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8440 shlibpath_var=LD_LIBRARY_PATH
8441 shlibpath_overrides_runpath=no
8442 hardcode_into_libs=yes
8443 ;;
8444
8445uts4*)
8446 version_type=linux
8447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8448 soname_spec='${libname}${release}${shared_ext}$major'
8449 shlibpath_var=LD_LIBRARY_PATH
8450 ;;
8451
8452*)
8453 dynamic_linker=no
8454 ;;
8455esac
8456echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8457echo "${ECHO_T}$dynamic_linker" >&6
8458test "$dynamic_linker" = no && can_build_shared=no
8459
8460variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8461if test "$GCC" = yes; then
8462 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8463fi
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 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8552echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8553hardcode_action=
8554if test -n "$hardcode_libdir_flag_spec" ||
8555 test -n "$runpath_var" ||
8556 test "X$hardcode_automatic" = "Xyes" ; then
8557
8558 # We can hardcode non-existent directories.
8559 if test "$hardcode_direct" != no &&
8560 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8561 # have to relink, otherwise we might link with an installed library
8562 # when we should be linking with a yet-to-be-installed one
8563 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
8564 test "$hardcode_minus_L" != no; then
8565 # Linking always hardcodes the temporary library directory.
8566 hardcode_action=relink
8567 else
8568 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8569 hardcode_action=immediate
8570 fi
8571else
8572 # We cannot hardcode anything, or else we can only hardcode existing
8573 # directories.
8574 hardcode_action=unsupported
8575fi
8576echo "$as_me:$LINENO: result: $hardcode_action" >&5
8577echo "${ECHO_T}$hardcode_action" >&6
8578
8579if test "$hardcode_action" = relink ||
8580 test "$inherit_rpath" = yes; then
8581 # Fast installation is not supported
8582 enable_fast_install=no
8583elif test "$shlibpath_overrides_runpath" = yes ||
8584 test "$enable_shared" = no; then
8585 # Fast installation is not necessary
8586 enable_fast_install=needless
8587fi
8588
8589
8590
8591
8592
8593
8594 if test "x$enable_dlopen" != xyes; then
8595 enable_dlopen=unknown
8596 enable_dlopen_self=unknown
8597 enable_dlopen_self_static=unknown
8598else
8599 lt_cv_dlopen=no
8600 lt_cv_dlopen_libs=
8601
8602 case $host_os in
8603 beos*)
8604 lt_cv_dlopen="load_add_on"
8605 lt_cv_dlopen_libs=
8606 lt_cv_dlopen_self=yes
8607 ;;
8608
8609 mingw* | pw32*)
8610 lt_cv_dlopen="LoadLibrary"
8611 lt_cv_dlopen_libs=
8612 ;;
8613
8614 cygwin*)
8615 lt_cv_dlopen="dlopen"
8616 lt_cv_dlopen_libs=
8617 ;;
8618
8619 darwin*)
8620 # if libdl is installed we need to link against it
8621 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8622echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8623if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8624 echo $ECHO_N "(cached) $ECHO_C" >&6
8625else
8626 ac_check_lib_save_LIBS=$LIBS
8627LIBS="-ldl $LIBS"
8628cat >conftest.$ac_ext <<_ACEOF
8629/* confdefs.h. */
8630_ACEOF
8631cat confdefs.h >>conftest.$ac_ext
8632cat >>conftest.$ac_ext <<_ACEOF
8633/* end confdefs.h. */
8634
8635/* Override any gcc2 internal prototype to avoid an error. */
8636#ifdef __cplusplus
8637extern "C"
8638#endif
8639/* We use char because int might match the return type of a gcc2
8640 builtin and then its argument prototype would still apply. */
8641char dlopen ();
8642int
8643main ()
8644{
8645dlopen ();
8646 ;
8647 return 0;
8648}
8649_ACEOF
8650rm -f conftest.$ac_objext conftest$ac_exeext
8651if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8652 (eval $ac_link) 2>conftest.er1
8653 ac_status=$?
8654 grep -v '^ *+' conftest.er1 >conftest.err
8655 rm -f conftest.er1
8656 cat conftest.err >&5
8657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658 (exit $ac_status); } &&
8659 { ac_try='test -z "$ac_c_werror_flag"
8660 || test ! -s conftest.err'
8661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8662 (eval $ac_try) 2>&5
8663 ac_status=$?
8664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8665 (exit $ac_status); }; } &&
8666 { ac_try='test -s conftest$ac_exeext'
8667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8668 (eval $ac_try) 2>&5
8669 ac_status=$?
8670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671 (exit $ac_status); }; }; then
8672 ac_cv_lib_dl_dlopen=yes
8673else
8674 echo "$as_me: failed program was:" >&5
8675sed 's/^/| /' conftest.$ac_ext >&5
8676
8677ac_cv_lib_dl_dlopen=no
8678fi
8679rm -f conftest.err conftest.$ac_objext \
8680 conftest$ac_exeext conftest.$ac_ext
8681LIBS=$ac_check_lib_save_LIBS
8682fi
8683echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8684echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8685if test $ac_cv_lib_dl_dlopen = yes; then
8686 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8687else
8688
8689 lt_cv_dlopen="dyld"
8690 lt_cv_dlopen_libs=
8691 lt_cv_dlopen_self=yes
8692
8693fi
8694
8695 ;;
8696
8697 *)
8698 echo "$as_me:$LINENO: checking for shl_load" >&5
8699echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8700if test "${ac_cv_func_shl_load+set}" = set; then
8701 echo $ECHO_N "(cached) $ECHO_C" >&6
8702else
8703 cat >conftest.$ac_ext <<_ACEOF
8704/* confdefs.h. */
8705_ACEOF
8706cat confdefs.h >>conftest.$ac_ext
8707cat >>conftest.$ac_ext <<_ACEOF
8708/* end confdefs.h. */
8709/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8710 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8711#define shl_load innocuous_shl_load
8712
8713/* System header to define __stub macros and hopefully few prototypes,
8714 which can conflict with char shl_load (); below.
8715 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8716 <limits.h> exists even on freestanding compilers. */
8717
8718#ifdef __STDC__
8719# include <limits.h>
8720#else
8721# include <assert.h>
8722#endif
8723
8724#undef shl_load
8725
8726/* Override any gcc2 internal prototype to avoid an error. */
8727#ifdef __cplusplus
8728extern "C"
8729{
8730#endif
8731/* We use char because int might match the return type of a gcc2
8732 builtin and then its argument prototype would still apply. */
8733char shl_load ();
8734/* The GNU C library defines this for functions which it implements
8735 to always fail with ENOSYS. Some functions are actually named
8736 something starting with __ and the normal name is an alias. */
8737#if defined (__stub_shl_load) || defined (__stub___shl_load)
8738choke me
8739#else
8740char (*f) () = shl_load;
8741#endif
8742#ifdef __cplusplus
8743}
8744#endif
8745
8746int
8747main ()
8748{
8749return f != shl_load;
8750 ;
8751 return 0;
8752}
8753_ACEOF
8754rm -f conftest.$ac_objext conftest$ac_exeext
8755if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8756 (eval $ac_link) 2>conftest.er1
8757 ac_status=$?
8758 grep -v '^ *+' conftest.er1 >conftest.err
8759 rm -f conftest.er1
8760 cat conftest.err >&5
8761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762 (exit $ac_status); } &&
8763 { ac_try='test -z "$ac_c_werror_flag"
8764 || test ! -s conftest.err'
8765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8766 (eval $ac_try) 2>&5
8767 ac_status=$?
8768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769 (exit $ac_status); }; } &&
8770 { ac_try='test -s conftest$ac_exeext'
8771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8772 (eval $ac_try) 2>&5
8773 ac_status=$?
8774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775 (exit $ac_status); }; }; then
8776 ac_cv_func_shl_load=yes
8777else
8778 echo "$as_me: failed program was:" >&5
8779sed 's/^/| /' conftest.$ac_ext >&5
8780
8781ac_cv_func_shl_load=no
8782fi
8783rm -f conftest.err conftest.$ac_objext \
8784 conftest$ac_exeext conftest.$ac_ext
8785fi
8786echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8787echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8788if test $ac_cv_func_shl_load = yes; then
8789 lt_cv_dlopen="shl_load"
8790else
8791 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8792echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8793if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8794 echo $ECHO_N "(cached) $ECHO_C" >&6
8795else
8796 ac_check_lib_save_LIBS=$LIBS
8797LIBS="-ldld $LIBS"
8798cat >conftest.$ac_ext <<_ACEOF
8799/* confdefs.h. */
8800_ACEOF
8801cat confdefs.h >>conftest.$ac_ext
8802cat >>conftest.$ac_ext <<_ACEOF
8803/* end confdefs.h. */
8804
8805/* Override any gcc2 internal prototype to avoid an error. */
8806#ifdef __cplusplus
8807extern "C"
8808#endif
8809/* We use char because int might match the return type of a gcc2
8810 builtin and then its argument prototype would still apply. */
8811char shl_load ();
8812int
8813main ()
8814{
8815shl_load ();
8816 ;
8817 return 0;
8818}
8819_ACEOF
8820rm -f conftest.$ac_objext conftest$ac_exeext
8821if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8822 (eval $ac_link) 2>conftest.er1
8823 ac_status=$?
8824 grep -v '^ *+' conftest.er1 >conftest.err
8825 rm -f conftest.er1
8826 cat conftest.err >&5
8827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8828 (exit $ac_status); } &&
8829 { ac_try='test -z "$ac_c_werror_flag"
8830 || test ! -s conftest.err'
8831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8832 (eval $ac_try) 2>&5
8833 ac_status=$?
8834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835 (exit $ac_status); }; } &&
8836 { ac_try='test -s conftest$ac_exeext'
8837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8838 (eval $ac_try) 2>&5
8839 ac_status=$?
8840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8841 (exit $ac_status); }; }; then
8842 ac_cv_lib_dld_shl_load=yes
8843else
8844 echo "$as_me: failed program was:" >&5
8845sed 's/^/| /' conftest.$ac_ext >&5
8846
8847ac_cv_lib_dld_shl_load=no
8848fi
8849rm -f conftest.err conftest.$ac_objext \
8850 conftest$ac_exeext conftest.$ac_ext
8851LIBS=$ac_check_lib_save_LIBS
8852fi
8853echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8854echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8855if test $ac_cv_lib_dld_shl_load = yes; then
8856 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8857else
8858 echo "$as_me:$LINENO: checking for dlopen" >&5
8859echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8860if test "${ac_cv_func_dlopen+set}" = set; then
8861 echo $ECHO_N "(cached) $ECHO_C" >&6
8862else
8863 cat >conftest.$ac_ext <<_ACEOF
8864/* confdefs.h. */
8865_ACEOF
8866cat confdefs.h >>conftest.$ac_ext
8867cat >>conftest.$ac_ext <<_ACEOF
8868/* end confdefs.h. */
8869/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8870 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8871#define dlopen innocuous_dlopen
8872
8873/* System header to define __stub macros and hopefully few prototypes,
8874 which can conflict with char dlopen (); below.
8875 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8876 <limits.h> exists even on freestanding compilers. */
8877
8878#ifdef __STDC__
8879# include <limits.h>
8880#else
8881# include <assert.h>
8882#endif
8883
8884#undef dlopen
8885
8886/* Override any gcc2 internal prototype to avoid an error. */
8887#ifdef __cplusplus
8888extern "C"
8889{
8890#endif
8891/* We use char because int might match the return type of a gcc2
8892 builtin and then its argument prototype would still apply. */
8893char dlopen ();
8894/* The GNU C library defines this for functions which it implements
8895 to always fail with ENOSYS. Some functions are actually named
8896 something starting with __ and the normal name is an alias. */
8897#if defined (__stub_dlopen) || defined (__stub___dlopen)
8898choke me
8899#else
8900char (*f) () = dlopen;
8901#endif
8902#ifdef __cplusplus
8903}
8904#endif
8905
8906int
8907main ()
8908{
8909return f != dlopen;
8910 ;
8911 return 0;
8912}
8913_ACEOF
8914rm -f conftest.$ac_objext conftest$ac_exeext
8915if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8916 (eval $ac_link) 2>conftest.er1
8917 ac_status=$?
8918 grep -v '^ *+' conftest.er1 >conftest.err
8919 rm -f conftest.er1
8920 cat conftest.err >&5
8921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922 (exit $ac_status); } &&
8923 { ac_try='test -z "$ac_c_werror_flag"
8924 || test ! -s conftest.err'
8925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8926 (eval $ac_try) 2>&5
8927 ac_status=$?
8928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929 (exit $ac_status); }; } &&
8930 { ac_try='test -s conftest$ac_exeext'
8931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8932 (eval $ac_try) 2>&5
8933 ac_status=$?
8934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935 (exit $ac_status); }; }; then
8936 ac_cv_func_dlopen=yes
8937else
8938 echo "$as_me: failed program was:" >&5
8939sed 's/^/| /' conftest.$ac_ext >&5
8940
8941ac_cv_func_dlopen=no
8942fi
8943rm -f conftest.err conftest.$ac_objext \
8944 conftest$ac_exeext conftest.$ac_ext
8945fi
8946echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8947echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8948if test $ac_cv_func_dlopen = yes; then
8949 lt_cv_dlopen="dlopen"
8950else
8951 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8952echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8953if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8954 echo $ECHO_N "(cached) $ECHO_C" >&6
8955else
8956 ac_check_lib_save_LIBS=$LIBS
8957LIBS="-ldl $LIBS"
8958cat >conftest.$ac_ext <<_ACEOF
8959/* confdefs.h. */
8960_ACEOF
8961cat confdefs.h >>conftest.$ac_ext
8962cat >>conftest.$ac_ext <<_ACEOF
8963/* end confdefs.h. */
8964
8965/* Override any gcc2 internal prototype to avoid an error. */
8966#ifdef __cplusplus
8967extern "C"
8968#endif
8969/* We use char because int might match the return type of a gcc2
8970 builtin and then its argument prototype would still apply. */
8971char dlopen ();
8972int
8973main ()
8974{
8975dlopen ();
8976 ;
8977 return 0;
8978}
8979_ACEOF
8980rm -f conftest.$ac_objext conftest$ac_exeext
8981if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8982 (eval $ac_link) 2>conftest.er1
8983 ac_status=$?
8984 grep -v '^ *+' conftest.er1 >conftest.err
8985 rm -f conftest.er1
8986 cat conftest.err >&5
8987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988 (exit $ac_status); } &&
8989 { ac_try='test -z "$ac_c_werror_flag"
8990 || test ! -s conftest.err'
8991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8992 (eval $ac_try) 2>&5
8993 ac_status=$?
8994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995 (exit $ac_status); }; } &&
8996 { ac_try='test -s conftest$ac_exeext'
8997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8998 (eval $ac_try) 2>&5
8999 ac_status=$?
9000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001 (exit $ac_status); }; }; then
9002 ac_cv_lib_dl_dlopen=yes
9003else
9004 echo "$as_me: failed program was:" >&5
9005sed 's/^/| /' conftest.$ac_ext >&5
9006
9007ac_cv_lib_dl_dlopen=no
9008fi
9009rm -f conftest.err conftest.$ac_objext \
9010 conftest$ac_exeext conftest.$ac_ext
9011LIBS=$ac_check_lib_save_LIBS
9012fi
9013echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9014echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9015if test $ac_cv_lib_dl_dlopen = yes; then
9016 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9017else
9018 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9019echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9020if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9021 echo $ECHO_N "(cached) $ECHO_C" >&6
9022else
9023 ac_check_lib_save_LIBS=$LIBS
9024LIBS="-lsvld $LIBS"
9025cat >conftest.$ac_ext <<_ACEOF
9026/* confdefs.h. */
9027_ACEOF
9028cat confdefs.h >>conftest.$ac_ext
9029cat >>conftest.$ac_ext <<_ACEOF
9030/* end confdefs.h. */
9031
9032/* Override any gcc2 internal prototype to avoid an error. */
9033#ifdef __cplusplus
9034extern "C"
9035#endif
9036/* We use char because int might match the return type of a gcc2
9037 builtin and then its argument prototype would still apply. */
9038char dlopen ();
9039int
9040main ()
9041{
9042dlopen ();
9043 ;
9044 return 0;
9045}
9046_ACEOF
9047rm -f conftest.$ac_objext conftest$ac_exeext
9048if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9049 (eval $ac_link) 2>conftest.er1
9050 ac_status=$?
9051 grep -v '^ *+' conftest.er1 >conftest.err
9052 rm -f conftest.er1
9053 cat conftest.err >&5
9054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9055 (exit $ac_status); } &&
9056 { ac_try='test -z "$ac_c_werror_flag"
9057 || test ! -s conftest.err'
9058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9059 (eval $ac_try) 2>&5
9060 ac_status=$?
9061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9062 (exit $ac_status); }; } &&
9063 { ac_try='test -s conftest$ac_exeext'
9064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9065 (eval $ac_try) 2>&5
9066 ac_status=$?
9067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068 (exit $ac_status); }; }; then
9069 ac_cv_lib_svld_dlopen=yes
9070else
9071 echo "$as_me: failed program was:" >&5
9072sed 's/^/| /' conftest.$ac_ext >&5
9073
9074ac_cv_lib_svld_dlopen=no
9075fi
9076rm -f conftest.err conftest.$ac_objext \
9077 conftest$ac_exeext conftest.$ac_ext
9078LIBS=$ac_check_lib_save_LIBS
9079fi
9080echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9081echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9082if test $ac_cv_lib_svld_dlopen = yes; then
9083 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9084else
9085 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9086echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9087if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9088 echo $ECHO_N "(cached) $ECHO_C" >&6
9089else
9090 ac_check_lib_save_LIBS=$LIBS
9091LIBS="-ldld $LIBS"
9092cat >conftest.$ac_ext <<_ACEOF
9093/* confdefs.h. */
9094_ACEOF
9095cat confdefs.h >>conftest.$ac_ext
9096cat >>conftest.$ac_ext <<_ACEOF
9097/* end confdefs.h. */
9098
9099/* Override any gcc2 internal prototype to avoid an error. */
9100#ifdef __cplusplus
9101extern "C"
9102#endif
9103/* We use char because int might match the return type of a gcc2
9104 builtin and then its argument prototype would still apply. */
9105char dld_link ();
9106int
9107main ()
9108{
9109dld_link ();
9110 ;
9111 return 0;
9112}
9113_ACEOF
9114rm -f conftest.$ac_objext conftest$ac_exeext
9115if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9116 (eval $ac_link) 2>conftest.er1
9117 ac_status=$?
9118 grep -v '^ *+' conftest.er1 >conftest.err
9119 rm -f conftest.er1
9120 cat conftest.err >&5
9121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9122 (exit $ac_status); } &&
9123 { ac_try='test -z "$ac_c_werror_flag"
9124 || test ! -s conftest.err'
9125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9126 (eval $ac_try) 2>&5
9127 ac_status=$?
9128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129 (exit $ac_status); }; } &&
9130 { ac_try='test -s conftest$ac_exeext'
9131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9132 (eval $ac_try) 2>&5
9133 ac_status=$?
9134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9135 (exit $ac_status); }; }; then
9136 ac_cv_lib_dld_dld_link=yes
9137else
9138 echo "$as_me: failed program was:" >&5
9139sed 's/^/| /' conftest.$ac_ext >&5
9140
9141ac_cv_lib_dld_dld_link=no
9142fi
9143rm -f conftest.err conftest.$ac_objext \
9144 conftest$ac_exeext conftest.$ac_ext
9145LIBS=$ac_check_lib_save_LIBS
9146fi
9147echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9148echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9149if test $ac_cv_lib_dld_dld_link = yes; then
9150 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9151fi
9152
9153
9154fi
9155
9156
9157fi
9158
9159
9160fi
9161
9162
9163fi
9164
9165
9166fi
9167
9168 ;;
9169 esac
9170
9171 if test "x$lt_cv_dlopen" != xno; then
9172 enable_dlopen=yes
9173 else
9174 enable_dlopen=no
9175 fi
9176
9177 case $lt_cv_dlopen in
9178 dlopen)
9179 save_CPPFLAGS="$CPPFLAGS"
9180 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9181
9182 save_LDFLAGS="$LDFLAGS"
9183 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9184
9185 save_LIBS="$LIBS"
9186 LIBS="$lt_cv_dlopen_libs $LIBS"
9187
9188 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9189echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9190if test "${lt_cv_dlopen_self+set}" = set; then
9191 echo $ECHO_N "(cached) $ECHO_C" >&6
9192else
9193 if test "$cross_compiling" = yes; then :
9194 lt_cv_dlopen_self=cross
9195else
9196 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9197 lt_status=$lt_dlunknown
9198 cat > conftest.$ac_ext <<_LT_EOF
79887925 9199#line 9199 "configure"
d7040cdb
SE
9200#include "confdefs.h"
9201
9202#if HAVE_DLFCN_H
9203#include <dlfcn.h>
9204#endif
9205
9206#include <stdio.h>
9207
9208#ifdef RTLD_GLOBAL
9209# define LT_DLGLOBAL RTLD_GLOBAL
9210#else
9211# ifdef DL_GLOBAL
9212# define LT_DLGLOBAL DL_GLOBAL
9213# else
9214# define LT_DLGLOBAL 0
9215# endif
9216#endif
9217
9218/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9219 find out it does not work in some platform. */
9220#ifndef LT_DLLAZY_OR_NOW
9221# ifdef RTLD_LAZY
9222# define LT_DLLAZY_OR_NOW RTLD_LAZY
9223# else
9224# ifdef DL_LAZY
9225# define LT_DLLAZY_OR_NOW DL_LAZY
9226# else
9227# ifdef RTLD_NOW
9228# define LT_DLLAZY_OR_NOW RTLD_NOW
9229# else
9230# ifdef DL_NOW
9231# define LT_DLLAZY_OR_NOW DL_NOW
9232# else
9233# define LT_DLLAZY_OR_NOW 0
9234# endif
9235# endif
9236# endif
9237# endif
9238#endif
9239
9240#ifdef __cplusplus
9241extern "C" void exit (int);
9242#endif
9243
9244void fnord() { int i=42;}
9245int main ()
9246{
9247 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9248 int status = $lt_dlunknown;
9249
9250 if (self)
9251 {
9252 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9253 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9254 /* dlclose (self); */
9255 }
9256 else
9257 puts (dlerror ());
9258
9259 exit (status);
9260}
9261_LT_EOF
9262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9263 (eval $ac_link) 2>&5
9264 ac_status=$?
9265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9266 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9267 (./conftest; exit; ) >&5 2>/dev/null
9268 lt_status=$?
9269 case x$lt_status in
9270 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9271 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9272 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9273 esac
9274 else :
9275 # compilation failed
9276 lt_cv_dlopen_self=no
9277 fi
9278fi
9279rm -fr conftest*
9280
9281
9282fi
9283echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9284echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9285
9286 if test "x$lt_cv_dlopen_self" = xyes; then
9287 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9288 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9289echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9290if test "${lt_cv_dlopen_self_static+set}" = set; then
9291 echo $ECHO_N "(cached) $ECHO_C" >&6
9292else
9293 if test "$cross_compiling" = yes; then :
9294 lt_cv_dlopen_self_static=cross
9295else
9296 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9297 lt_status=$lt_dlunknown
9298 cat > conftest.$ac_ext <<_LT_EOF
79887925 9299#line 9299 "configure"
d7040cdb
SE
9300#include "confdefs.h"
9301
9302#if HAVE_DLFCN_H
9303#include <dlfcn.h>
9304#endif
9305
9306#include <stdio.h>
9307
9308#ifdef RTLD_GLOBAL
9309# define LT_DLGLOBAL RTLD_GLOBAL
9310#else
9311# ifdef DL_GLOBAL
9312# define LT_DLGLOBAL DL_GLOBAL
9313# else
9314# define LT_DLGLOBAL 0
9315# endif
9316#endif
9317
9318/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9319 find out it does not work in some platform. */
9320#ifndef LT_DLLAZY_OR_NOW
9321# ifdef RTLD_LAZY
9322# define LT_DLLAZY_OR_NOW RTLD_LAZY
9323# else
9324# ifdef DL_LAZY
9325# define LT_DLLAZY_OR_NOW DL_LAZY
9326# else
9327# ifdef RTLD_NOW
9328# define LT_DLLAZY_OR_NOW RTLD_NOW
9329# else
9330# ifdef DL_NOW
9331# define LT_DLLAZY_OR_NOW DL_NOW
9332# else
9333# define LT_DLLAZY_OR_NOW 0
9334# endif
9335# endif
9336# endif
9337# endif
9338#endif
9339
9340#ifdef __cplusplus
9341extern "C" void exit (int);
9342#endif
9343
9344void fnord() { int i=42;}
9345int main ()
9346{
9347 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9348 int status = $lt_dlunknown;
9349
9350 if (self)
9351 {
9352 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9353 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9354 /* dlclose (self); */
9355 }
9356 else
9357 puts (dlerror ());
9358
9359 exit (status);
9360}
9361_LT_EOF
9362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9363 (eval $ac_link) 2>&5
9364 ac_status=$?
9365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9366 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9367 (./conftest; exit; ) >&5 2>/dev/null
9368 lt_status=$?
9369 case x$lt_status in
9370 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9371 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9372 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9373 esac
9374 else :
9375 # compilation failed
9376 lt_cv_dlopen_self_static=no
9377 fi
9378fi
9379rm -fr conftest*
9380
9381
9382fi
9383echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9384echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9385 fi
9386
9387 CPPFLAGS="$save_CPPFLAGS"
9388 LDFLAGS="$save_LDFLAGS"
9389 LIBS="$save_LIBS"
9390 ;;
9391 esac
9392
9393 case $lt_cv_dlopen_self in
9394 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9395 *) enable_dlopen_self=unknown ;;
9396 esac
9397
9398 case $lt_cv_dlopen_self_static in
9399 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9400 *) enable_dlopen_self_static=unknown ;;
9401 esac
9402fi
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420striplib=
9421old_striplib=
9422echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9423echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9424if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9425 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9426 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9427 echo "$as_me:$LINENO: result: yes" >&5
9428echo "${ECHO_T}yes" >&6
9429else
9430# FIXME - insert some real tests, host_os isn't really good enough
9431 case $host_os in
9432 darwin*)
9433 if test -n "$STRIP" ; then
9434 striplib="$STRIP -x"
9435 old_striplib="$STRIP -S"
9436 echo "$as_me:$LINENO: result: yes" >&5
9437echo "${ECHO_T}yes" >&6
9438 else
9439 echo "$as_me:$LINENO: result: no" >&5
9440echo "${ECHO_T}no" >&6
9441 fi
9442 ;;
9443 *)
9444 echo "$as_me:$LINENO: result: no" >&5
9445echo "${ECHO_T}no" >&6
9446 ;;
9447 esac
9448fi
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461 # Report which library types will actually be built
9462 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9463echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9464 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9465echo "${ECHO_T}$can_build_shared" >&6
9466
9467 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9468echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9469 test "$can_build_shared" = "no" && enable_shared=no
9470
9471 # On AIX, shared libraries and static libraries use the same namespace, and
9472 # are all built from PIC.
9473 case $host_os in
9474 aix3*)
9475 test "$enable_shared" = yes && enable_static=no
9476 if test -n "$RANLIB"; then
9477 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9478 postinstall_cmds='$RANLIB $lib'
9479 fi
9480 ;;
9481
9482 aix4* | aix5*)
9483 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9484 test "$enable_shared" = yes && enable_static=no
9485 fi
9486 ;;
9487 esac
9488 echo "$as_me:$LINENO: result: $enable_shared" >&5
9489echo "${ECHO_T}$enable_shared" >&6
9490
9491 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9492echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9493 # Make sure either enable_shared or enable_static is yes.
9494 test "$enable_shared" = yes || enable_static=yes
9495 echo "$as_me:$LINENO: result: $enable_static" >&5
9496echo "${ECHO_T}$enable_static" >&6
9497
9498
9499
9500
9501fi
9502ac_ext=c
9503ac_cpp='$CPP $CPPFLAGS'
9504ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9505ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9506ac_compiler_gnu=$ac_cv_c_compiler_gnu
9507
9508CC="$lt_save_CC"
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522 ac_config_commands="$ac_config_commands libtool"
9523
9524
9525
9526
9527# Only expand once:
9528
9529
9530
9531 ac_config_headers="$ac_config_headers gconfig.h:gconfig.in"
9532
9533
9534ac_ext=c
9535ac_cpp='$CPP $CPPFLAGS'
9536ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9537ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9538ac_compiler_gnu=$ac_cv_c_compiler_gnu
9539if test -n "$ac_tool_prefix"; then
9540 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
9541set dummy ${ac_tool_prefix}gcc; ac_word=$2
9542echo "$as_me:$LINENO: checking for $ac_word" >&5
9543echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9544if test "${ac_cv_prog_CC+set}" = set; then
9545 echo $ECHO_N "(cached) $ECHO_C" >&6
9546else
9547 if test -n "$CC"; then
9548 ac_cv_prog_CC="$CC" # Let the user override the test.
9549else
9550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9551for as_dir in $PATH
9552do
9553 IFS=$as_save_IFS
9554 test -z "$as_dir" && as_dir=.
9555 for ac_exec_ext in '' $ac_executable_extensions; do
9556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9557 ac_cv_prog_CC="${ac_tool_prefix}gcc"
9558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9559 break 2
9560 fi
9561done
9562done
9563
9564fi
9565fi
9566CC=$ac_cv_prog_CC
9567if test -n "$CC"; then
9568 echo "$as_me:$LINENO: result: $CC" >&5
9569echo "${ECHO_T}$CC" >&6
9570else
9571 echo "$as_me:$LINENO: result: no" >&5
9572echo "${ECHO_T}no" >&6
9573fi
9574
9575fi
9576if test -z "$ac_cv_prog_CC"; then
9577 ac_ct_CC=$CC
9578 # Extract the first word of "gcc", so it can be a program name with args.
9579set dummy gcc; ac_word=$2
9580echo "$as_me:$LINENO: checking for $ac_word" >&5
9581echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9582if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
9583 echo $ECHO_N "(cached) $ECHO_C" >&6
9584else
9585 if test -n "$ac_ct_CC"; then
9586 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9587else
9588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9589for as_dir in $PATH
9590do
9591 IFS=$as_save_IFS
9592 test -z "$as_dir" && as_dir=.
9593 for ac_exec_ext in '' $ac_executable_extensions; do
9594 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9595 ac_cv_prog_ac_ct_CC="gcc"
9596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9597 break 2
9598 fi
9599done
9600done
9601
9602fi
9603fi
9604ac_ct_CC=$ac_cv_prog_ac_ct_CC
9605if test -n "$ac_ct_CC"; then
9606 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
9607echo "${ECHO_T}$ac_ct_CC" >&6
9608else
9609 echo "$as_me:$LINENO: result: no" >&5
9610echo "${ECHO_T}no" >&6
9611fi
9612
9613 CC=$ac_ct_CC
9614else
9615 CC="$ac_cv_prog_CC"
9616fi
9617
9618if test -z "$CC"; then
9619 if test -n "$ac_tool_prefix"; then
9620 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
9621set dummy ${ac_tool_prefix}cc; ac_word=$2
9622echo "$as_me:$LINENO: checking for $ac_word" >&5
9623echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9624if test "${ac_cv_prog_CC+set}" = set; then
9625 echo $ECHO_N "(cached) $ECHO_C" >&6
9626else
9627 if test -n "$CC"; then
9628 ac_cv_prog_CC="$CC" # Let the user override the test.
9629else
9630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9631for as_dir in $PATH
9632do
9633 IFS=$as_save_IFS
9634 test -z "$as_dir" && as_dir=.
9635 for ac_exec_ext in '' $ac_executable_extensions; do
9636 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9637 ac_cv_prog_CC="${ac_tool_prefix}cc"
9638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9639 break 2
9640 fi
9641done
9642done
9643
9644fi
9645fi
9646CC=$ac_cv_prog_CC
9647if test -n "$CC"; then
9648 echo "$as_me:$LINENO: result: $CC" >&5
9649echo "${ECHO_T}$CC" >&6
9650else
9651 echo "$as_me:$LINENO: result: no" >&5
9652echo "${ECHO_T}no" >&6
9653fi
9654
9655fi
9656if test -z "$ac_cv_prog_CC"; then
9657 ac_ct_CC=$CC
9658 # Extract the first word of "cc", so it can be a program name with args.
9659set dummy cc; ac_word=$2
9660echo "$as_me:$LINENO: checking for $ac_word" >&5
9661echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9662if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
9663 echo $ECHO_N "(cached) $ECHO_C" >&6
9664else
9665 if test -n "$ac_ct_CC"; then
9666 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9667else
9668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9669for as_dir in $PATH
9670do
9671 IFS=$as_save_IFS
9672 test -z "$as_dir" && as_dir=.
9673 for ac_exec_ext in '' $ac_executable_extensions; do
9674 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9675 ac_cv_prog_ac_ct_CC="cc"
9676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9677 break 2
9678 fi
9679done
9680done
9681
9682fi
9683fi
9684ac_ct_CC=$ac_cv_prog_ac_ct_CC
9685if test -n "$ac_ct_CC"; then
9686 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
9687echo "${ECHO_T}$ac_ct_CC" >&6
9688else
9689 echo "$as_me:$LINENO: result: no" >&5
9690echo "${ECHO_T}no" >&6
9691fi
9692
9693 CC=$ac_ct_CC
9694else
9695 CC="$ac_cv_prog_CC"
9696fi
9697
9698fi
9699if test -z "$CC"; then
9700 # Extract the first word of "cc", so it can be a program name with args.
9701set dummy cc; ac_word=$2
9702echo "$as_me:$LINENO: checking for $ac_word" >&5
9703echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9704if test "${ac_cv_prog_CC+set}" = set; then
9705 echo $ECHO_N "(cached) $ECHO_C" >&6
9706else
9707 if test -n "$CC"; then
9708 ac_cv_prog_CC="$CC" # Let the user override the test.
9709else
9710 ac_prog_rejected=no
9711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9712for as_dir in $PATH
9713do
9714 IFS=$as_save_IFS
9715 test -z "$as_dir" && as_dir=.
9716 for ac_exec_ext in '' $ac_executable_extensions; do
9717 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9718 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
9719 ac_prog_rejected=yes
9720 continue
9721 fi
9722 ac_cv_prog_CC="cc"
9723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9724 break 2
9725 fi
9726done
9727done
9728
9729if test $ac_prog_rejected = yes; then
9730 # We found a bogon in the path, so make sure we never use it.
9731 set dummy $ac_cv_prog_CC
9732 shift
9733 if test $# != 0; then
9734 # We chose a different compiler from the bogus one.
9735 # However, it has the same basename, so the bogon will be chosen
9736 # first if we set CC to just the basename; use the full file name.
9737 shift
9738 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9739 fi
9740fi
9741fi
9742fi
9743CC=$ac_cv_prog_CC
9744if test -n "$CC"; then
9745 echo "$as_me:$LINENO: result: $CC" >&5
9746echo "${ECHO_T}$CC" >&6
9747else
9748 echo "$as_me:$LINENO: result: no" >&5
9749echo "${ECHO_T}no" >&6
9750fi
9751
9752fi
9753if test -z "$CC"; then
9754 if test -n "$ac_tool_prefix"; then
9755 for ac_prog in cl
9756 do
9757 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9758set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9759echo "$as_me:$LINENO: checking for $ac_word" >&5
9760echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9761if test "${ac_cv_prog_CC+set}" = set; then
9762 echo $ECHO_N "(cached) $ECHO_C" >&6
9763else
9764 if test -n "$CC"; then
9765 ac_cv_prog_CC="$CC" # Let the user override the test.
9766else
9767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9768for as_dir in $PATH
9769do
9770 IFS=$as_save_IFS
9771 test -z "$as_dir" && as_dir=.
9772 for ac_exec_ext in '' $ac_executable_extensions; do
9773 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9774 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
9775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9776 break 2
9777 fi
9778done
9779done
9780
9781fi
9782fi
9783CC=$ac_cv_prog_CC
9784if test -n "$CC"; then
9785 echo "$as_me:$LINENO: result: $CC" >&5
9786echo "${ECHO_T}$CC" >&6
9787else
9788 echo "$as_me:$LINENO: result: no" >&5
9789echo "${ECHO_T}no" >&6
9790fi
9791
9792 test -n "$CC" && break
9793 done
9794fi
9795if test -z "$CC"; then
9796 ac_ct_CC=$CC
9797 for ac_prog in cl
9798do
9799 # Extract the first word of "$ac_prog", so it can be a program name with args.
9800set dummy $ac_prog; ac_word=$2
9801echo "$as_me:$LINENO: checking for $ac_word" >&5
9802echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9803if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
9804 echo $ECHO_N "(cached) $ECHO_C" >&6
9805else
9806 if test -n "$ac_ct_CC"; then
9807 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9808else
9809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9810for as_dir in $PATH
9811do
9812 IFS=$as_save_IFS
9813 test -z "$as_dir" && as_dir=.
9814 for ac_exec_ext in '' $ac_executable_extensions; do
9815 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9816 ac_cv_prog_ac_ct_CC="$ac_prog"
9817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9818 break 2
9819 fi
9820done
9821done
9822
9823fi
9824fi
9825ac_ct_CC=$ac_cv_prog_ac_ct_CC
9826if test -n "$ac_ct_CC"; then
9827 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
9828echo "${ECHO_T}$ac_ct_CC" >&6
9829else
9830 echo "$as_me:$LINENO: result: no" >&5
9831echo "${ECHO_T}no" >&6
9832fi
9833
9834 test -n "$ac_ct_CC" && break
9835done
9836
9837 CC=$ac_ct_CC
9838fi
9839
9840fi
9841
9842
9843test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
9844See \`config.log' for more details." >&5
9845echo "$as_me: error: no acceptable C compiler found in \$PATH
9846See \`config.log' for more details." >&2;}
9847 { (exit 1); exit 1; }; }
9848
9849# Provide some information about the compiler.
9850echo "$as_me:$LINENO:" \
9851 "checking for C compiler version" >&5
9852ac_compiler=`set X $ac_compile; echo $2`
9853{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
9854 (eval $ac_compiler --version </dev/null >&5) 2>&5
9855 ac_status=$?
9856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857 (exit $ac_status); }
9858{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
9859 (eval $ac_compiler -v </dev/null >&5) 2>&5
9860 ac_status=$?
9861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862 (exit $ac_status); }
9863{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
9864 (eval $ac_compiler -V </dev/null >&5) 2>&5
9865 ac_status=$?
9866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867 (exit $ac_status); }
9868
9869echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
9870echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
9871if test "${ac_cv_c_compiler_gnu+set}" = set; then
9872 echo $ECHO_N "(cached) $ECHO_C" >&6
9873else
9874 cat >conftest.$ac_ext <<_ACEOF
9875/* confdefs.h. */
9876_ACEOF
9877cat confdefs.h >>conftest.$ac_ext
9878cat >>conftest.$ac_ext <<_ACEOF
9879/* end confdefs.h. */
9880
9881int
9882main ()
9883{
9884#ifndef __GNUC__
9885 choke me
9886#endif
9887
9888 ;
9889 return 0;
9890}
9891_ACEOF
9892rm -f conftest.$ac_objext
9893if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9894 (eval $ac_compile) 2>conftest.er1
9895 ac_status=$?
9896 grep -v '^ *+' conftest.er1 >conftest.err
9897 rm -f conftest.er1
9898 cat conftest.err >&5
9899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9900 (exit $ac_status); } &&
9901 { ac_try='test -z "$ac_c_werror_flag"
9902 || test ! -s conftest.err'
9903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9904 (eval $ac_try) 2>&5
9905 ac_status=$?
9906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9907 (exit $ac_status); }; } &&
9908 { ac_try='test -s conftest.$ac_objext'
9909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9910 (eval $ac_try) 2>&5
9911 ac_status=$?
9912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913 (exit $ac_status); }; }; then
9914 ac_compiler_gnu=yes
9915else
9916 echo "$as_me: failed program was:" >&5
9917sed 's/^/| /' conftest.$ac_ext >&5
9918
9919ac_compiler_gnu=no
9920fi
9921rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9922ac_cv_c_compiler_gnu=$ac_compiler_gnu
9923
9924fi
9925echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
9926echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
9927GCC=`test $ac_compiler_gnu = yes && echo yes`
9928ac_test_CFLAGS=${CFLAGS+set}
9929ac_save_CFLAGS=$CFLAGS
9930CFLAGS="-g"
9931echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
9932echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
9933if test "${ac_cv_prog_cc_g+set}" = set; then
9934 echo $ECHO_N "(cached) $ECHO_C" >&6
9935else
9936 cat >conftest.$ac_ext <<_ACEOF
9937/* confdefs.h. */
9938_ACEOF
9939cat confdefs.h >>conftest.$ac_ext
9940cat >>conftest.$ac_ext <<_ACEOF
9941/* end confdefs.h. */
9942
9943int
9944main ()
9945{
9946
9947 ;
9948 return 0;
9949}
9950_ACEOF
9951rm -f conftest.$ac_objext
9952if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9953 (eval $ac_compile) 2>conftest.er1
9954 ac_status=$?
9955 grep -v '^ *+' conftest.er1 >conftest.err
9956 rm -f conftest.er1
9957 cat conftest.err >&5
9958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9959 (exit $ac_status); } &&
9960 { ac_try='test -z "$ac_c_werror_flag"
9961 || test ! -s conftest.err'
9962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9963 (eval $ac_try) 2>&5
9964 ac_status=$?
9965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966 (exit $ac_status); }; } &&
9967 { ac_try='test -s conftest.$ac_objext'
9968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9969 (eval $ac_try) 2>&5
9970 ac_status=$?
9971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972 (exit $ac_status); }; }; then
9973 ac_cv_prog_cc_g=yes
9974else
9975 echo "$as_me: failed program was:" >&5
9976sed 's/^/| /' conftest.$ac_ext >&5
9977
9978ac_cv_prog_cc_g=no
9979fi
9980rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9981fi
9982echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
9983echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
9984if test "$ac_test_CFLAGS" = set; then
9985 CFLAGS=$ac_save_CFLAGS
9986elif test $ac_cv_prog_cc_g = yes; then
9987 if test "$GCC" = yes; then
9988 CFLAGS="-g -O2"
9989 else
9990 CFLAGS="-g"
9991 fi
9992else
9993 if test "$GCC" = yes; then
9994 CFLAGS="-O2"
9995 else
9996 CFLAGS=
9997 fi
9998fi
9999echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
10000echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
10001if test "${ac_cv_prog_cc_stdc+set}" = set; then
10002 echo $ECHO_N "(cached) $ECHO_C" >&6
10003else
10004 ac_cv_prog_cc_stdc=no
10005ac_save_CC=$CC
10006cat >conftest.$ac_ext <<_ACEOF
10007/* confdefs.h. */
10008_ACEOF
10009cat confdefs.h >>conftest.$ac_ext
10010cat >>conftest.$ac_ext <<_ACEOF
10011/* end confdefs.h. */
10012#include <stdarg.h>
10013#include <stdio.h>
10014#include <sys/types.h>
10015#include <sys/stat.h>
10016/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
10017struct buf { int x; };
10018FILE * (*rcsopen) (struct buf *, struct stat *, int);
10019static char *e (p, i)
10020 char **p;
10021 int i;
10022{
10023 return p[i];
10024}
10025static char *f (char * (*g) (char **, int), char **p, ...)
10026{
10027 char *s;
10028 va_list v;
10029 va_start (v,p);
10030 s = g (p, va_arg (v,int));
10031 va_end (v);
10032 return s;
10033}
10034
10035/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
10036 function prototypes and stuff, but not '\xHH' hex character constants.
10037 These don't provoke an error unfortunately, instead are silently treated
10038 as 'x'. The following induces an error, until -std1 is added to get
10039 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
10040 array size at least. It's necessary to write '\x00'==0 to get something
10041 that's true only with -std1. */
10042int osf4_cc_array ['\x00' == 0 ? 1 : -1];
10043
10044int test (int i, double x);
10045struct s1 {int (*f) (int a);};
10046struct s2 {int (*f) (double a);};
10047int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10048int argc;
10049char **argv;
10050int
10051main ()
10052{
10053return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
10054 ;
10055 return 0;
10056}
10057_ACEOF
10058# Don't try gcc -ansi; that turns off useful extensions and
10059# breaks some systems' header files.
10060# AIX -qlanglvl=ansi
10061# Ultrix and OSF/1 -std1
10062# HP-UX 10.20 and later -Ae
10063# HP-UX older versions -Aa -D_HPUX_SOURCE
10064# SVR4 -Xc -D__EXTENSIONS__
10065for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10066do
10067 CC="$ac_save_CC $ac_arg"
10068 rm -f conftest.$ac_objext
10069if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10070 (eval $ac_compile) 2>conftest.er1
10071 ac_status=$?
10072 grep -v '^ *+' conftest.er1 >conftest.err
10073 rm -f conftest.er1
10074 cat conftest.err >&5
10075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076 (exit $ac_status); } &&
10077 { ac_try='test -z "$ac_c_werror_flag"
10078 || test ! -s conftest.err'
10079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10080 (eval $ac_try) 2>&5
10081 ac_status=$?
10082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10083 (exit $ac_status); }; } &&
10084 { ac_try='test -s conftest.$ac_objext'
10085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10086 (eval $ac_try) 2>&5
10087 ac_status=$?
10088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10089 (exit $ac_status); }; }; then
10090 ac_cv_prog_cc_stdc=$ac_arg
10091break
10092else
10093 echo "$as_me: failed program was:" >&5
10094sed 's/^/| /' conftest.$ac_ext >&5
10095
10096fi
10097rm -f conftest.err conftest.$ac_objext
10098done
10099rm -f conftest.$ac_ext conftest.$ac_objext
10100CC=$ac_save_CC
10101
10102fi
10103
10104case "x$ac_cv_prog_cc_stdc" in
10105 x|xno)
10106 echo "$as_me:$LINENO: result: none needed" >&5
10107echo "${ECHO_T}none needed" >&6 ;;
10108 *)
10109 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
10110echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
10111 CC="$CC $ac_cv_prog_cc_stdc" ;;
10112esac
10113
10114# Some people use a C++ compiler to compile C. Since we use `exit',
10115# in C++ we need to declare it. In case someone uses the same compiler
10116# for both compiling C and C++ we need to have the C++ compiler decide
10117# the declaration of exit, since it's the most demanding environment.
10118cat >conftest.$ac_ext <<_ACEOF
10119#ifndef __cplusplus
10120 choke me
10121#endif
10122_ACEOF
10123rm -f conftest.$ac_objext
10124if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10125 (eval $ac_compile) 2>conftest.er1
10126 ac_status=$?
10127 grep -v '^ *+' conftest.er1 >conftest.err
10128 rm -f conftest.er1
10129 cat conftest.err >&5
10130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131 (exit $ac_status); } &&
10132 { ac_try='test -z "$ac_c_werror_flag"
10133 || test ! -s conftest.err'
10134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10135 (eval $ac_try) 2>&5
10136 ac_status=$?
10137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10138 (exit $ac_status); }; } &&
10139 { ac_try='test -s conftest.$ac_objext'
10140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10141 (eval $ac_try) 2>&5
10142 ac_status=$?
10143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10144 (exit $ac_status); }; }; then
10145 for ac_declaration in \
10146 '' \
10147 'extern "C" void std::exit (int) throw (); using std::exit;' \
10148 'extern "C" void std::exit (int); using std::exit;' \
10149 'extern "C" void exit (int) throw ();' \
10150 'extern "C" void exit (int);' \
10151 'void exit (int);'
10152do
10153 cat >conftest.$ac_ext <<_ACEOF
10154/* confdefs.h. */
10155_ACEOF
10156cat confdefs.h >>conftest.$ac_ext
10157cat >>conftest.$ac_ext <<_ACEOF
10158/* end confdefs.h. */
10159$ac_declaration
10160#include <stdlib.h>
10161int
10162main ()
10163{
10164exit (42);
10165 ;
10166 return 0;
10167}
10168_ACEOF
10169rm -f conftest.$ac_objext
10170if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10171 (eval $ac_compile) 2>conftest.er1
10172 ac_status=$?
10173 grep -v '^ *+' conftest.er1 >conftest.err
10174 rm -f conftest.er1
10175 cat conftest.err >&5
10176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177 (exit $ac_status); } &&
10178 { ac_try='test -z "$ac_c_werror_flag"
10179 || test ! -s conftest.err'
10180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10181 (eval $ac_try) 2>&5
10182 ac_status=$?
10183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184 (exit $ac_status); }; } &&
10185 { ac_try='test -s conftest.$ac_objext'
10186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10187 (eval $ac_try) 2>&5
10188 ac_status=$?
10189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10190 (exit $ac_status); }; }; then
10191 :
10192else
10193 echo "$as_me: failed program was:" >&5
10194sed 's/^/| /' conftest.$ac_ext >&5
10195
10196continue
10197fi
10198rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10199 cat >conftest.$ac_ext <<_ACEOF
10200/* confdefs.h. */
10201_ACEOF
10202cat confdefs.h >>conftest.$ac_ext
10203cat >>conftest.$ac_ext <<_ACEOF
10204/* end confdefs.h. */
10205$ac_declaration
10206int
10207main ()
10208{
10209exit (42);
10210 ;
10211 return 0;
10212}
10213_ACEOF
10214rm -f conftest.$ac_objext
10215if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10216 (eval $ac_compile) 2>conftest.er1
10217 ac_status=$?
10218 grep -v '^ *+' conftest.er1 >conftest.err
10219 rm -f conftest.er1
10220 cat conftest.err >&5
10221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222 (exit $ac_status); } &&
10223 { ac_try='test -z "$ac_c_werror_flag"
10224 || test ! -s conftest.err'
10225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10226 (eval $ac_try) 2>&5
10227 ac_status=$?
10228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10229 (exit $ac_status); }; } &&
10230 { ac_try='test -s conftest.$ac_objext'
10231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10232 (eval $ac_try) 2>&5
10233 ac_status=$?
10234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10235 (exit $ac_status); }; }; then
10236 break
10237else
10238 echo "$as_me: failed program was:" >&5
10239sed 's/^/| /' conftest.$ac_ext >&5
10240
10241fi
10242rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10243done
10244rm -f conftest*
10245if test -n "$ac_declaration"; then
10246 echo '#ifdef __cplusplus' >>confdefs.h
10247 echo $ac_declaration >>confdefs.h
10248 echo '#endif' >>confdefs.h
10249fi
10250
10251else
10252 echo "$as_me: failed program was:" >&5
10253sed 's/^/| /' conftest.$ac_ext >&5
10254
10255fi
10256rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10257ac_ext=c
10258ac_cpp='$CPP $CPPFLAGS'
10259ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10260ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10261ac_compiler_gnu=$ac_cv_c_compiler_gnu
10262
10263# Find a good install program. We prefer a C program (faster),
10264# so one script is as good as another. But avoid the broken or
10265# incompatible versions:
10266# SysV /etc/install, /usr/sbin/install
10267# SunOS /usr/etc/install
10268# IRIX /sbin/install
10269# AIX /bin/install
10270# AmigaOS /C/install, which installs bootblocks on floppy discs
10271# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10272# AFS /usr/afsws/bin/install, which mishandles nonexistent args
10273# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
10274# OS/2's system install, which has a completely different semantic
10275# ./install, which can be erroneously created by make from ./install.sh.
10276echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
10277echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
10278if test -z "$INSTALL"; then
10279if test "${ac_cv_path_install+set}" = set; then
10280 echo $ECHO_N "(cached) $ECHO_C" >&6
10281else
10282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10283for as_dir in $PATH
10284do
10285 IFS=$as_save_IFS
10286 test -z "$as_dir" && as_dir=.
10287 # Account for people who put trailing slashes in PATH elements.
10288case $as_dir/ in
10289 ./ | .// | /cC/* | \
10290 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
10291 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
10292 /usr/ucb/* ) ;;
10293 *)
10294 # OSF1 and SCO ODT 3.0 have their own names for install.
10295 # Don't use installbsd from OSF since it installs stuff as root
10296 # by default.
10297 for ac_prog in ginstall scoinst install; do
10298 for ac_exec_ext in '' $ac_executable_extensions; do
10299 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
10300 if test $ac_prog = install &&
10301 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10302 # AIX install. It has an incompatible calling convention.
10303 :
10304 elif test $ac_prog = install &&
10305 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10306 # program-specific install script used by HP pwplus--don't use.
10307 :
10308 else
10309 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10310 break 3
10311 fi
10312 fi
10313 done
10314 done
10315 ;;
10316esac
10317done
10318
10319
10320fi
10321 if test "${ac_cv_path_install+set}" = set; then
10322 INSTALL=$ac_cv_path_install
10323 else
10324 # As a last resort, use the slow shell script. We don't cache a
10325 # path for INSTALL within a source directory, because that will
10326 # break other packages using the cache if that directory is
10327 # removed, or if the path is relative.
10328 INSTALL=$ac_install_sh
10329 fi
10330fi
10331echo "$as_me:$LINENO: result: $INSTALL" >&5
10332echo "${ECHO_T}$INSTALL" >&6
10333
10334# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10335# It thinks the first close brace ends the variable substitution.
10336test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10337
10338test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
10339
10340test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10341
10342
10343
10344for ac_func in setmode
10345do
10346as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10347echo "$as_me:$LINENO: checking for $ac_func" >&5
10348echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10349if eval "test \"\${$as_ac_var+set}\" = set"; then
10350 echo $ECHO_N "(cached) $ECHO_C" >&6
10351else
10352 cat >conftest.$ac_ext <<_ACEOF
10353/* confdefs.h. */
10354_ACEOF
10355cat confdefs.h >>conftest.$ac_ext
10356cat >>conftest.$ac_ext <<_ACEOF
10357/* end confdefs.h. */
10358/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10359 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10360#define $ac_func innocuous_$ac_func
10361
10362/* System header to define __stub macros and hopefully few prototypes,
10363 which can conflict with char $ac_func (); below.
10364 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10365 <limits.h> exists even on freestanding compilers. */
10366
10367#ifdef __STDC__
10368# include <limits.h>
10369#else
10370# include <assert.h>
10371#endif
10372
10373#undef $ac_func
10374
10375/* Override any gcc2 internal prototype to avoid an error. */
10376#ifdef __cplusplus
10377extern "C"
10378{
10379#endif
10380/* We use char because int might match the return type of a gcc2
10381 builtin and then its argument prototype would still apply. */
10382char $ac_func ();
10383/* The GNU C library defines this for functions which it implements
10384 to always fail with ENOSYS. Some functions are actually named
10385 something starting with __ and the normal name is an alias. */
10386#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10387choke me
10388#else
10389char (*f) () = $ac_func;
10390#endif
10391#ifdef __cplusplus
10392}
10393#endif
10394
10395int
10396main ()
10397{
10398return f != $ac_func;
10399 ;
10400 return 0;
10401}
10402_ACEOF
10403rm -f conftest.$ac_objext conftest$ac_exeext
10404if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10405 (eval $ac_link) 2>conftest.er1
10406 ac_status=$?
10407 grep -v '^ *+' conftest.er1 >conftest.err
10408 rm -f conftest.er1
10409 cat conftest.err >&5
10410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10411 (exit $ac_status); } &&
10412 { ac_try='test -z "$ac_c_werror_flag"
10413 || test ! -s conftest.err'
10414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10415 (eval $ac_try) 2>&5
10416 ac_status=$?
10417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10418 (exit $ac_status); }; } &&
10419 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
10425 eval "$as_ac_var=yes"
10426else
10427 echo "$as_me: failed program was:" >&5
10428sed 's/^/| /' conftest.$ac_ext >&5
10429
10430eval "$as_ac_var=no"
10431fi
10432rm -f conftest.err conftest.$ac_objext \
10433 conftest$ac_exeext conftest.$ac_ext
10434fi
10435echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10436echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10437if test `eval echo '${'$as_ac_var'}'` = yes; then
10438 cat >>confdefs.h <<_ACEOF
10439#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10440_ACEOF
10441
10442fi
10443done
10444
10445
19aec961 10446ALL_LINGUAS="fr tr sv es id da pt_BR de vi rw ga ms fi"
d7040cdb
SE
10447# If we haven't got the data from the intl directory,
10448# assume NLS is disabled.
10449USE_NLS=no
10450LIBINTL=
10451LIBINTL_DEP=
10452INCINTL=
10453XGETTEXT=
10454GMSGFMT=
10455POSUB=
10456
10457if test -f ../intl/config.intl; then
10458 . ../intl/config.intl
10459fi
10460echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10461echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10462if test x"$USE_NLS" != xyes; then
10463 echo "$as_me:$LINENO: result: no" >&5
10464echo "${ECHO_T}no" >&6
10465else
10466 echo "$as_me:$LINENO: result: yes" >&5
10467echo "${ECHO_T}yes" >&6
10468
10469cat >>confdefs.h <<\_ACEOF
10470#define ENABLE_NLS 1
10471_ACEOF
10472
10473
10474 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
10475echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
10476 # Look for .po and .gmo files in the source directory.
10477 CATALOGS=
10478 XLINGUAS=
10479 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
10480 # If there aren't any .gmo files the shell will give us the
10481 # literal string "../path/to/srcdir/po/*.gmo" which has to be
10482 # weeded out.
10483 case "$cat" in *\**)
10484 continue;;
10485 esac
10486 # The quadruple backslash is collapsed to a double backslash
10487 # by the backticks, then collapsed again by the double quotes,
10488 # leaving us with one backslash in the sed expression (right
10489 # before the dot that mustn't act as a wildcard).
10490 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10491 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
10492 # The user is allowed to set LINGUAS to a list of languages to
10493 # install catalogs for. If it's empty that means "all of them."
10494 if test "x$LINGUAS" = x; then
10495 CATALOGS="$CATALOGS $cat"
10496 XLINGUAS="$XLINGUAS $lang"
10497 else
10498 case "$LINGUAS" in *$lang*)
10499 CATALOGS="$CATALOGS $cat"
10500 XLINGUAS="$XLINGUAS $lang"
10501 ;;
10502 esac
10503 fi
10504 done
10505 LINGUAS="$XLINGUAS"
10506 echo "$as_me:$LINENO: result: $LINGUAS" >&5
10507echo "${ECHO_T}$LINGUAS" >&6
10508
10509
10510 DATADIRNAME=share
10511
10512 INSTOBJEXT=.mo
10513
10514 GENCAT=gencat
10515
10516 CATOBJEXT=.gmo
10517
10518fi
10519
10520 MKINSTALLDIRS=
10521 if test -n "$ac_aux_dir"; then
10522 case "$ac_aux_dir" in
10523 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
10524 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
10525 esac
10526 fi
10527 if test -z "$MKINSTALLDIRS"; then
10528 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
10529 fi
10530
10531
10532
10533 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10534echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10535 # Check whether --enable-nls or --disable-nls was given.
10536if test "${enable_nls+set}" = set; then
10537 enableval="$enable_nls"
10538 USE_NLS=$enableval
10539else
10540 USE_NLS=yes
10541fi;
10542 echo "$as_me:$LINENO: result: $USE_NLS" >&5
10543echo "${ECHO_T}$USE_NLS" >&6
10544
10545
10546
10547
10548
10549
10550# Prepare PATH_SEPARATOR.
10551# The user is always right.
10552if test "${PATH_SEPARATOR+set}" != set; then
10553 echo "#! /bin/sh" >conf$$.sh
10554 echo "exit 0" >>conf$$.sh
10555 chmod +x conf$$.sh
10556 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10557 PATH_SEPARATOR=';'
10558 else
10559 PATH_SEPARATOR=:
10560 fi
10561 rm -f conf$$.sh
10562fi
10563
10564# Find out how to test for executable files. Don't use a zero-byte file,
10565# as systems may use methods other than mode bits to determine executability.
10566cat >conf$$.file <<_ASEOF
10567#! /bin/sh
10568exit 0
10569_ASEOF
10570chmod +x conf$$.file
10571if test -x conf$$.file >/dev/null 2>&1; then
10572 ac_executable_p="test -x"
10573else
10574 ac_executable_p="test -f"
10575fi
10576rm -f conf$$.file
10577
10578# Extract the first word of "msgfmt", so it can be a program name with args.
10579set dummy msgfmt; ac_word=$2
10580echo "$as_me:$LINENO: checking for $ac_word" >&5
10581echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10582if test "${ac_cv_path_MSGFMT+set}" = set; then
10583 echo $ECHO_N "(cached) $ECHO_C" >&6
10584else
10585 case "$MSGFMT" in
10586 [\\/]* | ?:[\\/]*)
10587 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10588 ;;
10589 *)
10590 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10591 for ac_dir in $PATH; do
10592 IFS="$ac_save_IFS"
10593 test -z "$ac_dir" && ac_dir=.
10594 for ac_exec_ext in '' $ac_executable_extensions; do
10595 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10596 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
10597 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10598 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
10599 break 2
10600 fi
10601 fi
10602 done
10603 done
10604 IFS="$ac_save_IFS"
10605 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
10606 ;;
10607esac
10608fi
10609MSGFMT="$ac_cv_path_MSGFMT"
10610if test "$MSGFMT" != ":"; then
10611 echo "$as_me:$LINENO: result: $MSGFMT" >&5
10612echo "${ECHO_T}$MSGFMT" >&6
10613else
10614 echo "$as_me:$LINENO: result: no" >&5
10615echo "${ECHO_T}no" >&6
10616fi
10617
10618 # Extract the first word of "gmsgfmt", so it can be a program name with args.
10619set dummy gmsgfmt; ac_word=$2
10620echo "$as_me:$LINENO: checking for $ac_word" >&5
10621echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10622if test "${ac_cv_path_GMSGFMT+set}" = set; then
10623 echo $ECHO_N "(cached) $ECHO_C" >&6
10624else
10625 case $GMSGFMT in
10626 [\\/]* | ?:[\\/]*)
10627 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
10628 ;;
10629 *)
10630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10631for as_dir in $PATH
10632do
10633 IFS=$as_save_IFS
10634 test -z "$as_dir" && as_dir=.
10635 for ac_exec_ext in '' $ac_executable_extensions; do
10636 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10637 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
10638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10639 break 2
10640 fi
10641done
10642done
10643
10644 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
10645 ;;
10646esac
10647fi
10648GMSGFMT=$ac_cv_path_GMSGFMT
10649
10650if test -n "$GMSGFMT"; then
10651 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
10652echo "${ECHO_T}$GMSGFMT" >&6
10653else
10654 echo "$as_me:$LINENO: result: no" >&5
10655echo "${ECHO_T}no" >&6
10656fi
10657
10658
10659
10660# Prepare PATH_SEPARATOR.
10661# The user is always right.
10662if test "${PATH_SEPARATOR+set}" != set; then
10663 echo "#! /bin/sh" >conf$$.sh
10664 echo "exit 0" >>conf$$.sh
10665 chmod +x conf$$.sh
10666 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10667 PATH_SEPARATOR=';'
10668 else
10669 PATH_SEPARATOR=:
10670 fi
10671 rm -f conf$$.sh
10672fi
10673
10674# Find out how to test for executable files. Don't use a zero-byte file,
10675# as systems may use methods other than mode bits to determine executability.
10676cat >conf$$.file <<_ASEOF
10677#! /bin/sh
10678exit 0
10679_ASEOF
10680chmod +x conf$$.file
10681if test -x conf$$.file >/dev/null 2>&1; then
10682 ac_executable_p="test -x"
10683else
10684 ac_executable_p="test -f"
10685fi
10686rm -f conf$$.file
10687
10688# Extract the first word of "xgettext", so it can be a program name with args.
10689set dummy xgettext; ac_word=$2
10690echo "$as_me:$LINENO: checking for $ac_word" >&5
10691echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10692if test "${ac_cv_path_XGETTEXT+set}" = set; then
10693 echo $ECHO_N "(cached) $ECHO_C" >&6
10694else
10695 case "$XGETTEXT" in
10696 [\\/]* | ?:[\\/]*)
10697 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
10698 ;;
10699 *)
10700 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10701 for ac_dir in $PATH; do
10702 IFS="$ac_save_IFS"
10703 test -z "$ac_dir" && ac_dir=.
10704 for ac_exec_ext in '' $ac_executable_extensions; do
10705 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10706 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
10707 (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
10708 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
10709 break 2
10710 fi
10711 fi
10712 done
10713 done
10714 IFS="$ac_save_IFS"
10715 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
10716 ;;
10717esac
10718fi
10719XGETTEXT="$ac_cv_path_XGETTEXT"
10720if test "$XGETTEXT" != ":"; then
10721 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
10722echo "${ECHO_T}$XGETTEXT" >&6
10723else
10724 echo "$as_me:$LINENO: result: no" >&5
10725echo "${ECHO_T}no" >&6
10726fi
10727
10728 rm -f messages.po
10729
10730
10731# Prepare PATH_SEPARATOR.
10732# The user is always right.
10733if test "${PATH_SEPARATOR+set}" != set; then
10734 echo "#! /bin/sh" >conf$$.sh
10735 echo "exit 0" >>conf$$.sh
10736 chmod +x conf$$.sh
10737 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10738 PATH_SEPARATOR=';'
10739 else
10740 PATH_SEPARATOR=:
10741 fi
10742 rm -f conf$$.sh
10743fi
10744
10745# Find out how to test for executable files. Don't use a zero-byte file,
10746# as systems may use methods other than mode bits to determine executability.
10747cat >conf$$.file <<_ASEOF
10748#! /bin/sh
10749exit 0
10750_ASEOF
10751chmod +x conf$$.file
10752if test -x conf$$.file >/dev/null 2>&1; then
10753 ac_executable_p="test -x"
10754else
10755 ac_executable_p="test -f"
10756fi
10757rm -f conf$$.file
10758
10759# Extract the first word of "msgmerge", so it can be a program name with args.
10760set dummy msgmerge; ac_word=$2
10761echo "$as_me:$LINENO: checking for $ac_word" >&5
10762echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10763if test "${ac_cv_path_MSGMERGE+set}" = set; then
10764 echo $ECHO_N "(cached) $ECHO_C" >&6
10765else
10766 case "$MSGMERGE" in
10767 [\\/]* | ?:[\\/]*)
10768 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
10769 ;;
10770 *)
10771 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10772 for ac_dir in $PATH; do
10773 IFS="$ac_save_IFS"
10774 test -z "$ac_dir" && ac_dir=.
10775 for ac_exec_ext in '' $ac_executable_extensions; do
10776 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10777 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
10778 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
10779 break 2
10780 fi
10781 fi
10782 done
10783 done
10784 IFS="$ac_save_IFS"
10785 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
10786 ;;
10787esac
10788fi
10789MSGMERGE="$ac_cv_path_MSGMERGE"
10790if test "$MSGMERGE" != ":"; then
10791 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
10792echo "${ECHO_T}$MSGMERGE" >&6
10793else
10794 echo "$as_me:$LINENO: result: no" >&5
10795echo "${ECHO_T}no" >&6
10796fi
10797
10798
10799 if test "$GMSGFMT" != ":"; then
10800 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
10801 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10802 : ;
10803 else
10804 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
10805 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
10806echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
10807 GMSGFMT=":"
10808 fi
10809 fi
10810
10811 if test "$XGETTEXT" != ":"; then
10812 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
10813 (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
10814 : ;
10815 else
10816 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
10817echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
10818 XGETTEXT=":"
10819 fi
10820 rm -f messages.po
10821 fi
10822
10823 ac_config_commands="$ac_config_commands default-1"
10824
10825
10826
10827echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
10828echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
10829 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
10830if test "${enable_maintainer_mode+set}" = set; then
10831 enableval="$enable_maintainer_mode"
10832 USE_MAINTAINER_MODE=$enableval
252b5132 10833else
d7040cdb
SE
10834 USE_MAINTAINER_MODE=no
10835fi;
10836 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
10837echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
6bf9431b 10838
d7040cdb
SE
10839
10840if test $USE_MAINTAINER_MODE = yes; then
10841 MAINTAINER_MODE_TRUE=
10842 MAINTAINER_MODE_FALSE='#'
10843else
10844 MAINTAINER_MODE_TRUE='#'
10845 MAINTAINER_MODE_FALSE=
20e95c23 10846fi
6bf9431b 10847
d7040cdb
SE
10848 MAINT=$MAINTAINER_MODE_TRUE
10849
10850
10851
10852
10853if false; then
10854 GENINSRC_NEVER_TRUE=
10855 GENINSRC_NEVER_FALSE='#'
10856else
10857 GENINSRC_NEVER_TRUE='#'
10858 GENINSRC_NEVER_FALSE=
20e95c23 10859fi
6bf9431b
BE
10860
10861
10862
10863
10864for ac_header in sys/gmon_out.h
10865do
10866as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10867if eval "test \"\${$as_ac_Header+set}\" = set"; then
10868 echo "$as_me:$LINENO: checking for $ac_header" >&5
10869echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10870if eval "test \"\${$as_ac_Header+set}\" = set"; then
10871 echo $ECHO_N "(cached) $ECHO_C" >&6
10872fi
10873echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10874echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10875else
10876 # Is the header compilable?
10877echo "$as_me:$LINENO: checking $ac_header usability" >&5
10878echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10879cat >conftest.$ac_ext <<_ACEOF
10880/* confdefs.h. */
10881_ACEOF
10882cat confdefs.h >>conftest.$ac_ext
10883cat >>conftest.$ac_ext <<_ACEOF
10884/* end confdefs.h. */
10885$ac_includes_default
10886#include <$ac_header>
10887_ACEOF
10888rm -f conftest.$ac_objext
10889if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10890 (eval $ac_compile) 2>conftest.er1
10891 ac_status=$?
10892 grep -v '^ *+' conftest.er1 >conftest.err
10893 rm -f conftest.er1
10894 cat conftest.err >&5
10895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10896 (exit $ac_status); } &&
df76639a
AM
10897 { ac_try='test -z "$ac_c_werror_flag"
10898 || test ! -s conftest.err'
6bf9431b
BE
10899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10900 (eval $ac_try) 2>&5
10901 ac_status=$?
10902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903 (exit $ac_status); }; } &&
10904 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
10910 ac_header_compiler=yes
10911else
10912 echo "$as_me: failed program was:" >&5
10913sed 's/^/| /' conftest.$ac_ext >&5
10914
10915ac_header_compiler=no
10916fi
10917rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10918echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10919echo "${ECHO_T}$ac_header_compiler" >&6
10920
10921# Is the header present?
10922echo "$as_me:$LINENO: checking $ac_header presence" >&5
10923echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10924cat >conftest.$ac_ext <<_ACEOF
10925/* confdefs.h. */
10926_ACEOF
10927cat confdefs.h >>conftest.$ac_ext
10928cat >>conftest.$ac_ext <<_ACEOF
10929/* end confdefs.h. */
10930#include <$ac_header>
10931_ACEOF
10932if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10933 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10934 ac_status=$?
10935 grep -v '^ *+' conftest.er1 >conftest.err
10936 rm -f conftest.er1
10937 cat conftest.err >&5
10938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939 (exit $ac_status); } >/dev/null; then
10940 if test -s conftest.err; then
10941 ac_cpp_err=$ac_c_preproc_warn_flag
10942 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10943 else
10944 ac_cpp_err=
10945 fi
10946else
10947 ac_cpp_err=yes
10948fi
10949if test -z "$ac_cpp_err"; then
10950 ac_header_preproc=yes
10951else
10952 echo "$as_me: failed program was:" >&5
10953sed 's/^/| /' conftest.$ac_ext >&5
10954
10955 ac_header_preproc=no
10956fi
10957rm -f conftest.err conftest.$ac_ext
10958echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10959echo "${ECHO_T}$ac_header_preproc" >&6
10960
10961# So? What about this header?
10962case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10963 yes:no: )
10964 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10965echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10966 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10967echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10968 ac_header_preproc=yes
10969 ;;
10970 no:yes:* )
10971 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10972echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10973 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10974echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10975 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10976echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10977 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10978echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10979 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10980echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10981 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10982echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10983 (
10984 cat <<\_ASBOX
10985## ------------------------------------------ ##
10986## Report this to the AC_PACKAGE_NAME lists. ##
10987## ------------------------------------------ ##
10988_ASBOX
10989 ) |
10990 sed "s/^/$as_me: WARNING: /" >&2
10991 ;;
10992esac
10993echo "$as_me:$LINENO: checking for $ac_header" >&5
10994echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10995if eval "test \"\${$as_ac_Header+set}\" = set"; then
10996 echo $ECHO_N "(cached) $ECHO_C" >&6
10997else
10998 eval "$as_ac_Header=\$ac_header_preproc"
10999fi
11000echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11001echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11002
11003fi
11004if test `eval echo '${'$as_ac_Header'}'` = yes; then
11005 cat >>confdefs.h <<_ACEOF
11006#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11007_ACEOF
11008
11009fi
11010
11011done
11012
11013
34875e64
NC
11014echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
11015echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
11016if test "${gprof_cv_decl_getopt_unistd_h+set}" = set; then
11017 echo $ECHO_N "(cached) $ECHO_C" >&6
11018else
11019 cat >conftest.$ac_ext <<_ACEOF
11020/* confdefs.h. */
11021_ACEOF
11022cat confdefs.h >>conftest.$ac_ext
11023cat >>conftest.$ac_ext <<_ACEOF
11024/* end confdefs.h. */
11025#include <unistd.h>
11026int
11027main ()
11028{
11029extern int getopt (int, char *const*, const char *);
11030 ;
11031 return 0;
11032}
11033_ACEOF
11034rm -f conftest.$ac_objext
11035if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11036 (eval $ac_compile) 2>conftest.er1
11037 ac_status=$?
11038 grep -v '^ *+' conftest.er1 >conftest.err
11039 rm -f conftest.er1
11040 cat conftest.err >&5
11041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042 (exit $ac_status); } &&
11043 { ac_try='test -z "$ac_c_werror_flag"
11044 || test ! -s conftest.err'
11045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11046 (eval $ac_try) 2>&5
11047 ac_status=$?
11048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049 (exit $ac_status); }; } &&
11050 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
11056 gprof_cv_decl_getopt_unistd_h=yes
11057else
11058 echo "$as_me: failed program was:" >&5
11059sed 's/^/| /' conftest.$ac_ext >&5
11060
11061gprof_cv_decl_getopt_unistd_h=no
11062fi
11063rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11064fi
11065
11066echo "$as_me:$LINENO: result: $gprof_cv_decl_getopt_unistd_h" >&5
11067echo "${ECHO_T}$gprof_cv_decl_getopt_unistd_h" >&6
11068if test $gprof_cv_decl_getopt_unistd_h = yes; then
11069
11070cat >>confdefs.h <<\_ACEOF
11071#define HAVE_DECL_GETOPT 1
11072_ACEOF
11073
11074fi
11075
9e9b66a9 11076
a541e3ce 11077GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
1ad12f97 11078
569acd2c
NC
11079# Check whether --enable-werror or --disable-werror was given.
11080if test "${enable_werror+set}" = set; then
11081 enableval="$enable_werror"
1ad12f97
NC
11082 case "${enableval}" in
11083 yes | y) ERROR_ON_WARNING="yes" ;;
11084 no | n) ERROR_ON_WARNING="no" ;;
569acd2c
NC
11085 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
11086echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
1ad12f97
NC
11087 { (exit 1); exit 1; }; } ;;
11088 esac
11089fi;
11090
9e9b66a9
AM
11091# Enable -Werror by default when using gcc
11092if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11093 ERROR_ON_WARNING=yes
11094fi
11095
11096NO_WERROR=
11097if test "${ERROR_ON_WARNING}" = yes ; then
a541e3ce 11098 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
9e9b66a9 11099 NO_WERROR="-Wno-error"
1ad12f97
NC
11100fi
11101
a541e3ce
SE
11102if test "${GCC}" = yes ; then
11103 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
11104fi
11105
6bf9431b
BE
11106# Check whether --enable-build-warnings or --disable-build-warnings was given.
11107if test "${enable_build_warnings+set}" = set; then
11108 enableval="$enable_build_warnings"
11109 case "${enableval}" in
a541e3ce
SE
11110 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
11111 no) if test "${GCC}" = yes ; then
11112 WARN_CFLAGS="-w"
11113 fi;;
6bf9431b 11114 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
a541e3ce 11115 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
6bf9431b 11116 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
a541e3ce 11117 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
9e9b66a9 11118 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6bf9431b 11119esac
9e9b66a9
AM
11120fi;
11121
11122if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
11123 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
6bf9431b
BE
11124fi
11125
11126
9e9b66a9
AM
11127
11128
11129
108a6f8e
CD
11130
11131
11132
11133
6bf9431b
BE
11134 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
11135
6bf9431b
BE
11136cat >confcache <<\_ACEOF
11137# This file is a shell script that caches the results of configure
11138# tests run on this system so they can be shared between configure
11139# scripts and configure runs, see configure's option --config-cache.
11140# It is not useful on other systems. If it contains results you don't
11141# want to keep, you may remove or edit it.
11142#
11143# config.status only pays attention to the cache file if you give it
11144# the --recheck option to rerun configure.
11145#
11146# `ac_cv_env_foo' variables (set or unset) will be overridden when
11147# loading this file, other *unset* `ac_cv_foo' will be assigned the
11148# following values.
11149
11150_ACEOF
11151
11152# The following way of writing the cache mishandles newlines in values,
11153# but we know of no workaround that is simple, portable, and efficient.
11154# So, don't put newlines in cache variables' values.
11155# Ultrix sh set writes to stderr and can't be redirected directly,
11156# and sets the high bit in the cache file unless we assign to the vars.
11157{
11158 (set) 2>&1 |
11159 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11160 *ac_space=\ *)
11161 # `set' does not quote correctly, so add quotes (double-quote
11162 # substitution turns \\\\ into \\, and sed turns \\ into \).
11163 sed -n \
11164 "s/'/'\\\\''/g;
11165 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11166 ;;
11167 *)
11168 # `set' quotes correctly as required by POSIX, so do not add quotes.
11169 sed -n \
11170 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11171 ;;
11172 esac;
11173} |
11174 sed '
11175 t clear
11176 : clear
11177 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11178 t end
11179 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11180 : end' >>confcache
11181if diff $cache_file confcache >/dev/null 2>&1; then :; else
11182 if test -w $cache_file; then
11183 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11184 cat confcache >$cache_file
11185 else
11186 echo "not updating unwritable cache $cache_file"
11187 fi
11188fi
11189rm -f confcache
11190
11191test "x$prefix" = xNONE && prefix=$ac_default_prefix
11192# Let make expand exec_prefix.
11193test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11194
11195# VPATH may cause trouble with some makes, so we remove $(srcdir),
11196# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11197# trailing colons and then remove the whole line if VPATH becomes empty
11198# (actually we leave an empty line to preserve line numbers).
11199if test "x$srcdir" = x.; then
11200 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11201s/:*\$(srcdir):*/:/;
11202s/:*\${srcdir}:*/:/;
11203s/:*@srcdir@:*/:/;
11204s/^\([^=]*=[ ]*\):*/\1/;
11205s/:*$//;
11206s/^[^=]*=[ ]*$//;
11207}'
11208fi
11209
11210DEFS=-DHAVE_CONFIG_H
11211
11212ac_libobjs=
11213ac_ltlibobjs=
11214for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11215 # 1. Remove the extension, and $U if already installed.
11216 ac_i=`echo "$ac_i" |
11217 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11218 # 2. Add them.
11219 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11220 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11221done
11222LIBOBJS=$ac_libobjs
11223
11224LTLIBOBJS=$ac_ltlibobjs
11225
11226
11227if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11228 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11229Usually this means the macro was only invoked conditionally." >&5
11230echo "$as_me: error: conditional \"AMDEP\" was never defined.
11231Usually this means the macro was only invoked conditionally." >&2;}
11232 { (exit 1); exit 1; }; }
11233fi
11234if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11235 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11236Usually this means the macro was only invoked conditionally." >&5
11237echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11238Usually this means the macro was only invoked conditionally." >&2;}
11239 { (exit 1); exit 1; }; }
11240fi
11241if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11242 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
11243Usually this means the macro was only invoked conditionally." >&5
11244echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
11245Usually this means the macro was only invoked conditionally." >&2;}
11246 { (exit 1); exit 1; }; }
11247fi
d5fbea21
DJ
11248if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
11249 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
11250Usually this means the macro was only invoked conditionally." >&5
11251echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
11252Usually this means the macro was only invoked conditionally." >&2;}
11253 { (exit 1); exit 1; }; }
11254fi
6bf9431b
BE
11255
11256: ${CONFIG_STATUS=./config.status}
11257ac_clean_files_save=$ac_clean_files
11258ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11259{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11260echo "$as_me: creating $CONFIG_STATUS" >&6;}
11261cat >$CONFIG_STATUS <<_ACEOF
11262#! $SHELL
11263# Generated by $as_me.
11264# Run this file to recreate the current configuration.
11265# Compiler output produced by configure, useful for debugging
11266# configure, is in config.log if it exists.
11267
11268debug=false
11269ac_cs_recheck=false
11270ac_cs_silent=false
11271SHELL=\${CONFIG_SHELL-$SHELL}
11272_ACEOF
11273
11274cat >>$CONFIG_STATUS <<\_ACEOF
11275## --------------------- ##
11276## M4sh Initialization. ##
11277## --------------------- ##
11278
11279# Be Bourne compatible
11280if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11281 emulate sh
11282 NULLCMD=:
11283 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11284 # is contrary to our usage. Disable this feature.
11285 alias -g '${1+"$@"}'='"$@"'
11286elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11287 set -o posix
11288fi
11289DUALCASE=1; export DUALCASE # for MKS sh
11290
11291# Support unset when possible.
11292if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11293 as_unset=unset
11294else
11295 as_unset=false
11296fi
11297
11298
11299# Work around bugs in pre-3.0 UWIN ksh.
11300$as_unset ENV MAIL MAILPATH
11301PS1='$ '
11302PS2='> '
11303PS4='+ '
11304
11305# NLS nuisances.
11306for as_var in \
11307 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11308 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11309 LC_TELEPHONE LC_TIME
11310do
11311 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11312 eval $as_var=C; export $as_var
11313 else
11314 $as_unset $as_var
11315 fi
11316done
11317
11318# Required to use basename.
11319if expr a : '\(a\)' >/dev/null 2>&1; then
11320 as_expr=expr
11321else
11322 as_expr=false
11323fi
11324
11325if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11326 as_basename=basename
11327else
11328 as_basename=false
252b5132 11329fi
252b5132 11330
252b5132 11331
6bf9431b
BE
11332# Name of the executable.
11333as_me=`$as_basename "$0" ||
11334$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11335 X"$0" : 'X\(//\)$' \| \
11336 X"$0" : 'X\(/\)$' \| \
11337 . : '\(.\)' 2>/dev/null ||
11338echo X/"$0" |
11339 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11340 /^X\/\(\/\/\)$/{ s//\1/; q; }
11341 /^X\/\(\/\).*/{ s//\1/; q; }
11342 s/.*/./; q'`
252b5132 11343
6bf9431b
BE
11344
11345# PATH needs CR, and LINENO needs CR and PATH.
11346# Avoid depending upon Character Ranges.
11347as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11348as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11349as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11350as_cr_digits='0123456789'
11351as_cr_alnum=$as_cr_Letters$as_cr_digits
11352
11353# The user is always right.
11354if test "${PATH_SEPARATOR+set}" != set; then
11355 echo "#! /bin/sh" >conf$$.sh
11356 echo "exit 0" >>conf$$.sh
11357 chmod +x conf$$.sh
11358 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11359 PATH_SEPARATOR=';'
252b5132 11360 else
6bf9431b 11361 PATH_SEPARATOR=:
252b5132 11362 fi
6bf9431b 11363 rm -f conf$$.sh
252b5132
RH
11364fi
11365
252b5132 11366
6bf9431b
BE
11367 as_lineno_1=$LINENO
11368 as_lineno_2=$LINENO
11369 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11370 test "x$as_lineno_1" != "x$as_lineno_2" &&
11371 test "x$as_lineno_3" = "x$as_lineno_2" || {
11372 # Find who we are. Look in the path if we contain no path at all
11373 # relative or not.
11374 case $0 in
11375 *[\\/]* ) as_myself=$0 ;;
11376 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11377for as_dir in $PATH
11378do
11379 IFS=$as_save_IFS
11380 test -z "$as_dir" && as_dir=.
11381 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11382done
252b5132 11383
6bf9431b
BE
11384 ;;
11385 esac
11386 # We did not find ourselves, most probably we were run as `sh COMMAND'
11387 # in which case we are not to be found in the path.
11388 if test "x$as_myself" = x; then
11389 as_myself=$0
11390 fi
11391 if test ! -f "$as_myself"; then
11392 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11393echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11394 { (exit 1); exit 1; }; }
11395 fi
11396 case $CONFIG_SHELL in
11397 '')
11398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11399for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
0eee5820 11400do
6bf9431b
BE
11401 IFS=$as_save_IFS
11402 test -z "$as_dir" && as_dir=.
11403 for as_base in sh bash ksh sh5; do
11404 case $as_dir in
11405 /*)
11406 if ("$as_dir/$as_base" -c '
11407 as_lineno_1=$LINENO
11408 as_lineno_2=$LINENO
11409 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11410 test "x$as_lineno_1" != "x$as_lineno_2" &&
11411 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11412 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11413 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11414 CONFIG_SHELL=$as_dir/$as_base
11415 export CONFIG_SHELL
11416 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11417 fi;;
11418 esac
11419 done
11420done
11421;;
11422 esac
11423
11424 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11425 # uniformly replaced by the line number. The first 'sed' inserts a
11426 # line-number line before each line; the second 'sed' does the real
11427 # work. The second script uses 'N' to pair each line-number line
11428 # with the numbered line, and appends trailing '-' during
11429 # substitution so that $LINENO is not a special case at line end.
11430 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11431 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11432 sed '=' <$as_myself |
11433 sed '
11434 N
11435 s,$,-,
11436 : loop
11437 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11438 t loop
11439 s,-$,,
11440 s,^['$as_cr_digits']*\n,,
11441 ' >$as_me.lineno &&
11442 chmod +x $as_me.lineno ||
11443 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11444echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11445 { (exit 1); exit 1; }; }
11446
11447 # Don't try to exec as it changes $[0], causing all sort of problems
11448 # (the dirname of $[0] is not the place where we might find the
11449 # original and so on. Autoconf is especially sensible to this).
11450 . ./$as_me.lineno
11451 # Exit status is that of the last command.
11452 exit
11453}
11454
11455
11456case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11457 *c*,-n*) ECHO_N= ECHO_C='
11458' ECHO_T=' ' ;;
11459 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11460 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11461esac
11462
11463if expr a : '\(a\)' >/dev/null 2>&1; then
11464 as_expr=expr
0eee5820 11465else
6bf9431b 11466 as_expr=false
0eee5820 11467fi
6bf9431b
BE
11468
11469rm -f conf$$ conf$$.exe conf$$.file
11470echo >conf$$.file
11471if ln -s conf$$.file conf$$ 2>/dev/null; then
11472 # We could just check for DJGPP; but this test a) works b) is more generic
11473 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11474 if test -f conf$$.exe; then
11475 # Don't use ln at all; we don't have any links
11476 as_ln_s='cp -p'
11477 else
11478 as_ln_s='ln -s'
11479 fi
11480elif ln conf$$.file conf$$ 2>/dev/null; then
11481 as_ln_s=ln
11482else
11483 as_ln_s='cp -p'
0eee5820 11484fi
6bf9431b
BE
11485rm -f conf$$ conf$$.exe conf$$.file
11486
11487if mkdir -p . 2>/dev/null; then
11488 as_mkdir_p=:
0eee5820 11489else
6bf9431b
BE
11490 test -d ./-p && rmdir ./-p
11491 as_mkdir_p=false
0eee5820 11492fi
0eee5820 11493
6bf9431b 11494as_executable_p="test -f"
0eee5820 11495
6bf9431b
BE
11496# Sed expression to map a string onto a valid CPP name.
11497as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11498
11499# Sed expression to map a string onto a valid variable name.
11500as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11501
11502
11503# IFS
11504# We need space, tab and new line, in precisely that order.
11505as_nl='
11506'
11507IFS=" $as_nl"
11508
11509# CDPATH.
11510$as_unset CDPATH
11511
11512exec 6>&1
11513
11514# Open the log real soon, to keep \$[0] and so on meaningful, and to
11515# report actual input values of CONFIG_FILES etc. instead of their
11516# values after options handling. Logging --version etc. is OK.
11517exec 5>>config.log
11518{
11519 echo
11520 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11521## Running $as_me. ##
11522_ASBOX
11523} >&5
11524cat >&5 <<_CSEOF
11525
11526This file was extended by $as_me, which was
11527generated by GNU Autoconf 2.59. Invocation command line was
11528
11529 CONFIG_FILES = $CONFIG_FILES
11530 CONFIG_HEADERS = $CONFIG_HEADERS
11531 CONFIG_LINKS = $CONFIG_LINKS
11532 CONFIG_COMMANDS = $CONFIG_COMMANDS
11533 $ $0 $@
11534
11535_CSEOF
11536echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11537echo >&5
11538_ACEOF
11539
11540# Files that config.status was made for.
11541if test -n "$ac_config_files"; then
11542 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
a2d91340 11543fi
6bf9431b
BE
11544
11545if test -n "$ac_config_headers"; then
11546 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
a2d91340 11547fi
6bf9431b
BE
11548
11549if test -n "$ac_config_links"; then
11550 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
a2d91340
AC
11551fi
11552
6bf9431b
BE
11553if test -n "$ac_config_commands"; then
11554 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11555fi
a2d91340 11556
6bf9431b
BE
11557cat >>$CONFIG_STATUS <<\_ACEOF
11558
11559ac_cs_usage="\
11560\`$as_me' instantiates files from templates according to the
11561current configuration.
11562
11563Usage: $0 [OPTIONS] [FILE]...
11564
11565 -h, --help print this help, then exit
11566 -V, --version print version number, then exit
11567 -q, --quiet do not print progress messages
11568 -d, --debug don't remove temporary files
11569 --recheck update $as_me by reconfiguring in the same conditions
11570 --file=FILE[:TEMPLATE]
11571 instantiate the configuration file FILE
11572 --header=FILE[:TEMPLATE]
11573 instantiate the configuration header FILE
11574
11575Configuration files:
11576$config_files
11577
11578Configuration headers:
11579$config_headers
11580
11581Configuration commands:
11582$config_commands
11583
11584Report bugs to <bug-autoconf@gnu.org>."
11585_ACEOF
11586
11587cat >>$CONFIG_STATUS <<_ACEOF
11588ac_cs_version="\\
11589config.status
11590configured by $0, generated by GNU Autoconf 2.59,
11591 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11592
11593Copyright (C) 2003 Free Software Foundation, Inc.
11594This config.status script is free software; the Free Software Foundation
11595gives unlimited permission to copy, distribute and modify it."
11596srcdir=$srcdir
11597INSTALL="$INSTALL"
11598_ACEOF
11599
11600cat >>$CONFIG_STATUS <<\_ACEOF
11601# If no file are specified by the user, then we need to provide default
11602# value. By we need to know if files were specified by the user.
11603ac_need_defaults=:
11604while test $# != 0
11605do
11606 case $1 in
11607 --*=*)
11608 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11609 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11610 ac_shift=:
252b5132 11611 ;;
6bf9431b
BE
11612 -*)
11613 ac_option=$1
11614 ac_optarg=$2
11615 ac_shift=shift
252b5132 11616 ;;
6bf9431b
BE
11617 *) # This is not an option, so the user has probably given explicit
11618 # arguments.
11619 ac_option=$1
11620 ac_need_defaults=false;;
11621 esac
252b5132 11622
6bf9431b
BE
11623 case $ac_option in
11624 # Handling of the options.
11625_ACEOF
11626cat >>$CONFIG_STATUS <<\_ACEOF
11627 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11628 ac_cs_recheck=: ;;
11629 --version | --vers* | -V )
11630 echo "$ac_cs_version"; exit 0 ;;
11631 --he | --h)
11632 # Conflict between --help and --header
11633 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11634Try \`$0 --help' for more information." >&5
11635echo "$as_me: error: ambiguous option: $1
11636Try \`$0 --help' for more information." >&2;}
11637 { (exit 1); exit 1; }; };;
11638 --help | --hel | -h )
11639 echo "$ac_cs_usage"; exit 0 ;;
11640 --debug | --d* | -d )
11641 debug=: ;;
11642 --file | --fil | --fi | --f )
11643 $ac_shift
11644 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11645 ac_need_defaults=false;;
11646 --header | --heade | --head | --hea )
11647 $ac_shift
11648 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11649 ac_need_defaults=false;;
11650 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11651 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11652 ac_cs_silent=: ;;
252b5132 11653
6bf9431b
BE
11654 # This is an error.
11655 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11656Try \`$0 --help' for more information." >&5
11657echo "$as_me: error: unrecognized option: $1
11658Try \`$0 --help' for more information." >&2;}
11659 { (exit 1); exit 1; }; } ;;
252b5132 11660
6bf9431b 11661 *) ac_config_targets="$ac_config_targets $1" ;;
252b5132 11662
6bf9431b
BE
11663 esac
11664 shift
11665done
252b5132 11666
6bf9431b 11667ac_configure_extra_args=
252b5132 11668
6bf9431b
BE
11669if $ac_cs_silent; then
11670 exec 6>/dev/null
11671 ac_configure_extra_args="$ac_configure_extra_args --silent"
11672fi
252b5132 11673
6bf9431b
BE
11674_ACEOF
11675cat >>$CONFIG_STATUS <<_ACEOF
11676if \$ac_cs_recheck; then
11677 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11678 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11679fi
11680
11681_ACEOF
11682
11683cat >>$CONFIG_STATUS <<_ACEOF
252b5132 11684#
6bf9431b 11685# INIT-COMMANDS section.
252b5132 11686#
252b5132 11687
6bf9431b 11688AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
11689
11690
11691# The HP-UX ksh and POSIX shell print the target directory to stdout
11692# if CDPATH is set.
11693(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11694
11695sed_quote_subst='$sed_quote_subst'
11696double_quote_subst='$double_quote_subst'
11697delay_variable_subst='$delay_variable_subst'
11698macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
11699macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
11700enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
11701enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
11702pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
11703enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
11704host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
11705host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
11706host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
11707build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
11708build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
11709build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
11710SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
11711Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
11712GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
11713EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
11714FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
11715LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
11716NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
11717LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
11718max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
11719ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
11720exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
11721lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
11722lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
11723lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
11724reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
11725reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11726deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
11727file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
11728AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
11729AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11730STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
11731RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
11732old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11733old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11734old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11735CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
11736CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11737compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
11738GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
11739lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
11740lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
11741lt_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"`'
11742objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
11743SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
11744ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
11745MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
11746lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
11747lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
11748lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
11749lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
11750lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
11751need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
11752libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
11753shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11754extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11755archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
11756enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
11757export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11758whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11759compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
11760old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11761old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11762archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11763archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11764module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11765module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11766with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
11767allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11768no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11769hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11770hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
11771hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
11772hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
11773hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
11774hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
11775hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11776hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
11777inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
11778link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
11779fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
11780always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
11781export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11782exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11783include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11784prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11785file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
11786variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
11787need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
11788need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
11789version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
11790runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11791shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11792shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
11793libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11794library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
11795soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11796postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11797postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11798finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11799finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
11800hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
11801sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11802sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11803hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
11804enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
11805enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
11806enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
11807old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
11808striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
11809
11810LTCC='$LTCC'
11811LTCFLAGS='$LTCFLAGS'
11812compiler='$compiler_DEFAULT'
11813
11814# Quote evaled strings.
11815for var in SED \
11816GREP \
11817EGREP \
11818FGREP \
11819LD \
11820NM \
11821LN_S \
11822lt_SP2NL \
11823lt_NL2SP \
11824reload_flag \
11825deplibs_check_method \
11826file_magic_cmd \
11827AR \
11828AR_FLAGS \
11829STRIP \
11830RANLIB \
11831CC \
11832CFLAGS \
11833compiler \
11834lt_cv_sys_global_symbol_pipe \
11835lt_cv_sys_global_symbol_to_cdecl \
11836lt_cv_sys_global_symbol_to_c_name_address \
11837SHELL \
11838ECHO \
11839lt_prog_compiler_no_builtin_flag \
11840lt_prog_compiler_wl \
11841lt_prog_compiler_pic \
11842lt_prog_compiler_static \
11843lt_cv_prog_compiler_c_o \
11844need_locks \
11845shrext_cmds \
11846export_dynamic_flag_spec \
11847whole_archive_flag_spec \
11848compiler_needs_object \
11849with_gnu_ld \
11850allow_undefined_flag \
11851no_undefined_flag \
11852hardcode_libdir_flag_spec \
11853hardcode_libdir_flag_spec_ld \
11854hardcode_libdir_separator \
11855fix_srcfile_path \
11856exclude_expsyms \
11857include_expsyms \
11858file_list_spec \
11859variables_saved_for_relink \
11860libname_spec \
11861library_names_spec \
11862soname_spec \
11863finish_eval \
11864old_striplib \
11865striplib; do
11866 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
11867 *[\\\\\\\`\\"\\\$]*)
11868 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
11869 ;;
11870 *)
11871 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11872 ;;
11873 esac
11874done
11875
11876# Double-quote double-evaled strings.
11877for var in reload_cmds \
11878old_postinstall_cmds \
11879old_postuninstall_cmds \
11880old_archive_cmds \
11881extract_expsyms_cmds \
11882old_archive_from_new_cmds \
11883old_archive_from_expsyms_cmds \
11884archive_cmds \
11885archive_expsym_cmds \
11886module_cmds \
11887module_expsym_cmds \
11888export_symbols_cmds \
11889prelink_cmds \
11890postinstall_cmds \
11891postuninstall_cmds \
11892finish_cmds \
11893sys_lib_search_path_spec \
11894sys_lib_dlsearch_path_spec; do
11895 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
11896 *[\\\\\\\`\\"\\\$]*)
11897 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
11898 ;;
11899 *)
11900 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11901 ;;
11902 esac
11903done
11904
11905# Fix-up fallback echo if it was mangled by the above quoting rules.
11906case \$lt_ECHO in
11907*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
11908 ;;
11909esac
11910
11911ac_aux_dir='$ac_aux_dir'
11912xsi_shell='$xsi_shell'
11913lt_shell_append='$lt_shell_append'
11914
11915# See if we are running on zsh, and set the options which allow our
11916# commands through without removal of \ escapes INIT.
11917if test -n "\${ZSH_VERSION+set}" ; then
11918 setopt NO_GLOB_SUBST
11919fi
11920
11921
11922 PACKAGE='$PACKAGE'
11923 VERSION='$VERSION'
11924 TIMESTAMP='$TIMESTAMP'
11925 RM='$RM'
11926 ofile='$ofile'
11927
11928
11929
20e95c23
DJ
11930# Capture the value of obsolete ALL_LINGUAS because we need it to compute
11931 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
11932 # from automake.
11933 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
11934 # Capture the value of LINGUAS because we need it to compute CATALOGS.
11935 LINGUAS="${LINGUAS-%UNSET%}"
6bf9431b
BE
11936
11937
11938_ACEOF
11939
11940
11941
11942cat >>$CONFIG_STATUS <<\_ACEOF
11943for ac_config_target in $ac_config_targets
252b5132 11944do
6bf9431b
BE
11945 case "$ac_config_target" in
11946 # Handling of arguments.
11947 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11948 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
11949 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
d7040cdb 11950 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20e95c23 11951 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
6bf9431b
BE
11952 "gconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gconfig.h:gconfig.in" ;;
11953 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11954echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11955 { (exit 1); exit 1; }; };;
252b5132
RH
11956 esac
11957done
11958
6bf9431b
BE
11959# If the user did not use the arguments to specify the items to instantiate,
11960# then the envvar interface is used. Set only those that are not.
11961# We use the long form for the default assignment because of an extremely
11962# bizarre bug on SunOS 4.1.3.
11963if $ac_need_defaults; then
11964 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11965 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11966 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11967fi
11968
11969# Have a temporary directory for convenience. Make it in the build tree
11970# simply because there is no reason to put it here, and in addition,
11971# creating and moving files from /tmp can sometimes cause problems.
11972# Create a temporary directory, and hook for its removal unless debugging.
11973$debug ||
11974{
11975 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11976 trap '{ (exit 1); exit 1; }' 1 2 13 15
11977}
11978
11979# Create a (secure) tmp directory for tmp files.
252b5132 11980
6bf9431b
BE
11981{
11982 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11983 test -n "$tmp" && test -d "$tmp"
11984} ||
11985{
11986 tmp=./confstat$$-$RANDOM
11987 (umask 077 && mkdir $tmp)
11988} ||
11989{
11990 echo "$me: cannot create a temporary directory in ." >&2
11991 { (exit 1); exit 1; }
11992}
252b5132 11993
6bf9431b 11994_ACEOF
252b5132 11995
6bf9431b
BE
11996cat >>$CONFIG_STATUS <<_ACEOF
11997
11998#
11999# CONFIG_FILES section.
12000#
12001
12002# No need to generate the scripts if there are no CONFIG_FILES.
12003# This happens for instance when ./config.status config.h
12004if test -n "\$CONFIG_FILES"; then
12005 # Protect against being on the right side of a sed subst in config.status.
12006 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12007 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12008s,@SHELL@,$SHELL,;t t
12009s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12010s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12011s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12012s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12013s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12014s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12015s,@exec_prefix@,$exec_prefix,;t t
12016s,@prefix@,$prefix,;t t
12017s,@program_transform_name@,$program_transform_name,;t t
12018s,@bindir@,$bindir,;t t
12019s,@sbindir@,$sbindir,;t t
12020s,@libexecdir@,$libexecdir,;t t
12021s,@datadir@,$datadir,;t t
12022s,@sysconfdir@,$sysconfdir,;t t
12023s,@sharedstatedir@,$sharedstatedir,;t t
12024s,@localstatedir@,$localstatedir,;t t
12025s,@libdir@,$libdir,;t t
12026s,@includedir@,$includedir,;t t
12027s,@oldincludedir@,$oldincludedir,;t t
12028s,@infodir@,$infodir,;t t
12029s,@mandir@,$mandir,;t t
12030s,@build_alias@,$build_alias,;t t
12031s,@host_alias@,$host_alias,;t t
12032s,@target_alias@,$target_alias,;t t
12033s,@DEFS@,$DEFS,;t t
12034s,@ECHO_C@,$ECHO_C,;t t
12035s,@ECHO_N@,$ECHO_N,;t t
12036s,@ECHO_T@,$ECHO_T,;t t
12037s,@LIBS@,$LIBS,;t t
12038s,@build@,$build,;t t
12039s,@build_cpu@,$build_cpu,;t t
12040s,@build_vendor@,$build_vendor,;t t
12041s,@build_os@,$build_os,;t t
12042s,@host@,$host,;t t
12043s,@host_cpu@,$host_cpu,;t t
12044s,@host_vendor@,$host_vendor,;t t
12045s,@host_os@,$host_os,;t t
12046s,@target@,$target,;t t
12047s,@target_cpu@,$target_cpu,;t t
12048s,@target_vendor@,$target_vendor,;t t
12049s,@target_os@,$target_os,;t t
12050s,@CC@,$CC,;t t
12051s,@CFLAGS@,$CFLAGS,;t t
12052s,@LDFLAGS@,$LDFLAGS,;t t
12053s,@CPPFLAGS@,$CPPFLAGS,;t t
12054s,@ac_ct_CC@,$ac_ct_CC,;t t
12055s,@EXEEXT@,$EXEEXT,;t t
12056s,@OBJEXT@,$OBJEXT,;t t
12057s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12058s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12059s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12060s,@CYGPATH_W@,$CYGPATH_W,;t t
12061s,@PACKAGE@,$PACKAGE,;t t
12062s,@VERSION@,$VERSION,;t t
12063s,@ACLOCAL@,$ACLOCAL,;t t
12064s,@AUTOCONF@,$AUTOCONF,;t t
12065s,@AUTOMAKE@,$AUTOMAKE,;t t
12066s,@AUTOHEADER@,$AUTOHEADER,;t t
12067s,@MAKEINFO@,$MAKEINFO,;t t
6bf9431b
BE
12068s,@install_sh@,$install_sh,;t t
12069s,@STRIP@,$STRIP,;t t
12070s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12071s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
12072s,@mkdir_p@,$mkdir_p,;t t
12073s,@AWK@,$AWK,;t t
12074s,@SET_MAKE@,$SET_MAKE,;t t
12075s,@am__leading_dot@,$am__leading_dot,;t t
df76639a
AM
12076s,@AMTAR@,$AMTAR,;t t
12077s,@am__tar@,$am__tar,;t t
12078s,@am__untar@,$am__untar,;t t
6bf9431b
BE
12079s,@DEPDIR@,$DEPDIR,;t t
12080s,@am__include@,$am__include,;t t
12081s,@am__quote@,$am__quote,;t t
12082s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
12083s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
12084s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
12085s,@CCDEPMODE@,$CCDEPMODE,;t t
12086s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
12087s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
d7040cdb
SE
12088s,@LIBTOOL@,$LIBTOOL,;t t
12089s,@SED@,$SED,;t t
12090s,@EGREP@,$EGREP,;t t
12091s,@FGREP@,$FGREP,;t t
12092s,@GREP@,$GREP,;t t
12093s,@LD@,$LD,;t t
12094s,@DUMPBIN@,$DUMPBIN,;t t
12095s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
12096s,@NM@,$NM,;t t
6bf9431b 12097s,@LN_S@,$LN_S,;t t
d7040cdb
SE
12098s,@AR@,$AR,;t t
12099s,@ac_ct_AR@,$ac_ct_AR,;t t
6bf9431b
BE
12100s,@RANLIB@,$RANLIB,;t t
12101s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
d7040cdb
SE
12102s,@lt_ECHO@,$lt_ECHO,;t t
12103s,@CPP@,$CPP,;t t
6bf9431b 12104s,@USE_NLS@,$USE_NLS,;t t
20e95c23
DJ
12105s,@LIBINTL@,$LIBINTL,;t t
12106s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
12107s,@INCINTL@,$INCINTL,;t t
6bf9431b 12108s,@XGETTEXT@,$XGETTEXT,;t t
20e95c23
DJ
12109s,@GMSGFMT@,$GMSGFMT,;t t
12110s,@POSUB@,$POSUB,;t t
6bf9431b 12111s,@CATALOGS@,$CATALOGS,;t t
6bf9431b 12112s,@DATADIRNAME@,$DATADIRNAME,;t t
6bf9431b 12113s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20e95c23
DJ
12114s,@GENCAT@,$GENCAT,;t t
12115s,@CATOBJEXT@,$CATOBJEXT,;t t
6bf9431b 12116s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
20e95c23
DJ
12117s,@MSGFMT@,$MSGFMT,;t t
12118s,@MSGMERGE@,$MSGMERGE,;t t
6bf9431b
BE
12119s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12120s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12121s,@MAINT@,$MAINT,;t t
d5fbea21
DJ
12122s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
12123s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
6bf9431b 12124s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
9e9b66a9 12125s,@NO_WERROR@,$NO_WERROR,;t t
108a6f8e
CD
12126s,@datarootdir@,$datarootdir,;t t
12127s,@docdir@,$docdir,;t t
12128s,@htmldir@,$htmldir,;t t
6bf9431b
BE
12129s,@LIBOBJS@,$LIBOBJS,;t t
12130s,@LTLIBOBJS@,$LTLIBOBJS,;t t
252b5132 12131CEOF
252b5132 12132
6bf9431b
BE
12133_ACEOF
12134
12135 cat >>$CONFIG_STATUS <<\_ACEOF
12136 # Split the substitutions into bite-sized pieces for seds with
12137 # small command number limits, like on Digital OSF/1 and HP-UX.
12138 ac_max_sed_lines=48
12139 ac_sed_frag=1 # Number of current file.
12140 ac_beg=1 # First line for current file.
12141 ac_end=$ac_max_sed_lines # Line after last line for current file.
12142 ac_more_lines=:
12143 ac_sed_cmds=
12144 while $ac_more_lines; do
12145 if test $ac_beg -gt 1; then
12146 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
252b5132 12147 else
6bf9431b 12148 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
252b5132 12149 fi
6bf9431b
BE
12150 if test ! -s $tmp/subs.frag; then
12151 ac_more_lines=false
12152 else
12153 # The purpose of the label and of the branching condition is to
12154 # speed up the sed processing (if there are no `@' at all, there
12155 # is no need to browse any of the substitutions).
12156 # These are the two extra sed commands mentioned above.
12157 (echo ':t
12158 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12159 if test -z "$ac_sed_cmds"; then
12160 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12161 else
12162 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12163 fi
12164 ac_sed_frag=`expr $ac_sed_frag + 1`
12165 ac_beg=$ac_end
12166 ac_end=`expr $ac_end + $ac_max_sed_lines`
12167 fi
12168 done
12169 if test -z "$ac_sed_cmds"; then
12170 ac_sed_cmds=cat
252b5132 12171 fi
6bf9431b 12172fi # test -n "$CONFIG_FILES"
252b5132 12173
6bf9431b
BE
12174_ACEOF
12175cat >>$CONFIG_STATUS <<\_ACEOF
12176for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
252b5132 12177 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6bf9431b
BE
12178 case $ac_file in
12179 - | *:- | *:-:* ) # input from stdin
12180 cat >$tmp/stdin
12181 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12182 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12183 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12184 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12185 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
12186 esac
12187
6bf9431b
BE
12188 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12189 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12190$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12191 X"$ac_file" : 'X\(//\)[^/]' \| \
12192 X"$ac_file" : 'X\(//\)$' \| \
12193 X"$ac_file" : 'X\(/\)' \| \
12194 . : '\(.\)' 2>/dev/null ||
12195echo X"$ac_file" |
12196 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12197 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12198 /^X\(\/\/\)$/{ s//\1/; q; }
12199 /^X\(\/\).*/{ s//\1/; q; }
12200 s/.*/./; q'`
12201 { if $as_mkdir_p; then
12202 mkdir -p "$ac_dir"
252b5132 12203 else
6bf9431b
BE
12204 as_dir="$ac_dir"
12205 as_dirs=
12206 while test ! -d "$as_dir"; do
12207 as_dirs="$as_dir $as_dirs"
12208 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12209$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12210 X"$as_dir" : 'X\(//\)[^/]' \| \
12211 X"$as_dir" : 'X\(//\)$' \| \
12212 X"$as_dir" : 'X\(/\)' \| \
12213 . : '\(.\)' 2>/dev/null ||
12214echo X"$as_dir" |
12215 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12216 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12217 /^X\(\/\/\)$/{ s//\1/; q; }
12218 /^X\(\/\).*/{ s//\1/; q; }
12219 s/.*/./; q'`
12220 done
12221 test ! -n "$as_dirs" || mkdir $as_dirs
12222 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12223echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12224 { (exit 1); exit 1; }; }; }
12225
12226 ac_builddir=.
12227
12228if test "$ac_dir" != .; then
12229 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12230 # A "../" for each directory in $ac_dir_suffix.
12231 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12232else
12233 ac_dir_suffix= ac_top_builddir=
12234fi
252b5132 12235
6bf9431b
BE
12236case $srcdir in
12237 .) # No --srcdir option. We are building in place.
12238 ac_srcdir=.
12239 if test -z "$ac_top_builddir"; then
12240 ac_top_srcdir=.
12241 else
12242 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12243 fi ;;
12244 [\\/]* | ?:[\\/]* ) # Absolute path.
12245 ac_srcdir=$srcdir$ac_dir_suffix;
12246 ac_top_srcdir=$srcdir ;;
252b5132 12247 *) # Relative path.
6bf9431b
BE
12248 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12249 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12250esac
252b5132 12251
6bf9431b
BE
12252# Do not use `cd foo && pwd` to compute absolute paths, because
12253# the directories may not exist.
12254case `pwd` in
12255.) ac_abs_builddir="$ac_dir";;
12256*)
12257 case "$ac_dir" in
12258 .) ac_abs_builddir=`pwd`;;
12259 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12260 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12261 esac;;
12262esac
12263case $ac_abs_builddir in
12264.) ac_abs_top_builddir=${ac_top_builddir}.;;
12265*)
12266 case ${ac_top_builddir}. in
12267 .) ac_abs_top_builddir=$ac_abs_builddir;;
12268 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12269 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12270 esac;;
12271esac
12272case $ac_abs_builddir in
12273.) ac_abs_srcdir=$ac_srcdir;;
12274*)
12275 case $ac_srcdir in
12276 .) ac_abs_srcdir=$ac_abs_builddir;;
12277 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12278 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12279 esac;;
12280esac
12281case $ac_abs_builddir in
12282.) ac_abs_top_srcdir=$ac_top_srcdir;;
12283*)
12284 case $ac_top_srcdir in
12285 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12286 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12287 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12288 esac;;
12289esac
252b5132 12290
6bf9431b
BE
12291
12292 case $INSTALL in
12293 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12294 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
252b5132
RH
12295 esac
12296
df76639a
AM
12297 if test x"$ac_file" != x-; then
12298 { echo "$as_me:$LINENO: creating $ac_file" >&5
12299echo "$as_me: creating $ac_file" >&6;}
12300 rm -f "$ac_file"
12301 fi
6bf9431b
BE
12302 # Let's still pretend it is `configure' which instantiates (i.e., don't
12303 # use $as_me), people would be surprised to read:
12304 # /* config.h. Generated by config.status. */
12305 if test x"$ac_file" = x-; then
12306 configure_input=
12307 else
12308 configure_input="$ac_file. "
12309 fi
12310 configure_input=$configure_input"Generated from `echo $ac_file_in |
12311 sed 's,.*/,,'` by configure."
12312
12313 # First look for the input files in the build tree, otherwise in the
12314 # src tree.
12315 ac_file_inputs=`IFS=:
12316 for f in $ac_file_in; do
12317 case $f in
12318 -) echo $tmp/stdin ;;
12319 [\\/$]*)
12320 # Absolute (can't be DOS-style, as IFS=:)
12321 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12322echo "$as_me: error: cannot find input file: $f" >&2;}
12323 { (exit 1); exit 1; }; }
12324 echo "$f";;
12325 *) # Relative
12326 if test -f "$f"; then
12327 # Build tree
12328 echo "$f"
12329 elif test -f "$srcdir/$f"; then
12330 # Source tree
12331 echo "$srcdir/$f"
12332 else
12333 # /dev/null tree
12334 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12335echo "$as_me: error: cannot find input file: $f" >&2;}
12336 { (exit 1); exit 1; }; }
12337 fi;;
12338 esac
12339 done` || { (exit 1); exit 1; }
6bf9431b
BE
12340_ACEOF
12341cat >>$CONFIG_STATUS <<_ACEOF
12342 sed "$ac_vpsub
12343$extrasub
12344_ACEOF
12345cat >>$CONFIG_STATUS <<\_ACEOF
12346:t
12347/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12348s,@configure_input@,$configure_input,;t t
12349s,@srcdir@,$ac_srcdir,;t t
12350s,@abs_srcdir@,$ac_abs_srcdir,;t t
12351s,@top_srcdir@,$ac_top_srcdir,;t t
12352s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12353s,@builddir@,$ac_builddir,;t t
12354s,@abs_builddir@,$ac_abs_builddir,;t t
12355s,@top_builddir@,$ac_top_builddir,;t t
12356s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12357s,@INSTALL@,$ac_INSTALL,;t t
12358" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12359 rm -f $tmp/stdin
12360 if test x"$ac_file" != x-; then
12361 mv $tmp/out $ac_file
12362 else
12363 cat $tmp/out
12364 rm -f $tmp/out
12365 fi
12366
12367done
12368_ACEOF
12369cat >>$CONFIG_STATUS <<\_ACEOF
12370
12371#
12372# CONFIG_HEADER section.
12373#
252b5132
RH
12374
12375# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12376# NAME is the cpp macro being defined and VALUE is the value it is being given.
12377#
12378# ac_d sets the value in "#define NAME VALUE" lines.
6bf9431b
BE
12379ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12380ac_dB='[ ].*$,\1#\2'
12381ac_dC=' '
12382ac_dD=',;t'
12383# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12384ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12385ac_uB='$,\1#\2define\3'
252b5132 12386ac_uC=' '
6bf9431b
BE
12387ac_uD=',;t'
12388
12389for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
252b5132 12390 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6bf9431b
BE
12391 case $ac_file in
12392 - | *:- | *:-:* ) # input from stdin
12393 cat >$tmp/stdin
12394 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12395 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12396 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12397 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12398 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
12399 esac
12400
6bf9431b
BE
12401 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12402echo "$as_me: creating $ac_file" >&6;}
12403
12404 # First look for the input files in the build tree, otherwise in the
12405 # src tree.
12406 ac_file_inputs=`IFS=:
12407 for f in $ac_file_in; do
12408 case $f in
12409 -) echo $tmp/stdin ;;
12410 [\\/$]*)
12411 # Absolute (can't be DOS-style, as IFS=:)
12412 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12413echo "$as_me: error: cannot find input file: $f" >&2;}
12414 { (exit 1); exit 1; }; }
12415 # Do quote $f, to prevent DOS paths from being IFS'd.
12416 echo "$f";;
12417 *) # Relative
12418 if test -f "$f"; then
12419 # Build tree
12420 echo "$f"
12421 elif test -f "$srcdir/$f"; then
12422 # Source tree
12423 echo "$srcdir/$f"
12424 else
12425 # /dev/null tree
12426 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12427echo "$as_me: error: cannot find input file: $f" >&2;}
12428 { (exit 1); exit 1; }; }
12429 fi;;
12430 esac
12431 done` || { (exit 1); exit 1; }
12432 # Remove the trailing spaces.
12433 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
12434
12435_ACEOF
12436
12437# Transform confdefs.h into two sed scripts, `conftest.defines' and
12438# `conftest.undefs', that substitutes the proper values into
12439# config.h.in to produce config.h. The first handles `#define'
12440# templates, and the second `#undef' templates.
12441# And first: Protect against being on the right side of a sed subst in
12442# config.status. Protect against being in an unquoted here document
12443# in config.status.
12444rm -f conftest.defines conftest.undefs
12445# Using a here document instead of a string reduces the quoting nightmare.
12446# Putting comments in sed scripts is not portable.
12447#
12448# `end' is used to avoid that the second main sed command (meant for
12449# 0-ary CPP macros) applies to n-ary macro definitions.
12450# See the Autoconf documentation for `clear'.
12451cat >confdef2sed.sed <<\_ACEOF
12452s/[\\&,]/\\&/g
12453s,[\\$`],\\&,g
12454t clear
12455: clear
12456s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12457t end
12458s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12459: end
12460_ACEOF
12461# If some macros were called several times there might be several times
12462# the same #defines, which is useless. Nevertheless, we may not want to
12463# sort them, since we want the *last* AC-DEFINE to be honored.
12464uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12465sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12466rm -f confdef2sed.sed
252b5132
RH
12467
12468# This sed command replaces #undef with comments. This is necessary, for
12469# example, in the case of _POSIX_SOURCE, which is predefined and required
12470# on some systems where configure will not decide to define it.
6bf9431b
BE
12471cat >>conftest.undefs <<\_ACEOF
12472s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12473_ACEOF
12474
12475# Break up conftest.defines because some shells have a limit on the size
12476# of here documents, and old seds have small limits too (100 cmds).
12477echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12478echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12479echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12480echo ' :' >>$CONFIG_STATUS
12481rm -f conftest.tail
12482while grep . conftest.defines >/dev/null
12483do
12484 # Write a limited-size here document to $tmp/defines.sed.
12485 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12486 # Speed up: don't consider the non `#define' lines.
12487 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
12488 # Work around the forget-to-reset-the-flag bug.
12489 echo 't clr' >>$CONFIG_STATUS
12490 echo ': clr' >>$CONFIG_STATUS
12491 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12492 echo 'CEOF
12493 sed -f $tmp/defines.sed $tmp/in >$tmp/out
12494 rm -f $tmp/in
12495 mv $tmp/out $tmp/in
12496' >>$CONFIG_STATUS
12497 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12498 rm -f conftest.defines
12499 mv conftest.tail conftest.defines
12500done
12501rm -f conftest.defines
12502echo ' fi # grep' >>$CONFIG_STATUS
12503echo >>$CONFIG_STATUS
252b5132 12504
6bf9431b
BE
12505# Break up conftest.undefs because some shells have a limit on the size
12506# of here documents, and old seds have small limits too (100 cmds).
12507echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
252b5132 12508rm -f conftest.tail
6bf9431b 12509while grep . conftest.undefs >/dev/null
252b5132 12510do
6bf9431b
BE
12511 # Write a limited-size here document to $tmp/undefs.sed.
12512 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12513 # Speed up: don't consider the non `#undef'
12514 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
12515 # Work around the forget-to-reset-the-flag bug.
12516 echo 't clr' >>$CONFIG_STATUS
12517 echo ': clr' >>$CONFIG_STATUS
12518 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
252b5132 12519 echo 'CEOF
6bf9431b
BE
12520 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12521 rm -f $tmp/in
12522 mv $tmp/out $tmp/in
12523' >>$CONFIG_STATUS
12524 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12525 rm -f conftest.undefs
12526 mv conftest.tail conftest.undefs
252b5132 12527done
6bf9431b
BE
12528rm -f conftest.undefs
12529
12530cat >>$CONFIG_STATUS <<\_ACEOF
12531 # Let's still pretend it is `configure' which instantiates (i.e., don't
12532 # use $as_me), people would be surprised to read:
12533 # /* config.h. Generated by config.status. */
12534 if test x"$ac_file" = x-; then
12535 echo "/* Generated by configure. */" >$tmp/config.h
12536 else
12537 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
12538 fi
12539 cat $tmp/in >>$tmp/config.h
12540 rm -f $tmp/in
12541 if test x"$ac_file" != x-; then
12542 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12543 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12544echo "$as_me: $ac_file is unchanged" >&6;}
12545 else
12546 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12547$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12548 X"$ac_file" : 'X\(//\)[^/]' \| \
12549 X"$ac_file" : 'X\(//\)$' \| \
12550 X"$ac_file" : 'X\(/\)' \| \
12551 . : '\(.\)' 2>/dev/null ||
12552echo X"$ac_file" |
12553 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12554 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12555 /^X\(\/\/\)$/{ s//\1/; q; }
12556 /^X\(\/\).*/{ s//\1/; q; }
12557 s/.*/./; q'`
12558 { if $as_mkdir_p; then
12559 mkdir -p "$ac_dir"
252b5132 12560 else
6bf9431b
BE
12561 as_dir="$ac_dir"
12562 as_dirs=
12563 while test ! -d "$as_dir"; do
12564 as_dirs="$as_dir $as_dirs"
12565 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12566$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12567 X"$as_dir" : 'X\(//\)[^/]' \| \
12568 X"$as_dir" : 'X\(//\)$' \| \
12569 X"$as_dir" : 'X\(/\)' \| \
12570 . : '\(.\)' 2>/dev/null ||
12571echo X"$as_dir" |
12572 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12573 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12574 /^X\(\/\/\)$/{ s//\1/; q; }
12575 /^X\(\/\).*/{ s//\1/; q; }
12576 s/.*/./; q'`
12577 done
12578 test ! -n "$as_dirs" || mkdir $as_dirs
12579 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12580echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12581 { (exit 1); exit 1; }; }; }
12582
12583 rm -f $ac_file
12584 mv $tmp/config.h $ac_file
252b5132 12585 fi
6bf9431b
BE
12586 else
12587 cat $tmp/config.h
12588 rm -f $tmp/config.h
252b5132 12589 fi
6bf9431b
BE
12590# Compute $ac_file's index in $config_headers.
12591_am_stamp_count=1
12592for _am_header in $config_headers :; do
12593 case $_am_header in
12594 $ac_file | $ac_file:* )
12595 break ;;
12596 * )
12597 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12598 esac
12599done
12600echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
12601$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12602 X$ac_file : 'X\(//\)[^/]' \| \
12603 X$ac_file : 'X\(//\)$' \| \
12604 X$ac_file : 'X\(/\)' \| \
12605 . : '\(.\)' 2>/dev/null ||
12606echo X$ac_file |
12607 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12608 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12609 /^X\(\/\/\)$/{ s//\1/; q; }
12610 /^X\(\/\).*/{ s//\1/; q; }
12611 s/.*/./; q'`/stamp-h$_am_stamp_count
12612done
12613_ACEOF
12614cat >>$CONFIG_STATUS <<\_ACEOF
252b5132 12615
6bf9431b
BE
12616#
12617# CONFIG_COMMANDS section.
12618#
12619for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12620 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12621 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12622 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12623$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12624 X"$ac_dest" : 'X\(//\)[^/]' \| \
12625 X"$ac_dest" : 'X\(//\)$' \| \
12626 X"$ac_dest" : 'X\(/\)' \| \
12627 . : '\(.\)' 2>/dev/null ||
12628echo X"$ac_dest" |
12629 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12630 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12631 /^X\(\/\/\)$/{ s//\1/; q; }
12632 /^X\(\/\).*/{ s//\1/; q; }
12633 s/.*/./; q'`
12634 { if $as_mkdir_p; then
12635 mkdir -p "$ac_dir"
12636 else
12637 as_dir="$ac_dir"
12638 as_dirs=
12639 while test ! -d "$as_dir"; do
12640 as_dirs="$as_dir $as_dirs"
12641 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12642$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12643 X"$as_dir" : 'X\(//\)[^/]' \| \
12644 X"$as_dir" : 'X\(//\)$' \| \
12645 X"$as_dir" : 'X\(/\)' \| \
12646 . : '\(.\)' 2>/dev/null ||
12647echo X"$as_dir" |
12648 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12649 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12650 /^X\(\/\/\)$/{ s//\1/; q; }
12651 /^X\(\/\).*/{ s//\1/; q; }
12652 s/.*/./; q'`
12653 done
12654 test ! -n "$as_dirs" || mkdir $as_dirs
12655 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12656echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12657 { (exit 1); exit 1; }; }; }
252b5132 12658
6bf9431b 12659 ac_builddir=.
252b5132 12660
6bf9431b
BE
12661if test "$ac_dir" != .; then
12662 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12663 # A "../" for each directory in $ac_dir_suffix.
12664 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12665else
12666 ac_dir_suffix= ac_top_builddir=
12667fi
12668
12669case $srcdir in
12670 .) # No --srcdir option. We are building in place.
12671 ac_srcdir=.
12672 if test -z "$ac_top_builddir"; then
12673 ac_top_srcdir=.
12674 else
12675 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12676 fi ;;
12677 [\\/]* | ?:[\\/]* ) # Absolute path.
12678 ac_srcdir=$srcdir$ac_dir_suffix;
12679 ac_top_srcdir=$srcdir ;;
12680 *) # Relative path.
12681 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12682 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12683esac
12684
12685# Do not use `cd foo && pwd` to compute absolute paths, because
12686# the directories may not exist.
12687case `pwd` in
12688.) ac_abs_builddir="$ac_dir";;
12689*)
12690 case "$ac_dir" in
12691 .) ac_abs_builddir=`pwd`;;
12692 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12693 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12694 esac;;
12695esac
12696case $ac_abs_builddir in
12697.) ac_abs_top_builddir=${ac_top_builddir}.;;
12698*)
12699 case ${ac_top_builddir}. in
12700 .) ac_abs_top_builddir=$ac_abs_builddir;;
12701 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12702 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12703 esac;;
12704esac
12705case $ac_abs_builddir in
12706.) ac_abs_srcdir=$ac_srcdir;;
12707*)
12708 case $ac_srcdir in
12709 .) ac_abs_srcdir=$ac_abs_builddir;;
12710 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12711 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12712 esac;;
12713esac
12714case $ac_abs_builddir in
12715.) ac_abs_top_srcdir=$ac_top_srcdir;;
12716*)
12717 case $ac_top_srcdir in
12718 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12719 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12720 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12721 esac;;
12722esac
12723
12724
12725 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12726echo "$as_me: executing $ac_dest commands" >&6;}
12727 case $ac_dest in
12728 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12729 # Strip MF so we end up with the name of the file.
12730 mf=`echo "$mf" | sed -e 's/:.*$//'`
12731 # Check whether this is an Automake generated Makefile or not.
12732 # We used to match only the files named `Makefile.in', but
12733 # some people rename them; so instead we look at the file content.
12734 # Grep'ing the first line is not enough: some people post-process
12735 # each Makefile.in and add a new line on top of each file to say so.
12736 # So let's grep whole file.
12737 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12738 dirpart=`(dirname "$mf") 2>/dev/null ||
12739$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12740 X"$mf" : 'X\(//\)[^/]' \| \
12741 X"$mf" : 'X\(//\)$' \| \
12742 X"$mf" : 'X\(/\)' \| \
12743 . : '\(.\)' 2>/dev/null ||
12744echo X"$mf" |
12745 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12746 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12747 /^X\(\/\/\)$/{ s//\1/; q; }
12748 /^X\(\/\).*/{ s//\1/; q; }
12749 s/.*/./; q'`
12750 else
12751 continue
12752 fi
df76639a
AM
12753 # Extract the definition of DEPDIR, am__include, and am__quote
12754 # from the Makefile without running `make'.
6bf9431b
BE
12755 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12756 test -z "$DEPDIR" && continue
df76639a
AM
12757 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12758 test -z "am__include" && continue
12759 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6bf9431b
BE
12760 # When using ansi2knr, U may be empty or an underscore; expand it
12761 U=`sed -n 's/^U = //p' < "$mf"`
df76639a
AM
12762 # Find all dependency output files, they are included files with
12763 # $(DEPDIR) in their names. We invoke sed twice because it is the
12764 # simplest approach to changing $(DEPDIR) to its actual value in the
12765 # expansion.
12766 for file in `sed -n "
12767 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6bf9431b
BE
12768 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12769 # Make sure the directory exists.
12770 test -f "$dirpart/$file" && continue
12771 fdir=`(dirname "$file") 2>/dev/null ||
12772$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12773 X"$file" : 'X\(//\)[^/]' \| \
12774 X"$file" : 'X\(//\)$' \| \
12775 X"$file" : 'X\(/\)' \| \
12776 . : '\(.\)' 2>/dev/null ||
12777echo X"$file" |
12778 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12779 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12780 /^X\(\/\/\)$/{ s//\1/; q; }
12781 /^X\(\/\).*/{ s//\1/; q; }
12782 s/.*/./; q'`
12783 { if $as_mkdir_p; then
12784 mkdir -p $dirpart/$fdir
12785 else
12786 as_dir=$dirpart/$fdir
12787 as_dirs=
12788 while test ! -d "$as_dir"; do
12789 as_dirs="$as_dir $as_dirs"
12790 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12791$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12792 X"$as_dir" : 'X\(//\)[^/]' \| \
12793 X"$as_dir" : 'X\(//\)$' \| \
12794 X"$as_dir" : 'X\(/\)' \| \
12795 . : '\(.\)' 2>/dev/null ||
12796echo X"$as_dir" |
12797 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12798 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12799 /^X\(\/\/\)$/{ s//\1/; q; }
12800 /^X\(\/\).*/{ s//\1/; q; }
12801 s/.*/./; q'`
12802 done
12803 test ! -n "$as_dirs" || mkdir $as_dirs
12804 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
12805echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
12806 { (exit 1); exit 1; }; }; }
12807
12808 # echo "creating $dirpart/$file"
12809 echo '# dummy' > "$dirpart/$file"
12810 done
12811done
d7040cdb
SE
12812 ;;
12813 libtool )
12814
12815 # See if we are running on zsh, and set the options which allow our
12816 # commands through without removal of \ escapes.
12817 if test -n "${ZSH_VERSION+set}" ; then
12818 setopt NO_GLOB_SUBST
12819 fi
12820
12821 cfgfile="${ofile}T"
12822 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12823 $RM "$cfgfile"
12824
12825 cat <<_LT_EOF >> "$cfgfile"
12826#! $SHELL
12827
12828# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12829# Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
12830# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12831# NOTE: Changes made to this file will be lost: look at ltmain.sh.
12832#
12833# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12834# 2006, 2007 Free Software Foundation, Inc.
12835#
12836# This file is part of GNU Libtool:
12837# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
12838#
12839# This program is free software; you can redistribute it and/or modify
12840# it under the terms of the GNU General Public License as published by
12841# the Free Software Foundation; either version 2 of the License, or
12842# (at your option) any later version.
12843#
12844# This program is distributed in the hope that it will be useful, but
12845# WITHOUT ANY WARRANTY; without even the implied warranty of
12846# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12847# General Public License for more details.
12848#
12849# You should have received a copy of the GNU General Public License
12850# along with this program; if not, a copy can be downloaded from
12851# http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
12852# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
12853# MA 02110-1301, USA.
12854#
12855# As a special exception to the GNU General Public License, if you
12856# distribute this file as part of a program that contains a
12857# configuration script generated by Autoconf, you may include it under
12858# the same distribution terms that you use for the rest of that program.
12859
12860
12861# The names of the tagged configurations supported by this script.
12862available_tags=""
12863
12864# ### BEGIN LIBTOOL CONFIG
12865
12866# Which release of libtool.m4 was used?
12867macro_version=$macro_version
12868macro_revision=$macro_revision
12869
12870# Whether or not to build shared libraries.
12871build_libtool_libs=$enable_shared
12872
12873# Whether or not to build static libraries.
12874build_old_libs=$enable_static
12875
12876# What type of objects to build.
12877pic_mode=$pic_mode
12878
12879# Whether or not to optimize for fast installation.
12880fast_install=$enable_fast_install
12881
12882# The host system.
12883host_alias=$host_alias
12884host=$host
12885host_os=$host_os
12886
12887# The build system.
12888build_alias=$build_alias
12889build=$build
12890build_os=$build_os
12891
12892# A sed program that does not truncate output.
12893SED=$lt_SED
12894
12895# Sed that helps us avoid accidentally triggering echo(1) options like -n.
12896Xsed="\$SED -e 1s/^X//"
12897
12898# A grep program that handles long lines.
12899GREP=$lt_GREP
12900
12901# An ERE matcher.
12902EGREP=$lt_EGREP
12903
12904# A literal string matcher.
12905FGREP=$lt_FGREP
12906
12907# A BSD- or MS-compatible name lister.
12908NM=$lt_NM
12909
12910# Whether we need soft or hard links.
12911LN_S=$lt_LN_S
12912
12913# What is the maximum length of a command?
12914max_cmd_len=$max_cmd_len
12915
12916# Object file suffix (normally "o").
12917objext=$ac_objext
12918
12919# Executable file suffix (normally "").
12920exeext=$exeext
12921
12922# whether the shell understands "unset".
12923lt_unset=$lt_unset
12924
12925# turn spaces into newlines.
12926SP2NL=$lt_lt_SP2NL
12927
12928# turn newlines into spaces.
12929NL2SP=$lt_lt_NL2SP
12930
12931# How to create reloadable object files.
12932reload_flag=$lt_reload_flag
12933reload_cmds=$lt_reload_cmds
12934
12935# Method to check whether dependent libraries are shared objects.
12936deplibs_check_method=$lt_deplibs_check_method
12937
12938# Command to use when deplibs_check_method == "file_magic".
12939file_magic_cmd=$lt_file_magic_cmd
12940
12941# The archiver.
12942AR=$lt_AR
12943AR_FLAGS=$lt_AR_FLAGS
12944
12945# A symbol stripping program.
12946STRIP=$lt_STRIP
12947
12948# Commands used to install an old-style archive.
12949RANLIB=$lt_RANLIB
12950old_postinstall_cmds=$lt_old_postinstall_cmds
12951old_postuninstall_cmds=$lt_old_postuninstall_cmds
12952
12953# A C compiler.
12954LTCC=$lt_CC
12955
12956# LTCC compiler flags.
12957LTCFLAGS=$lt_CFLAGS
12958
12959# Take the output of nm and produce a listing of raw symbols and C names.
12960global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12961
12962# Transform the output of nm in a proper C declaration.
12963global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12964
12965# Transform the output of nm in a C name address pair.
12966global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12967
12968# The name of the directory that contains temporary libtool files.
12969objdir=$objdir
12970
12971# Shell to use when invoking shell scripts.
12972SHELL=$lt_SHELL
12973
12974# An echo program that does not interpret backslashes.
12975ECHO=$lt_ECHO
12976
12977# Used to examine libraries when file_magic_cmd begins with "file".
12978MAGIC_CMD=$MAGIC_CMD
12979
12980# Must we lock files when doing compilation?
12981need_locks=$lt_need_locks
12982
12983# Old archive suffix (normally "a").
12984libext=$libext
12985
12986# Shared library suffix (normally ".so").
12987shrext_cmds=$lt_shrext_cmds
12988
12989# The commands to extract the exported symbol list from a shared archive.
12990extract_expsyms_cmds=$lt_extract_expsyms_cmds
12991
12992# Variables whose values should be saved in libtool wrapper scripts and
12993# restored at link time.
12994variables_saved_for_relink=$lt_variables_saved_for_relink
12995
12996# Do we need the "lib" prefix for modules?
12997need_lib_prefix=$need_lib_prefix
12998
12999# Do we need a version for libraries?
13000need_version=$need_version
13001
13002# Library versioning type.
13003version_type=$version_type
13004
13005# Shared library runtime path variable.
13006runpath_var=$runpath_var
13007
13008# Shared library path variable.
13009shlibpath_var=$shlibpath_var
13010
13011# Is shlibpath searched before the hard-coded library search path?
13012shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13013
13014# Format of library name prefix.
13015libname_spec=$lt_libname_spec
13016
13017# List of archive names. First name is the real one, the rest are links.
13018# The last name is the one that the linker finds with -lNAME
13019library_names_spec=$lt_library_names_spec
13020
13021# The coded name of the library, if different from the real name.
13022soname_spec=$lt_soname_spec
13023
13024# Command to use after installation of a shared archive.
13025postinstall_cmds=$lt_postinstall_cmds
13026
13027# Command to use after uninstallation of a shared archive.
13028postuninstall_cmds=$lt_postuninstall_cmds
13029
13030# Commands used to finish a libtool library installation in a directory.
13031finish_cmds=$lt_finish_cmds
13032
13033# As "finish_cmds", except a single script fragment to be evaled but
13034# not shown.
13035finish_eval=$lt_finish_eval
13036
13037# Whether we should hardcode library paths into libraries.
13038hardcode_into_libs=$hardcode_into_libs
13039
13040# Compile-time system search path for libraries.
13041sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13042
13043# Run-time system search path for libraries.
13044sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13045
13046# Whether dlopen is supported.
13047dlopen_support=$enable_dlopen
13048
13049# Whether dlopen of programs is supported.
13050dlopen_self=$enable_dlopen_self
13051
13052# Whether dlopen of statically linked programs is supported.
13053dlopen_self_static=$enable_dlopen_self_static
13054
13055# Commands to strip libraries.
13056old_striplib=$lt_old_striplib
13057striplib=$lt_striplib
13058
13059
13060# The linker used to build libraries.
13061LD=$lt_LD
13062
13063# Commands used to build an old-style archive.
13064old_archive_cmds=$lt_old_archive_cmds
13065
13066# A language specific compiler.
13067CC=$lt_compiler
13068
13069# Is the compiler the GNU compiler?
13070with_gcc=$GCC
13071
13072# Compiler flag to turn off builtin functions.
13073no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13074
13075# How to pass a linker flag through the compiler.
13076wl=$lt_lt_prog_compiler_wl
13077
13078# Additional compiler flags for building library objects.
13079pic_flag=$lt_lt_prog_compiler_pic
13080
13081# Compiler flag to prevent dynamic linking.
13082link_static_flag=$lt_lt_prog_compiler_static
13083
13084# Does compiler simultaneously support -c and -o options?
13085compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13086
13087# Whether or not to add -lc for building shared libraries.
13088build_libtool_need_lc=$archive_cmds_need_lc
13089
13090# Whether or not to disallow shared libs when runtime libs are static.
13091allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13092
13093# Compiler flag to allow reflexive dlopens.
13094export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13095
13096# Compiler flag to generate shared objects directly from archives.
13097whole_archive_flag_spec=$lt_whole_archive_flag_spec
13098
13099# Whether the compiler copes with passing no objects directly.
13100compiler_needs_object=$lt_compiler_needs_object
13101
13102# Create an old-style archive from a shared archive.
13103old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13104
13105# Create a temporary old-style archive to link instead of a shared archive.
13106old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13107
13108# Commands used to build a shared archive.
13109archive_cmds=$lt_archive_cmds
13110archive_expsym_cmds=$lt_archive_expsym_cmds
13111
13112# Commands used to build a loadable module if different from building
13113# a shared archive.
13114module_cmds=$lt_module_cmds
13115module_expsym_cmds=$lt_module_expsym_cmds
13116
13117# Whether we are building with GNU ld or not.
13118with_gnu_ld=$lt_with_gnu_ld
13119
13120# Flag that allows shared libraries with undefined symbols to be built.
13121allow_undefined_flag=$lt_allow_undefined_flag
13122
13123# Flag that enforces no undefined symbols.
13124no_undefined_flag=$lt_no_undefined_flag
13125
13126# Flag to hardcode \$libdir into a binary during linking.
13127# This must work even if \$libdir does not exist
13128hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13129
13130# If ld is used when linking, flag to hardcode \$libdir into a binary
13131# during linking. This must work even if \$libdir does not exist.
13132hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13133
13134# Whether we need a single "-rpath" flag with a separated argument.
13135hardcode_libdir_separator=$lt_hardcode_libdir_separator
13136
13137# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13138# DIR into the resulting binary.
13139hardcode_direct=$hardcode_direct
13140
13141# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13142# DIR into the resulting binary and the resulting library dependency is
13143# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13144# library is relocated.
13145hardcode_direct_absolute=$hardcode_direct_absolute
13146
13147# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13148# into the resulting binary.
13149hardcode_minus_L=$hardcode_minus_L
13150
13151# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13152# into the resulting binary.
13153hardcode_shlibpath_var=$hardcode_shlibpath_var
13154
13155# Set to "yes" if building a shared library automatically hardcodes DIR
13156# into the library and all subsequent libraries and executables linked
13157# against it.
13158hardcode_automatic=$hardcode_automatic
13159
13160# Set to yes if linker adds runtime paths of dependent libraries
13161# to runtime path list.
13162inherit_rpath=$inherit_rpath
13163
13164# Whether libtool must link a program against all its dependency libraries.
13165link_all_deplibs=$link_all_deplibs
13166
13167# Fix the shell variable \$srcfile for the compiler.
13168fix_srcfile_path=$lt_fix_srcfile_path
13169
13170# Set to "yes" if exported symbols are required.
13171always_export_symbols=$always_export_symbols
13172
13173# The commands to list exported symbols.
13174export_symbols_cmds=$lt_export_symbols_cmds
13175
13176# Symbols that should not be listed in the preloaded symbols.
13177exclude_expsyms=$lt_exclude_expsyms
13178
13179# Symbols that must always be exported.
13180include_expsyms=$lt_include_expsyms
13181
13182# Commands necessary for linking programs (against libraries) with templates.
13183prelink_cmds=$lt_prelink_cmds
13184
13185# Specify filename containing input files.
13186file_list_spec=$lt_file_list_spec
13187
13188# How to hardcode a shared library path into an executable.
13189hardcode_action=$hardcode_action
13190
13191# ### END LIBTOOL CONFIG
13192
13193_LT_EOF
13194
13195 case $host_os in
13196 aix3*)
13197 cat <<\_LT_EOF >> "$cfgfile"
13198# AIX sometimes has problems with the GCC collect2 program. For some
13199# reason, if we set the COLLECT_NAMES environment variable, the problems
13200# vanish in a puff of smoke.
13201if test "X${COLLECT_NAMES+set}" != Xset; then
13202 COLLECT_NAMES=
13203 export COLLECT_NAMES
13204fi
13205_LT_EOF
13206 ;;
13207 esac
13208
13209
13210ltmain="$ac_aux_dir/ltmain.sh"
13211
13212
13213 # We use sed instead of cat because bash on DJGPP gets confused if
13214 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13215 # text mode, it properly converts lines to CR/LF. This bash problem
13216 # is reportedly fixed, but why not run on old versions too?
13217 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13218 || (rm -f "$cfgfile"; exit 1)
13219
13220 case $xsi_shell in
13221 yes)
13222 cat << \_LT_EOF >> "$cfgfile"
13223# func_dirname file append nondir_replacement
13224# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13225# otherwise set result to NONDIR_REPLACEMENT.
13226func_dirname ()
13227{
13228 case ${1} in
13229 */*) func_dirname_result="${1%/*}${2}" ;;
13230 * ) func_dirname_result="${3}" ;;
13231 esac
13232}
13233
13234# func_basename file
13235func_basename ()
13236{
13237 func_basename_result="${1##*/}"
13238}
13239
13240# func_stripname prefix suffix name
13241# strip PREFIX and SUFFIX off of NAME.
13242# PREFIX and SUFFIX must not contain globbing or regex special
13243# characters, hashes, percent signs, but SUFFIX may contain a leading
13244# dot (in which case that matches only a dot).
13245func_stripname ()
13246{
13247 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13248 # positional parameters, so assign one to ordinary parameter first.
13249 func_stripname_result=${3}
13250 func_stripname_result=${func_stripname_result#"${1}"}
13251 func_stripname_result=${func_stripname_result%"${2}"}
13252}
13253
13254# func_opt_split
13255func_opt_split ()
13256{
13257 func_opt_split_opt=${1%%=*}
13258 func_opt_split_arg=${1#*=}
13259}
13260
13261# func_lo2o object
13262func_lo2o ()
13263{
13264 case ${1} in
13265 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13266 *) func_lo2o_result=${1} ;;
13267 esac
13268}
13269_LT_EOF
13270 ;;
13271 *) # Bourne compatible functions.
13272 cat << \_LT_EOF >> "$cfgfile"
13273# func_dirname file append nondir_replacement
13274# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13275# otherwise set result to NONDIR_REPLACEMENT.
13276func_dirname ()
13277{
13278 # Extract subdirectory from the argument.
13279 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13280 if test "X$func_dirname_result" = "X${1}"; then
13281 func_dirname_result="${3}"
13282 else
13283 func_dirname_result="$func_dirname_result${2}"
13284 fi
13285}
13286
13287# func_basename file
13288func_basename ()
13289{
13290 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13291}
13292
13293# func_stripname prefix suffix name
13294# strip PREFIX and SUFFIX off of NAME.
13295# PREFIX and SUFFIX must not contain globbing or regex special
13296# characters, hashes, percent signs, but SUFFIX may contain a leading
13297# dot (in which case that matches only a dot).
13298# func_strip_suffix prefix name
13299func_stripname ()
13300{
13301 case ${2} in
13302 .*) func_stripname_result=`$ECHO "X${3}" \
13303 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13304 *) func_stripname_result=`$ECHO "X${3}" \
13305 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13306 esac
13307}
13308
13309# sed scripts:
13310my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13311my_sed_long_arg='1s/^-[^=]*=//'
13312
13313# func_opt_split
13314func_opt_split ()
13315{
13316 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13317 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13318}
13319
13320# func_lo2o object
13321func_lo2o ()
13322{
13323 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13324}
13325_LT_EOF
13326esac
13327
13328case $lt_shell_append in
13329 yes)
13330 cat << \_LT_EOF >> "$cfgfile"
13331
13332# func_append var value
13333# Append VALUE to the end of shell variable VAR.
13334func_append ()
13335{
13336 eval "$1+=\$2"
13337}
13338_LT_EOF
13339 ;;
13340 *)
13341 cat << \_LT_EOF >> "$cfgfile"
13342
13343# func_append var value
13344# Append VALUE to the end of shell variable VAR.
13345func_append ()
13346{
13347 eval "$1=\$$1\$2"
13348}
13349_LT_EOF
13350 ;;
13351 esac
13352
13353
13354 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13355 || (rm -f "$cfgfile"; exit 1)
13356
13357 mv -f "$cfgfile" "$ofile" ||
13358 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13359 chmod +x "$ofile"
13360
6bf9431b 13361 ;;
20e95c23
DJ
13362 default-1 )
13363 for ac_file in $CONFIG_FILES; do
13364 # Support "outfile[:infile[:infile...]]"
13365 case "$ac_file" in
13366 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13367 esac
13368 # PO directories have a Makefile.in generated from Makefile.in.in.
13369 case "$ac_file" in */Makefile.in)
13370 # Adjust a relative srcdir.
13371 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
13372 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
13373 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
13374 # In autoconf-2.13 it is called $ac_given_srcdir.
13375 # In autoconf-2.50 it is called $srcdir.
13376 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
13377 case "$ac_given_srcdir" in
13378 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
13379 /*) top_srcdir="$ac_given_srcdir" ;;
13380 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
13381 esac
13382 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
13383 rm -f "$ac_dir/POTFILES"
13384 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
13385 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
13386 POMAKEFILEDEPS="POTFILES.in"
13387 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
13388 # on $ac_dir but don't depend on user-specified configuration
13389 # parameters.
13390 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
13391 # The LINGUAS file contains the set of available languages.
13392 if test -n "$OBSOLETE_ALL_LINGUAS"; then
13393 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
13394 fi
13395 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
13396 # Hide the ALL_LINGUAS assigment from automake.
13397 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
13398 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
13399 else
13400 # The set of available languages was given in configure.in.
13401 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
13402 fi
13403 case "$ac_given_srcdir" in
13404 .) srcdirpre= ;;
13405 *) srcdirpre='$(srcdir)/' ;;
13406 esac
13407 POFILES=
13408 GMOFILES=
13409 UPDATEPOFILES=
13410 DUMMYPOFILES=
13411 for lang in $ALL_LINGUAS; do
13412 POFILES="$POFILES $srcdirpre$lang.po"
13413 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
13414 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
13415 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
13416 done
13417 # CATALOGS depends on both $ac_dir and the user's LINGUAS
13418 # environment variable.
13419 INST_LINGUAS=
13420 if test -n "$ALL_LINGUAS"; then
13421 for presentlang in $ALL_LINGUAS; do
13422 useit=no
13423 if test "%UNSET%" != "$LINGUAS"; then
13424 desiredlanguages="$LINGUAS"
13425 else
13426 desiredlanguages="$ALL_LINGUAS"
13427 fi
13428 for desiredlang in $desiredlanguages; do
13429 # Use the presentlang catalog if desiredlang is
13430 # a. equal to presentlang, or
13431 # b. a variant of presentlang (because in this case,
13432 # presentlang can be used as a fallback for messages
13433 # which are not translated in the desiredlang catalog).
13434 case "$desiredlang" in
13435 "$presentlang"*) useit=yes;;
13436 esac
13437 done
13438 if test $useit = yes; then
13439 INST_LINGUAS="$INST_LINGUAS $presentlang"
13440 fi
13441 done
13442 fi
13443 CATALOGS=
13444 if test -n "$INST_LINGUAS"; then
13445 for lang in $INST_LINGUAS; do
13446 CATALOGS="$CATALOGS $lang.gmo"
13447 done
13448 fi
13449 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
13450 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"
13451 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
13452 if test -f "$f"; then
13453 case "$f" in
13454 *.orig | *.bak | *~) ;;
13455 *) cat "$f" >> "$ac_dir/Makefile" ;;
13456 esac
13457 fi
13458 done
13459 fi
13460 ;;
13461 esac
13462 done ;;
6bf9431b
BE
13463 esac
13464done
13465_ACEOF
13466
13467cat >>$CONFIG_STATUS <<\_ACEOF
13468
13469{ (exit 0); exit 0; }
13470_ACEOF
252b5132 13471chmod +x $CONFIG_STATUS
6bf9431b
BE
13472ac_clean_files=$ac_clean_files_save
13473
13474
13475# configure is writing to config.log, and then calls config.status.
13476# config.status does its own redirection, appending to config.log.
13477# Unfortunately, on DOS this fails, as config.log is still kept open
13478# by configure, so config.status won't be able to write to it; its
13479# output is simply discarded. So we exec the FD to /dev/null,
13480# effectively closing config.log, so it can be properly (re)opened and
13481# appended to by config.status. When coming back to configure, we
13482# need to make the FD available again.
13483if test "$no_create" != yes; then
13484 ac_cs_success=:
13485 ac_config_status_args=
13486 test "$silent" = yes &&
13487 ac_config_status_args="$ac_config_status_args --quiet"
13488 exec 5>/dev/null
13489 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13490 exec 5>>config.log
13491 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13492 # would make configure fail if this is the last instruction.
13493 $ac_cs_success || { (exit 1); exit 1; }
13494fi
252b5132 13495
This page took 0.904954 seconds and 4 git commands to generate.