]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - binutils/configure
*** empty log message ***
[thirdparty/binutils-gdb.git] / binutils / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if 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+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for 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
43 do
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
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo 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.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if 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
97 fi
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
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
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
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
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
152 done
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
187 case `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= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if 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
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_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.
231 as_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.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
247
248 case X$lt_ECHO in
249 X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
252 ;;
253 esac
254
255 ECHO=${lt_ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
258 shift
259 elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
261 :
262 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $ECHO works!
264 :
265 else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
268 fi
269
270 if 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
277 fi
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
283 if 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
381 fi
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.
385 lt_ECHO=$ECHO
386 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
388 fi
389
390
391
392
393 # Name of the host.
394 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395 # so uname gets run too.
396 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
397
398 exec 6>&1
399
400 #
401 # Initializations.
402 #
403 ac_default_prefix=/usr/local
404 ac_config_libobj_dir=.
405 cross_compiling=no
406 subdirs=
407 MFLAGS=
408 MAKEFLAGS=
409 SHELL=${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.
417 PACKAGE_NAME=
418 PACKAGE_TARNAME=
419 PACKAGE_VERSION=
420 PACKAGE_STRING=
421 PACKAGE_BUGREPORT=
422
423 ac_unique_file="ar.c"
424 # Factoring default headers for most tests.
425 ac_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
461 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO CPP WARN_CFLAGS NO_WERROR YACC LEX LEXLIB LEX_OUTPUT_ROOT USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GENINSRC_NEVER_TRUE GENINSRC_NEVER_FALSE HDEFINES CC_FOR_BUILD EXEEXT_FOR_BUILD DEMANGLER_NAME ALLOCA LIBICONV LTLIBICONV NLMCONV_DEFS BUILD_NLMCONV BUILD_SRCONV BUILD_DLLTOOL DLLTOOL_DEFS BUILD_WINDRES BUILD_WINDMC BUILD_DLLWRAP BUILD_MISC BUILD_INSTALL_MISC OBJDUMP_DEFS EMULATION EMULATION_VECTOR datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
462 ac_subst_files=''
463
464 # Initialize some variables set by options.
465 ac_init_help=
466 ac_init_version=false
467 # The variables have the same names as the options, with
468 # dashes changed to underlines.
469 cache_file=/dev/null
470 exec_prefix=NONE
471 no_create=
472 no_recursion=
473 prefix=NONE
474 program_prefix=NONE
475 program_suffix=NONE
476 program_transform_name=s,x,x,
477 silent=
478 site=
479 srcdir=
480 verbose=
481 x_includes=NONE
482 x_libraries=NONE
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.
489 bindir='${exec_prefix}/bin'
490 sbindir='${exec_prefix}/sbin'
491 libexecdir='${exec_prefix}/libexec'
492 datadir='${prefix}/share'
493 sysconfdir='${prefix}/etc'
494 sharedstatedir='${prefix}/com'
495 localstatedir='${prefix}/var'
496 libdir='${exec_prefix}/lib'
497 includedir='${prefix}/include'
498 oldincludedir='/usr/include'
499 infodir='${prefix}/info'
500 mandir='${prefix}/man'
501
502 ac_prev=
503 for ac_option
504 do
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
512 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
513
514 # Accept the important Cygnus configure options, so we can diagnose typos.
515
516 case $ac_option in
517
518 -bindir | --bindir | --bindi | --bind | --bin | --bi)
519 ac_prev=bindir ;;
520 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
521 bindir=$ac_optarg ;;
522
523 -build | --build | --buil | --bui | --bu)
524 ac_prev=build_alias ;;
525 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
526 build_alias=$ac_optarg ;;
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=*)
533 cache_file=$ac_optarg ;;
534
535 --config-cache | -C)
536 cache_file=config.cache ;;
537
538 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
539 ac_prev=datadir ;;
540 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
541 | --da=*)
542 datadir=$ac_optarg ;;
543
544 -disable-* | --disable-*)
545 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
546 # Reject names that are not valid shell variable names.
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" ;;
552
553 -enable-* | --enable-*)
554 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
555 # Reject names that are not valid shell variable names.
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"`;;
562 *) ac_optarg=yes ;;
563 esac
564 eval "enable_$ac_feature='$ac_optarg'" ;;
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=*)
573 exec_prefix=$ac_optarg ;;
574
575 -gas | --gas | --ga | --g)
576 # Obsolete; use --with-gas.
577 with_gas=yes ;;
578
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 ;;
585
586 -host | --host | --hos | --ho)
587 ac_prev=host_alias ;;
588 -host=* | --host=* | --hos=* | --ho=*)
589 host_alias=$ac_optarg ;;
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=*)
596 includedir=$ac_optarg ;;
597
598 -infodir | --infodir | --infodi | --infod | --info | --inf)
599 ac_prev=infodir ;;
600 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
601 infodir=$ac_optarg ;;
602
603 -libdir | --libdir | --libdi | --libd)
604 ac_prev=libdir ;;
605 -libdir=* | --libdir=* | --libdi=* | --libd=*)
606 libdir=$ac_optarg ;;
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=*)
613 libexecdir=$ac_optarg ;;
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=*)
622 localstatedir=$ac_optarg ;;
623
624 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
625 ac_prev=mandir ;;
626 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
627 mandir=$ac_optarg ;;
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 \
634 | --no-cr | --no-c | -n)
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=*)
648 oldincludedir=$ac_optarg ;;
649
650 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
651 ac_prev=prefix ;;
652 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
653 prefix=$ac_optarg ;;
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=*)
660 program_prefix=$ac_optarg ;;
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=*)
667 program_suffix=$ac_optarg ;;
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=*)
684 program_transform_name=$ac_optarg ;;
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=*)
694 sbindir=$ac_optarg ;;
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=*)
705 sharedstatedir=$ac_optarg ;;
706
707 -site | --site | --sit)
708 ac_prev=site ;;
709 -site=* | --site=* | --sit=*)
710 site=$ac_optarg ;;
711
712 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
713 ac_prev=srcdir ;;
714 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
715 srcdir=$ac_optarg ;;
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=*)
722 sysconfdir=$ac_optarg ;;
723
724 -target | --target | --targe | --targ | --tar | --ta | --t)
725 ac_prev=target_alias ;;
726 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
727 target_alias=$ac_optarg ;;
728
729 -v | -verbose | --verbose | --verbos | --verbo | --verb)
730 verbose=yes ;;
731
732 -version | --version | --versio | --versi | --vers | -V)
733 ac_init_version=: ;;
734
735 -with-* | --with-*)
736 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
737 # Reject names that are not valid shell variable names.
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; }; }
741 ac_package=`echo $ac_package| sed 's/-/_/g'`
742 case $ac_option in
743 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
744 *) ac_optarg=yes ;;
745 esac
746 eval "with_$ac_package='$ac_optarg'" ;;
747
748 -without-* | --without-*)
749 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
750 # Reject names that are not valid shell variable names.
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" ;;
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=*)
766 x_includes=$ac_optarg ;;
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=*)
773 x_libraries=$ac_optarg ;;
774
775 -*) { echo "$as_me: error: unrecognized option: $ac_option
776 Try \`$0 --help' for more information." >&2
777 { (exit 1); exit 1; }; }
778 ;;
779
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
790 *)
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}
796 ;;
797
798 esac
799 done
800
801 if test -n "$ac_prev"; then
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; }; }
805 fi
806
807 # Be sure to have absolute paths.
808 for ac_var in exec_prefix prefix
809 do
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
816 done
817
818 # Be sure to have absolute paths.
819 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
820 localstatedir libdir includedir oldincludedir infodir mandir
821 do
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; }; };;
827 esac
828 done
829
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.
833 build=$build_alias
834 host=$host_alias
835 target=$target_alias
836
837 # FIXME: To remove some day.
838 if 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
846 fi
847
848 ac_tool_prefix=
849 test -n "$host_alias" && ac_tool_prefix=$host_alias-
850
851 test "$silent" = yes && exec 6>/dev/null
852
853
854 # Find the source files, if location was not specified.
855 if test -z "$srcdir"; then
856 ac_srcdir_defaulted=yes
857 # Try the directory containing this script, then its parent.
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 ||
864 echo 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'`
870 srcdir=$ac_confdir
871 if test ! -r $srcdir/$ac_unique_file; then
872 srcdir=..
873 fi
874 else
875 ac_srcdir_defaulted=no
876 fi
877 if test ! -r $srcdir/$ac_unique_file; then
878 if test "$ac_srcdir_defaulted" = yes; then
879 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
880 { (exit 1); exit 1; }; }
881 else
882 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
883 { (exit 1); exit 1; }; }
884 fi
885 fi
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; }; }
889 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
890 ac_env_build_alias_set=${build_alias+set}
891 ac_env_build_alias_value=$build_alias
892 ac_cv_env_build_alias_set=${build_alias+set}
893 ac_cv_env_build_alias_value=$build_alias
894 ac_env_host_alias_set=${host_alias+set}
895 ac_env_host_alias_value=$host_alias
896 ac_cv_env_host_alias_set=${host_alias+set}
897 ac_cv_env_host_alias_value=$host_alias
898 ac_env_target_alias_set=${target_alias+set}
899 ac_env_target_alias_value=$target_alias
900 ac_cv_env_target_alias_set=${target_alias+set}
901 ac_cv_env_target_alias_value=$target_alias
902 ac_env_CC_set=${CC+set}
903 ac_env_CC_value=$CC
904 ac_cv_env_CC_set=${CC+set}
905 ac_cv_env_CC_value=$CC
906 ac_env_CFLAGS_set=${CFLAGS+set}
907 ac_env_CFLAGS_value=$CFLAGS
908 ac_cv_env_CFLAGS_set=${CFLAGS+set}
909 ac_cv_env_CFLAGS_value=$CFLAGS
910 ac_env_LDFLAGS_set=${LDFLAGS+set}
911 ac_env_LDFLAGS_value=$LDFLAGS
912 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
913 ac_cv_env_LDFLAGS_value=$LDFLAGS
914 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
915 ac_env_CPPFLAGS_value=$CPPFLAGS
916 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
917 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
918 ac_env_CPP_set=${CPP+set}
919 ac_env_CPP_value=$CPP
920 ac_cv_env_CPP_set=${CPP+set}
921 ac_cv_env_CPP_value=$CPP
922
923 #
924 # Report the --help message.
925 #
926 if 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.
931
932 Usage: $0 [OPTION]... [VAR=VALUE]...
933
934 To assign environment variables (e.g., CC, CFLAGS...), specify them as
935 VAR=VALUE. See below for descriptions of some of the useful variables.
936
937 Defaults for the options are specified in brackets.
938
939 Configuration:
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
953 Installation 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]
958
959 By default, \`make install' will install all the files in
960 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
961 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
962 for instance \`--prefix=\$HOME'.
963
964 For better control, use the options below.
965
966 Fine 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
980
981 cat <<\_ACEOF
982
983 Program 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
987
988 System 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
993 fi
994
995 if test -n "$ac_init_help"; then
996
997 cat <<\_ACEOF
998
999 Optional 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
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]
1010 --disable-libtool-lock avoid locking (might break parallel builds)
1011 --enable-targets alternative target configurations
1012 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
1013 --enable-werror treat compile warnings as errors
1014 --enable-build-warnings enable build-time compiler warnings
1015 --disable-nls do not use Native Language Support
1016 --enable-maintainer-mode enable make rules and dependencies not useful
1017 (and sometimes confusing) to the casual installer
1018 --disable-rpath do not hardcode runtime library paths
1019
1020 Optional Packages:
1021 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1022 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1023 --with-pic try to use only PIC/non-PIC objects [default=use
1024 both]
1025 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1026 --with-gnu-ld assume the C compiler uses GNU ld default=no
1027 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1028 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1029
1030 Some influential environment variables:
1031 CC C compiler command
1032 CFLAGS C compiler flags
1033 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1034 nonstandard directory <lib dir>
1035 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1036 headers in a nonstandard directory <include dir>
1037 CPP C preprocessor
1038
1039 Use these variables to override the choices made by `configure' or to help
1040 it to find libraries and programs with nonstandard names/locations.
1041
1042 _ACEOF
1043 fi
1044
1045 if test "$ac_init_help" = "recursive"; then
1046 # If there are subdirs, report their specific --help.
1047 ac_popdir=`pwd`
1048 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1049 test -d $ac_dir || continue
1050 ac_builddir=.
1051
1052 if test "$ac_dir" != .; then
1053 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1054 # A "../" for each directory in $ac_dir_suffix.
1055 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1056 else
1057 ac_dir_suffix= ac_top_builddir=
1058 fi
1059
1060 case $srcdir in
1061 .) # No --srcdir option. We are building in place.
1062 ac_srcdir=.
1063 if test -z "$ac_top_builddir"; then
1064 ac_top_srcdir=.
1065 else
1066 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1067 fi ;;
1068 [\\/]* | ?:[\\/]* ) # Absolute path.
1069 ac_srcdir=$srcdir$ac_dir_suffix;
1070 ac_top_srcdir=$srcdir ;;
1071 *) # Relative path.
1072 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1073 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1074 esac
1075
1076 # Do not use `cd foo && pwd` to compute absolute paths, because
1077 # the directories may not exist.
1078 case `pwd` in
1079 .) ac_abs_builddir="$ac_dir";;
1080 *)
1081 case "$ac_dir" in
1082 .) ac_abs_builddir=`pwd`;;
1083 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1084 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1085 esac;;
1086 esac
1087 case $ac_abs_builddir in
1088 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1089 *)
1090 case ${ac_top_builddir}. in
1091 .) ac_abs_top_builddir=$ac_abs_builddir;;
1092 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1093 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1094 esac;;
1095 esac
1096 case $ac_abs_builddir in
1097 .) ac_abs_srcdir=$ac_srcdir;;
1098 *)
1099 case $ac_srcdir in
1100 .) ac_abs_srcdir=$ac_abs_builddir;;
1101 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1102 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1103 esac;;
1104 esac
1105 case $ac_abs_builddir in
1106 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1107 *)
1108 case $ac_top_srcdir in
1109 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1110 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1111 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1112 esac;;
1113 esac
1114
1115 cd $ac_dir
1116 # Check for guested configure; otherwise get Cygnus style configure.
1117 if test -f $ac_srcdir/configure.gnu; then
1118 echo
1119 $SHELL $ac_srcdir/configure.gnu --help=recursive
1120 elif test -f $ac_srcdir/configure; then
1121 echo
1122 $SHELL $ac_srcdir/configure --help=recursive
1123 elif test -f $ac_srcdir/configure.ac ||
1124 test -f $ac_srcdir/configure.in; then
1125 echo
1126 $ac_configure --help
1127 else
1128 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1129 fi
1130 cd $ac_popdir
1131 done
1132 fi
1133
1134 test -n "$ac_init_help" && exit 0
1135 if $ac_init_version; then
1136 cat <<\_ACEOF
1137
1138 Copyright (C) 2003 Free Software Foundation, Inc.
1139 This configure script is free software; the Free Software Foundation
1140 gives unlimited permission to copy, distribute and modify it.
1141 _ACEOF
1142 exit 0
1143 fi
1144 exec 5>config.log
1145 cat >&5 <<_ACEOF
1146 This file contains any messages produced by compilers while
1147 running configure, to aid debugging if configure makes a mistake.
1148
1149 It was created by $as_me, which was
1150 generated by GNU Autoconf 2.59. Invocation command line was
1151
1152 $ $0 $@
1153
1154 _ACEOF
1155 {
1156 cat <<_ASUNAME
1157 ## --------- ##
1158 ## Platform. ##
1159 ## --------- ##
1160
1161 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1162 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1163 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1164 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1165 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1166
1167 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1168 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1169
1170 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1171 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1172 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1173 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1174 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1175 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1176 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1177
1178 _ASUNAME
1179
1180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1181 for as_dir in $PATH
1182 do
1183 IFS=$as_save_IFS
1184 test -z "$as_dir" && as_dir=.
1185 echo "PATH: $as_dir"
1186 done
1187
1188 } >&5
1189
1190 cat >&5 <<_ACEOF
1191
1192
1193 ## ----------- ##
1194 ## Core tests. ##
1195 ## ----------- ##
1196
1197 _ACEOF
1198
1199
1200 # Keep a trace of the command line.
1201 # Strip out --no-create and --no-recursion so they do not pile up.
1202 # Strip out --silent because we don't want to record it for future runs.
1203 # Also quote any args containing shell meta-characters.
1204 # Make two passes to allow for proper duplicate-argument suppression.
1205 ac_configure_args=
1206 ac_configure_args0=
1207 ac_configure_args1=
1208 ac_sep=
1209 ac_must_keep_next=false
1210 for ac_pass in 1 2
1211 do
1212 for ac_arg
1213 do
1214 case $ac_arg in
1215 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1216 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1217 | -silent | --silent | --silen | --sile | --sil)
1218 continue ;;
1219 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1220 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1221 esac
1222 case $ac_pass in
1223 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1224 2)
1225 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1226 if test $ac_must_keep_next = true; then
1227 ac_must_keep_next=false # Got value, back to normal.
1228 else
1229 case $ac_arg in
1230 *=* | --config-cache | -C | -disable-* | --disable-* \
1231 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1232 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1233 | -with-* | --with-* | -without-* | --without-* | --x)
1234 case "$ac_configure_args0 " in
1235 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1236 esac
1237 ;;
1238 -* ) ac_must_keep_next=true ;;
1239 esac
1240 fi
1241 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1242 # Get rid of the leading space.
1243 ac_sep=" "
1244 ;;
1245 esac
1246 done
1247 done
1248 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1249 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1250
1251 # When interrupted or exit'd, cleanup temporary files, and complete
1252 # config.log. We remove comments because anyway the quotes in there
1253 # would cause problems or look ugly.
1254 # WARNING: Be sure not to use single quotes in there, as some shells,
1255 # such as our DU 5.0 friend, will then `close' the trap.
1256 trap 'exit_status=$?
1257 # Save into config.log some information that might help in debugging.
1258 {
1259 echo
1260
1261 cat <<\_ASBOX
1262 ## ---------------- ##
1263 ## Cache variables. ##
1264 ## ---------------- ##
1265 _ASBOX
1266 echo
1267 # The following way of writing the cache mishandles newlines in values,
1268 {
1269 (set) 2>&1 |
1270 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1271 *ac_space=\ *)
1272 sed -n \
1273 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1274 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1275 ;;
1276 *)
1277 sed -n \
1278 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1279 ;;
1280 esac;
1281 }
1282 echo
1283
1284 cat <<\_ASBOX
1285 ## ----------------- ##
1286 ## Output variables. ##
1287 ## ----------------- ##
1288 _ASBOX
1289 echo
1290 for ac_var in $ac_subst_vars
1291 do
1292 eval ac_val=$`echo $ac_var`
1293 echo "$ac_var='"'"'$ac_val'"'"'"
1294 done | sort
1295 echo
1296
1297 if test -n "$ac_subst_files"; then
1298 cat <<\_ASBOX
1299 ## ------------- ##
1300 ## Output files. ##
1301 ## ------------- ##
1302 _ASBOX
1303 echo
1304 for ac_var in $ac_subst_files
1305 do
1306 eval ac_val=$`echo $ac_var`
1307 echo "$ac_var='"'"'$ac_val'"'"'"
1308 done | sort
1309 echo
1310 fi
1311
1312 if test -s confdefs.h; then
1313 cat <<\_ASBOX
1314 ## ----------- ##
1315 ## confdefs.h. ##
1316 ## ----------- ##
1317 _ASBOX
1318 echo
1319 sed "/^$/d" confdefs.h | sort
1320 echo
1321 fi
1322 test "$ac_signal" != 0 &&
1323 echo "$as_me: caught signal $ac_signal"
1324 echo "$as_me: exit $exit_status"
1325 } >&5
1326 rm -f core *.core &&
1327 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1328 exit $exit_status
1329 ' 0
1330 for ac_signal in 1 2 13 15; do
1331 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1332 done
1333 ac_signal=0
1334
1335 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1336 rm -rf conftest* confdefs.h
1337 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1338 echo >confdefs.h
1339
1340 # Predefined preprocessor variables.
1341
1342 cat >>confdefs.h <<_ACEOF
1343 #define PACKAGE_NAME "$PACKAGE_NAME"
1344 _ACEOF
1345
1346
1347 cat >>confdefs.h <<_ACEOF
1348 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1349 _ACEOF
1350
1351
1352 cat >>confdefs.h <<_ACEOF
1353 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1354 _ACEOF
1355
1356
1357 cat >>confdefs.h <<_ACEOF
1358 #define PACKAGE_STRING "$PACKAGE_STRING"
1359 _ACEOF
1360
1361
1362 cat >>confdefs.h <<_ACEOF
1363 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1364 _ACEOF
1365
1366
1367 # Let the site file select an alternate cache file if it wants to.
1368 # Prefer explicitly selected file to automatically selected ones.
1369 if test -z "$CONFIG_SITE"; then
1370 if test "x$prefix" != xNONE; then
1371 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1372 else
1373 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1374 fi
1375 fi
1376 for ac_site_file in $CONFIG_SITE; do
1377 if test -r "$ac_site_file"; then
1378 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1379 echo "$as_me: loading site script $ac_site_file" >&6;}
1380 sed 's/^/| /' "$ac_site_file" >&5
1381 . "$ac_site_file"
1382 fi
1383 done
1384
1385 if test -r "$cache_file"; then
1386 # Some versions of bash will fail to source /dev/null (special
1387 # files actually), so we avoid doing that.
1388 if test -f "$cache_file"; then
1389 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1390 echo "$as_me: loading cache $cache_file" >&6;}
1391 case $cache_file in
1392 [\\/]* | ?:[\\/]* ) . $cache_file;;
1393 *) . ./$cache_file;;
1394 esac
1395 fi
1396 else
1397 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1398 echo "$as_me: creating cache $cache_file" >&6;}
1399 >$cache_file
1400 fi
1401
1402 # Check that the precious variables saved in the cache have kept the same
1403 # value.
1404 ac_cache_corrupted=false
1405 for ac_var in `(set) 2>&1 |
1406 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1407 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1408 eval ac_new_set=\$ac_env_${ac_var}_set
1409 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1410 eval ac_new_val="\$ac_env_${ac_var}_value"
1411 case $ac_old_set,$ac_new_set in
1412 set,)
1413 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1414 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1415 ac_cache_corrupted=: ;;
1416 ,set)
1417 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1418 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1419 ac_cache_corrupted=: ;;
1420 ,);;
1421 *)
1422 if test "x$ac_old_val" != "x$ac_new_val"; then
1423 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1424 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1425 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1426 echo "$as_me: former value: $ac_old_val" >&2;}
1427 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1428 echo "$as_me: current value: $ac_new_val" >&2;}
1429 ac_cache_corrupted=:
1430 fi;;
1431 esac
1432 # Pass precious variables to config.status.
1433 if test "$ac_new_set" = set; then
1434 case $ac_new_val in
1435 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1436 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1437 *) ac_arg=$ac_var=$ac_new_val ;;
1438 esac
1439 case " $ac_configure_args " in
1440 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1441 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1442 esac
1443 fi
1444 done
1445 if $ac_cache_corrupted; then
1446 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1447 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1448 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1449 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1450 { (exit 1); exit 1; }; }
1451 fi
1452
1453 ac_ext=c
1454 ac_cpp='$CPP $CPPFLAGS'
1455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478 ac_aux_dir=
1479 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1480 if test -f $ac_dir/install-sh; then
1481 ac_aux_dir=$ac_dir
1482 ac_install_sh="$ac_aux_dir/install-sh -c"
1483 break
1484 elif test -f $ac_dir/install.sh; then
1485 ac_aux_dir=$ac_dir
1486 ac_install_sh="$ac_aux_dir/install.sh -c"
1487 break
1488 elif test -f $ac_dir/shtool; then
1489 ac_aux_dir=$ac_dir
1490 ac_install_sh="$ac_aux_dir/shtool install -c"
1491 break
1492 fi
1493 done
1494 if test -z "$ac_aux_dir"; then
1495 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1496 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1497 { (exit 1); exit 1; }; }
1498 fi
1499 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1500 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1501 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1502
1503 # Make sure we can run config.sub.
1504 $ac_config_sub sun4 >/dev/null 2>&1 ||
1505 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1506 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1507 { (exit 1); exit 1; }; }
1508
1509 echo "$as_me:$LINENO: checking build system type" >&5
1510 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1511 if test "${ac_cv_build+set}" = set; then
1512 echo $ECHO_N "(cached) $ECHO_C" >&6
1513 else
1514 ac_cv_build_alias=$build_alias
1515 test -z "$ac_cv_build_alias" &&
1516 ac_cv_build_alias=`$ac_config_guess`
1517 test -z "$ac_cv_build_alias" &&
1518 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1519 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1520 { (exit 1); exit 1; }; }
1521 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1522 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1523 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1524 { (exit 1); exit 1; }; }
1525
1526 fi
1527 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1528 echo "${ECHO_T}$ac_cv_build" >&6
1529 build=$ac_cv_build
1530 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1531 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1532 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1533
1534
1535 echo "$as_me:$LINENO: checking host system type" >&5
1536 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1537 if test "${ac_cv_host+set}" = set; then
1538 echo $ECHO_N "(cached) $ECHO_C" >&6
1539 else
1540 ac_cv_host_alias=$host_alias
1541 test -z "$ac_cv_host_alias" &&
1542 ac_cv_host_alias=$ac_cv_build_alias
1543 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1544 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1545 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1546 { (exit 1); exit 1; }; }
1547
1548 fi
1549 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1550 echo "${ECHO_T}$ac_cv_host" >&6
1551 host=$ac_cv_host
1552 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1553 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1554 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1555
1556
1557 echo "$as_me:$LINENO: checking target system type" >&5
1558 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1559 if test "${ac_cv_target+set}" = set; then
1560 echo $ECHO_N "(cached) $ECHO_C" >&6
1561 else
1562 ac_cv_target_alias=$target_alias
1563 test "x$ac_cv_target_alias" = "x" &&
1564 ac_cv_target_alias=$ac_cv_host_alias
1565 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1566 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1567 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1568 { (exit 1); exit 1; }; }
1569
1570 fi
1571 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1572 echo "${ECHO_T}$ac_cv_target" >&6
1573 target=$ac_cv_target
1574 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1575 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1576 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1577
1578
1579 # The aliases save the names the user supplied, while $host etc.
1580 # will get canonicalized.
1581 test -n "$target_alias" &&
1582 test "$program_prefix$program_suffix$program_transform_name" = \
1583 NONENONEs,x,x, &&
1584 program_prefix=${target_alias}-
1585 ac_ext=c
1586 ac_cpp='$CPP $CPPFLAGS'
1587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1590 if test -n "$ac_tool_prefix"; then
1591 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1592 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1593 echo "$as_me:$LINENO: checking for $ac_word" >&5
1594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1595 if test "${ac_cv_prog_CC+set}" = set; then
1596 echo $ECHO_N "(cached) $ECHO_C" >&6
1597 else
1598 if test -n "$CC"; then
1599 ac_cv_prog_CC="$CC" # Let the user override the test.
1600 else
1601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1602 for as_dir in $PATH
1603 do
1604 IFS=$as_save_IFS
1605 test -z "$as_dir" && as_dir=.
1606 for ac_exec_ext in '' $ac_executable_extensions; do
1607 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1608 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1610 break 2
1611 fi
1612 done
1613 done
1614
1615 fi
1616 fi
1617 CC=$ac_cv_prog_CC
1618 if test -n "$CC"; then
1619 echo "$as_me:$LINENO: result: $CC" >&5
1620 echo "${ECHO_T}$CC" >&6
1621 else
1622 echo "$as_me:$LINENO: result: no" >&5
1623 echo "${ECHO_T}no" >&6
1624 fi
1625
1626 fi
1627 if test -z "$ac_cv_prog_CC"; then
1628 ac_ct_CC=$CC
1629 # Extract the first word of "gcc", so it can be a program name with args.
1630 set dummy gcc; ac_word=$2
1631 echo "$as_me:$LINENO: checking for $ac_word" >&5
1632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1633 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1634 echo $ECHO_N "(cached) $ECHO_C" >&6
1635 else
1636 if test -n "$ac_ct_CC"; then
1637 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1638 else
1639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1640 for as_dir in $PATH
1641 do
1642 IFS=$as_save_IFS
1643 test -z "$as_dir" && as_dir=.
1644 for ac_exec_ext in '' $ac_executable_extensions; do
1645 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1646 ac_cv_prog_ac_ct_CC="gcc"
1647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1648 break 2
1649 fi
1650 done
1651 done
1652
1653 fi
1654 fi
1655 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1656 if test -n "$ac_ct_CC"; then
1657 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1658 echo "${ECHO_T}$ac_ct_CC" >&6
1659 else
1660 echo "$as_me:$LINENO: result: no" >&5
1661 echo "${ECHO_T}no" >&6
1662 fi
1663
1664 CC=$ac_ct_CC
1665 else
1666 CC="$ac_cv_prog_CC"
1667 fi
1668
1669 if test -z "$CC"; then
1670 if test -n "$ac_tool_prefix"; then
1671 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1672 set dummy ${ac_tool_prefix}cc; ac_word=$2
1673 echo "$as_me:$LINENO: checking for $ac_word" >&5
1674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1675 if test "${ac_cv_prog_CC+set}" = set; then
1676 echo $ECHO_N "(cached) $ECHO_C" >&6
1677 else
1678 if test -n "$CC"; then
1679 ac_cv_prog_CC="$CC" # Let the user override the test.
1680 else
1681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1682 for as_dir in $PATH
1683 do
1684 IFS=$as_save_IFS
1685 test -z "$as_dir" && as_dir=.
1686 for ac_exec_ext in '' $ac_executable_extensions; do
1687 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1688 ac_cv_prog_CC="${ac_tool_prefix}cc"
1689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1690 break 2
1691 fi
1692 done
1693 done
1694
1695 fi
1696 fi
1697 CC=$ac_cv_prog_CC
1698 if test -n "$CC"; then
1699 echo "$as_me:$LINENO: result: $CC" >&5
1700 echo "${ECHO_T}$CC" >&6
1701 else
1702 echo "$as_me:$LINENO: result: no" >&5
1703 echo "${ECHO_T}no" >&6
1704 fi
1705
1706 fi
1707 if test -z "$ac_cv_prog_CC"; then
1708 ac_ct_CC=$CC
1709 # Extract the first word of "cc", so it can be a program name with args.
1710 set dummy cc; ac_word=$2
1711 echo "$as_me:$LINENO: checking for $ac_word" >&5
1712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1713 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1714 echo $ECHO_N "(cached) $ECHO_C" >&6
1715 else
1716 if test -n "$ac_ct_CC"; then
1717 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1718 else
1719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1720 for as_dir in $PATH
1721 do
1722 IFS=$as_save_IFS
1723 test -z "$as_dir" && as_dir=.
1724 for ac_exec_ext in '' $ac_executable_extensions; do
1725 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1726 ac_cv_prog_ac_ct_CC="cc"
1727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1728 break 2
1729 fi
1730 done
1731 done
1732
1733 fi
1734 fi
1735 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1736 if test -n "$ac_ct_CC"; then
1737 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1738 echo "${ECHO_T}$ac_ct_CC" >&6
1739 else
1740 echo "$as_me:$LINENO: result: no" >&5
1741 echo "${ECHO_T}no" >&6
1742 fi
1743
1744 CC=$ac_ct_CC
1745 else
1746 CC="$ac_cv_prog_CC"
1747 fi
1748
1749 fi
1750 if test -z "$CC"; then
1751 # Extract the first word of "cc", so it can be a program name with args.
1752 set dummy cc; ac_word=$2
1753 echo "$as_me:$LINENO: checking for $ac_word" >&5
1754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1755 if test "${ac_cv_prog_CC+set}" = set; then
1756 echo $ECHO_N "(cached) $ECHO_C" >&6
1757 else
1758 if test -n "$CC"; then
1759 ac_cv_prog_CC="$CC" # Let the user override the test.
1760 else
1761 ac_prog_rejected=no
1762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1763 for as_dir in $PATH
1764 do
1765 IFS=$as_save_IFS
1766 test -z "$as_dir" && as_dir=.
1767 for ac_exec_ext in '' $ac_executable_extensions; do
1768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1769 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1770 ac_prog_rejected=yes
1771 continue
1772 fi
1773 ac_cv_prog_CC="cc"
1774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1775 break 2
1776 fi
1777 done
1778 done
1779
1780 if test $ac_prog_rejected = yes; then
1781 # We found a bogon in the path, so make sure we never use it.
1782 set dummy $ac_cv_prog_CC
1783 shift
1784 if test $# != 0; then
1785 # We chose a different compiler from the bogus one.
1786 # However, it has the same basename, so the bogon will be chosen
1787 # first if we set CC to just the basename; use the full file name.
1788 shift
1789 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1790 fi
1791 fi
1792 fi
1793 fi
1794 CC=$ac_cv_prog_CC
1795 if test -n "$CC"; then
1796 echo "$as_me:$LINENO: result: $CC" >&5
1797 echo "${ECHO_T}$CC" >&6
1798 else
1799 echo "$as_me:$LINENO: result: no" >&5
1800 echo "${ECHO_T}no" >&6
1801 fi
1802
1803 fi
1804 if test -z "$CC"; then
1805 if test -n "$ac_tool_prefix"; then
1806 for ac_prog in cl
1807 do
1808 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1809 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1810 echo "$as_me:$LINENO: checking for $ac_word" >&5
1811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1812 if test "${ac_cv_prog_CC+set}" = set; then
1813 echo $ECHO_N "(cached) $ECHO_C" >&6
1814 else
1815 if test -n "$CC"; then
1816 ac_cv_prog_CC="$CC" # Let the user override the test.
1817 else
1818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1819 for as_dir in $PATH
1820 do
1821 IFS=$as_save_IFS
1822 test -z "$as_dir" && as_dir=.
1823 for ac_exec_ext in '' $ac_executable_extensions; do
1824 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1825 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1827 break 2
1828 fi
1829 done
1830 done
1831
1832 fi
1833 fi
1834 CC=$ac_cv_prog_CC
1835 if test -n "$CC"; then
1836 echo "$as_me:$LINENO: result: $CC" >&5
1837 echo "${ECHO_T}$CC" >&6
1838 else
1839 echo "$as_me:$LINENO: result: no" >&5
1840 echo "${ECHO_T}no" >&6
1841 fi
1842
1843 test -n "$CC" && break
1844 done
1845 fi
1846 if test -z "$CC"; then
1847 ac_ct_CC=$CC
1848 for ac_prog in cl
1849 do
1850 # Extract the first word of "$ac_prog", so it can be a program name with args.
1851 set dummy $ac_prog; ac_word=$2
1852 echo "$as_me:$LINENO: checking for $ac_word" >&5
1853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1854 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1855 echo $ECHO_N "(cached) $ECHO_C" >&6
1856 else
1857 if test -n "$ac_ct_CC"; then
1858 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1859 else
1860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1861 for as_dir in $PATH
1862 do
1863 IFS=$as_save_IFS
1864 test -z "$as_dir" && as_dir=.
1865 for ac_exec_ext in '' $ac_executable_extensions; do
1866 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1867 ac_cv_prog_ac_ct_CC="$ac_prog"
1868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1869 break 2
1870 fi
1871 done
1872 done
1873
1874 fi
1875 fi
1876 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1877 if test -n "$ac_ct_CC"; then
1878 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1879 echo "${ECHO_T}$ac_ct_CC" >&6
1880 else
1881 echo "$as_me:$LINENO: result: no" >&5
1882 echo "${ECHO_T}no" >&6
1883 fi
1884
1885 test -n "$ac_ct_CC" && break
1886 done
1887
1888 CC=$ac_ct_CC
1889 fi
1890
1891 fi
1892
1893
1894 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1895 See \`config.log' for more details." >&5
1896 echo "$as_me: error: no acceptable C compiler found in \$PATH
1897 See \`config.log' for more details." >&2;}
1898 { (exit 1); exit 1; }; }
1899
1900 # Provide some information about the compiler.
1901 echo "$as_me:$LINENO:" \
1902 "checking for C compiler version" >&5
1903 ac_compiler=`set X $ac_compile; echo $2`
1904 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1905 (eval $ac_compiler --version </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 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1915 (eval $ac_compiler -V </dev/null >&5) 2>&5
1916 ac_status=$?
1917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1918 (exit $ac_status); }
1919
1920 cat >conftest.$ac_ext <<_ACEOF
1921 /* confdefs.h. */
1922 _ACEOF
1923 cat confdefs.h >>conftest.$ac_ext
1924 cat >>conftest.$ac_ext <<_ACEOF
1925 /* end confdefs.h. */
1926
1927 int
1928 main ()
1929 {
1930
1931 ;
1932 return 0;
1933 }
1934 _ACEOF
1935 ac_clean_files_save=$ac_clean_files
1936 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1937 # Try to create an executable without -o first, disregard a.out.
1938 # It will help us diagnose broken compilers, and finding out an intuition
1939 # of exeext.
1940 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1941 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1942 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1943 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1944 (eval $ac_link_default) 2>&5
1945 ac_status=$?
1946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1947 (exit $ac_status); }; then
1948 # Find the output, starting from the most likely. This scheme is
1949 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1950 # resort.
1951
1952 # Be careful to initialize this variable, since it used to be cached.
1953 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1954 ac_cv_exeext=
1955 # b.out is created by i960 compilers.
1956 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1957 do
1958 test -f "$ac_file" || continue
1959 case $ac_file in
1960 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1961 ;;
1962 conftest.$ac_ext )
1963 # This is the source file.
1964 ;;
1965 [ab].out )
1966 # We found the default executable, but exeext='' is most
1967 # certainly right.
1968 break;;
1969 *.* )
1970 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1971 # FIXME: I believe we export ac_cv_exeext for Libtool,
1972 # but it would be cool to find out if it's true. Does anybody
1973 # maintain Libtool? --akim.
1974 export ac_cv_exeext
1975 break;;
1976 * )
1977 break;;
1978 esac
1979 done
1980 else
1981 echo "$as_me: failed program was:" >&5
1982 sed 's/^/| /' conftest.$ac_ext >&5
1983
1984 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1985 See \`config.log' for more details." >&5
1986 echo "$as_me: error: C compiler cannot create executables
1987 See \`config.log' for more details." >&2;}
1988 { (exit 77); exit 77; }; }
1989 fi
1990
1991 ac_exeext=$ac_cv_exeext
1992 echo "$as_me:$LINENO: result: $ac_file" >&5
1993 echo "${ECHO_T}$ac_file" >&6
1994
1995 # Check the compiler produces executables we can run. If not, either
1996 # the compiler is broken, or we cross compile.
1997 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1998 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1999 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2000 # If not cross compiling, check that we can run a simple program.
2001 if test "$cross_compiling" != yes; then
2002 if { ac_try='./$ac_file'
2003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2004 (eval $ac_try) 2>&5
2005 ac_status=$?
2006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007 (exit $ac_status); }; }; then
2008 cross_compiling=no
2009 else
2010 if test "$cross_compiling" = maybe; then
2011 cross_compiling=yes
2012 else
2013 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2014 If you meant to cross compile, use \`--host'.
2015 See \`config.log' for more details." >&5
2016 echo "$as_me: error: cannot run C compiled programs.
2017 If you meant to cross compile, use \`--host'.
2018 See \`config.log' for more details." >&2;}
2019 { (exit 1); exit 1; }; }
2020 fi
2021 fi
2022 fi
2023 echo "$as_me:$LINENO: result: yes" >&5
2024 echo "${ECHO_T}yes" >&6
2025
2026 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2027 ac_clean_files=$ac_clean_files_save
2028 # Check the compiler produces executables we can run. If not, either
2029 # the compiler is broken, or we cross compile.
2030 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2031 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2032 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2033 echo "${ECHO_T}$cross_compiling" >&6
2034
2035 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2036 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2038 (eval $ac_link) 2>&5
2039 ac_status=$?
2040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2041 (exit $ac_status); }; then
2042 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2043 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2044 # work properly (i.e., refer to `conftest.exe'), while it won't with
2045 # `rm'.
2046 for ac_file in conftest.exe conftest conftest.*; do
2047 test -f "$ac_file" || continue
2048 case $ac_file in
2049 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2050 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2051 export ac_cv_exeext
2052 break;;
2053 * ) break;;
2054 esac
2055 done
2056 else
2057 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2058 See \`config.log' for more details." >&5
2059 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2060 See \`config.log' for more details." >&2;}
2061 { (exit 1); exit 1; }; }
2062 fi
2063
2064 rm -f conftest$ac_cv_exeext
2065 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2066 echo "${ECHO_T}$ac_cv_exeext" >&6
2067
2068 rm -f conftest.$ac_ext
2069 EXEEXT=$ac_cv_exeext
2070 ac_exeext=$EXEEXT
2071 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2072 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2073 if test "${ac_cv_objext+set}" = set; then
2074 echo $ECHO_N "(cached) $ECHO_C" >&6
2075 else
2076 cat >conftest.$ac_ext <<_ACEOF
2077 /* confdefs.h. */
2078 _ACEOF
2079 cat confdefs.h >>conftest.$ac_ext
2080 cat >>conftest.$ac_ext <<_ACEOF
2081 /* end confdefs.h. */
2082
2083 int
2084 main ()
2085 {
2086
2087 ;
2088 return 0;
2089 }
2090 _ACEOF
2091 rm -f conftest.o conftest.obj
2092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2093 (eval $ac_compile) 2>&5
2094 ac_status=$?
2095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2096 (exit $ac_status); }; then
2097 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2098 case $ac_file in
2099 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2100 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2101 break;;
2102 esac
2103 done
2104 else
2105 echo "$as_me: failed program was:" >&5
2106 sed 's/^/| /' conftest.$ac_ext >&5
2107
2108 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2109 See \`config.log' for more details." >&5
2110 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2111 See \`config.log' for more details." >&2;}
2112 { (exit 1); exit 1; }; }
2113 fi
2114
2115 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2116 fi
2117 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2118 echo "${ECHO_T}$ac_cv_objext" >&6
2119 OBJEXT=$ac_cv_objext
2120 ac_objext=$OBJEXT
2121 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2122 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2123 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2124 echo $ECHO_N "(cached) $ECHO_C" >&6
2125 else
2126 cat >conftest.$ac_ext <<_ACEOF
2127 /* confdefs.h. */
2128 _ACEOF
2129 cat confdefs.h >>conftest.$ac_ext
2130 cat >>conftest.$ac_ext <<_ACEOF
2131 /* end confdefs.h. */
2132
2133 int
2134 main ()
2135 {
2136 #ifndef __GNUC__
2137 choke me
2138 #endif
2139
2140 ;
2141 return 0;
2142 }
2143 _ACEOF
2144 rm -f conftest.$ac_objext
2145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2146 (eval $ac_compile) 2>conftest.er1
2147 ac_status=$?
2148 grep -v '^ *+' conftest.er1 >conftest.err
2149 rm -f conftest.er1
2150 cat conftest.err >&5
2151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152 (exit $ac_status); } &&
2153 { ac_try='test -z "$ac_c_werror_flag"
2154 || test ! -s conftest.err'
2155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2156 (eval $ac_try) 2>&5
2157 ac_status=$?
2158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159 (exit $ac_status); }; } &&
2160 { ac_try='test -s conftest.$ac_objext'
2161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2162 (eval $ac_try) 2>&5
2163 ac_status=$?
2164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2165 (exit $ac_status); }; }; then
2166 ac_compiler_gnu=yes
2167 else
2168 echo "$as_me: failed program was:" >&5
2169 sed 's/^/| /' conftest.$ac_ext >&5
2170
2171 ac_compiler_gnu=no
2172 fi
2173 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2174 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2175
2176 fi
2177 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2178 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2179 GCC=`test $ac_compiler_gnu = yes && echo yes`
2180 ac_test_CFLAGS=${CFLAGS+set}
2181 ac_save_CFLAGS=$CFLAGS
2182 CFLAGS="-g"
2183 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2184 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2185 if test "${ac_cv_prog_cc_g+set}" = set; then
2186 echo $ECHO_N "(cached) $ECHO_C" >&6
2187 else
2188 cat >conftest.$ac_ext <<_ACEOF
2189 /* confdefs.h. */
2190 _ACEOF
2191 cat confdefs.h >>conftest.$ac_ext
2192 cat >>conftest.$ac_ext <<_ACEOF
2193 /* end confdefs.h. */
2194
2195 int
2196 main ()
2197 {
2198
2199 ;
2200 return 0;
2201 }
2202 _ACEOF
2203 rm -f conftest.$ac_objext
2204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2205 (eval $ac_compile) 2>conftest.er1
2206 ac_status=$?
2207 grep -v '^ *+' conftest.er1 >conftest.err
2208 rm -f conftest.er1
2209 cat conftest.err >&5
2210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2211 (exit $ac_status); } &&
2212 { ac_try='test -z "$ac_c_werror_flag"
2213 || test ! -s conftest.err'
2214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2215 (eval $ac_try) 2>&5
2216 ac_status=$?
2217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2218 (exit $ac_status); }; } &&
2219 { ac_try='test -s conftest.$ac_objext'
2220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2221 (eval $ac_try) 2>&5
2222 ac_status=$?
2223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224 (exit $ac_status); }; }; then
2225 ac_cv_prog_cc_g=yes
2226 else
2227 echo "$as_me: failed program was:" >&5
2228 sed 's/^/| /' conftest.$ac_ext >&5
2229
2230 ac_cv_prog_cc_g=no
2231 fi
2232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2233 fi
2234 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2235 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2236 if test "$ac_test_CFLAGS" = set; then
2237 CFLAGS=$ac_save_CFLAGS
2238 elif test $ac_cv_prog_cc_g = yes; then
2239 if test "$GCC" = yes; then
2240 CFLAGS="-g -O2"
2241 else
2242 CFLAGS="-g"
2243 fi
2244 else
2245 if test "$GCC" = yes; then
2246 CFLAGS="-O2"
2247 else
2248 CFLAGS=
2249 fi
2250 fi
2251 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2252 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2253 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2254 echo $ECHO_N "(cached) $ECHO_C" >&6
2255 else
2256 ac_cv_prog_cc_stdc=no
2257 ac_save_CC=$CC
2258 cat >conftest.$ac_ext <<_ACEOF
2259 /* confdefs.h. */
2260 _ACEOF
2261 cat confdefs.h >>conftest.$ac_ext
2262 cat >>conftest.$ac_ext <<_ACEOF
2263 /* end confdefs.h. */
2264 #include <stdarg.h>
2265 #include <stdio.h>
2266 #include <sys/types.h>
2267 #include <sys/stat.h>
2268 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2269 struct buf { int x; };
2270 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2271 static char *e (p, i)
2272 char **p;
2273 int i;
2274 {
2275 return p[i];
2276 }
2277 static char *f (char * (*g) (char **, int), char **p, ...)
2278 {
2279 char *s;
2280 va_list v;
2281 va_start (v,p);
2282 s = g (p, va_arg (v,int));
2283 va_end (v);
2284 return s;
2285 }
2286
2287 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2288 function prototypes and stuff, but not '\xHH' hex character constants.
2289 These don't provoke an error unfortunately, instead are silently treated
2290 as 'x'. The following induces an error, until -std1 is added to get
2291 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2292 array size at least. It's necessary to write '\x00'==0 to get something
2293 that's true only with -std1. */
2294 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2295
2296 int test (int i, double x);
2297 struct s1 {int (*f) (int a);};
2298 struct s2 {int (*f) (double a);};
2299 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2300 int argc;
2301 char **argv;
2302 int
2303 main ()
2304 {
2305 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2306 ;
2307 return 0;
2308 }
2309 _ACEOF
2310 # Don't try gcc -ansi; that turns off useful extensions and
2311 # breaks some systems' header files.
2312 # AIX -qlanglvl=ansi
2313 # Ultrix and OSF/1 -std1
2314 # HP-UX 10.20 and later -Ae
2315 # HP-UX older versions -Aa -D_HPUX_SOURCE
2316 # SVR4 -Xc -D__EXTENSIONS__
2317 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2318 do
2319 CC="$ac_save_CC $ac_arg"
2320 rm -f conftest.$ac_objext
2321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2322 (eval $ac_compile) 2>conftest.er1
2323 ac_status=$?
2324 grep -v '^ *+' conftest.er1 >conftest.err
2325 rm -f conftest.er1
2326 cat conftest.err >&5
2327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328 (exit $ac_status); } &&
2329 { ac_try='test -z "$ac_c_werror_flag"
2330 || test ! -s conftest.err'
2331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2332 (eval $ac_try) 2>&5
2333 ac_status=$?
2334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335 (exit $ac_status); }; } &&
2336 { ac_try='test -s conftest.$ac_objext'
2337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2338 (eval $ac_try) 2>&5
2339 ac_status=$?
2340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2341 (exit $ac_status); }; }; then
2342 ac_cv_prog_cc_stdc=$ac_arg
2343 break
2344 else
2345 echo "$as_me: failed program was:" >&5
2346 sed 's/^/| /' conftest.$ac_ext >&5
2347
2348 fi
2349 rm -f conftest.err conftest.$ac_objext
2350 done
2351 rm -f conftest.$ac_ext conftest.$ac_objext
2352 CC=$ac_save_CC
2353
2354 fi
2355
2356 case "x$ac_cv_prog_cc_stdc" in
2357 x|xno)
2358 echo "$as_me:$LINENO: result: none needed" >&5
2359 echo "${ECHO_T}none needed" >&6 ;;
2360 *)
2361 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2362 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2363 CC="$CC $ac_cv_prog_cc_stdc" ;;
2364 esac
2365
2366 # Some people use a C++ compiler to compile C. Since we use `exit',
2367 # in C++ we need to declare it. In case someone uses the same compiler
2368 # for both compiling C and C++ we need to have the C++ compiler decide
2369 # the declaration of exit, since it's the most demanding environment.
2370 cat >conftest.$ac_ext <<_ACEOF
2371 #ifndef __cplusplus
2372 choke me
2373 #endif
2374 _ACEOF
2375 rm -f conftest.$ac_objext
2376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2377 (eval $ac_compile) 2>conftest.er1
2378 ac_status=$?
2379 grep -v '^ *+' conftest.er1 >conftest.err
2380 rm -f conftest.er1
2381 cat conftest.err >&5
2382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383 (exit $ac_status); } &&
2384 { ac_try='test -z "$ac_c_werror_flag"
2385 || test ! -s conftest.err'
2386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2387 (eval $ac_try) 2>&5
2388 ac_status=$?
2389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390 (exit $ac_status); }; } &&
2391 { ac_try='test -s conftest.$ac_objext'
2392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2393 (eval $ac_try) 2>&5
2394 ac_status=$?
2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); }; }; then
2397 for ac_declaration in \
2398 '' \
2399 'extern "C" void std::exit (int) throw (); using std::exit;' \
2400 'extern "C" void std::exit (int); using std::exit;' \
2401 'extern "C" void exit (int) throw ();' \
2402 'extern "C" void exit (int);' \
2403 'void exit (int);'
2404 do
2405 cat >conftest.$ac_ext <<_ACEOF
2406 /* confdefs.h. */
2407 _ACEOF
2408 cat confdefs.h >>conftest.$ac_ext
2409 cat >>conftest.$ac_ext <<_ACEOF
2410 /* end confdefs.h. */
2411 $ac_declaration
2412 #include <stdlib.h>
2413 int
2414 main ()
2415 {
2416 exit (42);
2417 ;
2418 return 0;
2419 }
2420 _ACEOF
2421 rm -f conftest.$ac_objext
2422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2423 (eval $ac_compile) 2>conftest.er1
2424 ac_status=$?
2425 grep -v '^ *+' conftest.er1 >conftest.err
2426 rm -f conftest.er1
2427 cat conftest.err >&5
2428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429 (exit $ac_status); } &&
2430 { ac_try='test -z "$ac_c_werror_flag"
2431 || test ! -s conftest.err'
2432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2433 (eval $ac_try) 2>&5
2434 ac_status=$?
2435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436 (exit $ac_status); }; } &&
2437 { ac_try='test -s conftest.$ac_objext'
2438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2439 (eval $ac_try) 2>&5
2440 ac_status=$?
2441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442 (exit $ac_status); }; }; then
2443 :
2444 else
2445 echo "$as_me: failed program was:" >&5
2446 sed 's/^/| /' conftest.$ac_ext >&5
2447
2448 continue
2449 fi
2450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2451 cat >conftest.$ac_ext <<_ACEOF
2452 /* confdefs.h. */
2453 _ACEOF
2454 cat confdefs.h >>conftest.$ac_ext
2455 cat >>conftest.$ac_ext <<_ACEOF
2456 /* end confdefs.h. */
2457 $ac_declaration
2458 int
2459 main ()
2460 {
2461 exit (42);
2462 ;
2463 return 0;
2464 }
2465 _ACEOF
2466 rm -f conftest.$ac_objext
2467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2468 (eval $ac_compile) 2>conftest.er1
2469 ac_status=$?
2470 grep -v '^ *+' conftest.er1 >conftest.err
2471 rm -f conftest.er1
2472 cat conftest.err >&5
2473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474 (exit $ac_status); } &&
2475 { ac_try='test -z "$ac_c_werror_flag"
2476 || test ! -s conftest.err'
2477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2478 (eval $ac_try) 2>&5
2479 ac_status=$?
2480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481 (exit $ac_status); }; } &&
2482 { ac_try='test -s conftest.$ac_objext'
2483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2484 (eval $ac_try) 2>&5
2485 ac_status=$?
2486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487 (exit $ac_status); }; }; then
2488 break
2489 else
2490 echo "$as_me: failed program was:" >&5
2491 sed 's/^/| /' conftest.$ac_ext >&5
2492
2493 fi
2494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2495 done
2496 rm -f conftest*
2497 if test -n "$ac_declaration"; then
2498 echo '#ifdef __cplusplus' >>confdefs.h
2499 echo $ac_declaration >>confdefs.h
2500 echo '#endif' >>confdefs.h
2501 fi
2502
2503 else
2504 echo "$as_me: failed program was:" >&5
2505 sed 's/^/| /' conftest.$ac_ext >&5
2506
2507 fi
2508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2509 ac_ext=c
2510 ac_cpp='$CPP $CPPFLAGS'
2511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2514
2515
2516 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2517 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2518 if test "${ac_cv_search_strerror+set}" = set; then
2519 echo $ECHO_N "(cached) $ECHO_C" >&6
2520 else
2521 ac_func_search_save_LIBS=$LIBS
2522 ac_cv_search_strerror=no
2523 cat >conftest.$ac_ext <<_ACEOF
2524 /* confdefs.h. */
2525 _ACEOF
2526 cat confdefs.h >>conftest.$ac_ext
2527 cat >>conftest.$ac_ext <<_ACEOF
2528 /* end confdefs.h. */
2529
2530 /* Override any gcc2 internal prototype to avoid an error. */
2531 #ifdef __cplusplus
2532 extern "C"
2533 #endif
2534 /* We use char because int might match the return type of a gcc2
2535 builtin and then its argument prototype would still apply. */
2536 char strerror ();
2537 int
2538 main ()
2539 {
2540 strerror ();
2541 ;
2542 return 0;
2543 }
2544 _ACEOF
2545 rm -f conftest.$ac_objext conftest$ac_exeext
2546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2547 (eval $ac_link) 2>conftest.er1
2548 ac_status=$?
2549 grep -v '^ *+' conftest.er1 >conftest.err
2550 rm -f conftest.er1
2551 cat conftest.err >&5
2552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553 (exit $ac_status); } &&
2554 { ac_try='test -z "$ac_c_werror_flag"
2555 || test ! -s conftest.err'
2556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2557 (eval $ac_try) 2>&5
2558 ac_status=$?
2559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560 (exit $ac_status); }; } &&
2561 { ac_try='test -s conftest$ac_exeext'
2562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2563 (eval $ac_try) 2>&5
2564 ac_status=$?
2565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566 (exit $ac_status); }; }; then
2567 ac_cv_search_strerror="none required"
2568 else
2569 echo "$as_me: failed program was:" >&5
2570 sed 's/^/| /' conftest.$ac_ext >&5
2571
2572 fi
2573 rm -f conftest.err conftest.$ac_objext \
2574 conftest$ac_exeext conftest.$ac_ext
2575 if test "$ac_cv_search_strerror" = no; then
2576 for ac_lib in cposix; do
2577 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2578 cat >conftest.$ac_ext <<_ACEOF
2579 /* confdefs.h. */
2580 _ACEOF
2581 cat confdefs.h >>conftest.$ac_ext
2582 cat >>conftest.$ac_ext <<_ACEOF
2583 /* end confdefs.h. */
2584
2585 /* Override any gcc2 internal prototype to avoid an error. */
2586 #ifdef __cplusplus
2587 extern "C"
2588 #endif
2589 /* We use char because int might match the return type of a gcc2
2590 builtin and then its argument prototype would still apply. */
2591 char strerror ();
2592 int
2593 main ()
2594 {
2595 strerror ();
2596 ;
2597 return 0;
2598 }
2599 _ACEOF
2600 rm -f conftest.$ac_objext conftest$ac_exeext
2601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2602 (eval $ac_link) 2>conftest.er1
2603 ac_status=$?
2604 grep -v '^ *+' conftest.er1 >conftest.err
2605 rm -f conftest.er1
2606 cat conftest.err >&5
2607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608 (exit $ac_status); } &&
2609 { ac_try='test -z "$ac_c_werror_flag"
2610 || test ! -s conftest.err'
2611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2612 (eval $ac_try) 2>&5
2613 ac_status=$?
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); }; } &&
2616 { ac_try='test -s conftest$ac_exeext'
2617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2618 (eval $ac_try) 2>&5
2619 ac_status=$?
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); }; }; then
2622 ac_cv_search_strerror="-l$ac_lib"
2623 break
2624 else
2625 echo "$as_me: failed program was:" >&5
2626 sed 's/^/| /' conftest.$ac_ext >&5
2627
2628 fi
2629 rm -f conftest.err conftest.$ac_objext \
2630 conftest$ac_exeext conftest.$ac_ext
2631 done
2632 fi
2633 LIBS=$ac_func_search_save_LIBS
2634 fi
2635 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2636 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2637 if test "$ac_cv_search_strerror" != no; then
2638 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2639
2640 fi
2641
2642
2643 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2644 am__api_version="1.9"
2645 # Find a good install program. We prefer a C program (faster),
2646 # so one script is as good as another. But avoid the broken or
2647 # incompatible versions:
2648 # SysV /etc/install, /usr/sbin/install
2649 # SunOS /usr/etc/install
2650 # IRIX /sbin/install
2651 # AIX /bin/install
2652 # AmigaOS /C/install, which installs bootblocks on floppy discs
2653 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2654 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2655 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2656 # OS/2's system install, which has a completely different semantic
2657 # ./install, which can be erroneously created by make from ./install.sh.
2658 # Reject install programs that cannot install multiple files.
2659 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2660 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2661 if test -z "$INSTALL"; then
2662 if test "${ac_cv_path_install+set}" = set; then
2663 echo $ECHO_N "(cached) $ECHO_C" >&6
2664 else
2665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2666 for as_dir in $PATH
2667 do
2668 IFS=$as_save_IFS
2669 test -z "$as_dir" && as_dir=.
2670 # Account for people who put trailing slashes in PATH elements.
2671 case $as_dir/ in
2672 ./ | .// | /cC/* | \
2673 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2674 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2675 /usr/ucb/* ) ;;
2676 *)
2677 # OSF1 and SCO ODT 3.0 have their own names for install.
2678 # Don't use installbsd from OSF since it installs stuff as root
2679 # by default.
2680 for ac_prog in ginstall scoinst install; do
2681 for ac_exec_ext in '' $ac_executable_extensions; do
2682 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2683 if test $ac_prog = install &&
2684 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2685 # AIX install. It has an incompatible calling convention.
2686 :
2687 elif test $ac_prog = install &&
2688 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2689 # program-specific install script used by HP pwplus--don't use.
2690 :
2691 else
2692 rm -rf conftest.one conftest.two conftest.dir
2693 echo one > conftest.one
2694 echo two > conftest.two
2695 mkdir conftest.dir
2696 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2697 test -s conftest.one && test -s conftest.two &&
2698 test -s conftest.dir/conftest.one &&
2699 test -s conftest.dir/conftest.two
2700 then
2701 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2702 break 3
2703 fi
2704 fi
2705 fi
2706 done
2707 done
2708 ;;
2709 esac
2710 done
2711
2712 rm -rf conftest.one conftest.two conftest.dir
2713
2714 fi
2715 if test "${ac_cv_path_install+set}" = set; then
2716 INSTALL=$ac_cv_path_install
2717 else
2718 # As a last resort, use the slow shell script. Don't cache a
2719 # value for INSTALL within a source directory, because that will
2720 # break other packages using the cache if that directory is
2721 # removed, or if the value is a relative name.
2722 INSTALL=$ac_install_sh
2723 fi
2724 fi
2725 echo "$as_me:$LINENO: result: $INSTALL" >&5
2726 echo "${ECHO_T}$INSTALL" >&6
2727
2728 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2729 # It thinks the first close brace ends the variable substitution.
2730 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2731
2732 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2733
2734 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2735
2736 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2737 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2738 # Just in case
2739 sleep 1
2740 echo timestamp > conftest.file
2741 # Do `set' in a subshell so we don't clobber the current shell's
2742 # arguments. Must try -L first in case configure is actually a
2743 # symlink; some systems play weird games with the mod time of symlinks
2744 # (eg FreeBSD returns the mod time of the symlink's containing
2745 # directory).
2746 if (
2747 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2748 if test "$*" = "X"; then
2749 # -L didn't work.
2750 set X `ls -t $srcdir/configure conftest.file`
2751 fi
2752 rm -f conftest.file
2753 if test "$*" != "X $srcdir/configure conftest.file" \
2754 && test "$*" != "X conftest.file $srcdir/configure"; then
2755
2756 # If neither matched, then we have a broken ls. This can happen
2757 # if, for instance, CONFIG_SHELL is bash and it inherits a
2758 # broken ls alias from the environment. This has actually
2759 # happened. Such a system could not be considered "sane".
2760 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2761 alias in your environment" >&5
2762 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2763 alias in your environment" >&2;}
2764 { (exit 1); exit 1; }; }
2765 fi
2766
2767 test "$2" = conftest.file
2768 )
2769 then
2770 # Ok.
2771 :
2772 else
2773 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2774 Check your system clock" >&5
2775 echo "$as_me: error: newly created file is older than distributed files!
2776 Check your system clock" >&2;}
2777 { (exit 1); exit 1; }; }
2778 fi
2779 echo "$as_me:$LINENO: result: yes" >&5
2780 echo "${ECHO_T}yes" >&6
2781 test "$program_prefix" != NONE &&
2782 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2783 # Use a double $ so make ignores it.
2784 test "$program_suffix" != NONE &&
2785 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2786 # Double any \ or $. echo might interpret backslashes.
2787 # By default was `s,x,x', remove it if useless.
2788 cat <<\_ACEOF >conftest.sed
2789 s/[\\$]/&&/g;s/;s,x,x,$//
2790 _ACEOF
2791 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2792 rm conftest.sed
2793
2794 # expand $ac_aux_dir to an absolute path
2795 am_aux_dir=`cd $ac_aux_dir && pwd`
2796
2797 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2798 # Use eval to expand $SHELL
2799 if eval "$MISSING --run true"; then
2800 am_missing_run="$MISSING --run "
2801 else
2802 am_missing_run=
2803 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2804 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2805 fi
2806
2807 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2808 # We used to keeping the `.' as first argument, in order to
2809 # allow $(mkdir_p) to be used without argument. As in
2810 # $(mkdir_p) $(somedir)
2811 # where $(somedir) is conditionally defined. However this is wrong
2812 # for two reasons:
2813 # 1. if the package is installed by a user who cannot write `.'
2814 # make install will fail,
2815 # 2. the above comment should most certainly read
2816 # $(mkdir_p) $(DESTDIR)$(somedir)
2817 # so it does not work when $(somedir) is undefined and
2818 # $(DESTDIR) is not.
2819 # To support the latter case, we have to write
2820 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2821 # so the `.' trick is pointless.
2822 mkdir_p='mkdir -p --'
2823 else
2824 # On NextStep and OpenStep, the `mkdir' command does not
2825 # recognize any option. It will interpret all options as
2826 # directories to create, and then abort because `.' already
2827 # exists.
2828 for d in ./-p ./--version;
2829 do
2830 test -d $d && rmdir $d
2831 done
2832 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2833 if test -f "$ac_aux_dir/mkinstalldirs"; then
2834 mkdir_p='$(mkinstalldirs)'
2835 else
2836 mkdir_p='$(install_sh) -d'
2837 fi
2838 fi
2839
2840 for ac_prog in gawk mawk nawk awk
2841 do
2842 # Extract the first word of "$ac_prog", so it can be a program name with args.
2843 set dummy $ac_prog; ac_word=$2
2844 echo "$as_me:$LINENO: checking for $ac_word" >&5
2845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2846 if test "${ac_cv_prog_AWK+set}" = set; then
2847 echo $ECHO_N "(cached) $ECHO_C" >&6
2848 else
2849 if test -n "$AWK"; then
2850 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2851 else
2852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853 for as_dir in $PATH
2854 do
2855 IFS=$as_save_IFS
2856 test -z "$as_dir" && as_dir=.
2857 for ac_exec_ext in '' $ac_executable_extensions; do
2858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2859 ac_cv_prog_AWK="$ac_prog"
2860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2861 break 2
2862 fi
2863 done
2864 done
2865
2866 fi
2867 fi
2868 AWK=$ac_cv_prog_AWK
2869 if test -n "$AWK"; then
2870 echo "$as_me:$LINENO: result: $AWK" >&5
2871 echo "${ECHO_T}$AWK" >&6
2872 else
2873 echo "$as_me:$LINENO: result: no" >&5
2874 echo "${ECHO_T}no" >&6
2875 fi
2876
2877 test -n "$AWK" && break
2878 done
2879
2880 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2881 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2882 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2883 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2884 echo $ECHO_N "(cached) $ECHO_C" >&6
2885 else
2886 cat >conftest.make <<\_ACEOF
2887 all:
2888 @echo 'ac_maketemp="$(MAKE)"'
2889 _ACEOF
2890 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2891 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2892 if test -n "$ac_maketemp"; then
2893 eval ac_cv_prog_make_${ac_make}_set=yes
2894 else
2895 eval ac_cv_prog_make_${ac_make}_set=no
2896 fi
2897 rm -f conftest.make
2898 fi
2899 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2900 echo "$as_me:$LINENO: result: yes" >&5
2901 echo "${ECHO_T}yes" >&6
2902 SET_MAKE=
2903 else
2904 echo "$as_me:$LINENO: result: no" >&5
2905 echo "${ECHO_T}no" >&6
2906 SET_MAKE="MAKE=${MAKE-make}"
2907 fi
2908
2909 rm -rf .tst 2>/dev/null
2910 mkdir .tst 2>/dev/null
2911 if test -d .tst; then
2912 am__leading_dot=.
2913 else
2914 am__leading_dot=_
2915 fi
2916 rmdir .tst 2>/dev/null
2917
2918 DEPDIR="${am__leading_dot}deps"
2919
2920 ac_config_commands="$ac_config_commands depfiles"
2921
2922
2923 am_make=${MAKE-make}
2924 cat > confinc << 'END'
2925 am__doit:
2926 @echo done
2927 .PHONY: am__doit
2928 END
2929 # If we don't find an include directive, just comment out the code.
2930 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2931 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2932 am__include="#"
2933 am__quote=
2934 _am_result=none
2935 # First try GNU make style include.
2936 echo "include confinc" > confmf
2937 # We grep out `Entering directory' and `Leaving directory'
2938 # messages which can occur if `w' ends up in MAKEFLAGS.
2939 # In particular we don't look at `^make:' because GNU make might
2940 # be invoked under some other name (usually "gmake"), in which
2941 # case it prints its new name instead of `make'.
2942 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2943 am__include=include
2944 am__quote=
2945 _am_result=GNU
2946 fi
2947 # Now try BSD make style include.
2948 if test "$am__include" = "#"; then
2949 echo '.include "confinc"' > confmf
2950 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2951 am__include=.include
2952 am__quote="\""
2953 _am_result=BSD
2954 fi
2955 fi
2956
2957
2958 echo "$as_me:$LINENO: result: $_am_result" >&5
2959 echo "${ECHO_T}$_am_result" >&6
2960 rm -f confinc confmf
2961
2962 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2963 if test "${enable_dependency_tracking+set}" = set; then
2964 enableval="$enable_dependency_tracking"
2965
2966 fi;
2967 if test "x$enable_dependency_tracking" != xno; then
2968 am_depcomp="$ac_aux_dir/depcomp"
2969 AMDEPBACKSLASH='\'
2970 fi
2971
2972
2973 if test "x$enable_dependency_tracking" != xno; then
2974 AMDEP_TRUE=
2975 AMDEP_FALSE='#'
2976 else
2977 AMDEP_TRUE='#'
2978 AMDEP_FALSE=
2979 fi
2980
2981
2982
2983 # test to see if srcdir already configured
2984 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2985 test -f $srcdir/config.status; then
2986 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2987 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2988 { (exit 1); exit 1; }; }
2989 fi
2990
2991 # test whether we have cygpath
2992 if test -z "$CYGPATH_W"; then
2993 if (cygpath --version) >/dev/null 2>/dev/null; then
2994 CYGPATH_W='cygpath -w'
2995 else
2996 CYGPATH_W=echo
2997 fi
2998 fi
2999
3000
3001 # Define the identity of the package.
3002 PACKAGE=binutils
3003 VERSION=${BFD_VERSION}
3004
3005
3006 cat >>confdefs.h <<_ACEOF
3007 #define PACKAGE "$PACKAGE"
3008 _ACEOF
3009
3010
3011 cat >>confdefs.h <<_ACEOF
3012 #define VERSION "$VERSION"
3013 _ACEOF
3014
3015 # Some tools Automake needs.
3016
3017 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3018
3019
3020 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3021
3022
3023 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3024
3025
3026 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3027
3028
3029 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3030
3031 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3032
3033 # Installed binaries are usually stripped using `strip' when the user
3034 # run `make install-strip'. However `strip' might not be the right
3035 # tool to use in cross-compilation environments, therefore Automake
3036 # will honor the `STRIP' environment variable to overrule this program.
3037 if test "$cross_compiling" != no; then
3038 if test -n "$ac_tool_prefix"; then
3039 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3040 set dummy ${ac_tool_prefix}strip; ac_word=$2
3041 echo "$as_me:$LINENO: checking for $ac_word" >&5
3042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3043 if test "${ac_cv_prog_STRIP+set}" = set; then
3044 echo $ECHO_N "(cached) $ECHO_C" >&6
3045 else
3046 if test -n "$STRIP"; then
3047 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3048 else
3049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3050 for as_dir in $PATH
3051 do
3052 IFS=$as_save_IFS
3053 test -z "$as_dir" && as_dir=.
3054 for ac_exec_ext in '' $ac_executable_extensions; do
3055 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3056 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3058 break 2
3059 fi
3060 done
3061 done
3062
3063 fi
3064 fi
3065 STRIP=$ac_cv_prog_STRIP
3066 if test -n "$STRIP"; then
3067 echo "$as_me:$LINENO: result: $STRIP" >&5
3068 echo "${ECHO_T}$STRIP" >&6
3069 else
3070 echo "$as_me:$LINENO: result: no" >&5
3071 echo "${ECHO_T}no" >&6
3072 fi
3073
3074 fi
3075 if test -z "$ac_cv_prog_STRIP"; then
3076 ac_ct_STRIP=$STRIP
3077 # Extract the first word of "strip", so it can be a program name with args.
3078 set dummy strip; ac_word=$2
3079 echo "$as_me:$LINENO: checking for $ac_word" >&5
3080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3081 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3082 echo $ECHO_N "(cached) $ECHO_C" >&6
3083 else
3084 if test -n "$ac_ct_STRIP"; then
3085 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3086 else
3087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3088 for as_dir in $PATH
3089 do
3090 IFS=$as_save_IFS
3091 test -z "$as_dir" && as_dir=.
3092 for ac_exec_ext in '' $ac_executable_extensions; do
3093 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3094 ac_cv_prog_ac_ct_STRIP="strip"
3095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3096 break 2
3097 fi
3098 done
3099 done
3100
3101 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3102 fi
3103 fi
3104 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3105 if test -n "$ac_ct_STRIP"; then
3106 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3107 echo "${ECHO_T}$ac_ct_STRIP" >&6
3108 else
3109 echo "$as_me:$LINENO: result: no" >&5
3110 echo "${ECHO_T}no" >&6
3111 fi
3112
3113 STRIP=$ac_ct_STRIP
3114 else
3115 STRIP="$ac_cv_prog_STRIP"
3116 fi
3117
3118 fi
3119 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3120
3121 # We need awk for the "check" target. The system "awk" is bad on
3122 # some platforms.
3123 # Always define AMTAR for backward compatibility.
3124
3125 AMTAR=${AMTAR-"${am_missing_run}tar"}
3126
3127 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3128
3129
3130
3131
3132 depcc="$CC" am_compiler_list=
3133
3134 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3135 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3136 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3137 echo $ECHO_N "(cached) $ECHO_C" >&6
3138 else
3139 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3140 # We make a subdir and do the tests there. Otherwise we can end up
3141 # making bogus files that we don't know about and never remove. For
3142 # instance it was reported that on HP-UX the gcc test will end up
3143 # making a dummy file named `D' -- because `-MD' means `put the output
3144 # in D'.
3145 mkdir conftest.dir
3146 # Copy depcomp to subdir because otherwise we won't find it if we're
3147 # using a relative directory.
3148 cp "$am_depcomp" conftest.dir
3149 cd conftest.dir
3150 # We will build objects and dependencies in a subdirectory because
3151 # it helps to detect inapplicable dependency modes. For instance
3152 # both Tru64's cc and ICC support -MD to output dependencies as a
3153 # side effect of compilation, but ICC will put the dependencies in
3154 # the current directory while Tru64 will put them in the object
3155 # directory.
3156 mkdir sub
3157
3158 am_cv_CC_dependencies_compiler_type=none
3159 if test "$am_compiler_list" = ""; then
3160 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3161 fi
3162 for depmode in $am_compiler_list; do
3163 # Setup a source with many dependencies, because some compilers
3164 # like to wrap large dependency lists on column 80 (with \), and
3165 # we should not choose a depcomp mode which is confused by this.
3166 #
3167 # We need to recreate these files for each test, as the compiler may
3168 # overwrite some of them when testing with obscure command lines.
3169 # This happens at least with the AIX C compiler.
3170 : > sub/conftest.c
3171 for i in 1 2 3 4 5 6; do
3172 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3173 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3174 # Solaris 8's {/usr,}/bin/sh.
3175 touch sub/conftst$i.h
3176 done
3177 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3178
3179 case $depmode in
3180 nosideeffect)
3181 # after this tag, mechanisms are not by side-effect, so they'll
3182 # only be used when explicitly requested
3183 if test "x$enable_dependency_tracking" = xyes; then
3184 continue
3185 else
3186 break
3187 fi
3188 ;;
3189 none) break ;;
3190 esac
3191 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3192 # mode. It turns out that the SunPro C++ compiler does not properly
3193 # handle `-M -o', and we need to detect this.
3194 if depmode=$depmode \
3195 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3196 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3197 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3198 >/dev/null 2>conftest.err &&
3199 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3200 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3201 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3202 # icc doesn't choke on unknown options, it will just issue warnings
3203 # or remarks (even with -Werror). So we grep stderr for any message
3204 # that says an option was ignored or not supported.
3205 # When given -MP, icc 7.0 and 7.1 complain thusly:
3206 # icc: Command line warning: ignoring option '-M'; no argument required
3207 # The diagnosis changed in icc 8.0:
3208 # icc: Command line remark: option '-MP' not supported
3209 if (grep 'ignoring option' conftest.err ||
3210 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3211 am_cv_CC_dependencies_compiler_type=$depmode
3212 break
3213 fi
3214 fi
3215 done
3216
3217 cd ..
3218 rm -rf conftest.dir
3219 else
3220 am_cv_CC_dependencies_compiler_type=none
3221 fi
3222
3223 fi
3224 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3225 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3226 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3227
3228
3229
3230 if
3231 test "x$enable_dependency_tracking" != xno \
3232 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3233 am__fastdepCC_TRUE=
3234 am__fastdepCC_FALSE='#'
3235 else
3236 am__fastdepCC_TRUE='#'
3237 am__fastdepCC_FALSE=
3238 fi
3239
3240
3241
3242
3243 ac_ext=c
3244 ac_cpp='$CPP $CPPFLAGS'
3245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3248 if test -n "$ac_tool_prefix"; then
3249 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3250 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3251 echo "$as_me:$LINENO: checking for $ac_word" >&5
3252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3253 if test "${ac_cv_prog_CC+set}" = set; then
3254 echo $ECHO_N "(cached) $ECHO_C" >&6
3255 else
3256 if test -n "$CC"; then
3257 ac_cv_prog_CC="$CC" # Let the user override the test.
3258 else
3259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3260 for as_dir in $PATH
3261 do
3262 IFS=$as_save_IFS
3263 test -z "$as_dir" && as_dir=.
3264 for ac_exec_ext in '' $ac_executable_extensions; do
3265 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3266 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3268 break 2
3269 fi
3270 done
3271 done
3272
3273 fi
3274 fi
3275 CC=$ac_cv_prog_CC
3276 if test -n "$CC"; then
3277 echo "$as_me:$LINENO: result: $CC" >&5
3278 echo "${ECHO_T}$CC" >&6
3279 else
3280 echo "$as_me:$LINENO: result: no" >&5
3281 echo "${ECHO_T}no" >&6
3282 fi
3283
3284 fi
3285 if test -z "$ac_cv_prog_CC"; then
3286 ac_ct_CC=$CC
3287 # Extract the first word of "gcc", so it can be a program name with args.
3288 set dummy gcc; ac_word=$2
3289 echo "$as_me:$LINENO: checking for $ac_word" >&5
3290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3291 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3292 echo $ECHO_N "(cached) $ECHO_C" >&6
3293 else
3294 if test -n "$ac_ct_CC"; then
3295 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3296 else
3297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3298 for as_dir in $PATH
3299 do
3300 IFS=$as_save_IFS
3301 test -z "$as_dir" && as_dir=.
3302 for ac_exec_ext in '' $ac_executable_extensions; do
3303 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3304 ac_cv_prog_ac_ct_CC="gcc"
3305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3306 break 2
3307 fi
3308 done
3309 done
3310
3311 fi
3312 fi
3313 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3314 if test -n "$ac_ct_CC"; then
3315 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3316 echo "${ECHO_T}$ac_ct_CC" >&6
3317 else
3318 echo "$as_me:$LINENO: result: no" >&5
3319 echo "${ECHO_T}no" >&6
3320 fi
3321
3322 CC=$ac_ct_CC
3323 else
3324 CC="$ac_cv_prog_CC"
3325 fi
3326
3327 if test -z "$CC"; then
3328 if test -n "$ac_tool_prefix"; then
3329 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3330 set dummy ${ac_tool_prefix}cc; ac_word=$2
3331 echo "$as_me:$LINENO: checking for $ac_word" >&5
3332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3333 if test "${ac_cv_prog_CC+set}" = set; then
3334 echo $ECHO_N "(cached) $ECHO_C" >&6
3335 else
3336 if test -n "$CC"; then
3337 ac_cv_prog_CC="$CC" # Let the user override the test.
3338 else
3339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3340 for as_dir in $PATH
3341 do
3342 IFS=$as_save_IFS
3343 test -z "$as_dir" && as_dir=.
3344 for ac_exec_ext in '' $ac_executable_extensions; do
3345 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3346 ac_cv_prog_CC="${ac_tool_prefix}cc"
3347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3348 break 2
3349 fi
3350 done
3351 done
3352
3353 fi
3354 fi
3355 CC=$ac_cv_prog_CC
3356 if test -n "$CC"; then
3357 echo "$as_me:$LINENO: result: $CC" >&5
3358 echo "${ECHO_T}$CC" >&6
3359 else
3360 echo "$as_me:$LINENO: result: no" >&5
3361 echo "${ECHO_T}no" >&6
3362 fi
3363
3364 fi
3365 if test -z "$ac_cv_prog_CC"; then
3366 ac_ct_CC=$CC
3367 # Extract the first word of "cc", so it can be a program name with args.
3368 set dummy cc; ac_word=$2
3369 echo "$as_me:$LINENO: checking for $ac_word" >&5
3370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3371 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3372 echo $ECHO_N "(cached) $ECHO_C" >&6
3373 else
3374 if test -n "$ac_ct_CC"; then
3375 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3376 else
3377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3378 for as_dir in $PATH
3379 do
3380 IFS=$as_save_IFS
3381 test -z "$as_dir" && as_dir=.
3382 for ac_exec_ext in '' $ac_executable_extensions; do
3383 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3384 ac_cv_prog_ac_ct_CC="cc"
3385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3386 break 2
3387 fi
3388 done
3389 done
3390
3391 fi
3392 fi
3393 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3394 if test -n "$ac_ct_CC"; then
3395 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3396 echo "${ECHO_T}$ac_ct_CC" >&6
3397 else
3398 echo "$as_me:$LINENO: result: no" >&5
3399 echo "${ECHO_T}no" >&6
3400 fi
3401
3402 CC=$ac_ct_CC
3403 else
3404 CC="$ac_cv_prog_CC"
3405 fi
3406
3407 fi
3408 if test -z "$CC"; then
3409 # Extract the first word of "cc", so it can be a program name with args.
3410 set dummy cc; ac_word=$2
3411 echo "$as_me:$LINENO: checking for $ac_word" >&5
3412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3413 if test "${ac_cv_prog_CC+set}" = set; then
3414 echo $ECHO_N "(cached) $ECHO_C" >&6
3415 else
3416 if test -n "$CC"; then
3417 ac_cv_prog_CC="$CC" # Let the user override the test.
3418 else
3419 ac_prog_rejected=no
3420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3421 for as_dir in $PATH
3422 do
3423 IFS=$as_save_IFS
3424 test -z "$as_dir" && as_dir=.
3425 for ac_exec_ext in '' $ac_executable_extensions; do
3426 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3427 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3428 ac_prog_rejected=yes
3429 continue
3430 fi
3431 ac_cv_prog_CC="cc"
3432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3433 break 2
3434 fi
3435 done
3436 done
3437
3438 if test $ac_prog_rejected = yes; then
3439 # We found a bogon in the path, so make sure we never use it.
3440 set dummy $ac_cv_prog_CC
3441 shift
3442 if test $# != 0; then
3443 # We chose a different compiler from the bogus one.
3444 # However, it has the same basename, so the bogon will be chosen
3445 # first if we set CC to just the basename; use the full file name.
3446 shift
3447 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3448 fi
3449 fi
3450 fi
3451 fi
3452 CC=$ac_cv_prog_CC
3453 if test -n "$CC"; then
3454 echo "$as_me:$LINENO: result: $CC" >&5
3455 echo "${ECHO_T}$CC" >&6
3456 else
3457 echo "$as_me:$LINENO: result: no" >&5
3458 echo "${ECHO_T}no" >&6
3459 fi
3460
3461 fi
3462 if test -z "$CC"; then
3463 if test -n "$ac_tool_prefix"; then
3464 for ac_prog in cl
3465 do
3466 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3467 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3468 echo "$as_me:$LINENO: checking for $ac_word" >&5
3469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3470 if test "${ac_cv_prog_CC+set}" = set; then
3471 echo $ECHO_N "(cached) $ECHO_C" >&6
3472 else
3473 if test -n "$CC"; then
3474 ac_cv_prog_CC="$CC" # Let the user override the test.
3475 else
3476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3477 for as_dir in $PATH
3478 do
3479 IFS=$as_save_IFS
3480 test -z "$as_dir" && as_dir=.
3481 for ac_exec_ext in '' $ac_executable_extensions; do
3482 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3483 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3485 break 2
3486 fi
3487 done
3488 done
3489
3490 fi
3491 fi
3492 CC=$ac_cv_prog_CC
3493 if test -n "$CC"; then
3494 echo "$as_me:$LINENO: result: $CC" >&5
3495 echo "${ECHO_T}$CC" >&6
3496 else
3497 echo "$as_me:$LINENO: result: no" >&5
3498 echo "${ECHO_T}no" >&6
3499 fi
3500
3501 test -n "$CC" && break
3502 done
3503 fi
3504 if test -z "$CC"; then
3505 ac_ct_CC=$CC
3506 for ac_prog in cl
3507 do
3508 # Extract the first word of "$ac_prog", so it can be a program name with args.
3509 set dummy $ac_prog; ac_word=$2
3510 echo "$as_me:$LINENO: checking for $ac_word" >&5
3511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3512 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3513 echo $ECHO_N "(cached) $ECHO_C" >&6
3514 else
3515 if test -n "$ac_ct_CC"; then
3516 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3517 else
3518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3519 for as_dir in $PATH
3520 do
3521 IFS=$as_save_IFS
3522 test -z "$as_dir" && as_dir=.
3523 for ac_exec_ext in '' $ac_executable_extensions; do
3524 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3525 ac_cv_prog_ac_ct_CC="$ac_prog"
3526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3527 break 2
3528 fi
3529 done
3530 done
3531
3532 fi
3533 fi
3534 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3535 if test -n "$ac_ct_CC"; then
3536 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3537 echo "${ECHO_T}$ac_ct_CC" >&6
3538 else
3539 echo "$as_me:$LINENO: result: no" >&5
3540 echo "${ECHO_T}no" >&6
3541 fi
3542
3543 test -n "$ac_ct_CC" && break
3544 done
3545
3546 CC=$ac_ct_CC
3547 fi
3548
3549 fi
3550
3551
3552 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3553 See \`config.log' for more details." >&5
3554 echo "$as_me: error: no acceptable C compiler found in \$PATH
3555 See \`config.log' for more details." >&2;}
3556 { (exit 1); exit 1; }; }
3557
3558 # Provide some information about the compiler.
3559 echo "$as_me:$LINENO:" \
3560 "checking for C compiler version" >&5
3561 ac_compiler=`set X $ac_compile; echo $2`
3562 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3563 (eval $ac_compiler --version </dev/null >&5) 2>&5
3564 ac_status=$?
3565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3566 (exit $ac_status); }
3567 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3568 (eval $ac_compiler -v </dev/null >&5) 2>&5
3569 ac_status=$?
3570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571 (exit $ac_status); }
3572 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3573 (eval $ac_compiler -V </dev/null >&5) 2>&5
3574 ac_status=$?
3575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3576 (exit $ac_status); }
3577
3578 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3579 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3580 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3581 echo $ECHO_N "(cached) $ECHO_C" >&6
3582 else
3583 cat >conftest.$ac_ext <<_ACEOF
3584 /* confdefs.h. */
3585 _ACEOF
3586 cat confdefs.h >>conftest.$ac_ext
3587 cat >>conftest.$ac_ext <<_ACEOF
3588 /* end confdefs.h. */
3589
3590 int
3591 main ()
3592 {
3593 #ifndef __GNUC__
3594 choke me
3595 #endif
3596
3597 ;
3598 return 0;
3599 }
3600 _ACEOF
3601 rm -f conftest.$ac_objext
3602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3603 (eval $ac_compile) 2>conftest.er1
3604 ac_status=$?
3605 grep -v '^ *+' conftest.er1 >conftest.err
3606 rm -f conftest.er1
3607 cat conftest.err >&5
3608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609 (exit $ac_status); } &&
3610 { ac_try='test -z "$ac_c_werror_flag"
3611 || test ! -s conftest.err'
3612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3613 (eval $ac_try) 2>&5
3614 ac_status=$?
3615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616 (exit $ac_status); }; } &&
3617 { ac_try='test -s conftest.$ac_objext'
3618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3619 (eval $ac_try) 2>&5
3620 ac_status=$?
3621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622 (exit $ac_status); }; }; then
3623 ac_compiler_gnu=yes
3624 else
3625 echo "$as_me: failed program was:" >&5
3626 sed 's/^/| /' conftest.$ac_ext >&5
3627
3628 ac_compiler_gnu=no
3629 fi
3630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3631 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3632
3633 fi
3634 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3635 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3636 GCC=`test $ac_compiler_gnu = yes && echo yes`
3637 ac_test_CFLAGS=${CFLAGS+set}
3638 ac_save_CFLAGS=$CFLAGS
3639 CFLAGS="-g"
3640 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3641 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3642 if test "${ac_cv_prog_cc_g+set}" = set; then
3643 echo $ECHO_N "(cached) $ECHO_C" >&6
3644 else
3645 cat >conftest.$ac_ext <<_ACEOF
3646 /* confdefs.h. */
3647 _ACEOF
3648 cat confdefs.h >>conftest.$ac_ext
3649 cat >>conftest.$ac_ext <<_ACEOF
3650 /* end confdefs.h. */
3651
3652 int
3653 main ()
3654 {
3655
3656 ;
3657 return 0;
3658 }
3659 _ACEOF
3660 rm -f conftest.$ac_objext
3661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3662 (eval $ac_compile) 2>conftest.er1
3663 ac_status=$?
3664 grep -v '^ *+' conftest.er1 >conftest.err
3665 rm -f conftest.er1
3666 cat conftest.err >&5
3667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668 (exit $ac_status); } &&
3669 { ac_try='test -z "$ac_c_werror_flag"
3670 || test ! -s conftest.err'
3671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3672 (eval $ac_try) 2>&5
3673 ac_status=$?
3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675 (exit $ac_status); }; } &&
3676 { ac_try='test -s conftest.$ac_objext'
3677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3678 (eval $ac_try) 2>&5
3679 ac_status=$?
3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681 (exit $ac_status); }; }; then
3682 ac_cv_prog_cc_g=yes
3683 else
3684 echo "$as_me: failed program was:" >&5
3685 sed 's/^/| /' conftest.$ac_ext >&5
3686
3687 ac_cv_prog_cc_g=no
3688 fi
3689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3690 fi
3691 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3692 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3693 if test "$ac_test_CFLAGS" = set; then
3694 CFLAGS=$ac_save_CFLAGS
3695 elif test $ac_cv_prog_cc_g = yes; then
3696 if test "$GCC" = yes; then
3697 CFLAGS="-g -O2"
3698 else
3699 CFLAGS="-g"
3700 fi
3701 else
3702 if test "$GCC" = yes; then
3703 CFLAGS="-O2"
3704 else
3705 CFLAGS=
3706 fi
3707 fi
3708 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3709 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3710 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3711 echo $ECHO_N "(cached) $ECHO_C" >&6
3712 else
3713 ac_cv_prog_cc_stdc=no
3714 ac_save_CC=$CC
3715 cat >conftest.$ac_ext <<_ACEOF
3716 /* confdefs.h. */
3717 _ACEOF
3718 cat confdefs.h >>conftest.$ac_ext
3719 cat >>conftest.$ac_ext <<_ACEOF
3720 /* end confdefs.h. */
3721 #include <stdarg.h>
3722 #include <stdio.h>
3723 #include <sys/types.h>
3724 #include <sys/stat.h>
3725 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3726 struct buf { int x; };
3727 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3728 static char *e (p, i)
3729 char **p;
3730 int i;
3731 {
3732 return p[i];
3733 }
3734 static char *f (char * (*g) (char **, int), char **p, ...)
3735 {
3736 char *s;
3737 va_list v;
3738 va_start (v,p);
3739 s = g (p, va_arg (v,int));
3740 va_end (v);
3741 return s;
3742 }
3743
3744 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3745 function prototypes and stuff, but not '\xHH' hex character constants.
3746 These don't provoke an error unfortunately, instead are silently treated
3747 as 'x'. The following induces an error, until -std1 is added to get
3748 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3749 array size at least. It's necessary to write '\x00'==0 to get something
3750 that's true only with -std1. */
3751 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3752
3753 int test (int i, double x);
3754 struct s1 {int (*f) (int a);};
3755 struct s2 {int (*f) (double a);};
3756 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3757 int argc;
3758 char **argv;
3759 int
3760 main ()
3761 {
3762 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3763 ;
3764 return 0;
3765 }
3766 _ACEOF
3767 # Don't try gcc -ansi; that turns off useful extensions and
3768 # breaks some systems' header files.
3769 # AIX -qlanglvl=ansi
3770 # Ultrix and OSF/1 -std1
3771 # HP-UX 10.20 and later -Ae
3772 # HP-UX older versions -Aa -D_HPUX_SOURCE
3773 # SVR4 -Xc -D__EXTENSIONS__
3774 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3775 do
3776 CC="$ac_save_CC $ac_arg"
3777 rm -f conftest.$ac_objext
3778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3779 (eval $ac_compile) 2>conftest.er1
3780 ac_status=$?
3781 grep -v '^ *+' conftest.er1 >conftest.err
3782 rm -f conftest.er1
3783 cat conftest.err >&5
3784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785 (exit $ac_status); } &&
3786 { ac_try='test -z "$ac_c_werror_flag"
3787 || test ! -s conftest.err'
3788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3789 (eval $ac_try) 2>&5
3790 ac_status=$?
3791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792 (exit $ac_status); }; } &&
3793 { ac_try='test -s conftest.$ac_objext'
3794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3795 (eval $ac_try) 2>&5
3796 ac_status=$?
3797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798 (exit $ac_status); }; }; then
3799 ac_cv_prog_cc_stdc=$ac_arg
3800 break
3801 else
3802 echo "$as_me: failed program was:" >&5
3803 sed 's/^/| /' conftest.$ac_ext >&5
3804
3805 fi
3806 rm -f conftest.err conftest.$ac_objext
3807 done
3808 rm -f conftest.$ac_ext conftest.$ac_objext
3809 CC=$ac_save_CC
3810
3811 fi
3812
3813 case "x$ac_cv_prog_cc_stdc" in
3814 x|xno)
3815 echo "$as_me:$LINENO: result: none needed" >&5
3816 echo "${ECHO_T}none needed" >&6 ;;
3817 *)
3818 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3819 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3820 CC="$CC $ac_cv_prog_cc_stdc" ;;
3821 esac
3822
3823 # Some people use a C++ compiler to compile C. Since we use `exit',
3824 # in C++ we need to declare it. In case someone uses the same compiler
3825 # for both compiling C and C++ we need to have the C++ compiler decide
3826 # the declaration of exit, since it's the most demanding environment.
3827 cat >conftest.$ac_ext <<_ACEOF
3828 #ifndef __cplusplus
3829 choke me
3830 #endif
3831 _ACEOF
3832 rm -f conftest.$ac_objext
3833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3834 (eval $ac_compile) 2>conftest.er1
3835 ac_status=$?
3836 grep -v '^ *+' conftest.er1 >conftest.err
3837 rm -f conftest.er1
3838 cat conftest.err >&5
3839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840 (exit $ac_status); } &&
3841 { ac_try='test -z "$ac_c_werror_flag"
3842 || test ! -s conftest.err'
3843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3844 (eval $ac_try) 2>&5
3845 ac_status=$?
3846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3847 (exit $ac_status); }; } &&
3848 { ac_try='test -s conftest.$ac_objext'
3849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3850 (eval $ac_try) 2>&5
3851 ac_status=$?
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); }; }; then
3854 for ac_declaration in \
3855 '' \
3856 'extern "C" void std::exit (int) throw (); using std::exit;' \
3857 'extern "C" void std::exit (int); using std::exit;' \
3858 'extern "C" void exit (int) throw ();' \
3859 'extern "C" void exit (int);' \
3860 'void exit (int);'
3861 do
3862 cat >conftest.$ac_ext <<_ACEOF
3863 /* confdefs.h. */
3864 _ACEOF
3865 cat confdefs.h >>conftest.$ac_ext
3866 cat >>conftest.$ac_ext <<_ACEOF
3867 /* end confdefs.h. */
3868 $ac_declaration
3869 #include <stdlib.h>
3870 int
3871 main ()
3872 {
3873 exit (42);
3874 ;
3875 return 0;
3876 }
3877 _ACEOF
3878 rm -f conftest.$ac_objext
3879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3880 (eval $ac_compile) 2>conftest.er1
3881 ac_status=$?
3882 grep -v '^ *+' conftest.er1 >conftest.err
3883 rm -f conftest.er1
3884 cat conftest.err >&5
3885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3886 (exit $ac_status); } &&
3887 { ac_try='test -z "$ac_c_werror_flag"
3888 || test ! -s conftest.err'
3889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3890 (eval $ac_try) 2>&5
3891 ac_status=$?
3892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3893 (exit $ac_status); }; } &&
3894 { ac_try='test -s conftest.$ac_objext'
3895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3896 (eval $ac_try) 2>&5
3897 ac_status=$?
3898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899 (exit $ac_status); }; }; then
3900 :
3901 else
3902 echo "$as_me: failed program was:" >&5
3903 sed 's/^/| /' conftest.$ac_ext >&5
3904
3905 continue
3906 fi
3907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3908 cat >conftest.$ac_ext <<_ACEOF
3909 /* confdefs.h. */
3910 _ACEOF
3911 cat confdefs.h >>conftest.$ac_ext
3912 cat >>conftest.$ac_ext <<_ACEOF
3913 /* end confdefs.h. */
3914 $ac_declaration
3915 int
3916 main ()
3917 {
3918 exit (42);
3919 ;
3920 return 0;
3921 }
3922 _ACEOF
3923 rm -f conftest.$ac_objext
3924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3925 (eval $ac_compile) 2>conftest.er1
3926 ac_status=$?
3927 grep -v '^ *+' conftest.er1 >conftest.err
3928 rm -f conftest.er1
3929 cat conftest.err >&5
3930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931 (exit $ac_status); } &&
3932 { ac_try='test -z "$ac_c_werror_flag"
3933 || test ! -s conftest.err'
3934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3935 (eval $ac_try) 2>&5
3936 ac_status=$?
3937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938 (exit $ac_status); }; } &&
3939 { ac_try='test -s conftest.$ac_objext'
3940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3941 (eval $ac_try) 2>&5
3942 ac_status=$?
3943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3944 (exit $ac_status); }; }; then
3945 break
3946 else
3947 echo "$as_me: failed program was:" >&5
3948 sed 's/^/| /' conftest.$ac_ext >&5
3949
3950 fi
3951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3952 done
3953 rm -f conftest*
3954 if test -n "$ac_declaration"; then
3955 echo '#ifdef __cplusplus' >>confdefs.h
3956 echo $ac_declaration >>confdefs.h
3957 echo '#endif' >>confdefs.h
3958 fi
3959
3960 else
3961 echo "$as_me: failed program was:" >&5
3962 sed 's/^/| /' conftest.$ac_ext >&5
3963
3964 fi
3965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3966 ac_ext=c
3967 ac_cpp='$CPP $CPPFLAGS'
3968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3971
3972
3973 cat >>confdefs.h <<\_ACEOF
3974 #define _GNU_SOURCE 1
3975 _ACEOF
3976
3977
3978
3979
3980 macro_version='2.1a'
3981 macro_revision='1.2435'
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994 ltmain="$ac_aux_dir/ltmain.sh"
3995
3996 # Set options
3997
3998 enable_dlopen=no
3999
4000
4001 enable_win32_dll=no
4002
4003
4004 # Check whether --enable-shared or --disable-shared was given.
4005 if test "${enable_shared+set}" = set; then
4006 enableval="$enable_shared"
4007 p=${PACKAGE-default}
4008 case $enableval in
4009 yes) enable_shared=yes ;;
4010 no) enable_shared=no ;;
4011 *)
4012 enable_shared=no
4013 # Look at the argument we got. We use all the common list separators.
4014 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4015 for pkg in $enableval; do
4016 IFS="$lt_save_ifs"
4017 if test "X$pkg" = "X$p"; then
4018 enable_shared=yes
4019 fi
4020 done
4021 IFS="$lt_save_ifs"
4022 ;;
4023 esac
4024 else
4025 enable_shared=yes
4026 fi;
4027
4028
4029
4030
4031
4032
4033
4034
4035 # Check whether --enable-static or --disable-static was given.
4036 if test "${enable_static+set}" = set; then
4037 enableval="$enable_static"
4038 p=${PACKAGE-default}
4039 case $enableval in
4040 yes) enable_static=yes ;;
4041 no) enable_static=no ;;
4042 *)
4043 enable_static=no
4044 # Look at the argument we got. We use all the common list separators.
4045 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4046 for pkg in $enableval; do
4047 IFS="$lt_save_ifs"
4048 if test "X$pkg" = "X$p"; then
4049 enable_static=yes
4050 fi
4051 done
4052 IFS="$lt_save_ifs"
4053 ;;
4054 esac
4055 else
4056 enable_static=yes
4057 fi;
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067 # Check whether --with-pic or --without-pic was given.
4068 if test "${with_pic+set}" = set; then
4069 withval="$with_pic"
4070 pic_mode="$withval"
4071 else
4072 pic_mode=default
4073 fi;
4074
4075 test -z "$pic_mode" && pic_mode=default
4076
4077
4078
4079
4080
4081
4082
4083 # Check whether --enable-fast-install or --disable-fast-install was given.
4084 if test "${enable_fast_install+set}" = set; then
4085 enableval="$enable_fast_install"
4086 p=${PACKAGE-default}
4087 case $enableval in
4088 yes) enable_fast_install=yes ;;
4089 no) enable_fast_install=no ;;
4090 *)
4091 enable_fast_install=no
4092 # Look at the argument we got. We use all the common list separators.
4093 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4094 for pkg in $enableval; do
4095 IFS="$lt_save_ifs"
4096 if test "X$pkg" = "X$p"; then
4097 enable_fast_install=yes
4098 fi
4099 done
4100 IFS="$lt_save_ifs"
4101 ;;
4102 esac
4103 else
4104 enable_fast_install=yes
4105 fi;
4106
4107
4108
4109
4110
4111
4112
4113
4114 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4115 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4116 if test "${lt_cv_path_SED+set}" = set; then
4117 echo $ECHO_N "(cached) $ECHO_C" >&6
4118 else
4119 # Loop through the user's path and test for sed and gsed.
4120 # Then use that list of sed's as ones to test for truncation.
4121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4122 for as_dir in $PATH
4123 do
4124 IFS=$as_save_IFS
4125 test -z "$as_dir" && as_dir=.
4126 for lt_ac_prog in sed gsed; do
4127 for ac_exec_ext in '' $ac_executable_extensions; do
4128 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4129 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4130 fi
4131 done
4132 done
4133 done
4134 IFS=$as_save_IFS
4135 lt_ac_max=0
4136 lt_ac_count=0
4137 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4138 # along with /bin/sed that truncates output.
4139 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4140 test ! -f $lt_ac_sed && continue
4141 cat /dev/null > conftest.in
4142 lt_ac_count=0
4143 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4144 # Check for GNU sed and select it if it is found.
4145 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4146 lt_cv_path_SED=$lt_ac_sed
4147 break
4148 fi
4149 while true; do
4150 cat conftest.in conftest.in >conftest.tmp
4151 mv conftest.tmp conftest.in
4152 cp conftest.in conftest.nl
4153 echo >>conftest.nl
4154 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4155 cmp -s conftest.out conftest.nl || break
4156 # 10000 chars as input seems more than enough
4157 test $lt_ac_count -gt 10 && break
4158 lt_ac_count=`expr $lt_ac_count + 1`
4159 if test $lt_ac_count -gt $lt_ac_max; then
4160 lt_ac_max=$lt_ac_count
4161 lt_cv_path_SED=$lt_ac_sed
4162 fi
4163 done
4164 done
4165
4166 fi
4167
4168 SED=$lt_cv_path_SED
4169
4170 echo "$as_me:$LINENO: result: $SED" >&5
4171 echo "${ECHO_T}$SED" >&6
4172
4173 test -z "$SED" && SED=sed
4174 Xsed="$SED -e 1s/^X//"
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186 echo "$as_me:$LINENO: checking for egrep" >&5
4187 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4188 if test "${ac_cv_prog_egrep+set}" = set; then
4189 echo $ECHO_N "(cached) $ECHO_C" >&6
4190 else
4191 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4192 then ac_cv_prog_egrep='grep -E'
4193 else ac_cv_prog_egrep='egrep'
4194 fi
4195 fi
4196 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4197 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4198 EGREP=$ac_cv_prog_egrep
4199
4200
4201 echo "$as_me:$LINENO: checking for fgrep" >&5
4202 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4203 if test "${ac_cv_prog_fgrep+set}" = set; then
4204 echo $ECHO_N "(cached) $ECHO_C" >&6
4205 else
4206 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4207 then ac_cv_prog_fgrep='grep -F'
4208 else ac_cv_prog_fgrep='fgrep'
4209 fi
4210 fi
4211 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4212 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4213 FGREP=$ac_cv_prog_fgrep
4214
4215
4216 test -z "$GREP" && GREP=grep
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4237 if test "${with_gnu_ld+set}" = set; then
4238 withval="$with_gnu_ld"
4239 test "$withval" = no || with_gnu_ld=yes
4240 else
4241 with_gnu_ld=no
4242 fi;
4243 ac_prog=ld
4244 if test "$GCC" = yes; then
4245 # Check if gcc -print-prog-name=ld gives a path.
4246 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4247 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4248 case $host in
4249 *-*-mingw*)
4250 # gcc leaves a trailing carriage return which upsets mingw
4251 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4252 *)
4253 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4254 esac
4255 case $ac_prog in
4256 # Accept absolute paths.
4257 [\\/]* | ?:[\\/]*)
4258 re_direlt='/[^/][^/]*/\.\./'
4259 # Canonicalize the pathname of ld
4260 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4261 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4262 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4263 done
4264 test -z "$LD" && LD="$ac_prog"
4265 ;;
4266 "")
4267 # If it fails, then pretend we aren't using GCC.
4268 ac_prog=ld
4269 ;;
4270 *)
4271 # If it is relative, then search for the first ld in PATH.
4272 with_gnu_ld=unknown
4273 ;;
4274 esac
4275 elif test "$with_gnu_ld" = yes; then
4276 echo "$as_me:$LINENO: checking for GNU ld" >&5
4277 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4278 else
4279 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4280 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4281 fi
4282 if test "${lt_cv_path_LD+set}" = set; then
4283 echo $ECHO_N "(cached) $ECHO_C" >&6
4284 else
4285 if test -z "$LD"; then
4286 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4287 for ac_dir in $PATH; do
4288 IFS="$lt_save_ifs"
4289 test -z "$ac_dir" && ac_dir=.
4290 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4291 lt_cv_path_LD="$ac_dir/$ac_prog"
4292 # Check to see if the program is GNU ld. I'd rather use --version,
4293 # but apparently some variants of GNU ld only accept -v.
4294 # Break only if it was the GNU/non-GNU ld that we prefer.
4295 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4296 *GNU* | *'with BFD'*)
4297 test "$with_gnu_ld" != no && break
4298 ;;
4299 *)
4300 test "$with_gnu_ld" != yes && break
4301 ;;
4302 esac
4303 fi
4304 done
4305 IFS="$lt_save_ifs"
4306 else
4307 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4308 fi
4309 fi
4310
4311 LD="$lt_cv_path_LD"
4312 if test -n "$LD"; then
4313 echo "$as_me:$LINENO: result: $LD" >&5
4314 echo "${ECHO_T}$LD" >&6
4315 else
4316 echo "$as_me:$LINENO: result: no" >&5
4317 echo "${ECHO_T}no" >&6
4318 fi
4319 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4320 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4321 { (exit 1); exit 1; }; }
4322 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4323 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4324 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4325 echo $ECHO_N "(cached) $ECHO_C" >&6
4326 else
4327 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4328 case `$LD -v 2>&1 </dev/null` in
4329 *GNU* | *'with BFD'*)
4330 lt_cv_prog_gnu_ld=yes
4331 ;;
4332 *)
4333 lt_cv_prog_gnu_ld=no
4334 ;;
4335 esac
4336 fi
4337 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4338 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4339 with_gnu_ld=$lt_cv_prog_gnu_ld
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4351 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
4352 if test "${lt_cv_path_NM+set}" = set; then
4353 echo $ECHO_N "(cached) $ECHO_C" >&6
4354 else
4355 if test -n "$NM"; then
4356 # Let the user override the test.
4357 lt_cv_path_NM="$NM"
4358 else
4359 lt_nm_to_check="${ac_tool_prefix}nm"
4360 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4361 lt_nm_to_check="$lt_nm_to_check nm"
4362 fi
4363 for lt_tmp_nm in $lt_nm_to_check; do
4364 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4365 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4366 IFS="$lt_save_ifs"
4367 test -z "$ac_dir" && ac_dir=.
4368 tmp_nm="$ac_dir/$lt_tmp_nm"
4369 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4370 # Check to see if the nm accepts a BSD-compat flag.
4371 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4372 # nm: unknown option "B" ignored
4373 # Tru64's nm complains that /dev/null is an invalid object file
4374 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4375 */dev/null* | *'Invalid file or object type'*)
4376 lt_cv_path_NM="$tmp_nm -B"
4377 break
4378 ;;
4379 *)
4380 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4381 */dev/null*)
4382 lt_cv_path_NM="$tmp_nm -p"
4383 break
4384 ;;
4385 *)
4386 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4387 continue # so that we can try to find one that supports BSD flags
4388 ;;
4389 esac
4390 ;;
4391 esac
4392 fi
4393 done
4394 IFS="$lt_save_ifs"
4395 done
4396 : ${lt_cv_path_NM=no}
4397 fi
4398 fi
4399 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4400 echo "${ECHO_T}$lt_cv_path_NM" >&6
4401 if test "$lt_cv_path_NM" != "no"; then
4402 NM="$lt_cv_path_NM"
4403 else
4404 # Didn't find any BSD compatible name lister, look for dumpbin.
4405 if test -n "$ac_tool_prefix"; then
4406 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4407 do
4408 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4409 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4410 echo "$as_me:$LINENO: checking for $ac_word" >&5
4411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4412 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4413 echo $ECHO_N "(cached) $ECHO_C" >&6
4414 else
4415 if test -n "$DUMPBIN"; then
4416 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4417 else
4418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4419 for as_dir in $PATH
4420 do
4421 IFS=$as_save_IFS
4422 test -z "$as_dir" && as_dir=.
4423 for ac_exec_ext in '' $ac_executable_extensions; do
4424 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4425 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4427 break 2
4428 fi
4429 done
4430 done
4431
4432 fi
4433 fi
4434 DUMPBIN=$ac_cv_prog_DUMPBIN
4435 if test -n "$DUMPBIN"; then
4436 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4437 echo "${ECHO_T}$DUMPBIN" >&6
4438 else
4439 echo "$as_me:$LINENO: result: no" >&5
4440 echo "${ECHO_T}no" >&6
4441 fi
4442
4443 test -n "$DUMPBIN" && break
4444 done
4445 fi
4446 if test -z "$DUMPBIN"; then
4447 ac_ct_DUMPBIN=$DUMPBIN
4448 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4449 do
4450 # Extract the first word of "$ac_prog", so it can be a program name with args.
4451 set dummy $ac_prog; ac_word=$2
4452 echo "$as_me:$LINENO: checking for $ac_word" >&5
4453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4454 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4455 echo $ECHO_N "(cached) $ECHO_C" >&6
4456 else
4457 if test -n "$ac_ct_DUMPBIN"; then
4458 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4459 else
4460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4461 for as_dir in $PATH
4462 do
4463 IFS=$as_save_IFS
4464 test -z "$as_dir" && as_dir=.
4465 for ac_exec_ext in '' $ac_executable_extensions; do
4466 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4467 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4469 break 2
4470 fi
4471 done
4472 done
4473
4474 fi
4475 fi
4476 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4477 if test -n "$ac_ct_DUMPBIN"; then
4478 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4479 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4480 else
4481 echo "$as_me:$LINENO: result: no" >&5
4482 echo "${ECHO_T}no" >&6
4483 fi
4484
4485 test -n "$ac_ct_DUMPBIN" && break
4486 done
4487 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
4488
4489 DUMPBIN=$ac_ct_DUMPBIN
4490 fi
4491
4492
4493 if test "$DUMPBIN" != ":"; then
4494 NM="$DUMPBIN"
4495 fi
4496 fi
4497 test -z "$NM" && NM=nm
4498
4499
4500
4501
4502
4503
4504 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4505 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4506 if test "${lt_cv_nm_interface+set}" = set; then
4507 echo $ECHO_N "(cached) $ECHO_C" >&6
4508 else
4509 lt_cv_nm_interface="BSD nm"
4510 echo "int some_variable = 0;" > conftest.$ac_ext
4511 (eval echo "\"\$as_me:4511: $ac_compile\"" >&5)
4512 (eval "$ac_compile" 2>conftest.err)
4513 cat conftest.err >&5
4514 (eval echo "\"\$as_me:4514: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4515 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4516 cat conftest.err >&5
4517 (eval echo "\"\$as_me:4517: output\"" >&5)
4518 cat conftest.out >&5
4519 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4520 lt_cv_nm_interface="MS dumpbin"
4521 fi
4522 rm -f conftest*
4523 fi
4524 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4525 echo "${ECHO_T}$lt_cv_nm_interface" >&6
4526
4527 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4528 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4529 LN_S=$as_ln_s
4530 if test "$LN_S" = "ln -s"; then
4531 echo "$as_me:$LINENO: result: yes" >&5
4532 echo "${ECHO_T}yes" >&6
4533 else
4534 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4535 echo "${ECHO_T}no, using $LN_S" >&6
4536 fi
4537
4538 # find the maximum length of command line arguments
4539 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4540 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4541 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4542 echo $ECHO_N "(cached) $ECHO_C" >&6
4543 else
4544 i=0
4545 teststring="ABCD"
4546
4547 case $build_os in
4548 msdosdjgpp*)
4549 # On DJGPP, this test can blow up pretty badly due to problems in libc
4550 # (any single argument exceeding 2000 bytes causes a buffer overrun
4551 # during glob expansion). Even if it were fixed, the result of this
4552 # check would be larger than it should be.
4553 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4554 ;;
4555
4556 gnu*)
4557 # Under GNU Hurd, this test is not required because there is
4558 # no limit to the length of command line arguments.
4559 # Libtool will interpret -1 as no limit whatsoever
4560 lt_cv_sys_max_cmd_len=-1;
4561 ;;
4562
4563 cygwin* | mingw*)
4564 # On Win9x/ME, this test blows up -- it succeeds, but takes
4565 # about 5 minutes as the teststring grows exponentially.
4566 # Worse, since 9x/ME are not pre-emptively multitasking,
4567 # you end up with a "frozen" computer, even though with patience
4568 # the test eventually succeeds (with a max line length of 256k).
4569 # Instead, let's just punt: use the minimum linelength reported by
4570 # all of the supported platforms: 8192 (on NT/2K/XP).
4571 lt_cv_sys_max_cmd_len=8192;
4572 ;;
4573
4574 amigaos*)
4575 # On AmigaOS with pdksh, this test takes hours, literally.
4576 # So we just punt and use a minimum line length of 8192.
4577 lt_cv_sys_max_cmd_len=8192;
4578 ;;
4579
4580 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4581 # This has been around since 386BSD, at least. Likely further.
4582 if test -x /sbin/sysctl; then
4583 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4584 elif test -x /usr/sbin/sysctl; then
4585 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4586 else
4587 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4588 fi
4589 # And add a safety zone
4590 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4591 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4592 ;;
4593
4594 interix*)
4595 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4596 lt_cv_sys_max_cmd_len=196608
4597 ;;
4598
4599 osf*)
4600 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4601 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4602 # nice to cause kernel panics so lets avoid the loop below.
4603 # First set a reasonable default.
4604 lt_cv_sys_max_cmd_len=16384
4605 #
4606 if test -x /sbin/sysconfig; then
4607 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4608 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4609 esac
4610 fi
4611 ;;
4612 sco3.2v5*)
4613 lt_cv_sys_max_cmd_len=102400
4614 ;;
4615 sysv5* | sco5v6* | sysv4.2uw2*)
4616 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4617 if test -n "$kargmax"; then
4618 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4619 else
4620 lt_cv_sys_max_cmd_len=32768
4621 fi
4622 ;;
4623 *)
4624 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
4625 if test -n $lt_cv_sys_max_cmd_len; then
4626 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4627 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4628 else
4629 # Make teststring a little bigger before we do anything with it.
4630 # a 1K string should be a reasonable start.
4631 for i in 1 2 3 4 5 6 7 8 ; do
4632 teststring=$teststring$teststring
4633 done
4634 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4635 # If test is not a shell built-in, we'll probably end up computing a
4636 # maximum length that is only half of the actual maximum length, but
4637 # we can't tell.
4638 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4639 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4640 test $i != 17 # 1/2 MB should be enough
4641 do
4642 i=`expr $i + 1`
4643 teststring=$teststring$teststring
4644 done
4645 # Only check the string length outside the loop.
4646 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4647 teststring=
4648 # Add a significant safety factor because C++ compilers can tack on
4649 # massive amounts of additional arguments before passing them to the
4650 # linker. It appears as though 1/2 is a usable value.
4651 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4652 fi
4653 ;;
4654 esac
4655
4656 fi
4657
4658 if test -n $lt_cv_sys_max_cmd_len ; then
4659 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4660 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4661 else
4662 echo "$as_me:$LINENO: result: none" >&5
4663 echo "${ECHO_T}none" >&6
4664 fi
4665 max_cmd_len=$lt_cv_sys_max_cmd_len
4666
4667
4668
4669
4670
4671
4672
4673 : ${CP="cp -f"}
4674 : ${MV="mv -f"}
4675 : ${RM="rm -f"}
4676
4677 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4678 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4679 # Try some XSI features
4680 xsi_shell=no
4681 ( _lt_dummy="a/b/c"
4682 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4683 = c,a/b,, ) >/dev/null 2>&1 \
4684 && xsi_shell=yes
4685 echo "$as_me:$LINENO: result: $xsi_shell" >&5
4686 echo "${ECHO_T}$xsi_shell" >&6
4687
4688
4689 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4690 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4691 lt_shell_append=no
4692 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4693 >/dev/null 2>&1 \
4694 && lt_shell_append=yes
4695 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4696 echo "${ECHO_T}$lt_shell_append" >&6
4697
4698
4699 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4700 lt_unset=unset
4701 else
4702 lt_unset=false
4703 fi
4704
4705
4706
4707
4708
4709 # test EBCDIC or ASCII
4710 case `echo X|tr X '\101'` in
4711 A) # ASCII based system
4712 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4713 lt_SP2NL='tr \040 \012'
4714 lt_NL2SP='tr \015\012 \040\040'
4715 ;;
4716 *) # EBCDIC based system
4717 lt_SP2NL='tr \100 \n'
4718 lt_NL2SP='tr \r\n \100\100'
4719 ;;
4720 esac
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4731 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4732 if test "${lt_cv_ld_reload_flag+set}" = set; then
4733 echo $ECHO_N "(cached) $ECHO_C" >&6
4734 else
4735 lt_cv_ld_reload_flag='-r'
4736 fi
4737 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4738 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4739 reload_flag=$lt_cv_ld_reload_flag
4740 case $reload_flag in
4741 "" | " "*) ;;
4742 *) reload_flag=" $reload_flag" ;;
4743 esac
4744 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4745 case $host_os in
4746 darwin*)
4747 if test "$GCC" = yes; then
4748 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4749 else
4750 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4751 fi
4752 ;;
4753 esac
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4765 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4766 if test "${lt_cv_deplibs_check_method+set}" = set; then
4767 echo $ECHO_N "(cached) $ECHO_C" >&6
4768 else
4769 lt_cv_file_magic_cmd='$MAGIC_CMD'
4770 lt_cv_file_magic_test_file=
4771 lt_cv_deplibs_check_method='unknown'
4772 # Need to set the preceding variable on all platforms that support
4773 # interlibrary dependencies.
4774 # 'none' -- dependencies not supported.
4775 # `unknown' -- same as none, but documents that we really don't know.
4776 # 'pass_all' -- all dependencies passed with no checks.
4777 # 'test_compile' -- check by making test program.
4778 # 'file_magic [[regex]]' -- check by looking for files in library path
4779 # which responds to the $file_magic_cmd with a given extended regex.
4780 # If you have `file' or equivalent on your system and you're not sure
4781 # whether `pass_all' will *always* work, you probably want this one.
4782
4783 case $host_os in
4784 aix[4-9]*)
4785 lt_cv_deplibs_check_method=pass_all
4786 ;;
4787
4788 beos*)
4789 lt_cv_deplibs_check_method=pass_all
4790 ;;
4791
4792 bsdi[45]*)
4793 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4794 lt_cv_file_magic_cmd='/usr/bin/file -L'
4795 lt_cv_file_magic_test_file=/shlib/libc.so
4796 ;;
4797
4798 cygwin*)
4799 # func_win32_libid is a shell function defined in ltmain.sh
4800 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4801 lt_cv_file_magic_cmd='func_win32_libid'
4802 ;;
4803
4804 mingw* | pw32*)
4805 # Base MSYS/MinGW do not provide the 'file' command needed by
4806 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4807 # unless we find 'file', for example because we are cross-compiling.
4808 if ( file / ) >/dev/null 2>&1; then
4809 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4810 lt_cv_file_magic_cmd='func_win32_libid'
4811 else
4812 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4813 lt_cv_file_magic_cmd='$OBJDUMP -f'
4814 fi
4815 ;;
4816
4817 darwin* | rhapsody*)
4818 lt_cv_deplibs_check_method=pass_all
4819 ;;
4820
4821 freebsd* | dragonfly*)
4822 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4823 case $host_cpu in
4824 i*86 )
4825 # Not sure whether the presence of OpenBSD here was a mistake.
4826 # Let's accept both of them until this is cleared up.
4827 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4828 lt_cv_file_magic_cmd=/usr/bin/file
4829 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4830 ;;
4831 esac
4832 else
4833 lt_cv_deplibs_check_method=pass_all
4834 fi
4835 ;;
4836
4837 gnu*)
4838 lt_cv_deplibs_check_method=pass_all
4839 ;;
4840
4841 hpux10.20* | hpux11*)
4842 lt_cv_file_magic_cmd=/usr/bin/file
4843 case $host_cpu in
4844 ia64*)
4845 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4846 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4847 ;;
4848 hppa*64*)
4849 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]'
4850 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4851 ;;
4852 *)
4853 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4854 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4855 ;;
4856 esac
4857 ;;
4858
4859 interix[3-9]*)
4860 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4861 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4862 ;;
4863
4864 irix5* | irix6* | nonstopux*)
4865 case $LD in
4866 *-32|*"-32 ") libmagic=32-bit;;
4867 *-n32|*"-n32 ") libmagic=N32;;
4868 *-64|*"-64 ") libmagic=64-bit;;
4869 *) libmagic=never-match;;
4870 esac
4871 lt_cv_deplibs_check_method=pass_all
4872 ;;
4873
4874 # This must be Linux ELF.
4875 linux* | k*bsd*-gnu)
4876 lt_cv_deplibs_check_method=pass_all
4877 ;;
4878
4879 netbsd*)
4880 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4881 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4882 else
4883 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4884 fi
4885 ;;
4886
4887 newos6*)
4888 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4889 lt_cv_file_magic_cmd=/usr/bin/file
4890 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4891 ;;
4892
4893 *nto* | *qnx*)
4894 lt_cv_deplibs_check_method=pass_all
4895 ;;
4896
4897 openbsd*)
4898 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4899 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4900 else
4901 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4902 fi
4903 ;;
4904
4905 osf3* | osf4* | osf5*)
4906 lt_cv_deplibs_check_method=pass_all
4907 ;;
4908
4909 rdos*)
4910 lt_cv_deplibs_check_method=pass_all
4911 ;;
4912
4913 solaris*)
4914 lt_cv_deplibs_check_method=pass_all
4915 ;;
4916
4917 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4918 lt_cv_deplibs_check_method=pass_all
4919 ;;
4920
4921 sysv4 | sysv4.3*)
4922 case $host_vendor in
4923 motorola)
4924 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]'
4925 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4926 ;;
4927 ncr)
4928 lt_cv_deplibs_check_method=pass_all
4929 ;;
4930 sequent)
4931 lt_cv_file_magic_cmd='/bin/file'
4932 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4933 ;;
4934 sni)
4935 lt_cv_file_magic_cmd='/bin/file'
4936 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4937 lt_cv_file_magic_test_file=/lib/libc.so
4938 ;;
4939 siemens)
4940 lt_cv_deplibs_check_method=pass_all
4941 ;;
4942 pc)
4943 lt_cv_deplibs_check_method=pass_all
4944 ;;
4945 esac
4946 ;;
4947
4948 tpf*)
4949 lt_cv_deplibs_check_method=pass_all
4950 ;;
4951 esac
4952
4953 fi
4954 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4955 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4956 file_magic_cmd=$lt_cv_file_magic_cmd
4957 deplibs_check_method=$lt_cv_deplibs_check_method
4958 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971 if test -n "$ac_tool_prefix"; then
4972 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4973 set dummy ${ac_tool_prefix}ar; ac_word=$2
4974 echo "$as_me:$LINENO: checking for $ac_word" >&5
4975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4976 if test "${ac_cv_prog_AR+set}" = set; then
4977 echo $ECHO_N "(cached) $ECHO_C" >&6
4978 else
4979 if test -n "$AR"; then
4980 ac_cv_prog_AR="$AR" # Let the user override the test.
4981 else
4982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4983 for as_dir in $PATH
4984 do
4985 IFS=$as_save_IFS
4986 test -z "$as_dir" && as_dir=.
4987 for ac_exec_ext in '' $ac_executable_extensions; do
4988 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4989 ac_cv_prog_AR="${ac_tool_prefix}ar"
4990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4991 break 2
4992 fi
4993 done
4994 done
4995
4996 fi
4997 fi
4998 AR=$ac_cv_prog_AR
4999 if test -n "$AR"; then
5000 echo "$as_me:$LINENO: result: $AR" >&5
5001 echo "${ECHO_T}$AR" >&6
5002 else
5003 echo "$as_me:$LINENO: result: no" >&5
5004 echo "${ECHO_T}no" >&6
5005 fi
5006
5007 fi
5008 if test -z "$ac_cv_prog_AR"; then
5009 ac_ct_AR=$AR
5010 # Extract the first word of "ar", so it can be a program name with args.
5011 set dummy ar; ac_word=$2
5012 echo "$as_me:$LINENO: checking for $ac_word" >&5
5013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5014 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5015 echo $ECHO_N "(cached) $ECHO_C" >&6
5016 else
5017 if test -n "$ac_ct_AR"; then
5018 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5019 else
5020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5021 for as_dir in $PATH
5022 do
5023 IFS=$as_save_IFS
5024 test -z "$as_dir" && as_dir=.
5025 for ac_exec_ext in '' $ac_executable_extensions; do
5026 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5027 ac_cv_prog_ac_ct_AR="ar"
5028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5029 break 2
5030 fi
5031 done
5032 done
5033
5034 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5035 fi
5036 fi
5037 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5038 if test -n "$ac_ct_AR"; then
5039 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5040 echo "${ECHO_T}$ac_ct_AR" >&6
5041 else
5042 echo "$as_me:$LINENO: result: no" >&5
5043 echo "${ECHO_T}no" >&6
5044 fi
5045
5046 AR=$ac_ct_AR
5047 else
5048 AR="$ac_cv_prog_AR"
5049 fi
5050
5051 test -z "$AR" && AR=ar
5052 test -z "$AR_FLAGS" && AR_FLAGS=cru
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064 if test -n "$ac_tool_prefix"; then
5065 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5066 set dummy ${ac_tool_prefix}strip; ac_word=$2
5067 echo "$as_me:$LINENO: checking for $ac_word" >&5
5068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5069 if test "${ac_cv_prog_STRIP+set}" = set; then
5070 echo $ECHO_N "(cached) $ECHO_C" >&6
5071 else
5072 if test -n "$STRIP"; then
5073 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5074 else
5075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5076 for as_dir in $PATH
5077 do
5078 IFS=$as_save_IFS
5079 test -z "$as_dir" && as_dir=.
5080 for ac_exec_ext in '' $ac_executable_extensions; do
5081 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5082 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5084 break 2
5085 fi
5086 done
5087 done
5088
5089 fi
5090 fi
5091 STRIP=$ac_cv_prog_STRIP
5092 if test -n "$STRIP"; then
5093 echo "$as_me:$LINENO: result: $STRIP" >&5
5094 echo "${ECHO_T}$STRIP" >&6
5095 else
5096 echo "$as_me:$LINENO: result: no" >&5
5097 echo "${ECHO_T}no" >&6
5098 fi
5099
5100 fi
5101 if test -z "$ac_cv_prog_STRIP"; then
5102 ac_ct_STRIP=$STRIP
5103 # Extract the first word of "strip", so it can be a program name with args.
5104 set dummy strip; ac_word=$2
5105 echo "$as_me:$LINENO: checking for $ac_word" >&5
5106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5107 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5108 echo $ECHO_N "(cached) $ECHO_C" >&6
5109 else
5110 if test -n "$ac_ct_STRIP"; then
5111 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5112 else
5113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5114 for as_dir in $PATH
5115 do
5116 IFS=$as_save_IFS
5117 test -z "$as_dir" && as_dir=.
5118 for ac_exec_ext in '' $ac_executable_extensions; do
5119 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5120 ac_cv_prog_ac_ct_STRIP="strip"
5121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5122 break 2
5123 fi
5124 done
5125 done
5126
5127 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5128 fi
5129 fi
5130 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5131 if test -n "$ac_ct_STRIP"; then
5132 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5133 echo "${ECHO_T}$ac_ct_STRIP" >&6
5134 else
5135 echo "$as_me:$LINENO: result: no" >&5
5136 echo "${ECHO_T}no" >&6
5137 fi
5138
5139 STRIP=$ac_ct_STRIP
5140 else
5141 STRIP="$ac_cv_prog_STRIP"
5142 fi
5143
5144 test -z "$STRIP" && STRIP=:
5145
5146
5147
5148
5149
5150
5151 if test -n "$ac_tool_prefix"; then
5152 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5153 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5154 echo "$as_me:$LINENO: checking for $ac_word" >&5
5155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5156 if test "${ac_cv_prog_RANLIB+set}" = set; then
5157 echo $ECHO_N "(cached) $ECHO_C" >&6
5158 else
5159 if test -n "$RANLIB"; then
5160 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5161 else
5162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5163 for as_dir in $PATH
5164 do
5165 IFS=$as_save_IFS
5166 test -z "$as_dir" && as_dir=.
5167 for ac_exec_ext in '' $ac_executable_extensions; do
5168 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5169 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5171 break 2
5172 fi
5173 done
5174 done
5175
5176 fi
5177 fi
5178 RANLIB=$ac_cv_prog_RANLIB
5179 if test -n "$RANLIB"; then
5180 echo "$as_me:$LINENO: result: $RANLIB" >&5
5181 echo "${ECHO_T}$RANLIB" >&6
5182 else
5183 echo "$as_me:$LINENO: result: no" >&5
5184 echo "${ECHO_T}no" >&6
5185 fi
5186
5187 fi
5188 if test -z "$ac_cv_prog_RANLIB"; then
5189 ac_ct_RANLIB=$RANLIB
5190 # Extract the first word of "ranlib", so it can be a program name with args.
5191 set dummy ranlib; ac_word=$2
5192 echo "$as_me:$LINENO: checking for $ac_word" >&5
5193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5194 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5195 echo $ECHO_N "(cached) $ECHO_C" >&6
5196 else
5197 if test -n "$ac_ct_RANLIB"; then
5198 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5199 else
5200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5201 for as_dir in $PATH
5202 do
5203 IFS=$as_save_IFS
5204 test -z "$as_dir" && as_dir=.
5205 for ac_exec_ext in '' $ac_executable_extensions; do
5206 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5207 ac_cv_prog_ac_ct_RANLIB="ranlib"
5208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5209 break 2
5210 fi
5211 done
5212 done
5213
5214 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5215 fi
5216 fi
5217 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5218 if test -n "$ac_ct_RANLIB"; then
5219 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5220 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5221 else
5222 echo "$as_me:$LINENO: result: no" >&5
5223 echo "${ECHO_T}no" >&6
5224 fi
5225
5226 RANLIB=$ac_ct_RANLIB
5227 else
5228 RANLIB="$ac_cv_prog_RANLIB"
5229 fi
5230
5231 test -z "$RANLIB" && RANLIB=:
5232
5233
5234
5235
5236
5237
5238 # Determine commands to create old-style static archives.
5239 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5240 old_postinstall_cmds='chmod 644 $oldlib'
5241 old_postuninstall_cmds=
5242
5243 if test -n "$RANLIB"; then
5244 case $host_os in
5245 openbsd*)
5246 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5247 ;;
5248 *)
5249 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5250 ;;
5251 esac
5252 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5253 fi
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288 # If no C compiler was specified, use CC.
5289 LTCC=${LTCC-"$CC"}
5290
5291 # If no C compiler flags were specified, use CFLAGS.
5292 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5293
5294 # Allow CC to be a program name with arguments.
5295 compiler=$CC
5296
5297
5298 # Check for command to grab the raw symbol name followed by C symbol from nm.
5299 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5300 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5301 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5302 echo $ECHO_N "(cached) $ECHO_C" >&6
5303 else
5304
5305 # These are sane defaults that work on at least a few old systems.
5306 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5307
5308 # Character class describing NM global symbol codes.
5309 symcode='[BCDEGRST]'
5310
5311 # Regexp to match symbols that can be accessed directly from C.
5312 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5313
5314 # Define system-specific variables.
5315 case $host_os in
5316 aix*)
5317 symcode='[BCDT]'
5318 ;;
5319 cygwin* | mingw* | pw32*)
5320 symcode='[ABCDGISTW]'
5321 ;;
5322 hpux*)
5323 if test "$host_cpu" = ia64; then
5324 symcode='[ABCDEGRST]'
5325 fi
5326 ;;
5327 irix* | nonstopux*)
5328 symcode='[BCDEGRST]'
5329 ;;
5330 osf*)
5331 symcode='[BCDEGQRST]'
5332 ;;
5333 solaris*)
5334 symcode='[BDRT]'
5335 ;;
5336 sco3.2v5*)
5337 symcode='[DT]'
5338 ;;
5339 sysv4.2uw2*)
5340 symcode='[DT]'
5341 ;;
5342 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5343 symcode='[ABDT]'
5344 ;;
5345 sysv4)
5346 symcode='[DFNSTU]'
5347 ;;
5348 esac
5349
5350 # If we're using GNU nm, then use its standard symbol codes.
5351 case `$NM -V 2>&1` in
5352 *GNU* | *'with BFD'*)
5353 symcode='[ABCDGIRSTW]' ;;
5354 esac
5355
5356 # Transform an extracted symbol line into a proper C declaration.
5357 # Some systems (esp. on ia64) link data and code symbols differently,
5358 # so use this general approach.
5359 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5360
5361 # Transform an extracted symbol line into symbol name and symbol address
5362 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5363
5364 # Handle CRLF in mingw tool chain
5365 opt_cr=
5366 case $build_os in
5367 mingw*)
5368 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5369 ;;
5370 esac
5371
5372 # Try without a prefix underscore, then with it.
5373 for ac_symprfx in "" "_"; do
5374
5375 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5376 symxfrm="\\1 $ac_symprfx\\2 \\2"
5377
5378 # Write the raw and C identifiers.
5379 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5380 # Fake it for dumpbin and say T for any non-static function
5381 # and D for any global variable.
5382 # Also find C++ and __fastcall symbols from MSVC++,
5383 # which start with @ or ?.
5384 lt_cv_sys_global_symbol_pipe="$AWK '"\
5385 " {last_section=section; section=\$ 3};"\
5386 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5387 " \$ 0!~/External *\|/{next};"\
5388 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5389 " {if(hide[section]) next};"\
5390 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5391 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5392 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5393 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5394 " ' prfx=^$ac_symprfx"
5395 else
5396 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5397 fi
5398
5399 # Check to see that the pipe works correctly.
5400 pipe_works=no
5401
5402 rm -f conftest*
5403 cat > conftest.$ac_ext <<_LT_EOF
5404 #ifdef __cplusplus
5405 extern "C" {
5406 #endif
5407 char nm_test_var;
5408 void nm_test_func(void);
5409 void nm_test_func(void){}
5410 #ifdef __cplusplus
5411 }
5412 #endif
5413 int main(){nm_test_var='a';nm_test_func();return(0);}
5414 _LT_EOF
5415
5416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5417 (eval $ac_compile) 2>&5
5418 ac_status=$?
5419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420 (exit $ac_status); }; then
5421 # Now try to grab the symbols.
5422 nlist=conftest.nm
5423 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5424 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5425 ac_status=$?
5426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427 (exit $ac_status); } && test -s "$nlist"; then
5428 # Try sorting and uniquifying the output.
5429 if sort "$nlist" | uniq > "$nlist"T; then
5430 mv -f "$nlist"T "$nlist"
5431 else
5432 rm -f "$nlist"T
5433 fi
5434
5435 # Make sure that we snagged all the symbols we need.
5436 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5437 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5438 cat <<_LT_EOF > conftest.$ac_ext
5439 #ifdef __cplusplus
5440 extern "C" {
5441 #endif
5442
5443 _LT_EOF
5444 # Now generate the symbol file.
5445 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5446
5447 cat <<_LT_EOF >> conftest.$ac_ext
5448
5449 /* The mapping between symbol names and symbols. */
5450 const struct {
5451 const char *name;
5452 void *address;
5453 }
5454 lt__PROGRAM__LTX_preloaded_symbols[] =
5455 {
5456 { "@PROGRAM@", (void *) 0 },
5457 _LT_EOF
5458 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5459 cat <<\_LT_EOF >> conftest.$ac_ext
5460 {0, (void *) 0}
5461 };
5462
5463 /* This works around a problem in FreeBSD linker */
5464 #ifdef FREEBSD_WORKAROUND
5465 static const void *lt_preloaded_setup() {
5466 return lt__PROGRAM__LTX_preloaded_symbols;
5467 }
5468 #endif
5469
5470 #ifdef __cplusplus
5471 }
5472 #endif
5473 _LT_EOF
5474 # Now try linking the two files.
5475 mv conftest.$ac_objext conftstm.$ac_objext
5476 lt_save_LIBS="$LIBS"
5477 lt_save_CFLAGS="$CFLAGS"
5478 LIBS="conftstm.$ac_objext"
5479 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5481 (eval $ac_link) 2>&5
5482 ac_status=$?
5483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5485 pipe_works=yes
5486 fi
5487 LIBS="$lt_save_LIBS"
5488 CFLAGS="$lt_save_CFLAGS"
5489 else
5490 echo "cannot find nm_test_func in $nlist" >&5
5491 fi
5492 else
5493 echo "cannot find nm_test_var in $nlist" >&5
5494 fi
5495 else
5496 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5497 fi
5498 else
5499 echo "$progname: failed program was:" >&5
5500 cat conftest.$ac_ext >&5
5501 fi
5502 rm -f conftest* conftst*
5503
5504 # Do not use the global_symbol_pipe unless it works.
5505 if test "$pipe_works" = yes; then
5506 break
5507 else
5508 lt_cv_sys_global_symbol_pipe=
5509 fi
5510 done
5511
5512 fi
5513
5514 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5515 lt_cv_sys_global_symbol_to_cdecl=
5516 fi
5517 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5518 echo "$as_me:$LINENO: result: failed" >&5
5519 echo "${ECHO_T}failed" >&6
5520 else
5521 echo "$as_me:$LINENO: result: ok" >&5
5522 echo "${ECHO_T}ok" >&6
5523 fi
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5542 if test "${enable_libtool_lock+set}" = set; then
5543 enableval="$enable_libtool_lock"
5544
5545 fi;
5546 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5547
5548 # Some flags need to be propagated to the compiler or linker for good
5549 # libtool support.
5550 case $host in
5551 ia64-*-hpux*)
5552 # Find out which ABI we are using.
5553 echo 'int i;' > conftest.$ac_ext
5554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5555 (eval $ac_compile) 2>&5
5556 ac_status=$?
5557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558 (exit $ac_status); }; then
5559 case `/usr/bin/file conftest.$ac_objext` in
5560 *ELF-32*)
5561 HPUX_IA64_MODE="32"
5562 ;;
5563 *ELF-64*)
5564 HPUX_IA64_MODE="64"
5565 ;;
5566 esac
5567 fi
5568 rm -rf conftest*
5569 ;;
5570 *-*-irix6*)
5571 # Find out which ABI we are using.
5572 echo '#line 5572 "configure"' > conftest.$ac_ext
5573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5574 (eval $ac_compile) 2>&5
5575 ac_status=$?
5576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577 (exit $ac_status); }; then
5578 if test "$lt_cv_prog_gnu_ld" = yes; then
5579 case `/usr/bin/file conftest.$ac_objext` in
5580 *32-bit*)
5581 LD="${LD-ld} -melf32bsmip"
5582 ;;
5583 *N32*)
5584 LD="${LD-ld} -melf32bmipn32"
5585 ;;
5586 *64-bit*)
5587 LD="${LD-ld} -melf64bmip"
5588 ;;
5589 esac
5590 else
5591 case `/usr/bin/file conftest.$ac_objext` in
5592 *32-bit*)
5593 LD="${LD-ld} -32"
5594 ;;
5595 *N32*)
5596 LD="${LD-ld} -n32"
5597 ;;
5598 *64-bit*)
5599 LD="${LD-ld} -64"
5600 ;;
5601 esac
5602 fi
5603 fi
5604 rm -rf conftest*
5605 ;;
5606
5607 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5608 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5609 # Find out which ABI we are using.
5610 echo 'int i;' > conftest.$ac_ext
5611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5612 (eval $ac_compile) 2>&5
5613 ac_status=$?
5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); }; then
5616 case `/usr/bin/file conftest.o` in
5617 *32-bit*)
5618 case $host in
5619 x86_64-*kfreebsd*-gnu)
5620 LD="${LD-ld} -m elf_i386_fbsd"
5621 ;;
5622 x86_64-*linux*)
5623 LD="${LD-ld} -m elf_i386"
5624 ;;
5625 ppc64-*linux*|powerpc64-*linux*)
5626 LD="${LD-ld} -m elf32ppclinux"
5627 ;;
5628 s390x-*linux*)
5629 LD="${LD-ld} -m elf_s390"
5630 ;;
5631 sparc64-*linux*)
5632 LD="${LD-ld} -m elf32_sparc"
5633 ;;
5634 esac
5635 ;;
5636 *64-bit*)
5637 case $host in
5638 x86_64-*kfreebsd*-gnu)
5639 LD="${LD-ld} -m elf_x86_64_fbsd"
5640 ;;
5641 x86_64-*linux*)
5642 LD="${LD-ld} -m elf_x86_64"
5643 ;;
5644 ppc*-*linux*|powerpc*-*linux*)
5645 LD="${LD-ld} -m elf64ppc"
5646 ;;
5647 s390*-*linux*|s390*-*tpf*)
5648 LD="${LD-ld} -m elf64_s390"
5649 ;;
5650 sparc*-*linux*)
5651 LD="${LD-ld} -m elf64_sparc"
5652 ;;
5653 esac
5654 ;;
5655 esac
5656 fi
5657 rm -rf conftest*
5658 ;;
5659
5660 *-*-sco3.2v5*)
5661 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5662 SAVE_CFLAGS="$CFLAGS"
5663 CFLAGS="$CFLAGS -belf"
5664 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5665 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5666 if test "${lt_cv_cc_needs_belf+set}" = set; then
5667 echo $ECHO_N "(cached) $ECHO_C" >&6
5668 else
5669 ac_ext=c
5670 ac_cpp='$CPP $CPPFLAGS'
5671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5674
5675 cat >conftest.$ac_ext <<_ACEOF
5676 /* confdefs.h. */
5677 _ACEOF
5678 cat confdefs.h >>conftest.$ac_ext
5679 cat >>conftest.$ac_ext <<_ACEOF
5680 /* end confdefs.h. */
5681
5682 int
5683 main ()
5684 {
5685
5686 ;
5687 return 0;
5688 }
5689 _ACEOF
5690 rm -f conftest.$ac_objext conftest$ac_exeext
5691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5692 (eval $ac_link) 2>conftest.er1
5693 ac_status=$?
5694 grep -v '^ *+' conftest.er1 >conftest.err
5695 rm -f conftest.er1
5696 cat conftest.err >&5
5697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698 (exit $ac_status); } &&
5699 { ac_try='test -z "$ac_c_werror_flag"
5700 || test ! -s conftest.err'
5701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5702 (eval $ac_try) 2>&5
5703 ac_status=$?
5704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705 (exit $ac_status); }; } &&
5706 { ac_try='test -s conftest$ac_exeext'
5707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5708 (eval $ac_try) 2>&5
5709 ac_status=$?
5710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5711 (exit $ac_status); }; }; then
5712 lt_cv_cc_needs_belf=yes
5713 else
5714 echo "$as_me: failed program was:" >&5
5715 sed 's/^/| /' conftest.$ac_ext >&5
5716
5717 lt_cv_cc_needs_belf=no
5718 fi
5719 rm -f conftest.err conftest.$ac_objext \
5720 conftest$ac_exeext conftest.$ac_ext
5721 ac_ext=c
5722 ac_cpp='$CPP $CPPFLAGS'
5723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5726
5727 fi
5728 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5729 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5730 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5731 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5732 CFLAGS="$SAVE_CFLAGS"
5733 fi
5734 ;;
5735 sparc*-*solaris*)
5736 # Find out which ABI we are using.
5737 echo 'int i;' > conftest.$ac_ext
5738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5739 (eval $ac_compile) 2>&5
5740 ac_status=$?
5741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742 (exit $ac_status); }; then
5743 case `/usr/bin/file conftest.o` in
5744 *64-bit*)
5745 case $lt_cv_prog_gnu_ld in
5746 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5747 *) LD="${LD-ld} -64" ;;
5748 esac
5749 ;;
5750 esac
5751 fi
5752 rm -rf conftest*
5753 ;;
5754 esac
5755
5756 need_locks="$enable_libtool_lock"
5757
5758 ac_ext=c
5759 ac_cpp='$CPP $CPPFLAGS'
5760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5763 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5764 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5765 # On Suns, sometimes $CPP names a directory.
5766 if test -n "$CPP" && test -d "$CPP"; then
5767 CPP=
5768 fi
5769 if test -z "$CPP"; then
5770 if test "${ac_cv_prog_CPP+set}" = set; then
5771 echo $ECHO_N "(cached) $ECHO_C" >&6
5772 else
5773 # Double quotes because CPP needs to be expanded
5774 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5775 do
5776 ac_preproc_ok=false
5777 for ac_c_preproc_warn_flag in '' yes
5778 do
5779 # Use a header file that comes with gcc, so configuring glibc
5780 # with a fresh cross-compiler works.
5781 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5782 # <limits.h> exists even on freestanding compilers.
5783 # On the NeXT, cc -E runs the code through the compiler's parser,
5784 # not just through cpp. "Syntax error" is here to catch this case.
5785 cat >conftest.$ac_ext <<_ACEOF
5786 /* confdefs.h. */
5787 _ACEOF
5788 cat confdefs.h >>conftest.$ac_ext
5789 cat >>conftest.$ac_ext <<_ACEOF
5790 /* end confdefs.h. */
5791 #ifdef __STDC__
5792 # include <limits.h>
5793 #else
5794 # include <assert.h>
5795 #endif
5796 Syntax error
5797 _ACEOF
5798 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5799 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5800 ac_status=$?
5801 grep -v '^ *+' conftest.er1 >conftest.err
5802 rm -f conftest.er1
5803 cat conftest.err >&5
5804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805 (exit $ac_status); } >/dev/null; then
5806 if test -s conftest.err; then
5807 ac_cpp_err=$ac_c_preproc_warn_flag
5808 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5809 else
5810 ac_cpp_err=
5811 fi
5812 else
5813 ac_cpp_err=yes
5814 fi
5815 if test -z "$ac_cpp_err"; then
5816 :
5817 else
5818 echo "$as_me: failed program was:" >&5
5819 sed 's/^/| /' conftest.$ac_ext >&5
5820
5821 # Broken: fails on valid input.
5822 continue
5823 fi
5824 rm -f conftest.err conftest.$ac_ext
5825
5826 # OK, works on sane cases. Now check whether non-existent headers
5827 # can be detected and how.
5828 cat >conftest.$ac_ext <<_ACEOF
5829 /* confdefs.h. */
5830 _ACEOF
5831 cat confdefs.h >>conftest.$ac_ext
5832 cat >>conftest.$ac_ext <<_ACEOF
5833 /* end confdefs.h. */
5834 #include <ac_nonexistent.h>
5835 _ACEOF
5836 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5837 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5838 ac_status=$?
5839 grep -v '^ *+' conftest.er1 >conftest.err
5840 rm -f conftest.er1
5841 cat conftest.err >&5
5842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843 (exit $ac_status); } >/dev/null; then
5844 if test -s conftest.err; then
5845 ac_cpp_err=$ac_c_preproc_warn_flag
5846 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5847 else
5848 ac_cpp_err=
5849 fi
5850 else
5851 ac_cpp_err=yes
5852 fi
5853 if test -z "$ac_cpp_err"; then
5854 # Broken: success on invalid input.
5855 continue
5856 else
5857 echo "$as_me: failed program was:" >&5
5858 sed 's/^/| /' conftest.$ac_ext >&5
5859
5860 # Passes both tests.
5861 ac_preproc_ok=:
5862 break
5863 fi
5864 rm -f conftest.err conftest.$ac_ext
5865
5866 done
5867 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5868 rm -f conftest.err conftest.$ac_ext
5869 if $ac_preproc_ok; then
5870 break
5871 fi
5872
5873 done
5874 ac_cv_prog_CPP=$CPP
5875
5876 fi
5877 CPP=$ac_cv_prog_CPP
5878 else
5879 ac_cv_prog_CPP=$CPP
5880 fi
5881 echo "$as_me:$LINENO: result: $CPP" >&5
5882 echo "${ECHO_T}$CPP" >&6
5883 ac_preproc_ok=false
5884 for ac_c_preproc_warn_flag in '' yes
5885 do
5886 # Use a header file that comes with gcc, so configuring glibc
5887 # with a fresh cross-compiler works.
5888 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5889 # <limits.h> exists even on freestanding compilers.
5890 # On the NeXT, cc -E runs the code through the compiler's parser,
5891 # not just through cpp. "Syntax error" is here to catch this case.
5892 cat >conftest.$ac_ext <<_ACEOF
5893 /* confdefs.h. */
5894 _ACEOF
5895 cat confdefs.h >>conftest.$ac_ext
5896 cat >>conftest.$ac_ext <<_ACEOF
5897 /* end confdefs.h. */
5898 #ifdef __STDC__
5899 # include <limits.h>
5900 #else
5901 # include <assert.h>
5902 #endif
5903 Syntax error
5904 _ACEOF
5905 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5906 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5907 ac_status=$?
5908 grep -v '^ *+' conftest.er1 >conftest.err
5909 rm -f conftest.er1
5910 cat conftest.err >&5
5911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5912 (exit $ac_status); } >/dev/null; then
5913 if test -s conftest.err; then
5914 ac_cpp_err=$ac_c_preproc_warn_flag
5915 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5916 else
5917 ac_cpp_err=
5918 fi
5919 else
5920 ac_cpp_err=yes
5921 fi
5922 if test -z "$ac_cpp_err"; then
5923 :
5924 else
5925 echo "$as_me: failed program was:" >&5
5926 sed 's/^/| /' conftest.$ac_ext >&5
5927
5928 # Broken: fails on valid input.
5929 continue
5930 fi
5931 rm -f conftest.err conftest.$ac_ext
5932
5933 # OK, works on sane cases. Now check whether non-existent headers
5934 # can be detected and how.
5935 cat >conftest.$ac_ext <<_ACEOF
5936 /* confdefs.h. */
5937 _ACEOF
5938 cat confdefs.h >>conftest.$ac_ext
5939 cat >>conftest.$ac_ext <<_ACEOF
5940 /* end confdefs.h. */
5941 #include <ac_nonexistent.h>
5942 _ACEOF
5943 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5944 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5945 ac_status=$?
5946 grep -v '^ *+' conftest.er1 >conftest.err
5947 rm -f conftest.er1
5948 cat conftest.err >&5
5949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950 (exit $ac_status); } >/dev/null; then
5951 if test -s conftest.err; then
5952 ac_cpp_err=$ac_c_preproc_warn_flag
5953 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5954 else
5955 ac_cpp_err=
5956 fi
5957 else
5958 ac_cpp_err=yes
5959 fi
5960 if test -z "$ac_cpp_err"; then
5961 # Broken: success on invalid input.
5962 continue
5963 else
5964 echo "$as_me: failed program was:" >&5
5965 sed 's/^/| /' conftest.$ac_ext >&5
5966
5967 # Passes both tests.
5968 ac_preproc_ok=:
5969 break
5970 fi
5971 rm -f conftest.err conftest.$ac_ext
5972
5973 done
5974 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5975 rm -f conftest.err conftest.$ac_ext
5976 if $ac_preproc_ok; then
5977 :
5978 else
5979 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5980 See \`config.log' for more details." >&5
5981 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5982 See \`config.log' for more details." >&2;}
5983 { (exit 1); exit 1; }; }
5984 fi
5985
5986 ac_ext=c
5987 ac_cpp='$CPP $CPPFLAGS'
5988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5991
5992
5993 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5994 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5995 if test "${ac_cv_header_stdc+set}" = set; then
5996 echo $ECHO_N "(cached) $ECHO_C" >&6
5997 else
5998 cat >conftest.$ac_ext <<_ACEOF
5999 /* confdefs.h. */
6000 _ACEOF
6001 cat confdefs.h >>conftest.$ac_ext
6002 cat >>conftest.$ac_ext <<_ACEOF
6003 /* end confdefs.h. */
6004 #include <stdlib.h>
6005 #include <stdarg.h>
6006 #include <string.h>
6007 #include <float.h>
6008
6009 int
6010 main ()
6011 {
6012
6013 ;
6014 return 0;
6015 }
6016 _ACEOF
6017 rm -f conftest.$ac_objext
6018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6019 (eval $ac_compile) 2>conftest.er1
6020 ac_status=$?
6021 grep -v '^ *+' conftest.er1 >conftest.err
6022 rm -f conftest.er1
6023 cat conftest.err >&5
6024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025 (exit $ac_status); } &&
6026 { ac_try='test -z "$ac_c_werror_flag"
6027 || test ! -s conftest.err'
6028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6029 (eval $ac_try) 2>&5
6030 ac_status=$?
6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); }; } &&
6033 { ac_try='test -s conftest.$ac_objext'
6034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6035 (eval $ac_try) 2>&5
6036 ac_status=$?
6037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038 (exit $ac_status); }; }; then
6039 ac_cv_header_stdc=yes
6040 else
6041 echo "$as_me: failed program was:" >&5
6042 sed 's/^/| /' conftest.$ac_ext >&5
6043
6044 ac_cv_header_stdc=no
6045 fi
6046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6047
6048 if test $ac_cv_header_stdc = yes; then
6049 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6050 cat >conftest.$ac_ext <<_ACEOF
6051 /* confdefs.h. */
6052 _ACEOF
6053 cat confdefs.h >>conftest.$ac_ext
6054 cat >>conftest.$ac_ext <<_ACEOF
6055 /* end confdefs.h. */
6056 #include <string.h>
6057
6058 _ACEOF
6059 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6060 $EGREP "memchr" >/dev/null 2>&1; then
6061 :
6062 else
6063 ac_cv_header_stdc=no
6064 fi
6065 rm -f conftest*
6066
6067 fi
6068
6069 if test $ac_cv_header_stdc = yes; then
6070 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6071 cat >conftest.$ac_ext <<_ACEOF
6072 /* confdefs.h. */
6073 _ACEOF
6074 cat confdefs.h >>conftest.$ac_ext
6075 cat >>conftest.$ac_ext <<_ACEOF
6076 /* end confdefs.h. */
6077 #include <stdlib.h>
6078
6079 _ACEOF
6080 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6081 $EGREP "free" >/dev/null 2>&1; then
6082 :
6083 else
6084 ac_cv_header_stdc=no
6085 fi
6086 rm -f conftest*
6087
6088 fi
6089
6090 if test $ac_cv_header_stdc = yes; then
6091 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6092 if test "$cross_compiling" = yes; then
6093 :
6094 else
6095 cat >conftest.$ac_ext <<_ACEOF
6096 /* confdefs.h. */
6097 _ACEOF
6098 cat confdefs.h >>conftest.$ac_ext
6099 cat >>conftest.$ac_ext <<_ACEOF
6100 /* end confdefs.h. */
6101 #include <ctype.h>
6102 #if ((' ' & 0x0FF) == 0x020)
6103 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6104 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6105 #else
6106 # define ISLOWER(c) \
6107 (('a' <= (c) && (c) <= 'i') \
6108 || ('j' <= (c) && (c) <= 'r') \
6109 || ('s' <= (c) && (c) <= 'z'))
6110 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6111 #endif
6112
6113 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6114 int
6115 main ()
6116 {
6117 int i;
6118 for (i = 0; i < 256; i++)
6119 if (XOR (islower (i), ISLOWER (i))
6120 || toupper (i) != TOUPPER (i))
6121 exit(2);
6122 exit (0);
6123 }
6124 _ACEOF
6125 rm -f conftest$ac_exeext
6126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6127 (eval $ac_link) 2>&5
6128 ac_status=$?
6129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6132 (eval $ac_try) 2>&5
6133 ac_status=$?
6134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135 (exit $ac_status); }; }; then
6136 :
6137 else
6138 echo "$as_me: program exited with status $ac_status" >&5
6139 echo "$as_me: failed program was:" >&5
6140 sed 's/^/| /' conftest.$ac_ext >&5
6141
6142 ( exit $ac_status )
6143 ac_cv_header_stdc=no
6144 fi
6145 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6146 fi
6147 fi
6148 fi
6149 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6150 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6151 if test $ac_cv_header_stdc = yes; then
6152
6153 cat >>confdefs.h <<\_ACEOF
6154 #define STDC_HEADERS 1
6155 _ACEOF
6156
6157 fi
6158
6159 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6170 inttypes.h stdint.h unistd.h
6171 do
6172 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6173 echo "$as_me:$LINENO: checking for $ac_header" >&5
6174 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6175 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6176 echo $ECHO_N "(cached) $ECHO_C" >&6
6177 else
6178 cat >conftest.$ac_ext <<_ACEOF
6179 /* confdefs.h. */
6180 _ACEOF
6181 cat confdefs.h >>conftest.$ac_ext
6182 cat >>conftest.$ac_ext <<_ACEOF
6183 /* end confdefs.h. */
6184 $ac_includes_default
6185
6186 #include <$ac_header>
6187 _ACEOF
6188 rm -f conftest.$ac_objext
6189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6190 (eval $ac_compile) 2>conftest.er1
6191 ac_status=$?
6192 grep -v '^ *+' conftest.er1 >conftest.err
6193 rm -f conftest.er1
6194 cat conftest.err >&5
6195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196 (exit $ac_status); } &&
6197 { ac_try='test -z "$ac_c_werror_flag"
6198 || test ! -s conftest.err'
6199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6200 (eval $ac_try) 2>&5
6201 ac_status=$?
6202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203 (exit $ac_status); }; } &&
6204 { ac_try='test -s conftest.$ac_objext'
6205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6206 (eval $ac_try) 2>&5
6207 ac_status=$?
6208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209 (exit $ac_status); }; }; then
6210 eval "$as_ac_Header=yes"
6211 else
6212 echo "$as_me: failed program was:" >&5
6213 sed 's/^/| /' conftest.$ac_ext >&5
6214
6215 eval "$as_ac_Header=no"
6216 fi
6217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6218 fi
6219 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6220 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6221 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6222 cat >>confdefs.h <<_ACEOF
6223 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6224 _ACEOF
6225
6226 fi
6227
6228 done
6229
6230
6231
6232 for ac_header in dlfcn.h
6233 do
6234 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6235 echo "$as_me:$LINENO: checking for $ac_header" >&5
6236 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6237 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6238 echo $ECHO_N "(cached) $ECHO_C" >&6
6239 else
6240 cat >conftest.$ac_ext <<_ACEOF
6241 /* confdefs.h. */
6242 _ACEOF
6243 cat confdefs.h >>conftest.$ac_ext
6244 cat >>conftest.$ac_ext <<_ACEOF
6245 /* end confdefs.h. */
6246 $ac_includes_default
6247
6248 #include <$ac_header>
6249 _ACEOF
6250 rm -f conftest.$ac_objext
6251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6252 (eval $ac_compile) 2>conftest.er1
6253 ac_status=$?
6254 grep -v '^ *+' conftest.er1 >conftest.err
6255 rm -f conftest.er1
6256 cat conftest.err >&5
6257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6258 (exit $ac_status); } &&
6259 { ac_try='test -z "$ac_c_werror_flag"
6260 || test ! -s conftest.err'
6261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6262 (eval $ac_try) 2>&5
6263 ac_status=$?
6264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265 (exit $ac_status); }; } &&
6266 { ac_try='test -s conftest.$ac_objext'
6267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6268 (eval $ac_try) 2>&5
6269 ac_status=$?
6270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271 (exit $ac_status); }; }; then
6272 eval "$as_ac_Header=yes"
6273 else
6274 echo "$as_me: failed program was:" >&5
6275 sed 's/^/| /' conftest.$ac_ext >&5
6276
6277 eval "$as_ac_Header=no"
6278 fi
6279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6280 fi
6281 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6282 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6283 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6284 cat >>confdefs.h <<_ACEOF
6285 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6286 _ACEOF
6287
6288 fi
6289
6290 done
6291
6292
6293
6294 # This can be used to rebuild libtool when needed
6295 LIBTOOL_DEPS="$ltmain"
6296
6297 # Always use our own libtool.
6298 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324 test -z "$LN_S" && LN_S="ln -s"
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339 if test -n "${ZSH_VERSION+set}" ; then
6340 setopt NO_GLOB_SUBST
6341 fi
6342
6343 echo "$as_me:$LINENO: checking for objdir" >&5
6344 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6345 if test "${lt_cv_objdir+set}" = set; then
6346 echo $ECHO_N "(cached) $ECHO_C" >&6
6347 else
6348 rm -f .libs 2>/dev/null
6349 mkdir .libs 2>/dev/null
6350 if test -d .libs; then
6351 lt_cv_objdir=.libs
6352 else
6353 # MS-DOS does not allow filenames that begin with a dot.
6354 lt_cv_objdir=_libs
6355 fi
6356 rmdir .libs 2>/dev/null
6357 fi
6358 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6359 echo "${ECHO_T}$lt_cv_objdir" >&6
6360 objdir=$lt_cv_objdir
6361
6362
6363
6364
6365
6366 cat >>confdefs.h <<_ACEOF
6367 #define LT_OBJDIR "$lt_cv_objdir/"
6368 _ACEOF
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386 case $host_os in
6387 aix3*)
6388 # AIX sometimes has problems with the GCC collect2 program. For some
6389 # reason, if we set the COLLECT_NAMES environment variable, the problems
6390 # vanish in a puff of smoke.
6391 if test "X${COLLECT_NAMES+set}" != Xset; then
6392 COLLECT_NAMES=
6393 export COLLECT_NAMES
6394 fi
6395 ;;
6396 esac
6397
6398 # Sed substitution that helps us do robust quoting. It backslashifies
6399 # metacharacters that are still active within double-quoted strings.
6400 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6401
6402 # Same as above, but do not quote variable references.
6403 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6404
6405 # Sed substitution to delay expansion of an escaped shell variable in a
6406 # double_quote_subst'ed string.
6407 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6408
6409 # Sed substitution to delay expansion of an escaped single quote.
6410 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6411
6412 # Sed substitution to avoid accidental globbing in evaled expressions
6413 no_glob_subst='s/\*/\\\*/g'
6414
6415 # Global variables:
6416 ofile=libtool
6417 can_build_shared=yes
6418
6419 # All known linkers require a `.a' archive for static linking (except MSVC,
6420 # which needs '.lib').
6421 libext=a
6422
6423 with_gnu_ld="$lt_cv_prog_gnu_ld"
6424
6425 old_CC="$CC"
6426 old_CFLAGS="$CFLAGS"
6427
6428 # Set sane defaults for various variables
6429 test -z "$CC" && CC=cc
6430 test -z "$LTCC" && LTCC=$CC
6431 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6432 test -z "$LD" && LD=ld
6433 test -z "$ac_objext" && ac_objext=o
6434
6435 for cc_temp in $compiler""; do
6436 case $cc_temp in
6437 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6438 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6439 \-*) ;;
6440 *) break;;
6441 esac
6442 done
6443 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6444
6445
6446 # Only perform the check for file, if the check method requires it
6447 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6448 case $deplibs_check_method in
6449 file_magic*)
6450 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6451 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6452 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6453 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6454 echo $ECHO_N "(cached) $ECHO_C" >&6
6455 else
6456 case $MAGIC_CMD in
6457 [\\/*] | ?:[\\/]*)
6458 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6459 ;;
6460 *)
6461 lt_save_MAGIC_CMD="$MAGIC_CMD"
6462 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6463 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6464 for ac_dir in $ac_dummy; do
6465 IFS="$lt_save_ifs"
6466 test -z "$ac_dir" && ac_dir=.
6467 if test -f $ac_dir/${ac_tool_prefix}file; then
6468 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6469 if test -n "$file_magic_test_file"; then
6470 case $deplibs_check_method in
6471 "file_magic "*)
6472 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6473 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6474 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6475 $EGREP "$file_magic_regex" > /dev/null; then
6476 :
6477 else
6478 cat <<_LT_EOF 1>&2
6479
6480 *** Warning: the command libtool uses to detect shared libraries,
6481 *** $file_magic_cmd, produces output that libtool cannot recognize.
6482 *** The result is that libtool may fail to recognize shared libraries
6483 *** as such. This will affect the creation of libtool libraries that
6484 *** depend on shared libraries, but programs linked with such libtool
6485 *** libraries will work regardless of this problem. Nevertheless, you
6486 *** may want to report the problem to your system manager and/or to
6487 *** bug-libtool@gnu.org
6488
6489 _LT_EOF
6490 fi ;;
6491 esac
6492 fi
6493 break
6494 fi
6495 done
6496 IFS="$lt_save_ifs"
6497 MAGIC_CMD="$lt_save_MAGIC_CMD"
6498 ;;
6499 esac
6500 fi
6501
6502 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6503 if test -n "$MAGIC_CMD"; then
6504 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6505 echo "${ECHO_T}$MAGIC_CMD" >&6
6506 else
6507 echo "$as_me:$LINENO: result: no" >&5
6508 echo "${ECHO_T}no" >&6
6509 fi
6510
6511
6512
6513
6514
6515 if test -z "$lt_cv_path_MAGIC_CMD"; then
6516 if test -n "$ac_tool_prefix"; then
6517 echo "$as_me:$LINENO: checking for file" >&5
6518 echo $ECHO_N "checking for file... $ECHO_C" >&6
6519 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6520 echo $ECHO_N "(cached) $ECHO_C" >&6
6521 else
6522 case $MAGIC_CMD in
6523 [\\/*] | ?:[\\/]*)
6524 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6525 ;;
6526 *)
6527 lt_save_MAGIC_CMD="$MAGIC_CMD"
6528 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6529 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6530 for ac_dir in $ac_dummy; do
6531 IFS="$lt_save_ifs"
6532 test -z "$ac_dir" && ac_dir=.
6533 if test -f $ac_dir/file; then
6534 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6535 if test -n "$file_magic_test_file"; then
6536 case $deplibs_check_method in
6537 "file_magic "*)
6538 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6539 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6540 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6541 $EGREP "$file_magic_regex" > /dev/null; then
6542 :
6543 else
6544 cat <<_LT_EOF 1>&2
6545
6546 *** Warning: the command libtool uses to detect shared libraries,
6547 *** $file_magic_cmd, produces output that libtool cannot recognize.
6548 *** The result is that libtool may fail to recognize shared libraries
6549 *** as such. This will affect the creation of libtool libraries that
6550 *** depend on shared libraries, but programs linked with such libtool
6551 *** libraries will work regardless of this problem. Nevertheless, you
6552 *** may want to report the problem to your system manager and/or to
6553 *** bug-libtool@gnu.org
6554
6555 _LT_EOF
6556 fi ;;
6557 esac
6558 fi
6559 break
6560 fi
6561 done
6562 IFS="$lt_save_ifs"
6563 MAGIC_CMD="$lt_save_MAGIC_CMD"
6564 ;;
6565 esac
6566 fi
6567
6568 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6569 if test -n "$MAGIC_CMD"; then
6570 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6571 echo "${ECHO_T}$MAGIC_CMD" >&6
6572 else
6573 echo "$as_me:$LINENO: result: no" >&5
6574 echo "${ECHO_T}no" >&6
6575 fi
6576
6577
6578 else
6579 MAGIC_CMD=:
6580 fi
6581 fi
6582
6583 fi
6584 ;;
6585 esac
6586
6587 # Use C for the default configuration in the libtool script
6588
6589 lt_save_CC="$CC"
6590 ac_ext=c
6591 ac_cpp='$CPP $CPPFLAGS'
6592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6595
6596
6597 # Source file extension for C test sources.
6598 ac_ext=c
6599
6600 # Object file extension for compiled C test sources.
6601 objext=o
6602 objext=$objext
6603
6604 # Code to be used in simple compile tests
6605 lt_simple_compile_test_code="int some_variable = 0;"
6606
6607 # Code to be used in simple link tests
6608 lt_simple_link_test_code='int main(){return(0);}'
6609
6610
6611
6612
6613
6614
6615
6616 # If no C compiler was specified, use CC.
6617 LTCC=${LTCC-"$CC"}
6618
6619 # If no C compiler flags were specified, use CFLAGS.
6620 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6621
6622 # Allow CC to be a program name with arguments.
6623 compiler=$CC
6624
6625 # Save the default compiler, since it gets overwritten when the other
6626 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6627 compiler_DEFAULT=$CC
6628
6629 # save warnings/boilerplate of simple test code
6630 ac_outfile=conftest.$ac_objext
6631 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6632 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6633 _lt_compiler_boilerplate=`cat conftest.err`
6634 $RM conftest*
6635
6636 ac_outfile=conftest.$ac_objext
6637 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6638 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6639 _lt_linker_boilerplate=`cat conftest.err`
6640 $RM conftest*
6641
6642
6643 ## CAVEAT EMPTOR:
6644 ## There is no encapsulation within the following macros, do not change
6645 ## the running order or otherwise move them around unless you know exactly
6646 ## what you are doing...
6647 if test -n "$compiler"; then
6648
6649 lt_prog_compiler_no_builtin_flag=
6650
6651 if test "$GCC" = yes; then
6652 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6653
6654 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6655 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6656 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6657 echo $ECHO_N "(cached) $ECHO_C" >&6
6658 else
6659 lt_cv_prog_compiler_rtti_exceptions=no
6660 ac_outfile=conftest.$ac_objext
6661 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6662 lt_compiler_flag="-fno-rtti -fno-exceptions"
6663 # Insert the option either (1) after the last *FLAGS variable, or
6664 # (2) before a word containing "conftest.", or (3) at the end.
6665 # Note that $ac_compile itself does not contain backslashes and begins
6666 # with a dollar sign (not a hyphen), so the echo should work correctly.
6667 # The option is referenced via a variable to avoid confusing sed.
6668 lt_compile=`echo "$ac_compile" | $SED \
6669 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6670 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6671 -e 's:$: $lt_compiler_flag:'`
6672 (eval echo "\"\$as_me:6672: $lt_compile\"" >&5)
6673 (eval "$lt_compile" 2>conftest.err)
6674 ac_status=$?
6675 cat conftest.err >&5
6676 echo "$as_me:6676: \$? = $ac_status" >&5
6677 if (exit $ac_status) && test -s "$ac_outfile"; then
6678 # The compiler can only warn and ignore the option if not recognized
6679 # So say no if there are warnings other than the usual output.
6680 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6681 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6682 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6683 lt_cv_prog_compiler_rtti_exceptions=yes
6684 fi
6685 fi
6686 $RM conftest*
6687
6688 fi
6689 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6690 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6691
6692 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6693 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6694 else
6695 :
6696 fi
6697
6698 fi
6699
6700
6701
6702
6703
6704
6705 lt_prog_compiler_wl=
6706 lt_prog_compiler_pic=
6707 lt_prog_compiler_static=
6708
6709 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6710 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6711
6712 if test "$GCC" = yes; then
6713 lt_prog_compiler_wl='-Wl,'
6714 lt_prog_compiler_static='-static'
6715
6716 case $host_os in
6717 aix*)
6718 # All AIX code is PIC.
6719 if test "$host_cpu" = ia64; then
6720 # AIX 5 now supports IA64 processor
6721 lt_prog_compiler_static='-Bstatic'
6722 fi
6723 ;;
6724
6725 amigaos*)
6726 if test "$host_cpu" = m68k; then
6727 # FIXME: we need at least 68020 code to build shared libraries, but
6728 # adding the `-m68020' flag to GCC prevents building anything better,
6729 # like `-m68040'.
6730 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6731 fi
6732 ;;
6733
6734 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6735 # PIC is the default for these OSes.
6736 ;;
6737
6738 mingw* | cygwin* | pw32* | os2*)
6739 # This hack is so that the source file can tell whether it is being
6740 # built for inclusion in a dll (and should export symbols for example).
6741 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6742 # (--disable-auto-import) libraries
6743 lt_prog_compiler_pic='-DDLL_EXPORT'
6744 ;;
6745
6746 darwin* | rhapsody*)
6747 # PIC is the default on this platform
6748 # Common symbols not allowed in MH_DYLIB files
6749 lt_prog_compiler_pic='-fno-common'
6750 ;;
6751
6752 hpux*)
6753 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6754 # not for PA HP-UX.
6755 case $host_cpu in
6756 hppa*64*|ia64*)
6757 # +Z the default
6758 ;;
6759 *)
6760 lt_prog_compiler_pic='-fPIC'
6761 ;;
6762 esac
6763 ;;
6764
6765 interix[3-9]*)
6766 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6767 # Instead, we relocate shared libraries at runtime.
6768 ;;
6769
6770 msdosdjgpp*)
6771 # Just because we use GCC doesn't mean we suddenly get shared libraries
6772 # on systems that don't support them.
6773 lt_prog_compiler_can_build_shared=no
6774 enable_shared=no
6775 ;;
6776
6777 *nto* | *qnx*)
6778 # QNX uses GNU C++, but need to define -shared option too, otherwise
6779 # it will coredump.
6780 lt_prog_compiler_pic='-fPIC -shared'
6781 ;;
6782
6783 sysv4*MP*)
6784 if test -d /usr/nec; then
6785 lt_prog_compiler_pic=-Kconform_pic
6786 fi
6787 ;;
6788
6789 *)
6790 lt_prog_compiler_pic='-fPIC'
6791 ;;
6792 esac
6793 else
6794 # PORTME Check for flag to pass linker flags through the system compiler.
6795 case $host_os in
6796 aix*)
6797 lt_prog_compiler_wl='-Wl,'
6798 if test "$host_cpu" = ia64; then
6799 # AIX 5 now supports IA64 processor
6800 lt_prog_compiler_static='-Bstatic'
6801 else
6802 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6803 fi
6804 ;;
6805 darwin*)
6806 # PIC is the default on this platform
6807 # Common symbols not allowed in MH_DYLIB files
6808 case $cc_basename in
6809 xlc*)
6810 lt_prog_compiler_pic='-qnocommon'
6811 lt_prog_compiler_wl='-Wl,'
6812 ;;
6813 esac
6814 ;;
6815
6816 mingw* | cygwin* | pw32* | os2*)
6817 # This hack is so that the source file can tell whether it is being
6818 # built for inclusion in a dll (and should export symbols for example).
6819 lt_prog_compiler_pic='-DDLL_EXPORT'
6820 ;;
6821
6822 hpux9* | hpux10* | hpux11*)
6823 lt_prog_compiler_wl='-Wl,'
6824 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6825 # not for PA HP-UX.
6826 case $host_cpu in
6827 hppa*64*|ia64*)
6828 # +Z the default
6829 ;;
6830 *)
6831 lt_prog_compiler_pic='+Z'
6832 ;;
6833 esac
6834 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6835 lt_prog_compiler_static='${wl}-a ${wl}archive'
6836 ;;
6837
6838 irix5* | irix6* | nonstopux*)
6839 lt_prog_compiler_wl='-Wl,'
6840 # PIC (with -KPIC) is the default.
6841 lt_prog_compiler_static='-non_shared'
6842 ;;
6843
6844 linux* | k*bsd*-gnu)
6845 case $cc_basename in
6846 icc* | ecc*)
6847 lt_prog_compiler_wl='-Wl,'
6848 lt_prog_compiler_pic='-KPIC'
6849 lt_prog_compiler_static='-static'
6850 ;;
6851 pgcc* | pgf77* | pgf90* | pgf95*)
6852 # Portland Group compilers (*not* the Pentium gcc compiler,
6853 # which looks to be a dead project)
6854 lt_prog_compiler_wl='-Wl,'
6855 lt_prog_compiler_pic='-fpic'
6856 lt_prog_compiler_static='-Bstatic'
6857 ;;
6858 ccc*)
6859 lt_prog_compiler_wl='-Wl,'
6860 # All Alpha code is PIC.
6861 lt_prog_compiler_static='-non_shared'
6862 ;;
6863 *)
6864 case `$CC -V 2>&1 | sed 5q` in
6865 *Sun\ C*)
6866 # Sun C 5.9
6867 lt_prog_compiler_pic='-KPIC'
6868 lt_prog_compiler_static='-Bstatic'
6869 lt_prog_compiler_wl='-Wl,'
6870 ;;
6871 *Sun\ F*)
6872 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6873 lt_prog_compiler_pic='-KPIC'
6874 lt_prog_compiler_static='-Bstatic'
6875 lt_prog_compiler_wl=''
6876 ;;
6877 esac
6878 ;;
6879 esac
6880 ;;
6881
6882 newsos6)
6883 lt_prog_compiler_pic='-KPIC'
6884 lt_prog_compiler_static='-Bstatic'
6885 ;;
6886
6887 *nto* | *qnx*)
6888 # QNX uses GNU C++, but need to define -shared option too, otherwise
6889 # it will coredump.
6890 lt_prog_compiler_pic='-fPIC -shared'
6891 ;;
6892
6893 osf3* | osf4* | osf5*)
6894 lt_prog_compiler_wl='-Wl,'
6895 # All OSF/1 code is PIC.
6896 lt_prog_compiler_static='-non_shared'
6897 ;;
6898
6899 rdos*)
6900 lt_prog_compiler_static='-non_shared'
6901 ;;
6902
6903 solaris*)
6904 lt_prog_compiler_pic='-KPIC'
6905 lt_prog_compiler_static='-Bstatic'
6906 case $cc_basename in
6907 f77* | f90* | f95*)
6908 lt_prog_compiler_wl='-Qoption ld ';;
6909 *)
6910 lt_prog_compiler_wl='-Wl,';;
6911 esac
6912 ;;
6913
6914 sunos4*)
6915 lt_prog_compiler_wl='-Qoption ld '
6916 lt_prog_compiler_pic='-PIC'
6917 lt_prog_compiler_static='-Bstatic'
6918 ;;
6919
6920 sysv4 | sysv4.2uw2* | sysv4.3*)
6921 lt_prog_compiler_wl='-Wl,'
6922 lt_prog_compiler_pic='-KPIC'
6923 lt_prog_compiler_static='-Bstatic'
6924 ;;
6925
6926 sysv4*MP*)
6927 if test -d /usr/nec ;then
6928 lt_prog_compiler_pic='-Kconform_pic'
6929 lt_prog_compiler_static='-Bstatic'
6930 fi
6931 ;;
6932
6933 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6934 lt_prog_compiler_wl='-Wl,'
6935 lt_prog_compiler_pic='-KPIC'
6936 lt_prog_compiler_static='-Bstatic'
6937 ;;
6938
6939 unicos*)
6940 lt_prog_compiler_wl='-Wl,'
6941 lt_prog_compiler_can_build_shared=no
6942 ;;
6943
6944 uts4*)
6945 lt_prog_compiler_pic='-pic'
6946 lt_prog_compiler_static='-Bstatic'
6947 ;;
6948
6949 *)
6950 lt_prog_compiler_can_build_shared=no
6951 ;;
6952 esac
6953 fi
6954
6955 case $host_os in
6956 # For platforms which do not support PIC, -DPIC is meaningless:
6957 *djgpp*)
6958 lt_prog_compiler_pic=
6959 ;;
6960 *)
6961 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6962 ;;
6963 esac
6964 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6965 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6966
6967
6968
6969
6970
6971
6972 #
6973 # Check to make sure the PIC flag actually works.
6974 #
6975 if test -n "$lt_prog_compiler_pic"; then
6976 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6977 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6978 if test "${lt_prog_compiler_pic_works+set}" = set; then
6979 echo $ECHO_N "(cached) $ECHO_C" >&6
6980 else
6981 lt_prog_compiler_pic_works=no
6982 ac_outfile=conftest.$ac_objext
6983 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6984 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6985 # Insert the option either (1) after the last *FLAGS variable, or
6986 # (2) before a word containing "conftest.", or (3) at the end.
6987 # Note that $ac_compile itself does not contain backslashes and begins
6988 # with a dollar sign (not a hyphen), so the echo should work correctly.
6989 # The option is referenced via a variable to avoid confusing sed.
6990 lt_compile=`echo "$ac_compile" | $SED \
6991 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6992 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6993 -e 's:$: $lt_compiler_flag:'`
6994 (eval echo "\"\$as_me:6994: $lt_compile\"" >&5)
6995 (eval "$lt_compile" 2>conftest.err)
6996 ac_status=$?
6997 cat conftest.err >&5
6998 echo "$as_me:6998: \$? = $ac_status" >&5
6999 if (exit $ac_status) && test -s "$ac_outfile"; then
7000 # The compiler can only warn and ignore the option if not recognized
7001 # So say no if there are warnings other than the usual output.
7002 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7003 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7004 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7005 lt_prog_compiler_pic_works=yes
7006 fi
7007 fi
7008 $RM conftest*
7009
7010 fi
7011 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7012 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7013
7014 if test x"$lt_prog_compiler_pic_works" = xyes; then
7015 case $lt_prog_compiler_pic in
7016 "" | " "*) ;;
7017 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7018 esac
7019 else
7020 lt_prog_compiler_pic=
7021 lt_prog_compiler_can_build_shared=no
7022 fi
7023
7024 fi
7025
7026
7027
7028
7029
7030
7031 #
7032 # Check to make sure the static flag actually works.
7033 #
7034 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7035 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7036 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7037 if test "${lt_prog_compiler_static_works+set}" = set; then
7038 echo $ECHO_N "(cached) $ECHO_C" >&6
7039 else
7040 lt_prog_compiler_static_works=no
7041 save_LDFLAGS="$LDFLAGS"
7042 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7043 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7044 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7045 # The linker can only warn and ignore the option if not recognized
7046 # So say no if there are warnings
7047 if test -s conftest.err; then
7048 # Append any errors to the config.log.
7049 cat conftest.err 1>&5
7050 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7051 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7052 if diff conftest.exp conftest.er2 >/dev/null; then
7053 lt_prog_compiler_static_works=yes
7054 fi
7055 else
7056 lt_prog_compiler_static_works=yes
7057 fi
7058 fi
7059 $RM conftest*
7060 LDFLAGS="$save_LDFLAGS"
7061
7062 fi
7063 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7064 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7065
7066 if test x"$lt_prog_compiler_static_works" = xyes; then
7067 :
7068 else
7069 lt_prog_compiler_static=
7070 fi
7071
7072
7073
7074
7075
7076
7077
7078 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7079 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7080 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7081 echo $ECHO_N "(cached) $ECHO_C" >&6
7082 else
7083 lt_cv_prog_compiler_c_o=no
7084 $RM -r conftest 2>/dev/null
7085 mkdir conftest
7086 cd conftest
7087 mkdir out
7088 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7089
7090 lt_compiler_flag="-o out/conftest2.$ac_objext"
7091 # Insert the option either (1) after the last *FLAGS variable, or
7092 # (2) before a word containing "conftest.", or (3) at the end.
7093 # Note that $ac_compile itself does not contain backslashes and begins
7094 # with a dollar sign (not a hyphen), so the echo should work correctly.
7095 lt_compile=`echo "$ac_compile" | $SED \
7096 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7097 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7098 -e 's:$: $lt_compiler_flag:'`
7099 (eval echo "\"\$as_me:7099: $lt_compile\"" >&5)
7100 (eval "$lt_compile" 2>out/conftest.err)
7101 ac_status=$?
7102 cat out/conftest.err >&5
7103 echo "$as_me:7103: \$? = $ac_status" >&5
7104 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7105 then
7106 # The compiler can only warn and ignore the option if not recognized
7107 # So say no if there are warnings
7108 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7109 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7110 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7111 lt_cv_prog_compiler_c_o=yes
7112 fi
7113 fi
7114 chmod u+w . 2>&5
7115 $RM conftest*
7116 # SGI C++ compiler will create directory out/ii_files/ for
7117 # template instantiation
7118 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7119 $RM out/* && rmdir out
7120 cd ..
7121 $RM -r conftest
7122 $RM conftest*
7123
7124 fi
7125 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7126 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7127
7128
7129
7130
7131
7132
7133 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7134 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7135 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7136 echo $ECHO_N "(cached) $ECHO_C" >&6
7137 else
7138 lt_cv_prog_compiler_c_o=no
7139 $RM -r conftest 2>/dev/null
7140 mkdir conftest
7141 cd conftest
7142 mkdir out
7143 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7144
7145 lt_compiler_flag="-o out/conftest2.$ac_objext"
7146 # Insert the option either (1) after the last *FLAGS variable, or
7147 # (2) before a word containing "conftest.", or (3) at the end.
7148 # Note that $ac_compile itself does not contain backslashes and begins
7149 # with a dollar sign (not a hyphen), so the echo should work correctly.
7150 lt_compile=`echo "$ac_compile" | $SED \
7151 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7152 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7153 -e 's:$: $lt_compiler_flag:'`
7154 (eval echo "\"\$as_me:7154: $lt_compile\"" >&5)
7155 (eval "$lt_compile" 2>out/conftest.err)
7156 ac_status=$?
7157 cat out/conftest.err >&5
7158 echo "$as_me:7158: \$? = $ac_status" >&5
7159 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7160 then
7161 # The compiler can only warn and ignore the option if not recognized
7162 # So say no if there are warnings
7163 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7164 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7165 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7166 lt_cv_prog_compiler_c_o=yes
7167 fi
7168 fi
7169 chmod u+w . 2>&5
7170 $RM conftest*
7171 # SGI C++ compiler will create directory out/ii_files/ for
7172 # template instantiation
7173 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7174 $RM out/* && rmdir out
7175 cd ..
7176 $RM -r conftest
7177 $RM conftest*
7178
7179 fi
7180 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7181 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7182
7183
7184
7185
7186 hard_links="nottested"
7187 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7188 # do not overwrite the value of need_locks provided by the user
7189 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7190 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7191 hard_links=yes
7192 $RM conftest*
7193 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7194 touch conftest.a
7195 ln conftest.a conftest.b 2>&5 || hard_links=no
7196 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7197 echo "$as_me:$LINENO: result: $hard_links" >&5
7198 echo "${ECHO_T}$hard_links" >&6
7199 if test "$hard_links" = no; then
7200 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7201 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7202 need_locks=warn
7203 fi
7204 else
7205 need_locks=no
7206 fi
7207
7208
7209
7210
7211
7212
7213 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7214 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7215
7216 runpath_var=
7217 allow_undefined_flag=
7218 always_export_symbols=no
7219 archive_cmds=
7220 archive_expsym_cmds=
7221 compiler_needs_object=no
7222 enable_shared_with_static_runtimes=no
7223 export_dynamic_flag_spec=
7224 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7225 hardcode_automatic=no
7226 hardcode_direct=no
7227 hardcode_direct_absolute=no
7228 hardcode_libdir_flag_spec=
7229 hardcode_libdir_flag_spec_ld=
7230 hardcode_libdir_separator=
7231 hardcode_minus_L=no
7232 hardcode_shlibpath_var=unsupported
7233 inherit_rpath=no
7234 link_all_deplibs=unknown
7235 module_cmds=
7236 module_expsym_cmds=
7237 old_archive_from_new_cmds=
7238 old_archive_from_expsyms_cmds=
7239 thread_safe_flag_spec=
7240 whole_archive_flag_spec=
7241 # include_expsyms should be a list of space-separated symbols to be *always*
7242 # included in the symbol list
7243 include_expsyms=
7244 # exclude_expsyms can be an extended regexp of symbols to exclude
7245 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7246 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7247 # as well as any symbol that contains `d'.
7248 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7249 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7250 # platforms (ab)use it in PIC code, but their linkers get confused if
7251 # the symbol is explicitly referenced. Since portable code cannot
7252 # rely on this symbol name, it's probably fine to never include it in
7253 # preloaded symbol tables.
7254 extract_expsyms_cmds=
7255
7256 case $host_os in
7257 cygwin* | mingw* | pw32*)
7258 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7259 # When not using gcc, we currently assume that we are using
7260 # Microsoft Visual C++.
7261 if test "$GCC" != yes; then
7262 with_gnu_ld=no
7263 fi
7264 ;;
7265 interix*)
7266 # we just hope/assume this is gcc and not c89 (= MSVC++)
7267 with_gnu_ld=yes
7268 ;;
7269 openbsd*)
7270 with_gnu_ld=no
7271 ;;
7272 esac
7273
7274 ld_shlibs=yes
7275 if test "$with_gnu_ld" = yes; then
7276 # If archive_cmds runs LD, not CC, wlarc should be empty
7277 wlarc='${wl}'
7278
7279 # Set some defaults for GNU ld with shared library support. These
7280 # are reset later if shared libraries are not supported. Putting them
7281 # here allows them to be overridden if necessary.
7282 runpath_var=LD_RUN_PATH
7283 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7284 export_dynamic_flag_spec='${wl}--export-dynamic'
7285 # ancient GNU ld didn't support --whole-archive et. al.
7286 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7287 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7288 else
7289 whole_archive_flag_spec=
7290 fi
7291 supports_anon_versioning=no
7292 case `$LD -v 2>&1` in
7293 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7294 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7295 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7296 *\ 2.11.*) ;; # other 2.11 versions
7297 *) supports_anon_versioning=yes ;;
7298 esac
7299
7300 # See if GNU ld supports shared libraries.
7301 case $host_os in
7302 aix[3-9]*)
7303 # On AIX/PPC, the GNU linker is very broken
7304 if test "$host_cpu" != ia64; then
7305 ld_shlibs=no
7306 cat <<_LT_EOF 1>&2
7307
7308 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7309 *** to be unable to reliably create shared libraries on AIX.
7310 *** Therefore, libtool is disabling shared libraries support. If you
7311 *** really care for shared libraries, you may want to modify your PATH
7312 *** so that a non-GNU linker is found, and then restart.
7313
7314 _LT_EOF
7315 fi
7316 ;;
7317
7318 amigaos*)
7319 if test "$host_cpu" = m68k; then
7320 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)'
7321 hardcode_libdir_flag_spec='-L$libdir'
7322 hardcode_minus_L=yes
7323 fi
7324
7325 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7326 # that the semantics of dynamic libraries on AmigaOS, at least up
7327 # to version 4, is to share data among multiple programs linked
7328 # with the same dynamic library. Since this doesn't match the
7329 # behavior of shared libraries on other platforms, we can't use
7330 # them.
7331 ld_shlibs=no
7332 ;;
7333
7334 beos*)
7335 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7336 allow_undefined_flag=unsupported
7337 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7338 # support --undefined. This deserves some investigation. FIXME
7339 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7340 else
7341 ld_shlibs=no
7342 fi
7343 ;;
7344
7345 cygwin* | mingw* | pw32*)
7346 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7347 # as there is no search path for DLLs.
7348 hardcode_libdir_flag_spec='-L$libdir'
7349 allow_undefined_flag=unsupported
7350 always_export_symbols=no
7351 enable_shared_with_static_runtimes=yes
7352 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7353
7354 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7355 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7356 # If the export-symbols file already is a .def file (1st line
7357 # is EXPORTS), use it as is; otherwise, prepend...
7358 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7359 cp $export_symbols $output_objdir/$soname.def;
7360 else
7361 echo EXPORTS > $output_objdir/$soname.def;
7362 cat $export_symbols >> $output_objdir/$soname.def;
7363 fi~
7364 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7365 else
7366 ld_shlibs=no
7367 fi
7368 ;;
7369
7370 interix[3-9]*)
7371 hardcode_direct=no
7372 hardcode_shlibpath_var=no
7373 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7374 export_dynamic_flag_spec='${wl}-E'
7375 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7376 # Instead, shared libraries are loaded at an image base (0x10000000 by
7377 # default) and relocated if they conflict, which is a slow very memory
7378 # consuming and fragmenting process. To avoid this, we pick a random,
7379 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7380 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7381 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7382 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'
7383 ;;
7384
7385 gnu* | linux* | tpf* | k*bsd*-gnu)
7386 tmp_diet=no
7387 if test "$host_os" = linux-dietlibc; then
7388 case $cc_basename in
7389 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7390 esac
7391 fi
7392 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7393 && test "$tmp_diet" = no
7394 then
7395 tmp_addflag=
7396 case $cc_basename,$host_cpu in
7397 pgcc*) # Portland Group C compiler
7398 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'
7399 tmp_addflag=' $pic_flag'
7400 ;;
7401 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7402 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'
7403 tmp_addflag=' $pic_flag -Mnomain' ;;
7404 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7405 tmp_addflag=' -i_dynamic' ;;
7406 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7407 tmp_addflag=' -i_dynamic -nofor_main' ;;
7408 ifc* | ifort*) # Intel Fortran compiler
7409 tmp_addflag=' -nofor_main' ;;
7410 esac
7411 case `$CC -V 2>&1 | sed 5q` in
7412 *Sun\ C*) # Sun C 5.9
7413 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'
7414 compiler_needs_object=yes
7415 tmp_sharedflag='-G' ;;
7416 *Sun\ F*) # Sun Fortran 8.3
7417 tmp_sharedflag='-G' ;;
7418 *)
7419 tmp_sharedflag='-shared' ;;
7420 esac
7421 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7422
7423 if test "x$supports_anon_versioning" = xyes; then
7424 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7425 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7426 echo "local: *; };" >> $output_objdir/$libname.ver~
7427 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7428 fi
7429 else
7430 ld_shlibs=no
7431 fi
7432 ;;
7433
7434 netbsd*)
7435 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7436 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7437 wlarc=
7438 else
7439 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7440 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7441 fi
7442 ;;
7443
7444 solaris*)
7445 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7446 ld_shlibs=no
7447 cat <<_LT_EOF 1>&2
7448
7449 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7450 *** create shared libraries on Solaris systems. Therefore, libtool
7451 *** is disabling shared libraries support. We urge you to upgrade GNU
7452 *** binutils to release 2.9.1 or newer. Another option is to modify
7453 *** your PATH or compiler configuration so that the native linker is
7454 *** used, and then restart.
7455
7456 _LT_EOF
7457 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7458 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7459 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7460 else
7461 ld_shlibs=no
7462 fi
7463 ;;
7464
7465 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7466 case `$LD -v 2>&1` in
7467 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7468 ld_shlibs=no
7469 cat <<_LT_EOF 1>&2
7470
7471 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7472 *** reliably create shared libraries on SCO systems. Therefore, libtool
7473 *** is disabling shared libraries support. We urge you to upgrade GNU
7474 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7475 *** your PATH or compiler configuration so that the native linker is
7476 *** used, and then restart.
7477
7478 _LT_EOF
7479 ;;
7480 *)
7481 # For security reasons, it is highly recommended that you always
7482 # use absolute paths for naming shared libraries, and exclude the
7483 # DT_RUNPATH tag from executables and libraries. But doing so
7484 # requires that you compile everything twice, which is a pain.
7485 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7486 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7487 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7488 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7489 else
7490 ld_shlibs=no
7491 fi
7492 ;;
7493 esac
7494 ;;
7495
7496 sunos4*)
7497 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7498 wlarc=
7499 hardcode_direct=yes
7500 hardcode_shlibpath_var=no
7501 ;;
7502
7503 *)
7504 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7505 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7506 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7507 else
7508 ld_shlibs=no
7509 fi
7510 ;;
7511 esac
7512
7513 if test "$ld_shlibs" = no; then
7514 runpath_var=
7515 hardcode_libdir_flag_spec=
7516 export_dynamic_flag_spec=
7517 whole_archive_flag_spec=
7518 fi
7519 else
7520 # PORTME fill in a description of your system's linker (not GNU ld)
7521 case $host_os in
7522 aix3*)
7523 allow_undefined_flag=unsupported
7524 always_export_symbols=yes
7525 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'
7526 # Note: this linker hardcodes the directories in LIBPATH if there
7527 # are no directories specified by -L.
7528 hardcode_minus_L=yes
7529 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7530 # Neither direct hardcoding nor static linking is supported with a
7531 # broken collect2.
7532 hardcode_direct=unsupported
7533 fi
7534 ;;
7535
7536 aix[4-9]*)
7537 if test "$host_cpu" = ia64; then
7538 # On IA64, the linker does run time linking by default, so we don't
7539 # have to do anything special.
7540 aix_use_runtimelinking=no
7541 exp_sym_flag='-Bexport'
7542 no_entry_flag=""
7543 else
7544 # If we're using GNU nm, then we don't want the "-C" option.
7545 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7546 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7547 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'
7548 else
7549 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'
7550 fi
7551 aix_use_runtimelinking=no
7552
7553 # Test if we are trying to use run time linking or normal
7554 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7555 # need to do runtime linking.
7556 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7557 for ld_flag in $LDFLAGS; do
7558 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7559 aix_use_runtimelinking=yes
7560 break
7561 fi
7562 done
7563 ;;
7564 esac
7565
7566 exp_sym_flag='-bexport'
7567 no_entry_flag='-bnoentry'
7568 fi
7569
7570 # When large executables or shared objects are built, AIX ld can
7571 # have problems creating the table of contents. If linking a library
7572 # or program results in "error TOC overflow" add -mminimal-toc to
7573 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7574 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7575
7576 archive_cmds=''
7577 hardcode_direct=yes
7578 hardcode_direct_absolute=yes
7579 hardcode_libdir_separator=':'
7580 link_all_deplibs=yes
7581 file_list_spec='${wl}-f,'
7582
7583 if test "$GCC" = yes; then
7584 case $host_os in aix4.[012]|aix4.[012].*)
7585 # We only want to do this on AIX 4.2 and lower, the check
7586 # below for broken collect2 doesn't work under 4.3+
7587 collect2name=`${CC} -print-prog-name=collect2`
7588 if test -f "$collect2name" &&
7589 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7590 then
7591 # We have reworked collect2
7592 :
7593 else
7594 # We have old collect2
7595 hardcode_direct=unsupported
7596 # It fails to find uninstalled libraries when the uninstalled
7597 # path is not listed in the libpath. Setting hardcode_minus_L
7598 # to unsupported forces relinking
7599 hardcode_minus_L=yes
7600 hardcode_libdir_flag_spec='-L$libdir'
7601 hardcode_libdir_separator=
7602 fi
7603 ;;
7604 esac
7605 shared_flag='-shared'
7606 if test "$aix_use_runtimelinking" = yes; then
7607 shared_flag="$shared_flag "'${wl}-G'
7608 fi
7609 else
7610 # not using gcc
7611 if test "$host_cpu" = ia64; then
7612 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7613 # chokes on -Wl,-G. The following line is correct:
7614 shared_flag='-G'
7615 else
7616 if test "$aix_use_runtimelinking" = yes; then
7617 shared_flag='${wl}-G'
7618 else
7619 shared_flag='${wl}-bM:SRE'
7620 fi
7621 fi
7622 fi
7623
7624 # It seems that -bexpall does not export symbols beginning with
7625 # underscore (_), so it is better to generate a list of symbols to export.
7626 always_export_symbols=yes
7627 if test "$aix_use_runtimelinking" = yes; then
7628 # Warning - without using the other runtime loading flags (-brtl),
7629 # -berok will link without error, but may produce a broken library.
7630 allow_undefined_flag='-berok'
7631 # Determine the default libpath from the value encoded in an
7632 # empty executable.
7633 cat >conftest.$ac_ext <<_ACEOF
7634 /* confdefs.h. */
7635 _ACEOF
7636 cat confdefs.h >>conftest.$ac_ext
7637 cat >>conftest.$ac_ext <<_ACEOF
7638 /* end confdefs.h. */
7639
7640 int
7641 main ()
7642 {
7643
7644 ;
7645 return 0;
7646 }
7647 _ACEOF
7648 rm -f conftest.$ac_objext conftest$ac_exeext
7649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7650 (eval $ac_link) 2>conftest.er1
7651 ac_status=$?
7652 grep -v '^ *+' conftest.er1 >conftest.err
7653 rm -f conftest.er1
7654 cat conftest.err >&5
7655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7656 (exit $ac_status); } &&
7657 { ac_try='test -z "$ac_c_werror_flag"
7658 || test ! -s conftest.err'
7659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7660 (eval $ac_try) 2>&5
7661 ac_status=$?
7662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7663 (exit $ac_status); }; } &&
7664 { ac_try='test -s conftest$ac_exeext'
7665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7666 (eval $ac_try) 2>&5
7667 ac_status=$?
7668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669 (exit $ac_status); }; }; then
7670
7671 lt_aix_libpath_sed='
7672 /Import File Strings/,/^$/ {
7673 /^0/ {
7674 s/^0 *\(.*\)$/\1/
7675 p
7676 }
7677 }'
7678 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7679 # Check for a 64-bit object if we didn't find anything.
7680 if test -z "$aix_libpath"; then
7681 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7682 fi
7683 else
7684 echo "$as_me: failed program was:" >&5
7685 sed 's/^/| /' conftest.$ac_ext >&5
7686
7687 fi
7688 rm -f conftest.err conftest.$ac_objext \
7689 conftest$ac_exeext conftest.$ac_ext
7690 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7691
7692 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7693 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"
7694 else
7695 if test "$host_cpu" = ia64; then
7696 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7697 allow_undefined_flag="-z nodefs"
7698 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"
7699 else
7700 # Determine the default libpath from the value encoded in an
7701 # empty executable.
7702 cat >conftest.$ac_ext <<_ACEOF
7703 /* confdefs.h. */
7704 _ACEOF
7705 cat confdefs.h >>conftest.$ac_ext
7706 cat >>conftest.$ac_ext <<_ACEOF
7707 /* end confdefs.h. */
7708
7709 int
7710 main ()
7711 {
7712
7713 ;
7714 return 0;
7715 }
7716 _ACEOF
7717 rm -f conftest.$ac_objext conftest$ac_exeext
7718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7719 (eval $ac_link) 2>conftest.er1
7720 ac_status=$?
7721 grep -v '^ *+' conftest.er1 >conftest.err
7722 rm -f conftest.er1
7723 cat conftest.err >&5
7724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7725 (exit $ac_status); } &&
7726 { ac_try='test -z "$ac_c_werror_flag"
7727 || test ! -s conftest.err'
7728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7729 (eval $ac_try) 2>&5
7730 ac_status=$?
7731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7732 (exit $ac_status); }; } &&
7733 { ac_try='test -s conftest$ac_exeext'
7734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7735 (eval $ac_try) 2>&5
7736 ac_status=$?
7737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7738 (exit $ac_status); }; }; then
7739
7740 lt_aix_libpath_sed='
7741 /Import File Strings/,/^$/ {
7742 /^0/ {
7743 s/^0 *\(.*\)$/\1/
7744 p
7745 }
7746 }'
7747 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7748 # Check for a 64-bit object if we didn't find anything.
7749 if test -z "$aix_libpath"; then
7750 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7751 fi
7752 else
7753 echo "$as_me: failed program was:" >&5
7754 sed 's/^/| /' conftest.$ac_ext >&5
7755
7756 fi
7757 rm -f conftest.err conftest.$ac_objext \
7758 conftest$ac_exeext conftest.$ac_ext
7759 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7760
7761 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7762 # Warning - without using the other run time loading flags,
7763 # -berok will link without error, but may produce a broken library.
7764 no_undefined_flag=' ${wl}-bernotok'
7765 allow_undefined_flag=' ${wl}-berok'
7766 # Exported symbols can be pulled into shared objects from archives
7767 whole_archive_flag_spec='$convenience'
7768 archive_cmds_need_lc=yes
7769 # This is similar to how AIX traditionally builds its shared libraries.
7770 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'
7771 fi
7772 fi
7773 ;;
7774
7775 amigaos*)
7776 if test "$host_cpu" = m68k; then
7777 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)'
7778 hardcode_libdir_flag_spec='-L$libdir'
7779 hardcode_minus_L=yes
7780 fi
7781 # see comment about different semantics on the GNU ld section
7782 ld_shlibs=no
7783 ;;
7784
7785 bsdi[45]*)
7786 export_dynamic_flag_spec=-rdynamic
7787 ;;
7788
7789 cygwin* | mingw* | pw32*)
7790 # When not using gcc, we currently assume that we are using
7791 # Microsoft Visual C++.
7792 # hardcode_libdir_flag_spec is actually meaningless, as there is
7793 # no search path for DLLs.
7794 hardcode_libdir_flag_spec=' '
7795 allow_undefined_flag=unsupported
7796 # Tell ltmain to make .lib files, not .a files.
7797 libext=lib
7798 # Tell ltmain to make .dll files, not .so files.
7799 shrext_cmds=".dll"
7800 # FIXME: Setting linknames here is a bad hack.
7801 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7802 # The linker will automatically build a .lib file if we build a DLL.
7803 old_archive_from_new_cmds='true'
7804 # FIXME: Should let the user specify the lib program.
7805 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7806 fix_srcfile_path='`cygpath -w "$srcfile"`'
7807 enable_shared_with_static_runtimes=yes
7808 ;;
7809
7810 darwin* | rhapsody*)
7811 case $host_os in
7812 rhapsody* | darwin1.[012])
7813 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7814 ;;
7815 *) # Darwin 1.3 on
7816 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7817 10.[012])
7818 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7819 ;;
7820 10.*)
7821 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7822 ;;
7823 esac
7824 ;;
7825 esac
7826 archive_cmds_need_lc=no
7827 hardcode_direct=no
7828 hardcode_automatic=yes
7829 hardcode_shlibpath_var=unsupported
7830 whole_archive_flag_spec=''
7831 link_all_deplibs=yes
7832 if test "$GCC" = yes ; then
7833 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7834 echo $ECHO_N "(cached) $ECHO_C" >&6
7835 else
7836 lt_cv_apple_cc_single_mod=no
7837 if test -z "${LT_MULTI_MODULE}"; then
7838 # By default we will add the -single_module flag. You can override
7839 # by either setting the environment variable LT_MULTI_MODULE
7840 # non-empty at configure time, or by adding -multi-module to the
7841 # link flags.
7842 echo "int foo(void){return 1;}" > conftest.c
7843 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7844 -dynamiclib ${wl}-single_module conftest.c
7845 if test -f libconftest.dylib; then
7846 lt_cv_apple_cc_single_mod=yes
7847 rm libconftest.dylib
7848 fi
7849 rm conftest.$ac_ext
7850 fi
7851 fi
7852
7853 output_verbose_link_cmd=echo
7854 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
7855 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7856 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}'
7857 else
7858 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7859 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}'
7860 fi
7861 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7862 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}'
7863 else
7864 case $cc_basename in
7865 xlc*)
7866 output_verbose_link_cmd=echo
7867 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
7868 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7869 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7870 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}'
7871 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}'
7872 ;;
7873 *)
7874 ld_shlibs=no
7875 ;;
7876 esac
7877 fi
7878 ;;
7879
7880 dgux*)
7881 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7882 hardcode_libdir_flag_spec='-L$libdir'
7883 hardcode_shlibpath_var=no
7884 ;;
7885
7886 freebsd1*)
7887 ld_shlibs=no
7888 ;;
7889
7890 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7891 # support. Future versions do this automatically, but an explicit c++rt0.o
7892 # does not break anything, and helps significantly (at the cost of a little
7893 # extra space).
7894 freebsd2.2*)
7895 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7896 hardcode_libdir_flag_spec='-R$libdir'
7897 hardcode_direct=yes
7898 hardcode_shlibpath_var=no
7899 ;;
7900
7901 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7902 freebsd2*)
7903 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7904 hardcode_direct=yes
7905 hardcode_minus_L=yes
7906 hardcode_shlibpath_var=no
7907 ;;
7908
7909 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7910 freebsd* | dragonfly*)
7911 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7912 hardcode_libdir_flag_spec='-R$libdir'
7913 hardcode_direct=yes
7914 hardcode_shlibpath_var=no
7915 ;;
7916
7917 hpux9*)
7918 if test "$GCC" = yes; then
7919 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'
7920 else
7921 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'
7922 fi
7923 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7924 hardcode_libdir_separator=:
7925 hardcode_direct=yes
7926
7927 # hardcode_minus_L: Not really in the search PATH,
7928 # but as the default location of the library.
7929 hardcode_minus_L=yes
7930 export_dynamic_flag_spec='${wl}-E'
7931 ;;
7932
7933 hpux10*)
7934 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7935 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7936 else
7937 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7938 fi
7939 if test "$with_gnu_ld" = no; then
7940 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7941 hardcode_libdir_flag_spec_ld='+b $libdir'
7942 hardcode_libdir_separator=:
7943 hardcode_direct=yes
7944 hardcode_direct_absolute=yes
7945 export_dynamic_flag_spec='${wl}-E'
7946 # hardcode_minus_L: Not really in the search PATH,
7947 # but as the default location of the library.
7948 hardcode_minus_L=yes
7949 fi
7950 ;;
7951
7952 hpux11*)
7953 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7954 case $host_cpu in
7955 hppa*64*)
7956 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7957 ;;
7958 ia64*)
7959 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7960 ;;
7961 *)
7962 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7963 ;;
7964 esac
7965 else
7966 case $host_cpu in
7967 hppa*64*)
7968 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7969 ;;
7970 ia64*)
7971 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7972 ;;
7973 *)
7974 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7975 ;;
7976 esac
7977 fi
7978 if test "$with_gnu_ld" = no; then
7979 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7980 hardcode_libdir_separator=:
7981
7982 case $host_cpu in
7983 hppa*64*|ia64*)
7984 hardcode_direct=no
7985 hardcode_shlibpath_var=no
7986 ;;
7987 *)
7988 hardcode_direct=yes
7989 hardcode_direct_absolute=yes
7990 export_dynamic_flag_spec='${wl}-E'
7991
7992 # hardcode_minus_L: Not really in the search PATH,
7993 # but as the default location of the library.
7994 hardcode_minus_L=yes
7995 ;;
7996 esac
7997 fi
7998 ;;
7999
8000 irix5* | irix6* | nonstopux*)
8001 if test "$GCC" = yes; then
8002 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'
8003 # Try to use the -exported_symbol ld option, if it does not
8004 # work, assume that -exports_file does not work either and
8005 # implicitly export all symbols.
8006 save_LDFLAGS="$LDFLAGS"
8007 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8008 cat >conftest.$ac_ext <<_ACEOF
8009 int foo(void) {}
8010 _ACEOF
8011 rm -f conftest.$ac_objext conftest$ac_exeext
8012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8013 (eval $ac_link) 2>conftest.er1
8014 ac_status=$?
8015 grep -v '^ *+' conftest.er1 >conftest.err
8016 rm -f conftest.er1
8017 cat conftest.err >&5
8018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019 (exit $ac_status); } &&
8020 { ac_try='test -z "$ac_c_werror_flag"
8021 || test ! -s conftest.err'
8022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8023 (eval $ac_try) 2>&5
8024 ac_status=$?
8025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8026 (exit $ac_status); }; } &&
8027 { ac_try='test -s conftest$ac_exeext'
8028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8029 (eval $ac_try) 2>&5
8030 ac_status=$?
8031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8032 (exit $ac_status); }; }; then
8033 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'
8034
8035 else
8036 echo "$as_me: failed program was:" >&5
8037 sed 's/^/| /' conftest.$ac_ext >&5
8038
8039 fi
8040 rm -f conftest.err conftest.$ac_objext \
8041 conftest$ac_exeext conftest.$ac_ext
8042 LDFLAGS="$save_LDFLAGS"
8043 else
8044 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'
8045 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'
8046 fi
8047 archive_cmds_need_lc='no'
8048 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8049 hardcode_libdir_separator=:
8050 inherit_rpath=yes
8051 link_all_deplibs=yes
8052 ;;
8053
8054 netbsd*)
8055 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8056 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8057 else
8058 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8059 fi
8060 hardcode_libdir_flag_spec='-R$libdir'
8061 hardcode_direct=yes
8062 hardcode_shlibpath_var=no
8063 ;;
8064
8065 newsos6)
8066 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8067 hardcode_direct=yes
8068 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8069 hardcode_libdir_separator=:
8070 hardcode_shlibpath_var=no
8071 ;;
8072
8073 *nto* | *qnx*)
8074 ;;
8075
8076 openbsd*)
8077 hardcode_direct=yes
8078 hardcode_shlibpath_var=no
8079 hardcode_direct_absolute=yes
8080 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8081 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8082 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8083 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8084 export_dynamic_flag_spec='${wl}-E'
8085 else
8086 case $host_os in
8087 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8088 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8089 hardcode_libdir_flag_spec='-R$libdir'
8090 ;;
8091 *)
8092 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8093 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8094 ;;
8095 esac
8096 fi
8097 ;;
8098
8099 os2*)
8100 hardcode_libdir_flag_spec='-L$libdir'
8101 hardcode_minus_L=yes
8102 allow_undefined_flag=unsupported
8103 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'
8104 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8105 ;;
8106
8107 osf3*)
8108 if test "$GCC" = yes; then
8109 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8110 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'
8111 else
8112 allow_undefined_flag=' -expect_unresolved \*'
8113 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'
8114 fi
8115 archive_cmds_need_lc='no'
8116 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8117 hardcode_libdir_separator=:
8118 ;;
8119
8120 osf4* | osf5*) # as osf3* with the addition of -msym flag
8121 if test "$GCC" = yes; then
8122 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8123 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'
8124 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8125 else
8126 allow_undefined_flag=' -expect_unresolved \*'
8127 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'
8128 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~
8129 $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'
8130
8131 # Both c and cxx compiler support -rpath directly
8132 hardcode_libdir_flag_spec='-rpath $libdir'
8133 fi
8134 archive_cmds_need_lc='no'
8135 hardcode_libdir_separator=:
8136 ;;
8137
8138 solaris*)
8139 no_undefined_flag=' -z defs'
8140 if test "$GCC" = yes; then
8141 wlarc='${wl}'
8142 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8143 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8144 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8145 else
8146 case `$CC -V 2>&1` in
8147 *"Compilers 5.0"*)
8148 wlarc=''
8149 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8150 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8151 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8152 ;;
8153 *)
8154 wlarc='${wl}'
8155 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8156 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8157 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8158 ;;
8159 esac
8160 fi
8161 hardcode_libdir_flag_spec='-R$libdir'
8162 hardcode_shlibpath_var=no
8163 case $host_os in
8164 solaris2.[0-5] | solaris2.[0-5].*) ;;
8165 *)
8166 # The compiler driver will combine and reorder linker options,
8167 # but understands `-z linker_flag'. GCC discards it without `$wl',
8168 # but is careful enough not to reorder.
8169 # Supported since Solaris 2.6 (maybe 2.5.1?)
8170 if test "$GCC" = yes; then
8171 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8172 else
8173 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8174 fi
8175 ;;
8176 esac
8177 link_all_deplibs=yes
8178 ;;
8179
8180 sunos4*)
8181 if test "x$host_vendor" = xsequent; then
8182 # Use $CC to link under sequent, because it throws in some extra .o
8183 # files that make .init and .fini sections work.
8184 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8185 else
8186 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8187 fi
8188 hardcode_libdir_flag_spec='-L$libdir'
8189 hardcode_direct=yes
8190 hardcode_minus_L=yes
8191 hardcode_shlibpath_var=no
8192 ;;
8193
8194 sysv4)
8195 case $host_vendor in
8196 sni)
8197 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8198 hardcode_direct=yes # is this really true???
8199 ;;
8200 siemens)
8201 ## LD is ld it makes a PLAMLIB
8202 ## CC just makes a GrossModule.
8203 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8204 reload_cmds='$CC -r -o $output$reload_objs'
8205 hardcode_direct=no
8206 ;;
8207 motorola)
8208 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8209 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8210 ;;
8211 esac
8212 runpath_var='LD_RUN_PATH'
8213 hardcode_shlibpath_var=no
8214 ;;
8215
8216 sysv4.3*)
8217 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8218 hardcode_shlibpath_var=no
8219 export_dynamic_flag_spec='-Bexport'
8220 ;;
8221
8222 sysv4*MP*)
8223 if test -d /usr/nec; then
8224 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8225 hardcode_shlibpath_var=no
8226 runpath_var=LD_RUN_PATH
8227 hardcode_runpath_var=yes
8228 ld_shlibs=yes
8229 fi
8230 ;;
8231
8232 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8233 no_undefined_flag='${wl}-z,text'
8234 archive_cmds_need_lc=no
8235 hardcode_shlibpath_var=no
8236 runpath_var='LD_RUN_PATH'
8237
8238 if test "$GCC" = yes; then
8239 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8240 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8241 else
8242 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8243 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8244 fi
8245 ;;
8246
8247 sysv5* | sco3.2v5* | sco5v6*)
8248 # Note: We can NOT use -z defs as we might desire, because we do not
8249 # link with -lc, and that would cause any symbols used from libc to
8250 # always be unresolved, which means just about no library would
8251 # ever link correctly. If we're not using GNU ld we use -z text
8252 # though, which does catch some bad symbols but isn't as heavy-handed
8253 # as -z defs.
8254 no_undefined_flag='${wl}-z,text'
8255 allow_undefined_flag='${wl}-z,nodefs'
8256 archive_cmds_need_lc=no
8257 hardcode_shlibpath_var=no
8258 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8259 hardcode_libdir_separator=':'
8260 link_all_deplibs=yes
8261 export_dynamic_flag_spec='${wl}-Bexport'
8262 runpath_var='LD_RUN_PATH'
8263
8264 if test "$GCC" = yes; then
8265 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8266 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8267 else
8268 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8269 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8270 fi
8271 ;;
8272
8273 uts4*)
8274 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8275 hardcode_libdir_flag_spec='-L$libdir'
8276 hardcode_shlibpath_var=no
8277 ;;
8278
8279 *)
8280 ld_shlibs=no
8281 ;;
8282 esac
8283
8284 if test x$host_vendor = xsni; then
8285 case $host in
8286 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8287 export_dynamic_flag_spec='${wl}-Blargedynsym'
8288 ;;
8289 esac
8290 fi
8291 fi
8292
8293 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8294 echo "${ECHO_T}$ld_shlibs" >&6
8295 test "$ld_shlibs" = no && can_build_shared=no
8296
8297 with_gnu_ld=$with_gnu_ld
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313 #
8314 # Do we need to explicitly link libc?
8315 #
8316 case "x$archive_cmds_need_lc" in
8317 x|xyes)
8318 # Assume -lc should be added
8319 archive_cmds_need_lc=yes
8320
8321 if test "$enable_shared" = yes && test "$GCC" = yes; then
8322 case $archive_cmds in
8323 *'~'*)
8324 # FIXME: we may have to deal with multi-command sequences.
8325 ;;
8326 '$CC '*)
8327 # Test whether the compiler implicitly links with -lc since on some
8328 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8329 # to ld, don't add -lc before -lgcc.
8330 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8331 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8332 $RM conftest*
8333 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8334
8335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8336 (eval $ac_compile) 2>&5
8337 ac_status=$?
8338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339 (exit $ac_status); } 2>conftest.err; then
8340 soname=conftest
8341 lib=conftest
8342 libobjs=conftest.$ac_objext
8343 deplibs=
8344 wl=$lt_prog_compiler_wl
8345 pic_flag=$lt_prog_compiler_pic
8346 compiler_flags=-v
8347 linker_flags=-v
8348 verstring=
8349 output_objdir=.
8350 libname=conftest
8351 lt_save_allow_undefined_flag=$allow_undefined_flag
8352 allow_undefined_flag=
8353 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8354 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8355 ac_status=$?
8356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357 (exit $ac_status); }
8358 then
8359 archive_cmds_need_lc=no
8360 else
8361 archive_cmds_need_lc=yes
8362 fi
8363 allow_undefined_flag=$lt_save_allow_undefined_flag
8364 else
8365 cat conftest.err 1>&5
8366 fi
8367 $RM conftest*
8368 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8369 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8370 ;;
8371 esac
8372 fi
8373 ;;
8374 esac
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8533 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8534 withGCC=$GCC
8535 if test "$withGCC" = yes; then
8536 case $host_os in
8537 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8538 *) lt_awk_arg="/^libraries:/" ;;
8539 esac
8540 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8541 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8542 # if the path contains ";" then we assume it to be the separator
8543 # otherwise default to the standard path separator (i.e. ":") - it is
8544 # assumed that no part of a normal pathname contains ";" but that should
8545 # okay in the real world where ";" in dirpaths is itself problematic.
8546 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8547 else
8548 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8549 fi
8550 # Ok, now we have the path, separated by spaces, we can step through it
8551 # and add multilib dir if necessary.
8552 lt_tmp_lt_search_path_spec=
8553 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8554 for lt_sys_path in $lt_search_path_spec; do
8555 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8556 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8557 else
8558 test -d "$lt_sys_path" && \
8559 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8560 fi
8561 done
8562 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8563 BEGIN {RS=" "; FS="/|\n";} {
8564 lt_foo="";
8565 lt_count=0;
8566 for (lt_i = NF; lt_i > 0; lt_i--) {
8567 if ($lt_i != "" && $lt_i != ".") {
8568 if ($lt_i == "..") {
8569 lt_count++;
8570 } else {
8571 if (lt_count == 0) {
8572 lt_foo="/" $lt_i lt_foo;
8573 } else {
8574 lt_count--;
8575 }
8576 }
8577 }
8578 }
8579 if (lt_foo != "") { lt_freq[lt_foo]++; }
8580 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8581 }'`
8582 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8583 else
8584 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8585 fi
8586 library_names_spec=
8587 libname_spec='lib$name'
8588 soname_spec=
8589 shrext_cmds=".so"
8590 postinstall_cmds=
8591 postuninstall_cmds=
8592 finish_cmds=
8593 finish_eval=
8594 shlibpath_var=
8595 shlibpath_overrides_runpath=unknown
8596 version_type=none
8597 dynamic_linker="$host_os ld.so"
8598 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8599 need_lib_prefix=unknown
8600 hardcode_into_libs=no
8601
8602 # when you set need_version to no, make sure it does not cause -set_version
8603 # flags to be left without arguments
8604 need_version=unknown
8605
8606 case $host_os in
8607 aix3*)
8608 version_type=linux
8609 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8610 shlibpath_var=LIBPATH
8611
8612 # AIX 3 has no versioning support, so we append a major version to the name.
8613 soname_spec='${libname}${release}${shared_ext}$major'
8614 ;;
8615
8616 aix[4-9]*)
8617 version_type=linux
8618 need_lib_prefix=no
8619 need_version=no
8620 hardcode_into_libs=yes
8621 if test "$host_cpu" = ia64; then
8622 # AIX 5 supports IA64
8623 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8624 shlibpath_var=LD_LIBRARY_PATH
8625 else
8626 # With GCC up to 2.95.x, collect2 would create an import file
8627 # for dependence libraries. The import file would start with
8628 # the line `#! .'. This would cause the generated library to
8629 # depend on `.', always an invalid library. This was fixed in
8630 # development snapshots of GCC prior to 3.0.
8631 case $host_os in
8632 aix4 | aix4.[01] | aix4.[01].*)
8633 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8634 echo ' yes '
8635 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8636 :
8637 else
8638 can_build_shared=no
8639 fi
8640 ;;
8641 esac
8642 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8643 # soname into executable. Probably we can add versioning support to
8644 # collect2, so additional links can be useful in future.
8645 if test "$aix_use_runtimelinking" = yes; then
8646 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8647 # instead of lib<name>.a to let people know that these are not
8648 # typical AIX shared libraries.
8649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8650 else
8651 # We preserve .a as extension for shared libraries through AIX4.2
8652 # and later when we are not doing run time linking.
8653 library_names_spec='${libname}${release}.a $libname.a'
8654 soname_spec='${libname}${release}${shared_ext}$major'
8655 fi
8656 shlibpath_var=LIBPATH
8657 fi
8658 ;;
8659
8660 amigaos*)
8661 if test "$host_cpu" = m68k; then
8662 library_names_spec='$libname.ixlibrary $libname.a'
8663 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8664 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'
8665 else
8666 dynamic_linker=no
8667 fi
8668 ;;
8669
8670 beos*)
8671 library_names_spec='${libname}${shared_ext}'
8672 dynamic_linker="$host_os ld.so"
8673 shlibpath_var=LIBRARY_PATH
8674 ;;
8675
8676 bsdi[45]*)
8677 version_type=linux
8678 need_version=no
8679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8680 soname_spec='${libname}${release}${shared_ext}$major'
8681 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8682 shlibpath_var=LD_LIBRARY_PATH
8683 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8684 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8685 # the default ld.so.conf also contains /usr/contrib/lib and
8686 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8687 # libtool to hard-code these into programs
8688 ;;
8689
8690 cygwin* | mingw* | pw32*)
8691 version_type=windows
8692 shrext_cmds=".dll"
8693 need_version=no
8694 need_lib_prefix=no
8695
8696 case $withGCC,$host_os in
8697 yes,cygwin* | yes,mingw* | yes,pw32*)
8698 library_names_spec='$libname.dll.a'
8699 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8700 postinstall_cmds='base_file=`basename \${file}`~
8701 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8702 dldir=$destdir/`dirname \$dlpath`~
8703 test -d \$dldir || mkdir -p \$dldir~
8704 $install_prog $dir/$dlname \$dldir/$dlname~
8705 chmod a+x \$dldir/$dlname~
8706 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8707 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8708 fi'
8709 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8710 dlpath=$dir/\$dldll~
8711 $RM \$dlpath'
8712 shlibpath_overrides_runpath=yes
8713
8714 case $host_os in
8715 cygwin*)
8716 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8717 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8718 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8719 ;;
8720 mingw*)
8721 # MinGW DLLs use traditional 'lib' prefix
8722 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8723 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8724 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8725 # It is most probably a Windows format PATH printed by
8726 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8727 # path with ; separators, and with drive letters. We can handle the
8728 # drive letters (cygwin fileutils understands them), so leave them,
8729 # especially as we might pass files found there to a mingw objdump,
8730 # which wouldn't understand a cygwinified path. Ahh.
8731 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8732 else
8733 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8734 fi
8735 ;;
8736 pw32*)
8737 # pw32 DLLs use 'pw' prefix rather than 'lib'
8738 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8739 ;;
8740 esac
8741 ;;
8742
8743 *)
8744 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8745 ;;
8746 esac
8747 dynamic_linker='Win32 ld.exe'
8748 # FIXME: first we should search . and the directory the executable is in
8749 shlibpath_var=PATH
8750 ;;
8751
8752 darwin* | rhapsody*)
8753 dynamic_linker="$host_os dyld"
8754 version_type=darwin
8755 need_lib_prefix=no
8756 need_version=no
8757 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8758 soname_spec='${libname}${release}${major}$shared_ext'
8759 shlibpath_overrides_runpath=yes
8760 shlibpath_var=DYLD_LIBRARY_PATH
8761 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8762
8763 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8764 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8765 ;;
8766
8767 dgux*)
8768 version_type=linux
8769 need_lib_prefix=no
8770 need_version=no
8771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8772 soname_spec='${libname}${release}${shared_ext}$major'
8773 shlibpath_var=LD_LIBRARY_PATH
8774 ;;
8775
8776 freebsd1*)
8777 dynamic_linker=no
8778 ;;
8779
8780 freebsd* | dragonfly*)
8781 # DragonFly does not have aout. When/if they implement a new
8782 # versioning mechanism, adjust this.
8783 if test -x /usr/bin/objformat; then
8784 objformat=`/usr/bin/objformat`
8785 else
8786 case $host_os in
8787 freebsd[123]*) objformat=aout ;;
8788 *) objformat=elf ;;
8789 esac
8790 fi
8791 version_type=freebsd-$objformat
8792 case $version_type in
8793 freebsd-elf*)
8794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8795 need_version=no
8796 need_lib_prefix=no
8797 ;;
8798 freebsd-*)
8799 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8800 need_version=yes
8801 ;;
8802 esac
8803 shlibpath_var=LD_LIBRARY_PATH
8804 case $host_os in
8805 freebsd2*)
8806 shlibpath_overrides_runpath=yes
8807 ;;
8808 freebsd3.[01]* | freebsdelf3.[01]*)
8809 shlibpath_overrides_runpath=yes
8810 hardcode_into_libs=yes
8811 ;;
8812 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8813 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8814 shlibpath_overrides_runpath=no
8815 hardcode_into_libs=yes
8816 ;;
8817 *) # from 4.6 on, and DragonFly
8818 shlibpath_overrides_runpath=yes
8819 hardcode_into_libs=yes
8820 ;;
8821 esac
8822 ;;
8823
8824 gnu*)
8825 version_type=linux
8826 need_lib_prefix=no
8827 need_version=no
8828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8829 soname_spec='${libname}${release}${shared_ext}$major'
8830 shlibpath_var=LD_LIBRARY_PATH
8831 hardcode_into_libs=yes
8832 ;;
8833
8834 hpux9* | hpux10* | hpux11*)
8835 # Give a soname corresponding to the major version so that dld.sl refuses to
8836 # link against other versions.
8837 version_type=sunos
8838 need_lib_prefix=no
8839 need_version=no
8840 case $host_cpu in
8841 ia64*)
8842 shrext_cmds='.so'
8843 hardcode_into_libs=yes
8844 dynamic_linker="$host_os dld.so"
8845 shlibpath_var=LD_LIBRARY_PATH
8846 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8848 soname_spec='${libname}${release}${shared_ext}$major'
8849 if test "X$HPUX_IA64_MODE" = X32; then
8850 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8851 else
8852 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8853 fi
8854 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8855 ;;
8856 hppa*64*)
8857 shrext_cmds='.sl'
8858 hardcode_into_libs=yes
8859 dynamic_linker="$host_os dld.sl"
8860 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8861 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8863 soname_spec='${libname}${release}${shared_ext}$major'
8864 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8865 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8866 ;;
8867 *)
8868 shrext_cmds='.sl'
8869 dynamic_linker="$host_os dld.sl"
8870 shlibpath_var=SHLIB_PATH
8871 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8873 soname_spec='${libname}${release}${shared_ext}$major'
8874 ;;
8875 esac
8876 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8877 postinstall_cmds='chmod 555 $lib'
8878 ;;
8879
8880 interix[3-9]*)
8881 version_type=linux
8882 need_lib_prefix=no
8883 need_version=no
8884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8885 soname_spec='${libname}${release}${shared_ext}$major'
8886 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8887 shlibpath_var=LD_LIBRARY_PATH
8888 shlibpath_overrides_runpath=no
8889 hardcode_into_libs=yes
8890 ;;
8891
8892 irix5* | irix6* | nonstopux*)
8893 case $host_os in
8894 nonstopux*) version_type=nonstopux ;;
8895 *)
8896 if test "$lt_cv_prog_gnu_ld" = yes; then
8897 version_type=linux
8898 else
8899 version_type=irix
8900 fi ;;
8901 esac
8902 need_lib_prefix=no
8903 need_version=no
8904 soname_spec='${libname}${release}${shared_ext}$major'
8905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8906 case $host_os in
8907 irix5* | nonstopux*)
8908 libsuff= shlibsuff=
8909 ;;
8910 *)
8911 case $LD in # libtool.m4 will add one of these switches to LD
8912 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8913 libsuff= shlibsuff= libmagic=32-bit;;
8914 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8915 libsuff=32 shlibsuff=N32 libmagic=N32;;
8916 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8917 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8918 *) libsuff= shlibsuff= libmagic=never-match;;
8919 esac
8920 ;;
8921 esac
8922 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8923 shlibpath_overrides_runpath=no
8924 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8925 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8926 hardcode_into_libs=yes
8927 ;;
8928
8929 # No shared lib support for Linux oldld, aout, or coff.
8930 linux*oldld* | linux*aout* | linux*coff*)
8931 dynamic_linker=no
8932 ;;
8933
8934 # This must be Linux ELF.
8935 linux* | k*bsd*-gnu)
8936 version_type=linux
8937 need_lib_prefix=no
8938 need_version=no
8939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8940 soname_spec='${libname}${release}${shared_ext}$major'
8941 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8942 shlibpath_var=LD_LIBRARY_PATH
8943 shlibpath_overrides_runpath=no
8944 # Some binutils ld are patched to set DT_RUNPATH
8945 save_LDFLAGS=$LDFLAGS
8946 save_libdir=$libdir
8947 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8948 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8949 cat >conftest.$ac_ext <<_ACEOF
8950 /* confdefs.h. */
8951 _ACEOF
8952 cat confdefs.h >>conftest.$ac_ext
8953 cat >>conftest.$ac_ext <<_ACEOF
8954 /* end confdefs.h. */
8955
8956 int
8957 main ()
8958 {
8959
8960 ;
8961 return 0;
8962 }
8963 _ACEOF
8964 rm -f conftest.$ac_objext conftest$ac_exeext
8965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8966 (eval $ac_link) 2>conftest.er1
8967 ac_status=$?
8968 grep -v '^ *+' conftest.er1 >conftest.err
8969 rm -f conftest.er1
8970 cat conftest.err >&5
8971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8972 (exit $ac_status); } &&
8973 { ac_try='test -z "$ac_c_werror_flag"
8974 || test ! -s conftest.err'
8975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8976 (eval $ac_try) 2>&5
8977 ac_status=$?
8978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979 (exit $ac_status); }; } &&
8980 { ac_try='test -s conftest$ac_exeext'
8981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8982 (eval $ac_try) 2>&5
8983 ac_status=$?
8984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985 (exit $ac_status); }; }; then
8986 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
8987 shlibpath_overrides_runpath=yes
8988 fi
8989
8990 else
8991 echo "$as_me: failed program was:" >&5
8992 sed 's/^/| /' conftest.$ac_ext >&5
8993
8994 fi
8995 rm -f conftest.err conftest.$ac_objext \
8996 conftest$ac_exeext conftest.$ac_ext
8997 LDFLAGS=$save_LDFLAGS
8998 libdir=$save_libdir
8999
9000 # This implies no fast_install, which is unacceptable.
9001 # Some rework will be needed to allow for fast_install
9002 # before this can be enabled.
9003 hardcode_into_libs=yes
9004
9005 # Append ld.so.conf contents to the search path
9006 if test -f /etc/ld.so.conf; then
9007 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' ' '`
9008 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9009 fi
9010
9011 # We used to test for /lib/ld.so.1 and disable shared libraries on
9012 # powerpc, because MkLinux only supported shared libraries with the
9013 # GNU dynamic linker. Since this was broken with cross compilers,
9014 # most powerpc-linux boxes support dynamic linking these days and
9015 # people can always --disable-shared, the test was removed, and we
9016 # assume the GNU/Linux dynamic linker is in use.
9017 dynamic_linker='GNU/Linux ld.so'
9018 ;;
9019
9020 netbsd*)
9021 version_type=sunos
9022 need_lib_prefix=no
9023 need_version=no
9024 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9026 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9027 dynamic_linker='NetBSD (a.out) ld.so'
9028 else
9029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9030 soname_spec='${libname}${release}${shared_ext}$major'
9031 dynamic_linker='NetBSD ld.elf_so'
9032 fi
9033 shlibpath_var=LD_LIBRARY_PATH
9034 shlibpath_overrides_runpath=yes
9035 hardcode_into_libs=yes
9036 ;;
9037
9038 newsos6)
9039 version_type=linux
9040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9041 shlibpath_var=LD_LIBRARY_PATH
9042 shlibpath_overrides_runpath=yes
9043 ;;
9044
9045 *nto* | *qnx*)
9046 version_type=qnx
9047 need_lib_prefix=no
9048 need_version=no
9049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9050 soname_spec='${libname}${release}${shared_ext}$major'
9051 shlibpath_var=LD_LIBRARY_PATH
9052 shlibpath_overrides_runpath=no
9053 hardcode_into_libs=yes
9054 dynamic_linker='ldqnx.so'
9055 ;;
9056
9057 openbsd*)
9058 version_type=sunos
9059 sys_lib_dlsearch_path_spec="/usr/lib"
9060 need_lib_prefix=no
9061 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9062 case $host_os in
9063 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9064 *) need_version=no ;;
9065 esac
9066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9067 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9068 shlibpath_var=LD_LIBRARY_PATH
9069 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9070 case $host_os in
9071 openbsd2.[89] | openbsd2.[89].*)
9072 shlibpath_overrides_runpath=no
9073 ;;
9074 *)
9075 shlibpath_overrides_runpath=yes
9076 ;;
9077 esac
9078 else
9079 shlibpath_overrides_runpath=yes
9080 fi
9081 ;;
9082
9083 os2*)
9084 libname_spec='$name'
9085 shrext_cmds=".dll"
9086 need_lib_prefix=no
9087 library_names_spec='$libname${shared_ext} $libname.a'
9088 dynamic_linker='OS/2 ld.exe'
9089 shlibpath_var=LIBPATH
9090 ;;
9091
9092 osf3* | osf4* | osf5*)
9093 version_type=osf
9094 need_lib_prefix=no
9095 need_version=no
9096 soname_spec='${libname}${release}${shared_ext}$major'
9097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9098 shlibpath_var=LD_LIBRARY_PATH
9099 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9100 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9101 ;;
9102
9103 rdos*)
9104 dynamic_linker=no
9105 ;;
9106
9107 solaris*)
9108 version_type=linux
9109 need_lib_prefix=no
9110 need_version=no
9111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9112 soname_spec='${libname}${release}${shared_ext}$major'
9113 shlibpath_var=LD_LIBRARY_PATH
9114 shlibpath_overrides_runpath=yes
9115 hardcode_into_libs=yes
9116 # ldd complains unless libraries are executable
9117 postinstall_cmds='chmod +x $lib'
9118 ;;
9119
9120 sunos4*)
9121 version_type=sunos
9122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9123 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9124 shlibpath_var=LD_LIBRARY_PATH
9125 shlibpath_overrides_runpath=yes
9126 if test "$with_gnu_ld" = yes; then
9127 need_lib_prefix=no
9128 fi
9129 need_version=yes
9130 ;;
9131
9132 sysv4 | sysv4.3*)
9133 version_type=linux
9134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9135 soname_spec='${libname}${release}${shared_ext}$major'
9136 shlibpath_var=LD_LIBRARY_PATH
9137 case $host_vendor in
9138 sni)
9139 shlibpath_overrides_runpath=no
9140 need_lib_prefix=no
9141 runpath_var=LD_RUN_PATH
9142 ;;
9143 siemens)
9144 need_lib_prefix=no
9145 ;;
9146 motorola)
9147 need_lib_prefix=no
9148 need_version=no
9149 shlibpath_overrides_runpath=no
9150 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9151 ;;
9152 esac
9153 ;;
9154
9155 sysv4*MP*)
9156 if test -d /usr/nec ;then
9157 version_type=linux
9158 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9159 soname_spec='$libname${shared_ext}.$major'
9160 shlibpath_var=LD_LIBRARY_PATH
9161 fi
9162 ;;
9163
9164 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9165 version_type=freebsd-elf
9166 need_lib_prefix=no
9167 need_version=no
9168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9169 soname_spec='${libname}${release}${shared_ext}$major'
9170 shlibpath_var=LD_LIBRARY_PATH
9171 shlibpath_overrides_runpath=yes
9172 hardcode_into_libs=yes
9173 if test "$with_gnu_ld" = yes; then
9174 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9175 else
9176 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9177 case $host_os in
9178 sco3.2v5*)
9179 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9180 ;;
9181 esac
9182 fi
9183 sys_lib_dlsearch_path_spec='/usr/lib'
9184 ;;
9185
9186 tpf*)
9187 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9188 version_type=linux
9189 need_lib_prefix=no
9190 need_version=no
9191 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9192 shlibpath_var=LD_LIBRARY_PATH
9193 shlibpath_overrides_runpath=no
9194 hardcode_into_libs=yes
9195 ;;
9196
9197 uts4*)
9198 version_type=linux
9199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9200 soname_spec='${libname}${release}${shared_ext}$major'
9201 shlibpath_var=LD_LIBRARY_PATH
9202 ;;
9203
9204 *)
9205 dynamic_linker=no
9206 ;;
9207 esac
9208 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9209 echo "${ECHO_T}$dynamic_linker" >&6
9210 test "$dynamic_linker" = no && can_build_shared=no
9211
9212 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9213 if test "$GCC" = yes; then
9214 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9215 fi
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9304 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9305 hardcode_action=
9306 if test -n "$hardcode_libdir_flag_spec" ||
9307 test -n "$runpath_var" ||
9308 test "X$hardcode_automatic" = "Xyes" ; then
9309
9310 # We can hardcode non-existent directories.
9311 if test "$hardcode_direct" != no &&
9312 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9313 # have to relink, otherwise we might link with an installed library
9314 # when we should be linking with a yet-to-be-installed one
9315 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9316 test "$hardcode_minus_L" != no; then
9317 # Linking always hardcodes the temporary library directory.
9318 hardcode_action=relink
9319 else
9320 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9321 hardcode_action=immediate
9322 fi
9323 else
9324 # We cannot hardcode anything, or else we can only hardcode existing
9325 # directories.
9326 hardcode_action=unsupported
9327 fi
9328 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9329 echo "${ECHO_T}$hardcode_action" >&6
9330
9331 if test "$hardcode_action" = relink ||
9332 test "$inherit_rpath" = yes; then
9333 # Fast installation is not supported
9334 enable_fast_install=no
9335 elif test "$shlibpath_overrides_runpath" = yes ||
9336 test "$enable_shared" = no; then
9337 # Fast installation is not necessary
9338 enable_fast_install=needless
9339 fi
9340
9341
9342
9343
9344
9345
9346 if test "x$enable_dlopen" != xyes; then
9347 enable_dlopen=unknown
9348 enable_dlopen_self=unknown
9349 enable_dlopen_self_static=unknown
9350 else
9351 lt_cv_dlopen=no
9352 lt_cv_dlopen_libs=
9353
9354 case $host_os in
9355 beos*)
9356 lt_cv_dlopen="load_add_on"
9357 lt_cv_dlopen_libs=
9358 lt_cv_dlopen_self=yes
9359 ;;
9360
9361 mingw* | pw32*)
9362 lt_cv_dlopen="LoadLibrary"
9363 lt_cv_dlopen_libs=
9364 ;;
9365
9366 cygwin*)
9367 lt_cv_dlopen="dlopen"
9368 lt_cv_dlopen_libs=
9369 ;;
9370
9371 darwin*)
9372 # if libdl is installed we need to link against it
9373 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9374 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9375 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9376 echo $ECHO_N "(cached) $ECHO_C" >&6
9377 else
9378 ac_check_lib_save_LIBS=$LIBS
9379 LIBS="-ldl $LIBS"
9380 cat >conftest.$ac_ext <<_ACEOF
9381 /* confdefs.h. */
9382 _ACEOF
9383 cat confdefs.h >>conftest.$ac_ext
9384 cat >>conftest.$ac_ext <<_ACEOF
9385 /* end confdefs.h. */
9386
9387 /* Override any gcc2 internal prototype to avoid an error. */
9388 #ifdef __cplusplus
9389 extern "C"
9390 #endif
9391 /* We use char because int might match the return type of a gcc2
9392 builtin and then its argument prototype would still apply. */
9393 char dlopen ();
9394 int
9395 main ()
9396 {
9397 dlopen ();
9398 ;
9399 return 0;
9400 }
9401 _ACEOF
9402 rm -f conftest.$ac_objext conftest$ac_exeext
9403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9404 (eval $ac_link) 2>conftest.er1
9405 ac_status=$?
9406 grep -v '^ *+' conftest.er1 >conftest.err
9407 rm -f conftest.er1
9408 cat conftest.err >&5
9409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9410 (exit $ac_status); } &&
9411 { ac_try='test -z "$ac_c_werror_flag"
9412 || test ! -s conftest.err'
9413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9414 (eval $ac_try) 2>&5
9415 ac_status=$?
9416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9417 (exit $ac_status); }; } &&
9418 { ac_try='test -s conftest$ac_exeext'
9419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9420 (eval $ac_try) 2>&5
9421 ac_status=$?
9422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9423 (exit $ac_status); }; }; then
9424 ac_cv_lib_dl_dlopen=yes
9425 else
9426 echo "$as_me: failed program was:" >&5
9427 sed 's/^/| /' conftest.$ac_ext >&5
9428
9429 ac_cv_lib_dl_dlopen=no
9430 fi
9431 rm -f conftest.err conftest.$ac_objext \
9432 conftest$ac_exeext conftest.$ac_ext
9433 LIBS=$ac_check_lib_save_LIBS
9434 fi
9435 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9436 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9437 if test $ac_cv_lib_dl_dlopen = yes; then
9438 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9439 else
9440
9441 lt_cv_dlopen="dyld"
9442 lt_cv_dlopen_libs=
9443 lt_cv_dlopen_self=yes
9444
9445 fi
9446
9447 ;;
9448
9449 *)
9450 echo "$as_me:$LINENO: checking for shl_load" >&5
9451 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9452 if test "${ac_cv_func_shl_load+set}" = set; then
9453 echo $ECHO_N "(cached) $ECHO_C" >&6
9454 else
9455 cat >conftest.$ac_ext <<_ACEOF
9456 /* confdefs.h. */
9457 _ACEOF
9458 cat confdefs.h >>conftest.$ac_ext
9459 cat >>conftest.$ac_ext <<_ACEOF
9460 /* end confdefs.h. */
9461 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9462 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9463 #define shl_load innocuous_shl_load
9464
9465 /* System header to define __stub macros and hopefully few prototypes,
9466 which can conflict with char shl_load (); below.
9467 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9468 <limits.h> exists even on freestanding compilers. */
9469
9470 #ifdef __STDC__
9471 # include <limits.h>
9472 #else
9473 # include <assert.h>
9474 #endif
9475
9476 #undef shl_load
9477
9478 /* Override any gcc2 internal prototype to avoid an error. */
9479 #ifdef __cplusplus
9480 extern "C"
9481 {
9482 #endif
9483 /* We use char because int might match the return type of a gcc2
9484 builtin and then its argument prototype would still apply. */
9485 char shl_load ();
9486 /* The GNU C library defines this for functions which it implements
9487 to always fail with ENOSYS. Some functions are actually named
9488 something starting with __ and the normal name is an alias. */
9489 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9490 choke me
9491 #else
9492 char (*f) () = shl_load;
9493 #endif
9494 #ifdef __cplusplus
9495 }
9496 #endif
9497
9498 int
9499 main ()
9500 {
9501 return f != shl_load;
9502 ;
9503 return 0;
9504 }
9505 _ACEOF
9506 rm -f conftest.$ac_objext conftest$ac_exeext
9507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9508 (eval $ac_link) 2>conftest.er1
9509 ac_status=$?
9510 grep -v '^ *+' conftest.er1 >conftest.err
9511 rm -f conftest.er1
9512 cat conftest.err >&5
9513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9514 (exit $ac_status); } &&
9515 { ac_try='test -z "$ac_c_werror_flag"
9516 || test ! -s conftest.err'
9517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9518 (eval $ac_try) 2>&5
9519 ac_status=$?
9520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521 (exit $ac_status); }; } &&
9522 { ac_try='test -s conftest$ac_exeext'
9523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9524 (eval $ac_try) 2>&5
9525 ac_status=$?
9526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527 (exit $ac_status); }; }; then
9528 ac_cv_func_shl_load=yes
9529 else
9530 echo "$as_me: failed program was:" >&5
9531 sed 's/^/| /' conftest.$ac_ext >&5
9532
9533 ac_cv_func_shl_load=no
9534 fi
9535 rm -f conftest.err conftest.$ac_objext \
9536 conftest$ac_exeext conftest.$ac_ext
9537 fi
9538 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9539 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9540 if test $ac_cv_func_shl_load = yes; then
9541 lt_cv_dlopen="shl_load"
9542 else
9543 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9544 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9545 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9546 echo $ECHO_N "(cached) $ECHO_C" >&6
9547 else
9548 ac_check_lib_save_LIBS=$LIBS
9549 LIBS="-ldld $LIBS"
9550 cat >conftest.$ac_ext <<_ACEOF
9551 /* confdefs.h. */
9552 _ACEOF
9553 cat confdefs.h >>conftest.$ac_ext
9554 cat >>conftest.$ac_ext <<_ACEOF
9555 /* end confdefs.h. */
9556
9557 /* Override any gcc2 internal prototype to avoid an error. */
9558 #ifdef __cplusplus
9559 extern "C"
9560 #endif
9561 /* We use char because int might match the return type of a gcc2
9562 builtin and then its argument prototype would still apply. */
9563 char shl_load ();
9564 int
9565 main ()
9566 {
9567 shl_load ();
9568 ;
9569 return 0;
9570 }
9571 _ACEOF
9572 rm -f conftest.$ac_objext conftest$ac_exeext
9573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9574 (eval $ac_link) 2>conftest.er1
9575 ac_status=$?
9576 grep -v '^ *+' conftest.er1 >conftest.err
9577 rm -f conftest.er1
9578 cat conftest.err >&5
9579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9580 (exit $ac_status); } &&
9581 { ac_try='test -z "$ac_c_werror_flag"
9582 || test ! -s conftest.err'
9583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9584 (eval $ac_try) 2>&5
9585 ac_status=$?
9586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9587 (exit $ac_status); }; } &&
9588 { ac_try='test -s conftest$ac_exeext'
9589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9590 (eval $ac_try) 2>&5
9591 ac_status=$?
9592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9593 (exit $ac_status); }; }; then
9594 ac_cv_lib_dld_shl_load=yes
9595 else
9596 echo "$as_me: failed program was:" >&5
9597 sed 's/^/| /' conftest.$ac_ext >&5
9598
9599 ac_cv_lib_dld_shl_load=no
9600 fi
9601 rm -f conftest.err conftest.$ac_objext \
9602 conftest$ac_exeext conftest.$ac_ext
9603 LIBS=$ac_check_lib_save_LIBS
9604 fi
9605 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9606 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9607 if test $ac_cv_lib_dld_shl_load = yes; then
9608 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9609 else
9610 echo "$as_me:$LINENO: checking for dlopen" >&5
9611 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9612 if test "${ac_cv_func_dlopen+set}" = set; then
9613 echo $ECHO_N "(cached) $ECHO_C" >&6
9614 else
9615 cat >conftest.$ac_ext <<_ACEOF
9616 /* confdefs.h. */
9617 _ACEOF
9618 cat confdefs.h >>conftest.$ac_ext
9619 cat >>conftest.$ac_ext <<_ACEOF
9620 /* end confdefs.h. */
9621 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9622 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9623 #define dlopen innocuous_dlopen
9624
9625 /* System header to define __stub macros and hopefully few prototypes,
9626 which can conflict with char dlopen (); below.
9627 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9628 <limits.h> exists even on freestanding compilers. */
9629
9630 #ifdef __STDC__
9631 # include <limits.h>
9632 #else
9633 # include <assert.h>
9634 #endif
9635
9636 #undef dlopen
9637
9638 /* Override any gcc2 internal prototype to avoid an error. */
9639 #ifdef __cplusplus
9640 extern "C"
9641 {
9642 #endif
9643 /* We use char because int might match the return type of a gcc2
9644 builtin and then its argument prototype would still apply. */
9645 char dlopen ();
9646 /* The GNU C library defines this for functions which it implements
9647 to always fail with ENOSYS. Some functions are actually named
9648 something starting with __ and the normal name is an alias. */
9649 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9650 choke me
9651 #else
9652 char (*f) () = dlopen;
9653 #endif
9654 #ifdef __cplusplus
9655 }
9656 #endif
9657
9658 int
9659 main ()
9660 {
9661 return f != dlopen;
9662 ;
9663 return 0;
9664 }
9665 _ACEOF
9666 rm -f conftest.$ac_objext conftest$ac_exeext
9667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9668 (eval $ac_link) 2>conftest.er1
9669 ac_status=$?
9670 grep -v '^ *+' conftest.er1 >conftest.err
9671 rm -f conftest.er1
9672 cat conftest.err >&5
9673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9674 (exit $ac_status); } &&
9675 { ac_try='test -z "$ac_c_werror_flag"
9676 || test ! -s conftest.err'
9677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9678 (eval $ac_try) 2>&5
9679 ac_status=$?
9680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681 (exit $ac_status); }; } &&
9682 { ac_try='test -s conftest$ac_exeext'
9683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9684 (eval $ac_try) 2>&5
9685 ac_status=$?
9686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9687 (exit $ac_status); }; }; then
9688 ac_cv_func_dlopen=yes
9689 else
9690 echo "$as_me: failed program was:" >&5
9691 sed 's/^/| /' conftest.$ac_ext >&5
9692
9693 ac_cv_func_dlopen=no
9694 fi
9695 rm -f conftest.err conftest.$ac_objext \
9696 conftest$ac_exeext conftest.$ac_ext
9697 fi
9698 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9699 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9700 if test $ac_cv_func_dlopen = yes; then
9701 lt_cv_dlopen="dlopen"
9702 else
9703 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9704 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9705 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9706 echo $ECHO_N "(cached) $ECHO_C" >&6
9707 else
9708 ac_check_lib_save_LIBS=$LIBS
9709 LIBS="-ldl $LIBS"
9710 cat >conftest.$ac_ext <<_ACEOF
9711 /* confdefs.h. */
9712 _ACEOF
9713 cat confdefs.h >>conftest.$ac_ext
9714 cat >>conftest.$ac_ext <<_ACEOF
9715 /* end confdefs.h. */
9716
9717 /* Override any gcc2 internal prototype to avoid an error. */
9718 #ifdef __cplusplus
9719 extern "C"
9720 #endif
9721 /* We use char because int might match the return type of a gcc2
9722 builtin and then its argument prototype would still apply. */
9723 char dlopen ();
9724 int
9725 main ()
9726 {
9727 dlopen ();
9728 ;
9729 return 0;
9730 }
9731 _ACEOF
9732 rm -f conftest.$ac_objext conftest$ac_exeext
9733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9734 (eval $ac_link) 2>conftest.er1
9735 ac_status=$?
9736 grep -v '^ *+' conftest.er1 >conftest.err
9737 rm -f conftest.er1
9738 cat conftest.err >&5
9739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740 (exit $ac_status); } &&
9741 { ac_try='test -z "$ac_c_werror_flag"
9742 || test ! -s conftest.err'
9743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9744 (eval $ac_try) 2>&5
9745 ac_status=$?
9746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747 (exit $ac_status); }; } &&
9748 { ac_try='test -s conftest$ac_exeext'
9749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9750 (eval $ac_try) 2>&5
9751 ac_status=$?
9752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753 (exit $ac_status); }; }; then
9754 ac_cv_lib_dl_dlopen=yes
9755 else
9756 echo "$as_me: failed program was:" >&5
9757 sed 's/^/| /' conftest.$ac_ext >&5
9758
9759 ac_cv_lib_dl_dlopen=no
9760 fi
9761 rm -f conftest.err conftest.$ac_objext \
9762 conftest$ac_exeext conftest.$ac_ext
9763 LIBS=$ac_check_lib_save_LIBS
9764 fi
9765 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9766 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9767 if test $ac_cv_lib_dl_dlopen = yes; then
9768 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9769 else
9770 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9771 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9772 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9773 echo $ECHO_N "(cached) $ECHO_C" >&6
9774 else
9775 ac_check_lib_save_LIBS=$LIBS
9776 LIBS="-lsvld $LIBS"
9777 cat >conftest.$ac_ext <<_ACEOF
9778 /* confdefs.h. */
9779 _ACEOF
9780 cat confdefs.h >>conftest.$ac_ext
9781 cat >>conftest.$ac_ext <<_ACEOF
9782 /* end confdefs.h. */
9783
9784 /* Override any gcc2 internal prototype to avoid an error. */
9785 #ifdef __cplusplus
9786 extern "C"
9787 #endif
9788 /* We use char because int might match the return type of a gcc2
9789 builtin and then its argument prototype would still apply. */
9790 char dlopen ();
9791 int
9792 main ()
9793 {
9794 dlopen ();
9795 ;
9796 return 0;
9797 }
9798 _ACEOF
9799 rm -f conftest.$ac_objext conftest$ac_exeext
9800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9801 (eval $ac_link) 2>conftest.er1
9802 ac_status=$?
9803 grep -v '^ *+' conftest.er1 >conftest.err
9804 rm -f conftest.er1
9805 cat conftest.err >&5
9806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807 (exit $ac_status); } &&
9808 { ac_try='test -z "$ac_c_werror_flag"
9809 || test ! -s conftest.err'
9810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9811 (eval $ac_try) 2>&5
9812 ac_status=$?
9813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9814 (exit $ac_status); }; } &&
9815 { ac_try='test -s conftest$ac_exeext'
9816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9817 (eval $ac_try) 2>&5
9818 ac_status=$?
9819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9820 (exit $ac_status); }; }; then
9821 ac_cv_lib_svld_dlopen=yes
9822 else
9823 echo "$as_me: failed program was:" >&5
9824 sed 's/^/| /' conftest.$ac_ext >&5
9825
9826 ac_cv_lib_svld_dlopen=no
9827 fi
9828 rm -f conftest.err conftest.$ac_objext \
9829 conftest$ac_exeext conftest.$ac_ext
9830 LIBS=$ac_check_lib_save_LIBS
9831 fi
9832 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9833 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9834 if test $ac_cv_lib_svld_dlopen = yes; then
9835 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9836 else
9837 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9838 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9839 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9840 echo $ECHO_N "(cached) $ECHO_C" >&6
9841 else
9842 ac_check_lib_save_LIBS=$LIBS
9843 LIBS="-ldld $LIBS"
9844 cat >conftest.$ac_ext <<_ACEOF
9845 /* confdefs.h. */
9846 _ACEOF
9847 cat confdefs.h >>conftest.$ac_ext
9848 cat >>conftest.$ac_ext <<_ACEOF
9849 /* end confdefs.h. */
9850
9851 /* Override any gcc2 internal prototype to avoid an error. */
9852 #ifdef __cplusplus
9853 extern "C"
9854 #endif
9855 /* We use char because int might match the return type of a gcc2
9856 builtin and then its argument prototype would still apply. */
9857 char dld_link ();
9858 int
9859 main ()
9860 {
9861 dld_link ();
9862 ;
9863 return 0;
9864 }
9865 _ACEOF
9866 rm -f conftest.$ac_objext conftest$ac_exeext
9867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9868 (eval $ac_link) 2>conftest.er1
9869 ac_status=$?
9870 grep -v '^ *+' conftest.er1 >conftest.err
9871 rm -f conftest.er1
9872 cat conftest.err >&5
9873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874 (exit $ac_status); } &&
9875 { ac_try='test -z "$ac_c_werror_flag"
9876 || test ! -s conftest.err'
9877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9878 (eval $ac_try) 2>&5
9879 ac_status=$?
9880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9881 (exit $ac_status); }; } &&
9882 { ac_try='test -s conftest$ac_exeext'
9883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9884 (eval $ac_try) 2>&5
9885 ac_status=$?
9886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887 (exit $ac_status); }; }; then
9888 ac_cv_lib_dld_dld_link=yes
9889 else
9890 echo "$as_me: failed program was:" >&5
9891 sed 's/^/| /' conftest.$ac_ext >&5
9892
9893 ac_cv_lib_dld_dld_link=no
9894 fi
9895 rm -f conftest.err conftest.$ac_objext \
9896 conftest$ac_exeext conftest.$ac_ext
9897 LIBS=$ac_check_lib_save_LIBS
9898 fi
9899 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9900 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9901 if test $ac_cv_lib_dld_dld_link = yes; then
9902 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9903 fi
9904
9905
9906 fi
9907
9908
9909 fi
9910
9911
9912 fi
9913
9914
9915 fi
9916
9917
9918 fi
9919
9920 ;;
9921 esac
9922
9923 if test "x$lt_cv_dlopen" != xno; then
9924 enable_dlopen=yes
9925 else
9926 enable_dlopen=no
9927 fi
9928
9929 case $lt_cv_dlopen in
9930 dlopen)
9931 save_CPPFLAGS="$CPPFLAGS"
9932 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9933
9934 save_LDFLAGS="$LDFLAGS"
9935 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9936
9937 save_LIBS="$LIBS"
9938 LIBS="$lt_cv_dlopen_libs $LIBS"
9939
9940 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9941 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9942 if test "${lt_cv_dlopen_self+set}" = set; then
9943 echo $ECHO_N "(cached) $ECHO_C" >&6
9944 else
9945 if test "$cross_compiling" = yes; then :
9946 lt_cv_dlopen_self=cross
9947 else
9948 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9949 lt_status=$lt_dlunknown
9950 cat > conftest.$ac_ext <<_LT_EOF
9951 #line 9951 "configure"
9952 #include "confdefs.h"
9953
9954 #if HAVE_DLFCN_H
9955 #include <dlfcn.h>
9956 #endif
9957
9958 #include <stdio.h>
9959
9960 #ifdef RTLD_GLOBAL
9961 # define LT_DLGLOBAL RTLD_GLOBAL
9962 #else
9963 # ifdef DL_GLOBAL
9964 # define LT_DLGLOBAL DL_GLOBAL
9965 # else
9966 # define LT_DLGLOBAL 0
9967 # endif
9968 #endif
9969
9970 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9971 find out it does not work in some platform. */
9972 #ifndef LT_DLLAZY_OR_NOW
9973 # ifdef RTLD_LAZY
9974 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9975 # else
9976 # ifdef DL_LAZY
9977 # define LT_DLLAZY_OR_NOW DL_LAZY
9978 # else
9979 # ifdef RTLD_NOW
9980 # define LT_DLLAZY_OR_NOW RTLD_NOW
9981 # else
9982 # ifdef DL_NOW
9983 # define LT_DLLAZY_OR_NOW DL_NOW
9984 # else
9985 # define LT_DLLAZY_OR_NOW 0
9986 # endif
9987 # endif
9988 # endif
9989 # endif
9990 #endif
9991
9992 #ifdef __cplusplus
9993 extern "C" void exit (int);
9994 #endif
9995
9996 void fnord() { int i=42;}
9997 int main ()
9998 {
9999 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10000 int status = $lt_dlunknown;
10001
10002 if (self)
10003 {
10004 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10005 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10006 /* dlclose (self); */
10007 }
10008 else
10009 puts (dlerror ());
10010
10011 exit (status);
10012 }
10013 _LT_EOF
10014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10015 (eval $ac_link) 2>&5
10016 ac_status=$?
10017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10018 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10019 (./conftest; exit; ) >&5 2>/dev/null
10020 lt_status=$?
10021 case x$lt_status in
10022 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10023 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10024 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10025 esac
10026 else :
10027 # compilation failed
10028 lt_cv_dlopen_self=no
10029 fi
10030 fi
10031 rm -fr conftest*
10032
10033
10034 fi
10035 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10036 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10037
10038 if test "x$lt_cv_dlopen_self" = xyes; then
10039 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10040 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10041 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10042 if test "${lt_cv_dlopen_self_static+set}" = set; then
10043 echo $ECHO_N "(cached) $ECHO_C" >&6
10044 else
10045 if test "$cross_compiling" = yes; then :
10046 lt_cv_dlopen_self_static=cross
10047 else
10048 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10049 lt_status=$lt_dlunknown
10050 cat > conftest.$ac_ext <<_LT_EOF
10051 #line 10051 "configure"
10052 #include "confdefs.h"
10053
10054 #if HAVE_DLFCN_H
10055 #include <dlfcn.h>
10056 #endif
10057
10058 #include <stdio.h>
10059
10060 #ifdef RTLD_GLOBAL
10061 # define LT_DLGLOBAL RTLD_GLOBAL
10062 #else
10063 # ifdef DL_GLOBAL
10064 # define LT_DLGLOBAL DL_GLOBAL
10065 # else
10066 # define LT_DLGLOBAL 0
10067 # endif
10068 #endif
10069
10070 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10071 find out it does not work in some platform. */
10072 #ifndef LT_DLLAZY_OR_NOW
10073 # ifdef RTLD_LAZY
10074 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10075 # else
10076 # ifdef DL_LAZY
10077 # define LT_DLLAZY_OR_NOW DL_LAZY
10078 # else
10079 # ifdef RTLD_NOW
10080 # define LT_DLLAZY_OR_NOW RTLD_NOW
10081 # else
10082 # ifdef DL_NOW
10083 # define LT_DLLAZY_OR_NOW DL_NOW
10084 # else
10085 # define LT_DLLAZY_OR_NOW 0
10086 # endif
10087 # endif
10088 # endif
10089 # endif
10090 #endif
10091
10092 #ifdef __cplusplus
10093 extern "C" void exit (int);
10094 #endif
10095
10096 void fnord() { int i=42;}
10097 int main ()
10098 {
10099 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10100 int status = $lt_dlunknown;
10101
10102 if (self)
10103 {
10104 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10105 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10106 /* dlclose (self); */
10107 }
10108 else
10109 puts (dlerror ());
10110
10111 exit (status);
10112 }
10113 _LT_EOF
10114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10115 (eval $ac_link) 2>&5
10116 ac_status=$?
10117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10118 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10119 (./conftest; exit; ) >&5 2>/dev/null
10120 lt_status=$?
10121 case x$lt_status in
10122 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10123 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10124 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10125 esac
10126 else :
10127 # compilation failed
10128 lt_cv_dlopen_self_static=no
10129 fi
10130 fi
10131 rm -fr conftest*
10132
10133
10134 fi
10135 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10136 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10137 fi
10138
10139 CPPFLAGS="$save_CPPFLAGS"
10140 LDFLAGS="$save_LDFLAGS"
10141 LIBS="$save_LIBS"
10142 ;;
10143 esac
10144
10145 case $lt_cv_dlopen_self in
10146 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10147 *) enable_dlopen_self=unknown ;;
10148 esac
10149
10150 case $lt_cv_dlopen_self_static in
10151 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10152 *) enable_dlopen_self_static=unknown ;;
10153 esac
10154 fi
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172 striplib=
10173 old_striplib=
10174 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10175 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10176 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10177 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10178 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10179 echo "$as_me:$LINENO: result: yes" >&5
10180 echo "${ECHO_T}yes" >&6
10181 else
10182 # FIXME - insert some real tests, host_os isn't really good enough
10183 case $host_os in
10184 darwin*)
10185 if test -n "$STRIP" ; then
10186 striplib="$STRIP -x"
10187 old_striplib="$STRIP -S"
10188 echo "$as_me:$LINENO: result: yes" >&5
10189 echo "${ECHO_T}yes" >&6
10190 else
10191 echo "$as_me:$LINENO: result: no" >&5
10192 echo "${ECHO_T}no" >&6
10193 fi
10194 ;;
10195 *)
10196 echo "$as_me:$LINENO: result: no" >&5
10197 echo "${ECHO_T}no" >&6
10198 ;;
10199 esac
10200 fi
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213 # Report which library types will actually be built
10214 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10215 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10216 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10217 echo "${ECHO_T}$can_build_shared" >&6
10218
10219 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10220 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10221 test "$can_build_shared" = "no" && enable_shared=no
10222
10223 # On AIX, shared libraries and static libraries use the same namespace, and
10224 # are all built from PIC.
10225 case $host_os in
10226 aix3*)
10227 test "$enable_shared" = yes && enable_static=no
10228 if test -n "$RANLIB"; then
10229 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10230 postinstall_cmds='$RANLIB $lib'
10231 fi
10232 ;;
10233
10234 aix[4-9]*)
10235 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10236 test "$enable_shared" = yes && enable_static=no
10237 fi
10238 ;;
10239 esac
10240 echo "$as_me:$LINENO: result: $enable_shared" >&5
10241 echo "${ECHO_T}$enable_shared" >&6
10242
10243 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10244 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10245 # Make sure either enable_shared or enable_static is yes.
10246 test "$enable_shared" = yes || enable_static=yes
10247 echo "$as_me:$LINENO: result: $enable_static" >&5
10248 echo "${ECHO_T}$enable_static" >&6
10249
10250
10251
10252
10253 fi
10254 ac_ext=c
10255 ac_cpp='$CPP $CPPFLAGS'
10256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10259
10260 CC="$lt_save_CC"
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274 ac_config_commands="$ac_config_commands libtool"
10275
10276
10277
10278
10279 # Only expand once:
10280
10281
10282
10283 # Check whether --enable-targets or --disable-targets was given.
10284 if test "${enable_targets+set}" = set; then
10285 enableval="$enable_targets"
10286 case "${enableval}" in
10287 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
10288 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
10289 { (exit 1); exit 1; }; }
10290 ;;
10291 no) enable_targets= ;;
10292 *) enable_targets=$enableval ;;
10293 esac
10294 fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
10295 if test "${enable_commonbfdlib+set}" = set; then
10296 enableval="$enable_commonbfdlib"
10297 case "${enableval}" in
10298 yes) commonbfdlib=true ;;
10299 no) commonbfdlib=false ;;
10300 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
10301 echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
10302 { (exit 1); exit 1; }; } ;;
10303 esac
10304 fi;
10305
10306 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
10307
10308 # Check whether --enable-werror or --disable-werror was given.
10309 if test "${enable_werror+set}" = set; then
10310 enableval="$enable_werror"
10311 case "${enableval}" in
10312 yes | y) ERROR_ON_WARNING="yes" ;;
10313 no | n) ERROR_ON_WARNING="no" ;;
10314 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
10315 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
10316 { (exit 1); exit 1; }; } ;;
10317 esac
10318 fi;
10319
10320 # Enable -Wno-format by default when using gcc on mingw
10321 case "${host}" in
10322 *-*-mingw32*)
10323 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10324 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
10325 fi
10326 ;;
10327 *) ;;
10328 esac
10329
10330 # Enable -Werror by default when using gcc
10331 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10332 ERROR_ON_WARNING=yes
10333 fi
10334
10335 NO_WERROR=
10336 if test "${ERROR_ON_WARNING}" = yes ; then
10337 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
10338 NO_WERROR="-Wno-error"
10339 fi
10340
10341 if test "${GCC}" = yes ; then
10342 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
10343 fi
10344
10345 # Check whether --enable-build-warnings or --disable-build-warnings was given.
10346 if test "${enable_build_warnings+set}" = set; then
10347 enableval="$enable_build_warnings"
10348 case "${enableval}" in
10349 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
10350 no) if test "${GCC}" = yes ; then
10351 WARN_CFLAGS="-w"
10352 fi;;
10353 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10354 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
10355 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10356 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
10357 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
10358 esac
10359 fi;
10360
10361 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
10362 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
10363 fi
10364
10365
10366
10367
10368
10369 ac_config_headers="$ac_config_headers config.h:config.in"
10370
10371
10372 if test -z "$target" ; then
10373 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
10374 echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
10375 { (exit 1); exit 1; }; }
10376 fi
10377 if test -z "$host" ; then
10378 { { echo "$as_me:$LINENO: error: Unrecognized host system type; please check config.sub." >&5
10379 echo "$as_me: error: Unrecognized host system type; please check config.sub." >&2;}
10380 { (exit 1); exit 1; }; }
10381 fi
10382
10383 for ac_prog in 'bison -y' byacc
10384 do
10385 # Extract the first word of "$ac_prog", so it can be a program name with args.
10386 set dummy $ac_prog; ac_word=$2
10387 echo "$as_me:$LINENO: checking for $ac_word" >&5
10388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10389 if test "${ac_cv_prog_YACC+set}" = set; then
10390 echo $ECHO_N "(cached) $ECHO_C" >&6
10391 else
10392 if test -n "$YACC"; then
10393 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10394 else
10395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10396 for as_dir in $PATH
10397 do
10398 IFS=$as_save_IFS
10399 test -z "$as_dir" && as_dir=.
10400 for ac_exec_ext in '' $ac_executable_extensions; do
10401 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10402 ac_cv_prog_YACC="$ac_prog"
10403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10404 break 2
10405 fi
10406 done
10407 done
10408
10409 fi
10410 fi
10411 YACC=$ac_cv_prog_YACC
10412 if test -n "$YACC"; then
10413 echo "$as_me:$LINENO: result: $YACC" >&5
10414 echo "${ECHO_T}$YACC" >&6
10415 else
10416 echo "$as_me:$LINENO: result: no" >&5
10417 echo "${ECHO_T}no" >&6
10418 fi
10419
10420 test -n "$YACC" && break
10421 done
10422 test -n "$YACC" || YACC="yacc"
10423
10424 for ac_prog in flex lex
10425 do
10426 # Extract the first word of "$ac_prog", so it can be a program name with args.
10427 set dummy $ac_prog; ac_word=$2
10428 echo "$as_me:$LINENO: checking for $ac_word" >&5
10429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10430 if test "${ac_cv_prog_LEX+set}" = set; then
10431 echo $ECHO_N "(cached) $ECHO_C" >&6
10432 else
10433 if test -n "$LEX"; then
10434 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10435 else
10436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10437 for as_dir in $PATH
10438 do
10439 IFS=$as_save_IFS
10440 test -z "$as_dir" && as_dir=.
10441 for ac_exec_ext in '' $ac_executable_extensions; do
10442 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10443 ac_cv_prog_LEX="$ac_prog"
10444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10445 break 2
10446 fi
10447 done
10448 done
10449
10450 fi
10451 fi
10452 LEX=$ac_cv_prog_LEX
10453 if test -n "$LEX"; then
10454 echo "$as_me:$LINENO: result: $LEX" >&5
10455 echo "${ECHO_T}$LEX" >&6
10456 else
10457 echo "$as_me:$LINENO: result: no" >&5
10458 echo "${ECHO_T}no" >&6
10459 fi
10460
10461 test -n "$LEX" && break
10462 done
10463 test -n "$LEX" || LEX=":"
10464
10465 if test -z "$LEXLIB"
10466 then
10467 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
10468 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
10469 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
10470 echo $ECHO_N "(cached) $ECHO_C" >&6
10471 else
10472 ac_check_lib_save_LIBS=$LIBS
10473 LIBS="-lfl $LIBS"
10474 cat >conftest.$ac_ext <<_ACEOF
10475 /* confdefs.h. */
10476 _ACEOF
10477 cat confdefs.h >>conftest.$ac_ext
10478 cat >>conftest.$ac_ext <<_ACEOF
10479 /* end confdefs.h. */
10480
10481 /* Override any gcc2 internal prototype to avoid an error. */
10482 #ifdef __cplusplus
10483 extern "C"
10484 #endif
10485 /* We use char because int might match the return type of a gcc2
10486 builtin and then its argument prototype would still apply. */
10487 char yywrap ();
10488 int
10489 main ()
10490 {
10491 yywrap ();
10492 ;
10493 return 0;
10494 }
10495 _ACEOF
10496 rm -f conftest.$ac_objext conftest$ac_exeext
10497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10498 (eval $ac_link) 2>conftest.er1
10499 ac_status=$?
10500 grep -v '^ *+' conftest.er1 >conftest.err
10501 rm -f conftest.er1
10502 cat conftest.err >&5
10503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504 (exit $ac_status); } &&
10505 { ac_try='test -z "$ac_c_werror_flag"
10506 || test ! -s conftest.err'
10507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10508 (eval $ac_try) 2>&5
10509 ac_status=$?
10510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511 (exit $ac_status); }; } &&
10512 { ac_try='test -s conftest$ac_exeext'
10513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10514 (eval $ac_try) 2>&5
10515 ac_status=$?
10516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10517 (exit $ac_status); }; }; then
10518 ac_cv_lib_fl_yywrap=yes
10519 else
10520 echo "$as_me: failed program was:" >&5
10521 sed 's/^/| /' conftest.$ac_ext >&5
10522
10523 ac_cv_lib_fl_yywrap=no
10524 fi
10525 rm -f conftest.err conftest.$ac_objext \
10526 conftest$ac_exeext conftest.$ac_ext
10527 LIBS=$ac_check_lib_save_LIBS
10528 fi
10529 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
10530 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
10531 if test $ac_cv_lib_fl_yywrap = yes; then
10532 LEXLIB="-lfl"
10533 else
10534 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
10535 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
10536 if test "${ac_cv_lib_l_yywrap+set}" = set; then
10537 echo $ECHO_N "(cached) $ECHO_C" >&6
10538 else
10539 ac_check_lib_save_LIBS=$LIBS
10540 LIBS="-ll $LIBS"
10541 cat >conftest.$ac_ext <<_ACEOF
10542 /* confdefs.h. */
10543 _ACEOF
10544 cat confdefs.h >>conftest.$ac_ext
10545 cat >>conftest.$ac_ext <<_ACEOF
10546 /* end confdefs.h. */
10547
10548 /* Override any gcc2 internal prototype to avoid an error. */
10549 #ifdef __cplusplus
10550 extern "C"
10551 #endif
10552 /* We use char because int might match the return type of a gcc2
10553 builtin and then its argument prototype would still apply. */
10554 char yywrap ();
10555 int
10556 main ()
10557 {
10558 yywrap ();
10559 ;
10560 return 0;
10561 }
10562 _ACEOF
10563 rm -f conftest.$ac_objext conftest$ac_exeext
10564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10565 (eval $ac_link) 2>conftest.er1
10566 ac_status=$?
10567 grep -v '^ *+' conftest.er1 >conftest.err
10568 rm -f conftest.er1
10569 cat conftest.err >&5
10570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10571 (exit $ac_status); } &&
10572 { ac_try='test -z "$ac_c_werror_flag"
10573 || test ! -s conftest.err'
10574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10575 (eval $ac_try) 2>&5
10576 ac_status=$?
10577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10578 (exit $ac_status); }; } &&
10579 { ac_try='test -s conftest$ac_exeext'
10580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10581 (eval $ac_try) 2>&5
10582 ac_status=$?
10583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10584 (exit $ac_status); }; }; then
10585 ac_cv_lib_l_yywrap=yes
10586 else
10587 echo "$as_me: failed program was:" >&5
10588 sed 's/^/| /' conftest.$ac_ext >&5
10589
10590 ac_cv_lib_l_yywrap=no
10591 fi
10592 rm -f conftest.err conftest.$ac_objext \
10593 conftest$ac_exeext conftest.$ac_ext
10594 LIBS=$ac_check_lib_save_LIBS
10595 fi
10596 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
10597 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
10598 if test $ac_cv_lib_l_yywrap = yes; then
10599 LEXLIB="-ll"
10600 fi
10601
10602 fi
10603
10604 fi
10605
10606 if test "x$LEX" != "x:"; then
10607 echo "$as_me:$LINENO: checking lex output file root" >&5
10608 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
10609 if test "${ac_cv_prog_lex_root+set}" = set; then
10610 echo $ECHO_N "(cached) $ECHO_C" >&6
10611 else
10612 # The minimal lex program is just a single line: %%. But some broken lexes
10613 # (Solaris, I think it was) want two %% lines, so accommodate them.
10614 cat >conftest.l <<_ACEOF
10615 %%
10616 %%
10617 _ACEOF
10618 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
10619 (eval $LEX conftest.l) 2>&5
10620 ac_status=$?
10621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10622 (exit $ac_status); }
10623 if test -f lex.yy.c; then
10624 ac_cv_prog_lex_root=lex.yy
10625 elif test -f lexyy.c; then
10626 ac_cv_prog_lex_root=lexyy
10627 else
10628 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
10629 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
10630 { (exit 1); exit 1; }; }
10631 fi
10632 fi
10633 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
10634 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
10635 rm -f conftest.l
10636 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
10637
10638 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
10639 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
10640 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
10641 echo $ECHO_N "(cached) $ECHO_C" >&6
10642 else
10643 # POSIX says lex can declare yytext either as a pointer or an array; the
10644 # default is implementation-dependent. Figure out which it is, since
10645 # not all implementations provide the %pointer and %array declarations.
10646 ac_cv_prog_lex_yytext_pointer=no
10647 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
10648 ac_save_LIBS=$LIBS
10649 LIBS="$LIBS $LEXLIB"
10650 cat >conftest.$ac_ext <<_ACEOF
10651 `cat $LEX_OUTPUT_ROOT.c`
10652 _ACEOF
10653 rm -f conftest.$ac_objext conftest$ac_exeext
10654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10655 (eval $ac_link) 2>conftest.er1
10656 ac_status=$?
10657 grep -v '^ *+' conftest.er1 >conftest.err
10658 rm -f conftest.er1
10659 cat conftest.err >&5
10660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661 (exit $ac_status); } &&
10662 { ac_try='test -z "$ac_c_werror_flag"
10663 || test ! -s conftest.err'
10664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10665 (eval $ac_try) 2>&5
10666 ac_status=$?
10667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668 (exit $ac_status); }; } &&
10669 { ac_try='test -s conftest$ac_exeext'
10670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10671 (eval $ac_try) 2>&5
10672 ac_status=$?
10673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10674 (exit $ac_status); }; }; then
10675 ac_cv_prog_lex_yytext_pointer=yes
10676 else
10677 echo "$as_me: failed program was:" >&5
10678 sed 's/^/| /' conftest.$ac_ext >&5
10679
10680 fi
10681 rm -f conftest.err conftest.$ac_objext \
10682 conftest$ac_exeext conftest.$ac_ext
10683 LIBS=$ac_save_LIBS
10684 rm -f "${LEX_OUTPUT_ROOT}.c"
10685
10686 fi
10687 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
10688 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
10689 if test $ac_cv_prog_lex_yytext_pointer = yes; then
10690
10691 cat >>confdefs.h <<\_ACEOF
10692 #define YYTEXT_POINTER 1
10693 _ACEOF
10694
10695 fi
10696
10697 fi
10698 if test "$LEX" = :; then
10699 LEX=${am_missing_run}flex
10700 fi
10701
10702 ALL_LINGUAS="fr tr ja es sv da zh_CN ru ro rw zh_TW fi vi uk sk"
10703 # If we haven't got the data from the intl directory,
10704 # assume NLS is disabled.
10705 USE_NLS=no
10706 LIBINTL=
10707 LIBINTL_DEP=
10708 INCINTL=
10709 XGETTEXT=
10710 GMSGFMT=
10711 POSUB=
10712
10713 if test -f ../intl/config.intl; then
10714 . ../intl/config.intl
10715 fi
10716 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10717 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10718 if test x"$USE_NLS" != xyes; then
10719 echo "$as_me:$LINENO: result: no" >&5
10720 echo "${ECHO_T}no" >&6
10721 else
10722 echo "$as_me:$LINENO: result: yes" >&5
10723 echo "${ECHO_T}yes" >&6
10724
10725 cat >>confdefs.h <<\_ACEOF
10726 #define ENABLE_NLS 1
10727 _ACEOF
10728
10729
10730 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
10731 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
10732 # Look for .po and .gmo files in the source directory.
10733 CATALOGS=
10734 XLINGUAS=
10735 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
10736 # If there aren't any .gmo files the shell will give us the
10737 # literal string "../path/to/srcdir/po/*.gmo" which has to be
10738 # weeded out.
10739 case "$cat" in *\**)
10740 continue;;
10741 esac
10742 # The quadruple backslash is collapsed to a double backslash
10743 # by the backticks, then collapsed again by the double quotes,
10744 # leaving us with one backslash in the sed expression (right
10745 # before the dot that mustn't act as a wildcard).
10746 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10747 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
10748 # The user is allowed to set LINGUAS to a list of languages to
10749 # install catalogs for. If it's empty that means "all of them."
10750 if test "x$LINGUAS" = x; then
10751 CATALOGS="$CATALOGS $cat"
10752 XLINGUAS="$XLINGUAS $lang"
10753 else
10754 case "$LINGUAS" in *$lang*)
10755 CATALOGS="$CATALOGS $cat"
10756 XLINGUAS="$XLINGUAS $lang"
10757 ;;
10758 esac
10759 fi
10760 done
10761 LINGUAS="$XLINGUAS"
10762 echo "$as_me:$LINENO: result: $LINGUAS" >&5
10763 echo "${ECHO_T}$LINGUAS" >&6
10764
10765
10766 DATADIRNAME=share
10767
10768 INSTOBJEXT=.mo
10769
10770 GENCAT=gencat
10771
10772 CATOBJEXT=.gmo
10773
10774 fi
10775
10776 MKINSTALLDIRS=
10777 if test -n "$ac_aux_dir"; then
10778 case "$ac_aux_dir" in
10779 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
10780 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
10781 esac
10782 fi
10783 if test -z "$MKINSTALLDIRS"; then
10784 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
10785 fi
10786
10787
10788
10789 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10790 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10791 # Check whether --enable-nls or --disable-nls was given.
10792 if test "${enable_nls+set}" = set; then
10793 enableval="$enable_nls"
10794 USE_NLS=$enableval
10795 else
10796 USE_NLS=yes
10797 fi;
10798 echo "$as_me:$LINENO: result: $USE_NLS" >&5
10799 echo "${ECHO_T}$USE_NLS" >&6
10800
10801
10802
10803
10804
10805
10806 # Prepare PATH_SEPARATOR.
10807 # The user is always right.
10808 if test "${PATH_SEPARATOR+set}" != set; then
10809 echo "#! /bin/sh" >conf$$.sh
10810 echo "exit 0" >>conf$$.sh
10811 chmod +x conf$$.sh
10812 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10813 PATH_SEPARATOR=';'
10814 else
10815 PATH_SEPARATOR=:
10816 fi
10817 rm -f conf$$.sh
10818 fi
10819
10820 # Find out how to test for executable files. Don't use a zero-byte file,
10821 # as systems may use methods other than mode bits to determine executability.
10822 cat >conf$$.file <<_ASEOF
10823 #! /bin/sh
10824 exit 0
10825 _ASEOF
10826 chmod +x conf$$.file
10827 if test -x conf$$.file >/dev/null 2>&1; then
10828 ac_executable_p="test -x"
10829 else
10830 ac_executable_p="test -f"
10831 fi
10832 rm -f conf$$.file
10833
10834 # Extract the first word of "msgfmt", so it can be a program name with args.
10835 set dummy msgfmt; ac_word=$2
10836 echo "$as_me:$LINENO: checking for $ac_word" >&5
10837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10838 if test "${ac_cv_path_MSGFMT+set}" = set; then
10839 echo $ECHO_N "(cached) $ECHO_C" >&6
10840 else
10841 case "$MSGFMT" in
10842 [\\/]* | ?:[\\/]*)
10843 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10844 ;;
10845 *)
10846 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10847 for ac_dir in $PATH; do
10848 IFS="$ac_save_IFS"
10849 test -z "$ac_dir" && ac_dir=.
10850 for ac_exec_ext in '' $ac_executable_extensions; do
10851 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10852 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
10853 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10854 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
10855 break 2
10856 fi
10857 fi
10858 done
10859 done
10860 IFS="$ac_save_IFS"
10861 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
10862 ;;
10863 esac
10864 fi
10865 MSGFMT="$ac_cv_path_MSGFMT"
10866 if test "$MSGFMT" != ":"; then
10867 echo "$as_me:$LINENO: result: $MSGFMT" >&5
10868 echo "${ECHO_T}$MSGFMT" >&6
10869 else
10870 echo "$as_me:$LINENO: result: no" >&5
10871 echo "${ECHO_T}no" >&6
10872 fi
10873
10874 # Extract the first word of "gmsgfmt", so it can be a program name with args.
10875 set dummy gmsgfmt; ac_word=$2
10876 echo "$as_me:$LINENO: checking for $ac_word" >&5
10877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10878 if test "${ac_cv_path_GMSGFMT+set}" = set; then
10879 echo $ECHO_N "(cached) $ECHO_C" >&6
10880 else
10881 case $GMSGFMT in
10882 [\\/]* | ?:[\\/]*)
10883 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
10884 ;;
10885 *)
10886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10887 for as_dir in $PATH
10888 do
10889 IFS=$as_save_IFS
10890 test -z "$as_dir" && as_dir=.
10891 for ac_exec_ext in '' $ac_executable_extensions; do
10892 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10893 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
10894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10895 break 2
10896 fi
10897 done
10898 done
10899
10900 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
10901 ;;
10902 esac
10903 fi
10904 GMSGFMT=$ac_cv_path_GMSGFMT
10905
10906 if test -n "$GMSGFMT"; then
10907 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
10908 echo "${ECHO_T}$GMSGFMT" >&6
10909 else
10910 echo "$as_me:$LINENO: result: no" >&5
10911 echo "${ECHO_T}no" >&6
10912 fi
10913
10914
10915
10916 # Prepare PATH_SEPARATOR.
10917 # The user is always right.
10918 if test "${PATH_SEPARATOR+set}" != set; then
10919 echo "#! /bin/sh" >conf$$.sh
10920 echo "exit 0" >>conf$$.sh
10921 chmod +x conf$$.sh
10922 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10923 PATH_SEPARATOR=';'
10924 else
10925 PATH_SEPARATOR=:
10926 fi
10927 rm -f conf$$.sh
10928 fi
10929
10930 # Find out how to test for executable files. Don't use a zero-byte file,
10931 # as systems may use methods other than mode bits to determine executability.
10932 cat >conf$$.file <<_ASEOF
10933 #! /bin/sh
10934 exit 0
10935 _ASEOF
10936 chmod +x conf$$.file
10937 if test -x conf$$.file >/dev/null 2>&1; then
10938 ac_executable_p="test -x"
10939 else
10940 ac_executable_p="test -f"
10941 fi
10942 rm -f conf$$.file
10943
10944 # Extract the first word of "xgettext", so it can be a program name with args.
10945 set dummy xgettext; ac_word=$2
10946 echo "$as_me:$LINENO: checking for $ac_word" >&5
10947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10948 if test "${ac_cv_path_XGETTEXT+set}" = set; then
10949 echo $ECHO_N "(cached) $ECHO_C" >&6
10950 else
10951 case "$XGETTEXT" in
10952 [\\/]* | ?:[\\/]*)
10953 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
10954 ;;
10955 *)
10956 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10957 for ac_dir in $PATH; do
10958 IFS="$ac_save_IFS"
10959 test -z "$ac_dir" && ac_dir=.
10960 for ac_exec_ext in '' $ac_executable_extensions; do
10961 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10962 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
10963 (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
10964 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
10965 break 2
10966 fi
10967 fi
10968 done
10969 done
10970 IFS="$ac_save_IFS"
10971 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
10972 ;;
10973 esac
10974 fi
10975 XGETTEXT="$ac_cv_path_XGETTEXT"
10976 if test "$XGETTEXT" != ":"; then
10977 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
10978 echo "${ECHO_T}$XGETTEXT" >&6
10979 else
10980 echo "$as_me:$LINENO: result: no" >&5
10981 echo "${ECHO_T}no" >&6
10982 fi
10983
10984 rm -f messages.po
10985
10986
10987 # Prepare PATH_SEPARATOR.
10988 # The user is always right.
10989 if test "${PATH_SEPARATOR+set}" != set; then
10990 echo "#! /bin/sh" >conf$$.sh
10991 echo "exit 0" >>conf$$.sh
10992 chmod +x conf$$.sh
10993 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10994 PATH_SEPARATOR=';'
10995 else
10996 PATH_SEPARATOR=:
10997 fi
10998 rm -f conf$$.sh
10999 fi
11000
11001 # Find out how to test for executable files. Don't use a zero-byte file,
11002 # as systems may use methods other than mode bits to determine executability.
11003 cat >conf$$.file <<_ASEOF
11004 #! /bin/sh
11005 exit 0
11006 _ASEOF
11007 chmod +x conf$$.file
11008 if test -x conf$$.file >/dev/null 2>&1; then
11009 ac_executable_p="test -x"
11010 else
11011 ac_executable_p="test -f"
11012 fi
11013 rm -f conf$$.file
11014
11015 # Extract the first word of "msgmerge", so it can be a program name with args.
11016 set dummy msgmerge; ac_word=$2
11017 echo "$as_me:$LINENO: checking for $ac_word" >&5
11018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11019 if test "${ac_cv_path_MSGMERGE+set}" = set; then
11020 echo $ECHO_N "(cached) $ECHO_C" >&6
11021 else
11022 case "$MSGMERGE" in
11023 [\\/]* | ?:[\\/]*)
11024 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11025 ;;
11026 *)
11027 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11028 for ac_dir in $PATH; do
11029 IFS="$ac_save_IFS"
11030 test -z "$ac_dir" && ac_dir=.
11031 for ac_exec_ext in '' $ac_executable_extensions; do
11032 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11033 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
11034 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11035 break 2
11036 fi
11037 fi
11038 done
11039 done
11040 IFS="$ac_save_IFS"
11041 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11042 ;;
11043 esac
11044 fi
11045 MSGMERGE="$ac_cv_path_MSGMERGE"
11046 if test "$MSGMERGE" != ":"; then
11047 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
11048 echo "${ECHO_T}$MSGMERGE" >&6
11049 else
11050 echo "$as_me:$LINENO: result: no" >&5
11051 echo "${ECHO_T}no" >&6
11052 fi
11053
11054
11055 if test "$GMSGFMT" != ":"; then
11056 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
11057 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11058 : ;
11059 else
11060 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
11061 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
11062 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
11063 GMSGFMT=":"
11064 fi
11065 fi
11066
11067 if test "$XGETTEXT" != ":"; then
11068 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11069 (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
11070 : ;
11071 else
11072 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
11073 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
11074 XGETTEXT=":"
11075 fi
11076 rm -f messages.po
11077 fi
11078
11079 ac_config_commands="$ac_config_commands default-1"
11080
11081
11082
11083 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11084 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11085 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11086 if test "${enable_maintainer_mode+set}" = set; then
11087 enableval="$enable_maintainer_mode"
11088 USE_MAINTAINER_MODE=$enableval
11089 else
11090 USE_MAINTAINER_MODE=no
11091 fi;
11092 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
11093 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
11094
11095
11096 if test $USE_MAINTAINER_MODE = yes; then
11097 MAINTAINER_MODE_TRUE=
11098 MAINTAINER_MODE_FALSE='#'
11099 else
11100 MAINTAINER_MODE_TRUE='#'
11101 MAINTAINER_MODE_FALSE=
11102 fi
11103
11104 MAINT=$MAINTAINER_MODE_TRUE
11105
11106
11107
11108
11109 if false; then
11110 GENINSRC_NEVER_TRUE=
11111 GENINSRC_NEVER_FALSE='#'
11112 else
11113 GENINSRC_NEVER_TRUE='#'
11114 GENINSRC_NEVER_FALSE=
11115 fi
11116
11117
11118 if test -n "$EXEEXT"; then
11119
11120 cat >>confdefs.h <<\_ACEOF
11121 #define HAVE_EXECUTABLE_SUFFIX 1
11122 _ACEOF
11123
11124 fi
11125
11126 cat >>confdefs.h <<_ACEOF
11127 #define EXECUTABLE_SUFFIX "${EXEEXT}"
11128 _ACEOF
11129
11130
11131 # host-specific stuff:
11132
11133 HDEFINES=
11134
11135 . ${srcdir}/../bfd/configure.host
11136
11137
11138 AR=${AR-ar}
11139
11140 if test -n "$ac_tool_prefix"; then
11141 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11142 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11143 echo "$as_me:$LINENO: checking for $ac_word" >&5
11144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11145 if test "${ac_cv_prog_RANLIB+set}" = set; then
11146 echo $ECHO_N "(cached) $ECHO_C" >&6
11147 else
11148 if test -n "$RANLIB"; then
11149 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11150 else
11151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11152 for as_dir in $PATH
11153 do
11154 IFS=$as_save_IFS
11155 test -z "$as_dir" && as_dir=.
11156 for ac_exec_ext in '' $ac_executable_extensions; do
11157 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11158 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11160 break 2
11161 fi
11162 done
11163 done
11164
11165 fi
11166 fi
11167 RANLIB=$ac_cv_prog_RANLIB
11168 if test -n "$RANLIB"; then
11169 echo "$as_me:$LINENO: result: $RANLIB" >&5
11170 echo "${ECHO_T}$RANLIB" >&6
11171 else
11172 echo "$as_me:$LINENO: result: no" >&5
11173 echo "${ECHO_T}no" >&6
11174 fi
11175
11176 fi
11177 if test -z "$ac_cv_prog_RANLIB"; then
11178 ac_ct_RANLIB=$RANLIB
11179 # Extract the first word of "ranlib", so it can be a program name with args.
11180 set dummy ranlib; ac_word=$2
11181 echo "$as_me:$LINENO: checking for $ac_word" >&5
11182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11183 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11184 echo $ECHO_N "(cached) $ECHO_C" >&6
11185 else
11186 if test -n "$ac_ct_RANLIB"; then
11187 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11188 else
11189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11190 for as_dir in $PATH
11191 do
11192 IFS=$as_save_IFS
11193 test -z "$as_dir" && as_dir=.
11194 for ac_exec_ext in '' $ac_executable_extensions; do
11195 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11196 ac_cv_prog_ac_ct_RANLIB="ranlib"
11197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11198 break 2
11199 fi
11200 done
11201 done
11202
11203 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11204 fi
11205 fi
11206 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11207 if test -n "$ac_ct_RANLIB"; then
11208 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11209 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11210 else
11211 echo "$as_me:$LINENO: result: no" >&5
11212 echo "${ECHO_T}no" >&6
11213 fi
11214
11215 RANLIB=$ac_ct_RANLIB
11216 else
11217 RANLIB="$ac_cv_prog_RANLIB"
11218 fi
11219
11220 # Find a good install program. We prefer a C program (faster),
11221 # so one script is as good as another. But avoid the broken or
11222 # incompatible versions:
11223 # SysV /etc/install, /usr/sbin/install
11224 # SunOS /usr/etc/install
11225 # IRIX /sbin/install
11226 # AIX /bin/install
11227 # AmigaOS /C/install, which installs bootblocks on floppy discs
11228 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11229 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11230 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11231 # OS/2's system install, which has a completely different semantic
11232 # ./install, which can be erroneously created by make from ./install.sh.
11233 # Reject install programs that cannot install multiple files.
11234 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11235 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11236 if test -z "$INSTALL"; then
11237 if test "${ac_cv_path_install+set}" = set; then
11238 echo $ECHO_N "(cached) $ECHO_C" >&6
11239 else
11240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11241 for as_dir in $PATH
11242 do
11243 IFS=$as_save_IFS
11244 test -z "$as_dir" && as_dir=.
11245 # Account for people who put trailing slashes in PATH elements.
11246 case $as_dir/ in
11247 ./ | .// | /cC/* | \
11248 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11249 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11250 /usr/ucb/* ) ;;
11251 *)
11252 # OSF1 and SCO ODT 3.0 have their own names for install.
11253 # Don't use installbsd from OSF since it installs stuff as root
11254 # by default.
11255 for ac_prog in ginstall scoinst install; do
11256 for ac_exec_ext in '' $ac_executable_extensions; do
11257 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11258 if test $ac_prog = install &&
11259 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11260 # AIX install. It has an incompatible calling convention.
11261 :
11262 elif test $ac_prog = install &&
11263 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11264 # program-specific install script used by HP pwplus--don't use.
11265 :
11266 else
11267 rm -rf conftest.one conftest.two conftest.dir
11268 echo one > conftest.one
11269 echo two > conftest.two
11270 mkdir conftest.dir
11271 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
11272 test -s conftest.one && test -s conftest.two &&
11273 test -s conftest.dir/conftest.one &&
11274 test -s conftest.dir/conftest.two
11275 then
11276 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11277 break 3
11278 fi
11279 fi
11280 fi
11281 done
11282 done
11283 ;;
11284 esac
11285 done
11286
11287 rm -rf conftest.one conftest.two conftest.dir
11288
11289 fi
11290 if test "${ac_cv_path_install+set}" = set; then
11291 INSTALL=$ac_cv_path_install
11292 else
11293 # As a last resort, use the slow shell script. Don't cache a
11294 # value for INSTALL within a source directory, because that will
11295 # break other packages using the cache if that directory is
11296 # removed, or if the value is a relative name.
11297 INSTALL=$ac_install_sh
11298 fi
11299 fi
11300 echo "$as_me:$LINENO: result: $INSTALL" >&5
11301 echo "${ECHO_T}$INSTALL" >&6
11302
11303 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11304 # It thinks the first close brace ends the variable substitution.
11305 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11306
11307 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11308
11309 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11310
11311
11312 # Put a plausible default for CC_FOR_BUILD in Makefile.
11313 if test -z "$CC_FOR_BUILD"; then
11314 if test "x$cross_compiling" = "xno"; then
11315 CC_FOR_BUILD='$(CC)'
11316 else
11317 CC_FOR_BUILD=gcc
11318 fi
11319 fi
11320
11321 # Also set EXEEXT_FOR_BUILD.
11322 if test "x$cross_compiling" = "xno"; then
11323 EXEEXT_FOR_BUILD='$(EXEEXT)'
11324 else
11325 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
11326 echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
11327 if test "${bfd_cv_build_exeext+set}" = set; then
11328 echo $ECHO_N "(cached) $ECHO_C" >&6
11329 else
11330 rm -f conftest*
11331 echo 'int main () { return 0; }' > conftest.c
11332 bfd_cv_build_exeext=
11333 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
11334 for file in conftest.*; do
11335 case $file in
11336 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
11337 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
11338 esac
11339 done
11340 rm -f conftest*
11341 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
11342 fi
11343 echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
11344 echo "${ECHO_T}$bfd_cv_build_exeext" >&6
11345 EXEEXT_FOR_BUILD=""
11346 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
11347 fi
11348
11349
11350 DEMANGLER_NAME=c++filt
11351 case "${host}" in
11352 *-*-go32* | *-*-msdos*)
11353 DEMANGLER_NAME=cxxfilt
11354 esac
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365 for ac_header in string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h limits.h sys/param.h
11366 do
11367 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11368 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11369 echo "$as_me:$LINENO: checking for $ac_header" >&5
11370 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11371 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11372 echo $ECHO_N "(cached) $ECHO_C" >&6
11373 fi
11374 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11375 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11376 else
11377 # Is the header compilable?
11378 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11379 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11380 cat >conftest.$ac_ext <<_ACEOF
11381 /* confdefs.h. */
11382 _ACEOF
11383 cat confdefs.h >>conftest.$ac_ext
11384 cat >>conftest.$ac_ext <<_ACEOF
11385 /* end confdefs.h. */
11386 $ac_includes_default
11387 #include <$ac_header>
11388 _ACEOF
11389 rm -f conftest.$ac_objext
11390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11391 (eval $ac_compile) 2>conftest.er1
11392 ac_status=$?
11393 grep -v '^ *+' conftest.er1 >conftest.err
11394 rm -f conftest.er1
11395 cat conftest.err >&5
11396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11397 (exit $ac_status); } &&
11398 { ac_try='test -z "$ac_c_werror_flag"
11399 || test ! -s conftest.err'
11400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11401 (eval $ac_try) 2>&5
11402 ac_status=$?
11403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404 (exit $ac_status); }; } &&
11405 { ac_try='test -s conftest.$ac_objext'
11406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11407 (eval $ac_try) 2>&5
11408 ac_status=$?
11409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11410 (exit $ac_status); }; }; then
11411 ac_header_compiler=yes
11412 else
11413 echo "$as_me: failed program was:" >&5
11414 sed 's/^/| /' conftest.$ac_ext >&5
11415
11416 ac_header_compiler=no
11417 fi
11418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11419 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11420 echo "${ECHO_T}$ac_header_compiler" >&6
11421
11422 # Is the header present?
11423 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11424 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11425 cat >conftest.$ac_ext <<_ACEOF
11426 /* confdefs.h. */
11427 _ACEOF
11428 cat confdefs.h >>conftest.$ac_ext
11429 cat >>conftest.$ac_ext <<_ACEOF
11430 /* end confdefs.h. */
11431 #include <$ac_header>
11432 _ACEOF
11433 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11434 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11435 ac_status=$?
11436 grep -v '^ *+' conftest.er1 >conftest.err
11437 rm -f conftest.er1
11438 cat conftest.err >&5
11439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11440 (exit $ac_status); } >/dev/null; then
11441 if test -s conftest.err; then
11442 ac_cpp_err=$ac_c_preproc_warn_flag
11443 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11444 else
11445 ac_cpp_err=
11446 fi
11447 else
11448 ac_cpp_err=yes
11449 fi
11450 if test -z "$ac_cpp_err"; then
11451 ac_header_preproc=yes
11452 else
11453 echo "$as_me: failed program was:" >&5
11454 sed 's/^/| /' conftest.$ac_ext >&5
11455
11456 ac_header_preproc=no
11457 fi
11458 rm -f conftest.err conftest.$ac_ext
11459 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11460 echo "${ECHO_T}$ac_header_preproc" >&6
11461
11462 # So? What about this header?
11463 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11464 yes:no: )
11465 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11466 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11467 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11468 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11469 ac_header_preproc=yes
11470 ;;
11471 no:yes:* )
11472 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11473 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11474 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11475 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11476 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11477 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11478 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11479 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11480 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11481 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11482 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11483 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11484 (
11485 cat <<\_ASBOX
11486 ## ------------------------------------------ ##
11487 ## Report this to the AC_PACKAGE_NAME lists. ##
11488 ## ------------------------------------------ ##
11489 _ASBOX
11490 ) |
11491 sed "s/^/$as_me: WARNING: /" >&2
11492 ;;
11493 esac
11494 echo "$as_me:$LINENO: checking for $ac_header" >&5
11495 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11496 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11497 echo $ECHO_N "(cached) $ECHO_C" >&6
11498 else
11499 eval "$as_ac_Header=\$ac_header_preproc"
11500 fi
11501 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11502 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11503
11504 fi
11505 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11506 cat >>confdefs.h <<_ACEOF
11507 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11508 _ACEOF
11509
11510 fi
11511
11512 done
11513
11514 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
11515 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
11516 if test "${ac_cv_header_sys_wait_h+set}" = set; then
11517 echo $ECHO_N "(cached) $ECHO_C" >&6
11518 else
11519 cat >conftest.$ac_ext <<_ACEOF
11520 /* confdefs.h. */
11521 _ACEOF
11522 cat confdefs.h >>conftest.$ac_ext
11523 cat >>conftest.$ac_ext <<_ACEOF
11524 /* end confdefs.h. */
11525 #include <sys/types.h>
11526 #include <sys/wait.h>
11527 #ifndef WEXITSTATUS
11528 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
11529 #endif
11530 #ifndef WIFEXITED
11531 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11532 #endif
11533
11534 int
11535 main ()
11536 {
11537 int s;
11538 wait (&s);
11539 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11540 ;
11541 return 0;
11542 }
11543 _ACEOF
11544 rm -f conftest.$ac_objext
11545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11546 (eval $ac_compile) 2>conftest.er1
11547 ac_status=$?
11548 grep -v '^ *+' conftest.er1 >conftest.err
11549 rm -f conftest.er1
11550 cat conftest.err >&5
11551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11552 (exit $ac_status); } &&
11553 { ac_try='test -z "$ac_c_werror_flag"
11554 || test ! -s conftest.err'
11555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11556 (eval $ac_try) 2>&5
11557 ac_status=$?
11558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11559 (exit $ac_status); }; } &&
11560 { ac_try='test -s conftest.$ac_objext'
11561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11562 (eval $ac_try) 2>&5
11563 ac_status=$?
11564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565 (exit $ac_status); }; }; then
11566 ac_cv_header_sys_wait_h=yes
11567 else
11568 echo "$as_me: failed program was:" >&5
11569 sed 's/^/| /' conftest.$ac_ext >&5
11570
11571 ac_cv_header_sys_wait_h=no
11572 fi
11573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11574 fi
11575 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
11576 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
11577 if test $ac_cv_header_sys_wait_h = yes; then
11578
11579 cat >>confdefs.h <<\_ACEOF
11580 #define HAVE_SYS_WAIT_H 1
11581 _ACEOF
11582
11583 fi
11584
11585 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11586 # for constant arguments. Useless!
11587 echo "$as_me:$LINENO: checking for working alloca.h" >&5
11588 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
11589 if test "${ac_cv_working_alloca_h+set}" = set; then
11590 echo $ECHO_N "(cached) $ECHO_C" >&6
11591 else
11592 cat >conftest.$ac_ext <<_ACEOF
11593 /* confdefs.h. */
11594 _ACEOF
11595 cat confdefs.h >>conftest.$ac_ext
11596 cat >>conftest.$ac_ext <<_ACEOF
11597 /* end confdefs.h. */
11598 #include <alloca.h>
11599 int
11600 main ()
11601 {
11602 char *p = (char *) alloca (2 * sizeof (int));
11603 ;
11604 return 0;
11605 }
11606 _ACEOF
11607 rm -f conftest.$ac_objext conftest$ac_exeext
11608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11609 (eval $ac_link) 2>conftest.er1
11610 ac_status=$?
11611 grep -v '^ *+' conftest.er1 >conftest.err
11612 rm -f conftest.er1
11613 cat conftest.err >&5
11614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11615 (exit $ac_status); } &&
11616 { ac_try='test -z "$ac_c_werror_flag"
11617 || test ! -s conftest.err'
11618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11619 (eval $ac_try) 2>&5
11620 ac_status=$?
11621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11622 (exit $ac_status); }; } &&
11623 { ac_try='test -s conftest$ac_exeext'
11624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11625 (eval $ac_try) 2>&5
11626 ac_status=$?
11627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11628 (exit $ac_status); }; }; then
11629 ac_cv_working_alloca_h=yes
11630 else
11631 echo "$as_me: failed program was:" >&5
11632 sed 's/^/| /' conftest.$ac_ext >&5
11633
11634 ac_cv_working_alloca_h=no
11635 fi
11636 rm -f conftest.err conftest.$ac_objext \
11637 conftest$ac_exeext conftest.$ac_ext
11638 fi
11639 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
11640 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
11641 if test $ac_cv_working_alloca_h = yes; then
11642
11643 cat >>confdefs.h <<\_ACEOF
11644 #define HAVE_ALLOCA_H 1
11645 _ACEOF
11646
11647 fi
11648
11649 echo "$as_me:$LINENO: checking for alloca" >&5
11650 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
11651 if test "${ac_cv_func_alloca_works+set}" = set; then
11652 echo $ECHO_N "(cached) $ECHO_C" >&6
11653 else
11654 cat >conftest.$ac_ext <<_ACEOF
11655 /* confdefs.h. */
11656 _ACEOF
11657 cat confdefs.h >>conftest.$ac_ext
11658 cat >>conftest.$ac_ext <<_ACEOF
11659 /* end confdefs.h. */
11660 #ifdef __GNUC__
11661 # define alloca __builtin_alloca
11662 #else
11663 # ifdef _MSC_VER
11664 # include <malloc.h>
11665 # define alloca _alloca
11666 # else
11667 # if HAVE_ALLOCA_H
11668 # include <alloca.h>
11669 # else
11670 # ifdef _AIX
11671 #pragma alloca
11672 # else
11673 # ifndef alloca /* predefined by HP cc +Olibcalls */
11674 char *alloca ();
11675 # endif
11676 # endif
11677 # endif
11678 # endif
11679 #endif
11680
11681 int
11682 main ()
11683 {
11684 char *p = (char *) alloca (1);
11685 ;
11686 return 0;
11687 }
11688 _ACEOF
11689 rm -f conftest.$ac_objext conftest$ac_exeext
11690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11691 (eval $ac_link) 2>conftest.er1
11692 ac_status=$?
11693 grep -v '^ *+' conftest.er1 >conftest.err
11694 rm -f conftest.er1
11695 cat conftest.err >&5
11696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11697 (exit $ac_status); } &&
11698 { ac_try='test -z "$ac_c_werror_flag"
11699 || test ! -s conftest.err'
11700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11701 (eval $ac_try) 2>&5
11702 ac_status=$?
11703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11704 (exit $ac_status); }; } &&
11705 { ac_try='test -s conftest$ac_exeext'
11706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11707 (eval $ac_try) 2>&5
11708 ac_status=$?
11709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11710 (exit $ac_status); }; }; then
11711 ac_cv_func_alloca_works=yes
11712 else
11713 echo "$as_me: failed program was:" >&5
11714 sed 's/^/| /' conftest.$ac_ext >&5
11715
11716 ac_cv_func_alloca_works=no
11717 fi
11718 rm -f conftest.err conftest.$ac_objext \
11719 conftest$ac_exeext conftest.$ac_ext
11720 fi
11721 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
11722 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
11723
11724 if test $ac_cv_func_alloca_works = yes; then
11725
11726 cat >>confdefs.h <<\_ACEOF
11727 #define HAVE_ALLOCA 1
11728 _ACEOF
11729
11730 else
11731 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11732 # that cause trouble. Some versions do not even contain alloca or
11733 # contain a buggy version. If you still want to use their alloca,
11734 # use ar to extract alloca.o from them instead of compiling alloca.c.
11735
11736 ALLOCA=alloca.$ac_objext
11737
11738 cat >>confdefs.h <<\_ACEOF
11739 #define C_ALLOCA 1
11740 _ACEOF
11741
11742
11743 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
11744 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
11745 if test "${ac_cv_os_cray+set}" = set; then
11746 echo $ECHO_N "(cached) $ECHO_C" >&6
11747 else
11748 cat >conftest.$ac_ext <<_ACEOF
11749 /* confdefs.h. */
11750 _ACEOF
11751 cat confdefs.h >>conftest.$ac_ext
11752 cat >>conftest.$ac_ext <<_ACEOF
11753 /* end confdefs.h. */
11754 #if defined(CRAY) && ! defined(CRAY2)
11755 webecray
11756 #else
11757 wenotbecray
11758 #endif
11759
11760 _ACEOF
11761 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11762 $EGREP "webecray" >/dev/null 2>&1; then
11763 ac_cv_os_cray=yes
11764 else
11765 ac_cv_os_cray=no
11766 fi
11767 rm -f conftest*
11768
11769 fi
11770 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
11771 echo "${ECHO_T}$ac_cv_os_cray" >&6
11772 if test $ac_cv_os_cray = yes; then
11773 for ac_func in _getb67 GETB67 getb67; do
11774 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11775 echo "$as_me:$LINENO: checking for $ac_func" >&5
11776 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11777 if eval "test \"\${$as_ac_var+set}\" = set"; then
11778 echo $ECHO_N "(cached) $ECHO_C" >&6
11779 else
11780 cat >conftest.$ac_ext <<_ACEOF
11781 /* confdefs.h. */
11782 _ACEOF
11783 cat confdefs.h >>conftest.$ac_ext
11784 cat >>conftest.$ac_ext <<_ACEOF
11785 /* end confdefs.h. */
11786 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11787 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11788 #define $ac_func innocuous_$ac_func
11789
11790 /* System header to define __stub macros and hopefully few prototypes,
11791 which can conflict with char $ac_func (); below.
11792 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11793 <limits.h> exists even on freestanding compilers. */
11794
11795 #ifdef __STDC__
11796 # include <limits.h>
11797 #else
11798 # include <assert.h>
11799 #endif
11800
11801 #undef $ac_func
11802
11803 /* Override any gcc2 internal prototype to avoid an error. */
11804 #ifdef __cplusplus
11805 extern "C"
11806 {
11807 #endif
11808 /* We use char because int might match the return type of a gcc2
11809 builtin and then its argument prototype would still apply. */
11810 char $ac_func ();
11811 /* The GNU C library defines this for functions which it implements
11812 to always fail with ENOSYS. Some functions are actually named
11813 something starting with __ and the normal name is an alias. */
11814 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11815 choke me
11816 #else
11817 char (*f) () = $ac_func;
11818 #endif
11819 #ifdef __cplusplus
11820 }
11821 #endif
11822
11823 int
11824 main ()
11825 {
11826 return f != $ac_func;
11827 ;
11828 return 0;
11829 }
11830 _ACEOF
11831 rm -f conftest.$ac_objext conftest$ac_exeext
11832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11833 (eval $ac_link) 2>conftest.er1
11834 ac_status=$?
11835 grep -v '^ *+' conftest.er1 >conftest.err
11836 rm -f conftest.er1
11837 cat conftest.err >&5
11838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839 (exit $ac_status); } &&
11840 { ac_try='test -z "$ac_c_werror_flag"
11841 || test ! -s conftest.err'
11842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11843 (eval $ac_try) 2>&5
11844 ac_status=$?
11845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11846 (exit $ac_status); }; } &&
11847 { ac_try='test -s conftest$ac_exeext'
11848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11849 (eval $ac_try) 2>&5
11850 ac_status=$?
11851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852 (exit $ac_status); }; }; then
11853 eval "$as_ac_var=yes"
11854 else
11855 echo "$as_me: failed program was:" >&5
11856 sed 's/^/| /' conftest.$ac_ext >&5
11857
11858 eval "$as_ac_var=no"
11859 fi
11860 rm -f conftest.err conftest.$ac_objext \
11861 conftest$ac_exeext conftest.$ac_ext
11862 fi
11863 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11864 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11865 if test `eval echo '${'$as_ac_var'}'` = yes; then
11866
11867 cat >>confdefs.h <<_ACEOF
11868 #define CRAY_STACKSEG_END $ac_func
11869 _ACEOF
11870
11871 break
11872 fi
11873
11874 done
11875 fi
11876
11877 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
11878 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
11879 if test "${ac_cv_c_stack_direction+set}" = set; then
11880 echo $ECHO_N "(cached) $ECHO_C" >&6
11881 else
11882 if test "$cross_compiling" = yes; then
11883 ac_cv_c_stack_direction=0
11884 else
11885 cat >conftest.$ac_ext <<_ACEOF
11886 /* confdefs.h. */
11887 _ACEOF
11888 cat confdefs.h >>conftest.$ac_ext
11889 cat >>conftest.$ac_ext <<_ACEOF
11890 /* end confdefs.h. */
11891 int
11892 find_stack_direction ()
11893 {
11894 static char *addr = 0;
11895 auto char dummy;
11896 if (addr == 0)
11897 {
11898 addr = &dummy;
11899 return find_stack_direction ();
11900 }
11901 else
11902 return (&dummy > addr) ? 1 : -1;
11903 }
11904
11905 int
11906 main ()
11907 {
11908 exit (find_stack_direction () < 0);
11909 }
11910 _ACEOF
11911 rm -f conftest$ac_exeext
11912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11913 (eval $ac_link) 2>&5
11914 ac_status=$?
11915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11916 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11918 (eval $ac_try) 2>&5
11919 ac_status=$?
11920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921 (exit $ac_status); }; }; then
11922 ac_cv_c_stack_direction=1
11923 else
11924 echo "$as_me: program exited with status $ac_status" >&5
11925 echo "$as_me: failed program was:" >&5
11926 sed 's/^/| /' conftest.$ac_ext >&5
11927
11928 ( exit $ac_status )
11929 ac_cv_c_stack_direction=-1
11930 fi
11931 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11932 fi
11933 fi
11934 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
11935 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
11936
11937 cat >>confdefs.h <<_ACEOF
11938 #define STACK_DIRECTION $ac_cv_c_stack_direction
11939 _ACEOF
11940
11941
11942 fi
11943
11944
11945
11946
11947
11948
11949 for ac_func in sbrk utimes setmode getc_unlocked strcoll
11950 do
11951 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11952 echo "$as_me:$LINENO: checking for $ac_func" >&5
11953 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11954 if eval "test \"\${$as_ac_var+set}\" = set"; then
11955 echo $ECHO_N "(cached) $ECHO_C" >&6
11956 else
11957 cat >conftest.$ac_ext <<_ACEOF
11958 /* confdefs.h. */
11959 _ACEOF
11960 cat confdefs.h >>conftest.$ac_ext
11961 cat >>conftest.$ac_ext <<_ACEOF
11962 /* end confdefs.h. */
11963 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11964 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11965 #define $ac_func innocuous_$ac_func
11966
11967 /* System header to define __stub macros and hopefully few prototypes,
11968 which can conflict with char $ac_func (); below.
11969 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11970 <limits.h> exists even on freestanding compilers. */
11971
11972 #ifdef __STDC__
11973 # include <limits.h>
11974 #else
11975 # include <assert.h>
11976 #endif
11977
11978 #undef $ac_func
11979
11980 /* Override any gcc2 internal prototype to avoid an error. */
11981 #ifdef __cplusplus
11982 extern "C"
11983 {
11984 #endif
11985 /* We use char because int might match the return type of a gcc2
11986 builtin and then its argument prototype would still apply. */
11987 char $ac_func ();
11988 /* The GNU C library defines this for functions which it implements
11989 to always fail with ENOSYS. Some functions are actually named
11990 something starting with __ and the normal name is an alias. */
11991 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11992 choke me
11993 #else
11994 char (*f) () = $ac_func;
11995 #endif
11996 #ifdef __cplusplus
11997 }
11998 #endif
11999
12000 int
12001 main ()
12002 {
12003 return f != $ac_func;
12004 ;
12005 return 0;
12006 }
12007 _ACEOF
12008 rm -f conftest.$ac_objext conftest$ac_exeext
12009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12010 (eval $ac_link) 2>conftest.er1
12011 ac_status=$?
12012 grep -v '^ *+' conftest.er1 >conftest.err
12013 rm -f conftest.er1
12014 cat conftest.err >&5
12015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12016 (exit $ac_status); } &&
12017 { ac_try='test -z "$ac_c_werror_flag"
12018 || test ! -s conftest.err'
12019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12020 (eval $ac_try) 2>&5
12021 ac_status=$?
12022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12023 (exit $ac_status); }; } &&
12024 { ac_try='test -s conftest$ac_exeext'
12025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12026 (eval $ac_try) 2>&5
12027 ac_status=$?
12028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029 (exit $ac_status); }; }; then
12030 eval "$as_ac_var=yes"
12031 else
12032 echo "$as_me: failed program was:" >&5
12033 sed 's/^/| /' conftest.$ac_ext >&5
12034
12035 eval "$as_ac_var=no"
12036 fi
12037 rm -f conftest.err conftest.$ac_objext \
12038 conftest$ac_exeext conftest.$ac_ext
12039 fi
12040 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12041 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12042 if test `eval echo '${'$as_ac_var'}'` = yes; then
12043 cat >>confdefs.h <<_ACEOF
12044 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12045 _ACEOF
12046
12047 fi
12048 done
12049
12050 echo "$as_me:$LINENO: checking for mkstemp" >&5
12051 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
12052 if test "${ac_cv_func_mkstemp+set}" = set; then
12053 echo $ECHO_N "(cached) $ECHO_C" >&6
12054 else
12055 cat >conftest.$ac_ext <<_ACEOF
12056 /* confdefs.h. */
12057 _ACEOF
12058 cat confdefs.h >>conftest.$ac_ext
12059 cat >>conftest.$ac_ext <<_ACEOF
12060 /* end confdefs.h. */
12061 /* Define mkstemp to an innocuous variant, in case <limits.h> declares mkstemp.
12062 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12063 #define mkstemp innocuous_mkstemp
12064
12065 /* System header to define __stub macros and hopefully few prototypes,
12066 which can conflict with char mkstemp (); below.
12067 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12068 <limits.h> exists even on freestanding compilers. */
12069
12070 #ifdef __STDC__
12071 # include <limits.h>
12072 #else
12073 # include <assert.h>
12074 #endif
12075
12076 #undef mkstemp
12077
12078 /* Override any gcc2 internal prototype to avoid an error. */
12079 #ifdef __cplusplus
12080 extern "C"
12081 {
12082 #endif
12083 /* We use char because int might match the return type of a gcc2
12084 builtin and then its argument prototype would still apply. */
12085 char mkstemp ();
12086 /* The GNU C library defines this for functions which it implements
12087 to always fail with ENOSYS. Some functions are actually named
12088 something starting with __ and the normal name is an alias. */
12089 #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
12090 choke me
12091 #else
12092 char (*f) () = mkstemp;
12093 #endif
12094 #ifdef __cplusplus
12095 }
12096 #endif
12097
12098 int
12099 main ()
12100 {
12101 return f != mkstemp;
12102 ;
12103 return 0;
12104 }
12105 _ACEOF
12106 rm -f conftest.$ac_objext conftest$ac_exeext
12107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12108 (eval $ac_link) 2>conftest.er1
12109 ac_status=$?
12110 grep -v '^ *+' conftest.er1 >conftest.err
12111 rm -f conftest.er1
12112 cat conftest.err >&5
12113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12114 (exit $ac_status); } &&
12115 { ac_try='test -z "$ac_c_werror_flag"
12116 || test ! -s conftest.err'
12117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12118 (eval $ac_try) 2>&5
12119 ac_status=$?
12120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121 (exit $ac_status); }; } &&
12122 { ac_try='test -s conftest$ac_exeext'
12123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12124 (eval $ac_try) 2>&5
12125 ac_status=$?
12126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127 (exit $ac_status); }; }; then
12128 ac_cv_func_mkstemp=yes
12129 else
12130 echo "$as_me: failed program was:" >&5
12131 sed 's/^/| /' conftest.$ac_ext >&5
12132
12133 ac_cv_func_mkstemp=no
12134 fi
12135 rm -f conftest.err conftest.$ac_objext \
12136 conftest$ac_exeext conftest.$ac_ext
12137 fi
12138 echo "$as_me:$LINENO: result: $ac_cv_func_mkstemp" >&5
12139 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
12140 if test $ac_cv_func_mkstemp = yes; then
12141
12142 cat >>confdefs.h <<\_ACEOF
12143 #define HAVE_MKSTEMP 1
12144 _ACEOF
12145
12146 fi
12147
12148 echo "$as_me:$LINENO: checking for mkdtemp" >&5
12149 echo $ECHO_N "checking for mkdtemp... $ECHO_C" >&6
12150 if test "${ac_cv_func_mkdtemp+set}" = set; then
12151 echo $ECHO_N "(cached) $ECHO_C" >&6
12152 else
12153 cat >conftest.$ac_ext <<_ACEOF
12154 /* confdefs.h. */
12155 _ACEOF
12156 cat confdefs.h >>conftest.$ac_ext
12157 cat >>conftest.$ac_ext <<_ACEOF
12158 /* end confdefs.h. */
12159 /* Define mkdtemp to an innocuous variant, in case <limits.h> declares mkdtemp.
12160 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12161 #define mkdtemp innocuous_mkdtemp
12162
12163 /* System header to define __stub macros and hopefully few prototypes,
12164 which can conflict with char mkdtemp (); below.
12165 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12166 <limits.h> exists even on freestanding compilers. */
12167
12168 #ifdef __STDC__
12169 # include <limits.h>
12170 #else
12171 # include <assert.h>
12172 #endif
12173
12174 #undef mkdtemp
12175
12176 /* Override any gcc2 internal prototype to avoid an error. */
12177 #ifdef __cplusplus
12178 extern "C"
12179 {
12180 #endif
12181 /* We use char because int might match the return type of a gcc2
12182 builtin and then its argument prototype would still apply. */
12183 char mkdtemp ();
12184 /* The GNU C library defines this for functions which it implements
12185 to always fail with ENOSYS. Some functions are actually named
12186 something starting with __ and the normal name is an alias. */
12187 #if defined (__stub_mkdtemp) || defined (__stub___mkdtemp)
12188 choke me
12189 #else
12190 char (*f) () = mkdtemp;
12191 #endif
12192 #ifdef __cplusplus
12193 }
12194 #endif
12195
12196 int
12197 main ()
12198 {
12199 return f != mkdtemp;
12200 ;
12201 return 0;
12202 }
12203 _ACEOF
12204 rm -f conftest.$ac_objext conftest$ac_exeext
12205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12206 (eval $ac_link) 2>conftest.er1
12207 ac_status=$?
12208 grep -v '^ *+' conftest.er1 >conftest.err
12209 rm -f conftest.er1
12210 cat conftest.err >&5
12211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212 (exit $ac_status); } &&
12213 { ac_try='test -z "$ac_c_werror_flag"
12214 || test ! -s conftest.err'
12215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12216 (eval $ac_try) 2>&5
12217 ac_status=$?
12218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219 (exit $ac_status); }; } &&
12220 { ac_try='test -s conftest$ac_exeext'
12221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12222 (eval $ac_try) 2>&5
12223 ac_status=$?
12224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225 (exit $ac_status); }; }; then
12226 ac_cv_func_mkdtemp=yes
12227 else
12228 echo "$as_me: failed program was:" >&5
12229 sed 's/^/| /' conftest.$ac_ext >&5
12230
12231 ac_cv_func_mkdtemp=no
12232 fi
12233 rm -f conftest.err conftest.$ac_objext \
12234 conftest$ac_exeext conftest.$ac_ext
12235 fi
12236 echo "$as_me:$LINENO: result: $ac_cv_func_mkdtemp" >&5
12237 echo "${ECHO_T}$ac_cv_func_mkdtemp" >&6
12238 if test $ac_cv_func_mkdtemp = yes; then
12239
12240 cat >>confdefs.h <<\_ACEOF
12241 #define HAVE_MKDTEMP 1
12242 _ACEOF
12243
12244 fi
12245
12246
12247 # Check whether fopen64 is available and whether _LARGEFILE64_SOURCE
12248 # needs to be defined for it
12249 echo "$as_me:$LINENO: checking for fopen64" >&5
12250 echo $ECHO_N "checking for fopen64... $ECHO_C" >&6
12251 if test "${bu_cv_have_fopen64+set}" = set; then
12252 echo $ECHO_N "(cached) $ECHO_C" >&6
12253 else
12254 cat >conftest.$ac_ext <<_ACEOF
12255 /* confdefs.h. */
12256 _ACEOF
12257 cat confdefs.h >>conftest.$ac_ext
12258 cat >>conftest.$ac_ext <<_ACEOF
12259 /* end confdefs.h. */
12260 #include <stdio.h>
12261 int
12262 main ()
12263 {
12264 FILE *f = fopen64 ("/tmp/foo","r");
12265 ;
12266 return 0;
12267 }
12268 _ACEOF
12269 rm -f conftest.$ac_objext conftest$ac_exeext
12270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12271 (eval $ac_link) 2>conftest.er1
12272 ac_status=$?
12273 grep -v '^ *+' conftest.er1 >conftest.err
12274 rm -f conftest.er1
12275 cat conftest.err >&5
12276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277 (exit $ac_status); } &&
12278 { ac_try='test -z "$ac_c_werror_flag"
12279 || test ! -s conftest.err'
12280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12281 (eval $ac_try) 2>&5
12282 ac_status=$?
12283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284 (exit $ac_status); }; } &&
12285 { ac_try='test -s conftest$ac_exeext'
12286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12287 (eval $ac_try) 2>&5
12288 ac_status=$?
12289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290 (exit $ac_status); }; }; then
12291 bu_cv_have_fopen64=yes
12292 else
12293 echo "$as_me: failed program was:" >&5
12294 sed 's/^/| /' conftest.$ac_ext >&5
12295
12296 saved_CPPFLAGS=$CPPFLAGS
12297 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
12298 cat >conftest.$ac_ext <<_ACEOF
12299 /* confdefs.h. */
12300 _ACEOF
12301 cat confdefs.h >>conftest.$ac_ext
12302 cat >>conftest.$ac_ext <<_ACEOF
12303 /* end confdefs.h. */
12304 #include <stdio.h>
12305 int
12306 main ()
12307 {
12308 FILE *f = fopen64 ("/tmp/foo","r");
12309 ;
12310 return 0;
12311 }
12312 _ACEOF
12313 rm -f conftest.$ac_objext conftest$ac_exeext
12314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12315 (eval $ac_link) 2>conftest.er1
12316 ac_status=$?
12317 grep -v '^ *+' conftest.er1 >conftest.err
12318 rm -f conftest.er1
12319 cat conftest.err >&5
12320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12321 (exit $ac_status); } &&
12322 { ac_try='test -z "$ac_c_werror_flag"
12323 || test ! -s conftest.err'
12324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12325 (eval $ac_try) 2>&5
12326 ac_status=$?
12327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12328 (exit $ac_status); }; } &&
12329 { ac_try='test -s conftest$ac_exeext'
12330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12331 (eval $ac_try) 2>&5
12332 ac_status=$?
12333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12334 (exit $ac_status); }; }; then
12335 bu_cv_have_fopen64="need -D_LARGEFILE64_SOURCE"
12336 else
12337 echo "$as_me: failed program was:" >&5
12338 sed 's/^/| /' conftest.$ac_ext >&5
12339
12340 bu_cv_have_fopen64=no
12341 fi
12342 rm -f conftest.err conftest.$ac_objext \
12343 conftest$ac_exeext conftest.$ac_ext
12344 CPPFLAGS=$saved_CPPFLAGS
12345 fi
12346 rm -f conftest.err conftest.$ac_objext \
12347 conftest$ac_exeext conftest.$ac_ext
12348 fi
12349
12350 echo "$as_me:$LINENO: result: $bu_cv_have_fopen64" >&5
12351 echo "${ECHO_T}$bu_cv_have_fopen64" >&6
12352 if test "$bu_cv_have_fopen64" != no; then
12353
12354 cat >>confdefs.h <<\_ACEOF
12355 #define HAVE_FOPEN64 1
12356 _ACEOF
12357
12358 fi
12359 echo "$as_me:$LINENO: checking for stat64" >&5
12360 echo $ECHO_N "checking for stat64... $ECHO_C" >&6
12361 if test "${bu_cv_have_stat64+set}" = set; then
12362 echo $ECHO_N "(cached) $ECHO_C" >&6
12363 else
12364 cat >conftest.$ac_ext <<_ACEOF
12365 /* confdefs.h. */
12366 _ACEOF
12367 cat confdefs.h >>conftest.$ac_ext
12368 cat >>conftest.$ac_ext <<_ACEOF
12369 /* end confdefs.h. */
12370 #include <sys/stat.h>
12371 int
12372 main ()
12373 {
12374 struct stat64 st; stat64 ("/tmp/foo", &st);
12375 ;
12376 return 0;
12377 }
12378 _ACEOF
12379 rm -f conftest.$ac_objext conftest$ac_exeext
12380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12381 (eval $ac_link) 2>conftest.er1
12382 ac_status=$?
12383 grep -v '^ *+' conftest.er1 >conftest.err
12384 rm -f conftest.er1
12385 cat conftest.err >&5
12386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387 (exit $ac_status); } &&
12388 { ac_try='test -z "$ac_c_werror_flag"
12389 || test ! -s conftest.err'
12390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12391 (eval $ac_try) 2>&5
12392 ac_status=$?
12393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394 (exit $ac_status); }; } &&
12395 { ac_try='test -s conftest$ac_exeext'
12396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12397 (eval $ac_try) 2>&5
12398 ac_status=$?
12399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400 (exit $ac_status); }; }; then
12401 bu_cv_have_stat64=yes
12402 else
12403 echo "$as_me: failed program was:" >&5
12404 sed 's/^/| /' conftest.$ac_ext >&5
12405
12406 saved_CPPFLAGS=$CPPFLAGS
12407 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
12408 cat >conftest.$ac_ext <<_ACEOF
12409 /* confdefs.h. */
12410 _ACEOF
12411 cat confdefs.h >>conftest.$ac_ext
12412 cat >>conftest.$ac_ext <<_ACEOF
12413 /* end confdefs.h. */
12414 #include <sys/stat.h>
12415 int
12416 main ()
12417 {
12418 struct stat64 st; stat64 ("/tmp/foo", &st);
12419 ;
12420 return 0;
12421 }
12422 _ACEOF
12423 rm -f conftest.$ac_objext conftest$ac_exeext
12424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12425 (eval $ac_link) 2>conftest.er1
12426 ac_status=$?
12427 grep -v '^ *+' conftest.er1 >conftest.err
12428 rm -f conftest.er1
12429 cat conftest.err >&5
12430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431 (exit $ac_status); } &&
12432 { ac_try='test -z "$ac_c_werror_flag"
12433 || test ! -s conftest.err'
12434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12435 (eval $ac_try) 2>&5
12436 ac_status=$?
12437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438 (exit $ac_status); }; } &&
12439 { ac_try='test -s conftest$ac_exeext'
12440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12441 (eval $ac_try) 2>&5
12442 ac_status=$?
12443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12444 (exit $ac_status); }; }; then
12445 bu_cv_have_stat64="need -D_LARGEFILE64_SOURCE"
12446 else
12447 echo "$as_me: failed program was:" >&5
12448 sed 's/^/| /' conftest.$ac_ext >&5
12449
12450 bu_cv_have_stat64=no
12451 fi
12452 rm -f conftest.err conftest.$ac_objext \
12453 conftest$ac_exeext conftest.$ac_ext
12454 CPPFLAGS=$saved_CPPFLAGS
12455 fi
12456 rm -f conftest.err conftest.$ac_objext \
12457 conftest$ac_exeext conftest.$ac_ext
12458 fi
12459
12460 echo "$as_me:$LINENO: result: $bu_cv_have_stat64" >&5
12461 echo "${ECHO_T}$bu_cv_have_stat64" >&6
12462 if test "$bu_cv_have_stat64" != no; then
12463
12464 cat >>confdefs.h <<\_ACEOF
12465 #define HAVE_STAT64 1
12466 _ACEOF
12467
12468 fi
12469 if test "$bu_cv_have_fopen64" = "need -D_LARGEFILE64_SOURCE" \
12470 || test "$bu_cv_have_stat64" = "need -D_LARGEFILE64_SOURCE"; then
12471
12472 cat >>confdefs.h <<\_ACEOF
12473 #define _LARGEFILE64_SOURCE 1
12474 _ACEOF
12475
12476 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
12477 fi
12478
12479 # Some systems have frexp only in -lm, not in -lc.
12480 echo "$as_me:$LINENO: checking for library containing frexp" >&5
12481 echo $ECHO_N "checking for library containing frexp... $ECHO_C" >&6
12482 if test "${ac_cv_search_frexp+set}" = set; then
12483 echo $ECHO_N "(cached) $ECHO_C" >&6
12484 else
12485 ac_func_search_save_LIBS=$LIBS
12486 ac_cv_search_frexp=no
12487 cat >conftest.$ac_ext <<_ACEOF
12488 /* confdefs.h. */
12489 _ACEOF
12490 cat confdefs.h >>conftest.$ac_ext
12491 cat >>conftest.$ac_ext <<_ACEOF
12492 /* end confdefs.h. */
12493
12494 /* Override any gcc2 internal prototype to avoid an error. */
12495 #ifdef __cplusplus
12496 extern "C"
12497 #endif
12498 /* We use char because int might match the return type of a gcc2
12499 builtin and then its argument prototype would still apply. */
12500 char frexp ();
12501 int
12502 main ()
12503 {
12504 frexp ();
12505 ;
12506 return 0;
12507 }
12508 _ACEOF
12509 rm -f conftest.$ac_objext conftest$ac_exeext
12510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12511 (eval $ac_link) 2>conftest.er1
12512 ac_status=$?
12513 grep -v '^ *+' conftest.er1 >conftest.err
12514 rm -f conftest.er1
12515 cat conftest.err >&5
12516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517 (exit $ac_status); } &&
12518 { ac_try='test -z "$ac_c_werror_flag"
12519 || test ! -s conftest.err'
12520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12521 (eval $ac_try) 2>&5
12522 ac_status=$?
12523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12524 (exit $ac_status); }; } &&
12525 { ac_try='test -s conftest$ac_exeext'
12526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12527 (eval $ac_try) 2>&5
12528 ac_status=$?
12529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12530 (exit $ac_status); }; }; then
12531 ac_cv_search_frexp="none required"
12532 else
12533 echo "$as_me: failed program was:" >&5
12534 sed 's/^/| /' conftest.$ac_ext >&5
12535
12536 fi
12537 rm -f conftest.err conftest.$ac_objext \
12538 conftest$ac_exeext conftest.$ac_ext
12539 if test "$ac_cv_search_frexp" = no; then
12540 for ac_lib in m; do
12541 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12542 cat >conftest.$ac_ext <<_ACEOF
12543 /* confdefs.h. */
12544 _ACEOF
12545 cat confdefs.h >>conftest.$ac_ext
12546 cat >>conftest.$ac_ext <<_ACEOF
12547 /* end confdefs.h. */
12548
12549 /* Override any gcc2 internal prototype to avoid an error. */
12550 #ifdef __cplusplus
12551 extern "C"
12552 #endif
12553 /* We use char because int might match the return type of a gcc2
12554 builtin and then its argument prototype would still apply. */
12555 char frexp ();
12556 int
12557 main ()
12558 {
12559 frexp ();
12560 ;
12561 return 0;
12562 }
12563 _ACEOF
12564 rm -f conftest.$ac_objext conftest$ac_exeext
12565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12566 (eval $ac_link) 2>conftest.er1
12567 ac_status=$?
12568 grep -v '^ *+' conftest.er1 >conftest.err
12569 rm -f conftest.er1
12570 cat conftest.err >&5
12571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12572 (exit $ac_status); } &&
12573 { ac_try='test -z "$ac_c_werror_flag"
12574 || test ! -s conftest.err'
12575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12576 (eval $ac_try) 2>&5
12577 ac_status=$?
12578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12579 (exit $ac_status); }; } &&
12580 { ac_try='test -s conftest$ac_exeext'
12581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12582 (eval $ac_try) 2>&5
12583 ac_status=$?
12584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12585 (exit $ac_status); }; }; then
12586 ac_cv_search_frexp="-l$ac_lib"
12587 break
12588 else
12589 echo "$as_me: failed program was:" >&5
12590 sed 's/^/| /' conftest.$ac_ext >&5
12591
12592 fi
12593 rm -f conftest.err conftest.$ac_objext \
12594 conftest$ac_exeext conftest.$ac_ext
12595 done
12596 fi
12597 LIBS=$ac_func_search_save_LIBS
12598 fi
12599 echo "$as_me:$LINENO: result: $ac_cv_search_frexp" >&5
12600 echo "${ECHO_T}$ac_cv_search_frexp" >&6
12601 if test "$ac_cv_search_frexp" != no; then
12602 test "$ac_cv_search_frexp" = "none required" || LIBS="$ac_cv_search_frexp $LIBS"
12603
12604 fi
12605
12606
12607 echo "$as_me:$LINENO: checking for time_t in time.h" >&5
12608 echo $ECHO_N "checking for time_t in time.h... $ECHO_C" >&6
12609 if test "${bu_cv_decl_time_t_time_h+set}" = set; then
12610 echo $ECHO_N "(cached) $ECHO_C" >&6
12611 else
12612 cat >conftest.$ac_ext <<_ACEOF
12613 /* confdefs.h. */
12614 _ACEOF
12615 cat confdefs.h >>conftest.$ac_ext
12616 cat >>conftest.$ac_ext <<_ACEOF
12617 /* end confdefs.h. */
12618 #include <time.h>
12619 int
12620 main ()
12621 {
12622 time_t i;
12623 ;
12624 return 0;
12625 }
12626 _ACEOF
12627 rm -f conftest.$ac_objext
12628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12629 (eval $ac_compile) 2>conftest.er1
12630 ac_status=$?
12631 grep -v '^ *+' conftest.er1 >conftest.err
12632 rm -f conftest.er1
12633 cat conftest.err >&5
12634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12635 (exit $ac_status); } &&
12636 { ac_try='test -z "$ac_c_werror_flag"
12637 || test ! -s conftest.err'
12638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12639 (eval $ac_try) 2>&5
12640 ac_status=$?
12641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12642 (exit $ac_status); }; } &&
12643 { ac_try='test -s conftest.$ac_objext'
12644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12645 (eval $ac_try) 2>&5
12646 ac_status=$?
12647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648 (exit $ac_status); }; }; then
12649 bu_cv_decl_time_t_time_h=yes
12650 else
12651 echo "$as_me: failed program was:" >&5
12652 sed 's/^/| /' conftest.$ac_ext >&5
12653
12654 bu_cv_decl_time_t_time_h=no
12655 fi
12656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12657 fi
12658
12659 echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_time_h" >&5
12660 echo "${ECHO_T}$bu_cv_decl_time_t_time_h" >&6
12661 if test $bu_cv_decl_time_t_time_h = yes; then
12662
12663 cat >>confdefs.h <<\_ACEOF
12664 #define HAVE_TIME_T_IN_TIME_H 1
12665 _ACEOF
12666
12667 fi
12668
12669 echo "$as_me:$LINENO: checking for time_t in sys/types.h" >&5
12670 echo $ECHO_N "checking for time_t in sys/types.h... $ECHO_C" >&6
12671 if test "${bu_cv_decl_time_t_types_h+set}" = set; then
12672 echo $ECHO_N "(cached) $ECHO_C" >&6
12673 else
12674 cat >conftest.$ac_ext <<_ACEOF
12675 /* confdefs.h. */
12676 _ACEOF
12677 cat confdefs.h >>conftest.$ac_ext
12678 cat >>conftest.$ac_ext <<_ACEOF
12679 /* end confdefs.h. */
12680 #include <sys/types.h>
12681 int
12682 main ()
12683 {
12684 time_t i;
12685 ;
12686 return 0;
12687 }
12688 _ACEOF
12689 rm -f conftest.$ac_objext
12690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12691 (eval $ac_compile) 2>conftest.er1
12692 ac_status=$?
12693 grep -v '^ *+' conftest.er1 >conftest.err
12694 rm -f conftest.er1
12695 cat conftest.err >&5
12696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12697 (exit $ac_status); } &&
12698 { ac_try='test -z "$ac_c_werror_flag"
12699 || test ! -s conftest.err'
12700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12701 (eval $ac_try) 2>&5
12702 ac_status=$?
12703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12704 (exit $ac_status); }; } &&
12705 { ac_try='test -s conftest.$ac_objext'
12706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12707 (eval $ac_try) 2>&5
12708 ac_status=$?
12709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710 (exit $ac_status); }; }; then
12711 bu_cv_decl_time_t_types_h=yes
12712 else
12713 echo "$as_me: failed program was:" >&5
12714 sed 's/^/| /' conftest.$ac_ext >&5
12715
12716 bu_cv_decl_time_t_types_h=no
12717 fi
12718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12719 fi
12720
12721 echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_types_h" >&5
12722 echo "${ECHO_T}$bu_cv_decl_time_t_types_h" >&6
12723 if test $bu_cv_decl_time_t_types_h = yes; then
12724
12725 cat >>confdefs.h <<\_ACEOF
12726 #define HAVE_TIME_T_IN_TYPES_H 1
12727 _ACEOF
12728
12729 fi
12730
12731 echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
12732 echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
12733 if test "${bu_cv_decl_getopt_unistd_h+set}" = set; then
12734 echo $ECHO_N "(cached) $ECHO_C" >&6
12735 else
12736 cat >conftest.$ac_ext <<_ACEOF
12737 /* confdefs.h. */
12738 _ACEOF
12739 cat confdefs.h >>conftest.$ac_ext
12740 cat >>conftest.$ac_ext <<_ACEOF
12741 /* end confdefs.h. */
12742 #include <unistd.h>
12743 int
12744 main ()
12745 {
12746 extern int getopt (int, char *const*, const char *);
12747 ;
12748 return 0;
12749 }
12750 _ACEOF
12751 rm -f conftest.$ac_objext
12752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12753 (eval $ac_compile) 2>conftest.er1
12754 ac_status=$?
12755 grep -v '^ *+' conftest.er1 >conftest.err
12756 rm -f conftest.er1
12757 cat conftest.err >&5
12758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759 (exit $ac_status); } &&
12760 { ac_try='test -z "$ac_c_werror_flag"
12761 || test ! -s conftest.err'
12762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12763 (eval $ac_try) 2>&5
12764 ac_status=$?
12765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12766 (exit $ac_status); }; } &&
12767 { ac_try='test -s conftest.$ac_objext'
12768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12769 (eval $ac_try) 2>&5
12770 ac_status=$?
12771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12772 (exit $ac_status); }; }; then
12773 bu_cv_decl_getopt_unistd_h=yes
12774 else
12775 echo "$as_me: failed program was:" >&5
12776 sed 's/^/| /' conftest.$ac_ext >&5
12777
12778 bu_cv_decl_getopt_unistd_h=no
12779 fi
12780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12781 fi
12782
12783 echo "$as_me:$LINENO: result: $bu_cv_decl_getopt_unistd_h" >&5
12784 echo "${ECHO_T}$bu_cv_decl_getopt_unistd_h" >&6
12785 if test $bu_cv_decl_getopt_unistd_h = yes; then
12786
12787 cat >>confdefs.h <<\_ACEOF
12788 #define HAVE_DECL_GETOPT 1
12789 _ACEOF
12790
12791 fi
12792
12793 # Under Next 3.2 <utime.h> apparently does not define struct utimbuf
12794 # by default.
12795 echo "$as_me:$LINENO: checking for utime.h" >&5
12796 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
12797 if test "${bu_cv_header_utime_h+set}" = set; then
12798 echo $ECHO_N "(cached) $ECHO_C" >&6
12799 else
12800 cat >conftest.$ac_ext <<_ACEOF
12801 /* confdefs.h. */
12802 _ACEOF
12803 cat confdefs.h >>conftest.$ac_ext
12804 cat >>conftest.$ac_ext <<_ACEOF
12805 /* end confdefs.h. */
12806 #include <sys/types.h>
12807 #ifdef HAVE_TIME_H
12808 #include <time.h>
12809 #endif
12810 #include <utime.h>
12811 int
12812 main ()
12813 {
12814 struct utimbuf s;
12815 ;
12816 return 0;
12817 }
12818 _ACEOF
12819 rm -f conftest.$ac_objext
12820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12821 (eval $ac_compile) 2>conftest.er1
12822 ac_status=$?
12823 grep -v '^ *+' conftest.er1 >conftest.err
12824 rm -f conftest.er1
12825 cat conftest.err >&5
12826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12827 (exit $ac_status); } &&
12828 { ac_try='test -z "$ac_c_werror_flag"
12829 || test ! -s conftest.err'
12830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12831 (eval $ac_try) 2>&5
12832 ac_status=$?
12833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12834 (exit $ac_status); }; } &&
12835 { ac_try='test -s conftest.$ac_objext'
12836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12837 (eval $ac_try) 2>&5
12838 ac_status=$?
12839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12840 (exit $ac_status); }; }; then
12841 bu_cv_header_utime_h=yes
12842 else
12843 echo "$as_me: failed program was:" >&5
12844 sed 's/^/| /' conftest.$ac_ext >&5
12845
12846 bu_cv_header_utime_h=no
12847 fi
12848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12849 fi
12850
12851 echo "$as_me:$LINENO: result: $bu_cv_header_utime_h" >&5
12852 echo "${ECHO_T}$bu_cv_header_utime_h" >&6
12853 if test $bu_cv_header_utime_h = yes; then
12854
12855 cat >>confdefs.h <<\_ACEOF
12856 #define HAVE_GOOD_UTIME_H 1
12857 _ACEOF
12858
12859 fi
12860
12861 echo "$as_me:$LINENO: checking whether fprintf is declared" >&5
12862 echo $ECHO_N "checking whether fprintf is declared... $ECHO_C" >&6
12863 if test "${ac_cv_have_decl_fprintf+set}" = set; then
12864 echo $ECHO_N "(cached) $ECHO_C" >&6
12865 else
12866 cat >conftest.$ac_ext <<_ACEOF
12867 /* confdefs.h. */
12868 _ACEOF
12869 cat confdefs.h >>conftest.$ac_ext
12870 cat >>conftest.$ac_ext <<_ACEOF
12871 /* end confdefs.h. */
12872 $ac_includes_default
12873 int
12874 main ()
12875 {
12876 #ifndef fprintf
12877 char *p = (char *) fprintf;
12878 #endif
12879
12880 ;
12881 return 0;
12882 }
12883 _ACEOF
12884 rm -f conftest.$ac_objext
12885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12886 (eval $ac_compile) 2>conftest.er1
12887 ac_status=$?
12888 grep -v '^ *+' conftest.er1 >conftest.err
12889 rm -f conftest.er1
12890 cat conftest.err >&5
12891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12892 (exit $ac_status); } &&
12893 { ac_try='test -z "$ac_c_werror_flag"
12894 || test ! -s conftest.err'
12895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12896 (eval $ac_try) 2>&5
12897 ac_status=$?
12898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12899 (exit $ac_status); }; } &&
12900 { ac_try='test -s conftest.$ac_objext'
12901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12902 (eval $ac_try) 2>&5
12903 ac_status=$?
12904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905 (exit $ac_status); }; }; then
12906 ac_cv_have_decl_fprintf=yes
12907 else
12908 echo "$as_me: failed program was:" >&5
12909 sed 's/^/| /' conftest.$ac_ext >&5
12910
12911 ac_cv_have_decl_fprintf=no
12912 fi
12913 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12914 fi
12915 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fprintf" >&5
12916 echo "${ECHO_T}$ac_cv_have_decl_fprintf" >&6
12917 if test $ac_cv_have_decl_fprintf = yes; then
12918
12919 cat >>confdefs.h <<_ACEOF
12920 #define HAVE_DECL_FPRINTF 1
12921 _ACEOF
12922
12923
12924 else
12925 cat >>confdefs.h <<_ACEOF
12926 #define HAVE_DECL_FPRINTF 0
12927 _ACEOF
12928
12929
12930 fi
12931 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
12932 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
12933 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
12934 echo $ECHO_N "(cached) $ECHO_C" >&6
12935 else
12936 cat >conftest.$ac_ext <<_ACEOF
12937 /* confdefs.h. */
12938 _ACEOF
12939 cat confdefs.h >>conftest.$ac_ext
12940 cat >>conftest.$ac_ext <<_ACEOF
12941 /* end confdefs.h. */
12942 $ac_includes_default
12943 int
12944 main ()
12945 {
12946 #ifndef stpcpy
12947 char *p = (char *) stpcpy;
12948 #endif
12949
12950 ;
12951 return 0;
12952 }
12953 _ACEOF
12954 rm -f conftest.$ac_objext
12955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12956 (eval $ac_compile) 2>conftest.er1
12957 ac_status=$?
12958 grep -v '^ *+' conftest.er1 >conftest.err
12959 rm -f conftest.er1
12960 cat conftest.err >&5
12961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12962 (exit $ac_status); } &&
12963 { ac_try='test -z "$ac_c_werror_flag"
12964 || test ! -s conftest.err'
12965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12966 (eval $ac_try) 2>&5
12967 ac_status=$?
12968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12969 (exit $ac_status); }; } &&
12970 { ac_try='test -s conftest.$ac_objext'
12971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12972 (eval $ac_try) 2>&5
12973 ac_status=$?
12974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12975 (exit $ac_status); }; }; then
12976 ac_cv_have_decl_stpcpy=yes
12977 else
12978 echo "$as_me: failed program was:" >&5
12979 sed 's/^/| /' conftest.$ac_ext >&5
12980
12981 ac_cv_have_decl_stpcpy=no
12982 fi
12983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12984 fi
12985 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
12986 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
12987 if test $ac_cv_have_decl_stpcpy = yes; then
12988
12989 cat >>confdefs.h <<_ACEOF
12990 #define HAVE_DECL_STPCPY 1
12991 _ACEOF
12992
12993
12994 else
12995 cat >>confdefs.h <<_ACEOF
12996 #define HAVE_DECL_STPCPY 0
12997 _ACEOF
12998
12999
13000 fi
13001 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
13002 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
13003 if test "${ac_cv_have_decl_strstr+set}" = set; then
13004 echo $ECHO_N "(cached) $ECHO_C" >&6
13005 else
13006 cat >conftest.$ac_ext <<_ACEOF
13007 /* confdefs.h. */
13008 _ACEOF
13009 cat confdefs.h >>conftest.$ac_ext
13010 cat >>conftest.$ac_ext <<_ACEOF
13011 /* end confdefs.h. */
13012 $ac_includes_default
13013 int
13014 main ()
13015 {
13016 #ifndef strstr
13017 char *p = (char *) strstr;
13018 #endif
13019
13020 ;
13021 return 0;
13022 }
13023 _ACEOF
13024 rm -f conftest.$ac_objext
13025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13026 (eval $ac_compile) 2>conftest.er1
13027 ac_status=$?
13028 grep -v '^ *+' conftest.er1 >conftest.err
13029 rm -f conftest.er1
13030 cat conftest.err >&5
13031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13032 (exit $ac_status); } &&
13033 { ac_try='test -z "$ac_c_werror_flag"
13034 || test ! -s conftest.err'
13035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13036 (eval $ac_try) 2>&5
13037 ac_status=$?
13038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13039 (exit $ac_status); }; } &&
13040 { ac_try='test -s conftest.$ac_objext'
13041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13042 (eval $ac_try) 2>&5
13043 ac_status=$?
13044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13045 (exit $ac_status); }; }; then
13046 ac_cv_have_decl_strstr=yes
13047 else
13048 echo "$as_me: failed program was:" >&5
13049 sed 's/^/| /' conftest.$ac_ext >&5
13050
13051 ac_cv_have_decl_strstr=no
13052 fi
13053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13054 fi
13055 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
13056 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
13057 if test $ac_cv_have_decl_strstr = yes; then
13058
13059 cat >>confdefs.h <<_ACEOF
13060 #define HAVE_DECL_STRSTR 1
13061 _ACEOF
13062
13063
13064 else
13065 cat >>confdefs.h <<_ACEOF
13066 #define HAVE_DECL_STRSTR 0
13067 _ACEOF
13068
13069
13070 fi
13071 echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
13072 echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
13073 if test "${ac_cv_have_decl_sbrk+set}" = set; then
13074 echo $ECHO_N "(cached) $ECHO_C" >&6
13075 else
13076 cat >conftest.$ac_ext <<_ACEOF
13077 /* confdefs.h. */
13078 _ACEOF
13079 cat confdefs.h >>conftest.$ac_ext
13080 cat >>conftest.$ac_ext <<_ACEOF
13081 /* end confdefs.h. */
13082 $ac_includes_default
13083 int
13084 main ()
13085 {
13086 #ifndef sbrk
13087 char *p = (char *) sbrk;
13088 #endif
13089
13090 ;
13091 return 0;
13092 }
13093 _ACEOF
13094 rm -f conftest.$ac_objext
13095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13096 (eval $ac_compile) 2>conftest.er1
13097 ac_status=$?
13098 grep -v '^ *+' conftest.er1 >conftest.err
13099 rm -f conftest.er1
13100 cat conftest.err >&5
13101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13102 (exit $ac_status); } &&
13103 { ac_try='test -z "$ac_c_werror_flag"
13104 || test ! -s conftest.err'
13105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13106 (eval $ac_try) 2>&5
13107 ac_status=$?
13108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13109 (exit $ac_status); }; } &&
13110 { ac_try='test -s conftest.$ac_objext'
13111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13112 (eval $ac_try) 2>&5
13113 ac_status=$?
13114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13115 (exit $ac_status); }; }; then
13116 ac_cv_have_decl_sbrk=yes
13117 else
13118 echo "$as_me: failed program was:" >&5
13119 sed 's/^/| /' conftest.$ac_ext >&5
13120
13121 ac_cv_have_decl_sbrk=no
13122 fi
13123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13124 fi
13125 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
13126 echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
13127 if test $ac_cv_have_decl_sbrk = yes; then
13128
13129 cat >>confdefs.h <<_ACEOF
13130 #define HAVE_DECL_SBRK 1
13131 _ACEOF
13132
13133
13134 else
13135 cat >>confdefs.h <<_ACEOF
13136 #define HAVE_DECL_SBRK 0
13137 _ACEOF
13138
13139
13140 fi
13141 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
13142 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
13143 if test "${ac_cv_have_decl_getenv+set}" = set; then
13144 echo $ECHO_N "(cached) $ECHO_C" >&6
13145 else
13146 cat >conftest.$ac_ext <<_ACEOF
13147 /* confdefs.h. */
13148 _ACEOF
13149 cat confdefs.h >>conftest.$ac_ext
13150 cat >>conftest.$ac_ext <<_ACEOF
13151 /* end confdefs.h. */
13152 $ac_includes_default
13153 int
13154 main ()
13155 {
13156 #ifndef getenv
13157 char *p = (char *) getenv;
13158 #endif
13159
13160 ;
13161 return 0;
13162 }
13163 _ACEOF
13164 rm -f conftest.$ac_objext
13165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13166 (eval $ac_compile) 2>conftest.er1
13167 ac_status=$?
13168 grep -v '^ *+' conftest.er1 >conftest.err
13169 rm -f conftest.er1
13170 cat conftest.err >&5
13171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13172 (exit $ac_status); } &&
13173 { ac_try='test -z "$ac_c_werror_flag"
13174 || test ! -s conftest.err'
13175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13176 (eval $ac_try) 2>&5
13177 ac_status=$?
13178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13179 (exit $ac_status); }; } &&
13180 { ac_try='test -s conftest.$ac_objext'
13181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13182 (eval $ac_try) 2>&5
13183 ac_status=$?
13184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13185 (exit $ac_status); }; }; then
13186 ac_cv_have_decl_getenv=yes
13187 else
13188 echo "$as_me: failed program was:" >&5
13189 sed 's/^/| /' conftest.$ac_ext >&5
13190
13191 ac_cv_have_decl_getenv=no
13192 fi
13193 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13194 fi
13195 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
13196 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
13197 if test $ac_cv_have_decl_getenv = yes; then
13198
13199 cat >>confdefs.h <<_ACEOF
13200 #define HAVE_DECL_GETENV 1
13201 _ACEOF
13202
13203
13204 else
13205 cat >>confdefs.h <<_ACEOF
13206 #define HAVE_DECL_GETENV 0
13207 _ACEOF
13208
13209
13210 fi
13211 echo "$as_me:$LINENO: checking whether environ is declared" >&5
13212 echo $ECHO_N "checking whether environ is declared... $ECHO_C" >&6
13213 if test "${ac_cv_have_decl_environ+set}" = set; then
13214 echo $ECHO_N "(cached) $ECHO_C" >&6
13215 else
13216 cat >conftest.$ac_ext <<_ACEOF
13217 /* confdefs.h. */
13218 _ACEOF
13219 cat confdefs.h >>conftest.$ac_ext
13220 cat >>conftest.$ac_ext <<_ACEOF
13221 /* end confdefs.h. */
13222 $ac_includes_default
13223 int
13224 main ()
13225 {
13226 #ifndef environ
13227 char *p = (char *) environ;
13228 #endif
13229
13230 ;
13231 return 0;
13232 }
13233 _ACEOF
13234 rm -f conftest.$ac_objext
13235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13236 (eval $ac_compile) 2>conftest.er1
13237 ac_status=$?
13238 grep -v '^ *+' conftest.er1 >conftest.err
13239 rm -f conftest.er1
13240 cat conftest.err >&5
13241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13242 (exit $ac_status); } &&
13243 { ac_try='test -z "$ac_c_werror_flag"
13244 || test ! -s conftest.err'
13245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13246 (eval $ac_try) 2>&5
13247 ac_status=$?
13248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13249 (exit $ac_status); }; } &&
13250 { ac_try='test -s conftest.$ac_objext'
13251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13252 (eval $ac_try) 2>&5
13253 ac_status=$?
13254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255 (exit $ac_status); }; }; then
13256 ac_cv_have_decl_environ=yes
13257 else
13258 echo "$as_me: failed program was:" >&5
13259 sed 's/^/| /' conftest.$ac_ext >&5
13260
13261 ac_cv_have_decl_environ=no
13262 fi
13263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13264 fi
13265 echo "$as_me:$LINENO: result: $ac_cv_have_decl_environ" >&5
13266 echo "${ECHO_T}$ac_cv_have_decl_environ" >&6
13267 if test $ac_cv_have_decl_environ = yes; then
13268
13269 cat >>confdefs.h <<_ACEOF
13270 #define HAVE_DECL_ENVIRON 1
13271 _ACEOF
13272
13273
13274 else
13275 cat >>confdefs.h <<_ACEOF
13276 #define HAVE_DECL_ENVIRON 0
13277 _ACEOF
13278
13279
13280 fi
13281 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
13282 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
13283 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
13284 echo $ECHO_N "(cached) $ECHO_C" >&6
13285 else
13286 cat >conftest.$ac_ext <<_ACEOF
13287 /* confdefs.h. */
13288 _ACEOF
13289 cat confdefs.h >>conftest.$ac_ext
13290 cat >>conftest.$ac_ext <<_ACEOF
13291 /* end confdefs.h. */
13292 $ac_includes_default
13293 int
13294 main ()
13295 {
13296 #ifndef getc_unlocked
13297 char *p = (char *) getc_unlocked;
13298 #endif
13299
13300 ;
13301 return 0;
13302 }
13303 _ACEOF
13304 rm -f conftest.$ac_objext
13305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13306 (eval $ac_compile) 2>conftest.er1
13307 ac_status=$?
13308 grep -v '^ *+' conftest.er1 >conftest.err
13309 rm -f conftest.er1
13310 cat conftest.err >&5
13311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13312 (exit $ac_status); } &&
13313 { ac_try='test -z "$ac_c_werror_flag"
13314 || test ! -s conftest.err'
13315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13316 (eval $ac_try) 2>&5
13317 ac_status=$?
13318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13319 (exit $ac_status); }; } &&
13320 { ac_try='test -s conftest.$ac_objext'
13321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13322 (eval $ac_try) 2>&5
13323 ac_status=$?
13324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13325 (exit $ac_status); }; }; then
13326 ac_cv_have_decl_getc_unlocked=yes
13327 else
13328 echo "$as_me: failed program was:" >&5
13329 sed 's/^/| /' conftest.$ac_ext >&5
13330
13331 ac_cv_have_decl_getc_unlocked=no
13332 fi
13333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13334 fi
13335 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
13336 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
13337 if test $ac_cv_have_decl_getc_unlocked = yes; then
13338
13339 cat >>confdefs.h <<_ACEOF
13340 #define HAVE_DECL_GETC_UNLOCKED 1
13341 _ACEOF
13342
13343
13344 else
13345 cat >>confdefs.h <<_ACEOF
13346 #define HAVE_DECL_GETC_UNLOCKED 0
13347 _ACEOF
13348
13349
13350 fi
13351 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
13352 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
13353 if test "${ac_cv_have_decl_snprintf+set}" = set; then
13354 echo $ECHO_N "(cached) $ECHO_C" >&6
13355 else
13356 cat >conftest.$ac_ext <<_ACEOF
13357 /* confdefs.h. */
13358 _ACEOF
13359 cat confdefs.h >>conftest.$ac_ext
13360 cat >>conftest.$ac_ext <<_ACEOF
13361 /* end confdefs.h. */
13362 $ac_includes_default
13363 int
13364 main ()
13365 {
13366 #ifndef snprintf
13367 char *p = (char *) snprintf;
13368 #endif
13369
13370 ;
13371 return 0;
13372 }
13373 _ACEOF
13374 rm -f conftest.$ac_objext
13375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13376 (eval $ac_compile) 2>conftest.er1
13377 ac_status=$?
13378 grep -v '^ *+' conftest.er1 >conftest.err
13379 rm -f conftest.er1
13380 cat conftest.err >&5
13381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382 (exit $ac_status); } &&
13383 { ac_try='test -z "$ac_c_werror_flag"
13384 || test ! -s conftest.err'
13385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13386 (eval $ac_try) 2>&5
13387 ac_status=$?
13388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13389 (exit $ac_status); }; } &&
13390 { ac_try='test -s conftest.$ac_objext'
13391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13392 (eval $ac_try) 2>&5
13393 ac_status=$?
13394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13395 (exit $ac_status); }; }; then
13396 ac_cv_have_decl_snprintf=yes
13397 else
13398 echo "$as_me: failed program was:" >&5
13399 sed 's/^/| /' conftest.$ac_ext >&5
13400
13401 ac_cv_have_decl_snprintf=no
13402 fi
13403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13404 fi
13405 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
13406 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
13407 if test $ac_cv_have_decl_snprintf = yes; then
13408
13409 cat >>confdefs.h <<_ACEOF
13410 #define HAVE_DECL_SNPRINTF 1
13411 _ACEOF
13412
13413
13414 else
13415 cat >>confdefs.h <<_ACEOF
13416 #define HAVE_DECL_SNPRINTF 0
13417 _ACEOF
13418
13419
13420 fi
13421 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
13422 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
13423 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
13424 echo $ECHO_N "(cached) $ECHO_C" >&6
13425 else
13426 cat >conftest.$ac_ext <<_ACEOF
13427 /* confdefs.h. */
13428 _ACEOF
13429 cat confdefs.h >>conftest.$ac_ext
13430 cat >>conftest.$ac_ext <<_ACEOF
13431 /* end confdefs.h. */
13432 $ac_includes_default
13433 int
13434 main ()
13435 {
13436 #ifndef vsnprintf
13437 char *p = (char *) vsnprintf;
13438 #endif
13439
13440 ;
13441 return 0;
13442 }
13443 _ACEOF
13444 rm -f conftest.$ac_objext
13445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13446 (eval $ac_compile) 2>conftest.er1
13447 ac_status=$?
13448 grep -v '^ *+' conftest.er1 >conftest.err
13449 rm -f conftest.er1
13450 cat conftest.err >&5
13451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13452 (exit $ac_status); } &&
13453 { ac_try='test -z "$ac_c_werror_flag"
13454 || test ! -s conftest.err'
13455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13456 (eval $ac_try) 2>&5
13457 ac_status=$?
13458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13459 (exit $ac_status); }; } &&
13460 { ac_try='test -s conftest.$ac_objext'
13461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13462 (eval $ac_try) 2>&5
13463 ac_status=$?
13464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13465 (exit $ac_status); }; }; then
13466 ac_cv_have_decl_vsnprintf=yes
13467 else
13468 echo "$as_me: failed program was:" >&5
13469 sed 's/^/| /' conftest.$ac_ext >&5
13470
13471 ac_cv_have_decl_vsnprintf=no
13472 fi
13473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13474 fi
13475 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
13476 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
13477 if test $ac_cv_have_decl_vsnprintf = yes; then
13478
13479 cat >>confdefs.h <<_ACEOF
13480 #define HAVE_DECL_VSNPRINTF 1
13481 _ACEOF
13482
13483
13484 else
13485 cat >>confdefs.h <<_ACEOF
13486 #define HAVE_DECL_VSNPRINTF 0
13487 _ACEOF
13488
13489
13490 fi
13491
13492
13493
13494
13495 case "${host}" in
13496 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
13497
13498 cat >>confdefs.h <<\_ACEOF
13499 #define USE_BINARY_FOPEN 1
13500 _ACEOF
13501 ;;
13502 esac
13503
13504 # target-specific stuff:
13505
13506 # Canonicalize the secondary target names.
13507 if test -n "$enable_targets"; then
13508 for targ in `echo $enable_targets | sed 's/,/ /g'`
13509 do
13510 result=`$ac_config_sub $targ 2>/dev/null`
13511 if test -n "$result"; then
13512 canon_targets="$canon_targets $result"
13513 else
13514 # Allow targets that config.sub doesn't recognize, like "all".
13515 canon_targets="$canon_targets $targ"
13516 fi
13517 done
13518 fi
13519
13520 if test "${ac_cv_header_iconv_h+set}" = set; then
13521 echo "$as_me:$LINENO: checking for iconv.h" >&5
13522 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
13523 if test "${ac_cv_header_iconv_h+set}" = set; then
13524 echo $ECHO_N "(cached) $ECHO_C" >&6
13525 fi
13526 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
13527 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
13528 else
13529 # Is the header compilable?
13530 echo "$as_me:$LINENO: checking iconv.h usability" >&5
13531 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
13532 cat >conftest.$ac_ext <<_ACEOF
13533 /* confdefs.h. */
13534 _ACEOF
13535 cat confdefs.h >>conftest.$ac_ext
13536 cat >>conftest.$ac_ext <<_ACEOF
13537 /* end confdefs.h. */
13538 $ac_includes_default
13539 #include <iconv.h>
13540 _ACEOF
13541 rm -f conftest.$ac_objext
13542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13543 (eval $ac_compile) 2>conftest.er1
13544 ac_status=$?
13545 grep -v '^ *+' conftest.er1 >conftest.err
13546 rm -f conftest.er1
13547 cat conftest.err >&5
13548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13549 (exit $ac_status); } &&
13550 { ac_try='test -z "$ac_c_werror_flag"
13551 || test ! -s conftest.err'
13552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13553 (eval $ac_try) 2>&5
13554 ac_status=$?
13555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13556 (exit $ac_status); }; } &&
13557 { ac_try='test -s conftest.$ac_objext'
13558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13559 (eval $ac_try) 2>&5
13560 ac_status=$?
13561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13562 (exit $ac_status); }; }; then
13563 ac_header_compiler=yes
13564 else
13565 echo "$as_me: failed program was:" >&5
13566 sed 's/^/| /' conftest.$ac_ext >&5
13567
13568 ac_header_compiler=no
13569 fi
13570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13571 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13572 echo "${ECHO_T}$ac_header_compiler" >&6
13573
13574 # Is the header present?
13575 echo "$as_me:$LINENO: checking iconv.h presence" >&5
13576 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
13577 cat >conftest.$ac_ext <<_ACEOF
13578 /* confdefs.h. */
13579 _ACEOF
13580 cat confdefs.h >>conftest.$ac_ext
13581 cat >>conftest.$ac_ext <<_ACEOF
13582 /* end confdefs.h. */
13583 #include <iconv.h>
13584 _ACEOF
13585 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13586 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13587 ac_status=$?
13588 grep -v '^ *+' conftest.er1 >conftest.err
13589 rm -f conftest.er1
13590 cat conftest.err >&5
13591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13592 (exit $ac_status); } >/dev/null; then
13593 if test -s conftest.err; then
13594 ac_cpp_err=$ac_c_preproc_warn_flag
13595 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13596 else
13597 ac_cpp_err=
13598 fi
13599 else
13600 ac_cpp_err=yes
13601 fi
13602 if test -z "$ac_cpp_err"; then
13603 ac_header_preproc=yes
13604 else
13605 echo "$as_me: failed program was:" >&5
13606 sed 's/^/| /' conftest.$ac_ext >&5
13607
13608 ac_header_preproc=no
13609 fi
13610 rm -f conftest.err conftest.$ac_ext
13611 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13612 echo "${ECHO_T}$ac_header_preproc" >&6
13613
13614 # So? What about this header?
13615 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13616 yes:no: )
13617 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
13618 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13619 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
13620 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
13621 ac_header_preproc=yes
13622 ;;
13623 no:yes:* )
13624 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
13625 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
13626 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
13627 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
13628 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
13629 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
13630 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
13631 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
13632 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
13633 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
13634 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
13635 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
13636 (
13637 cat <<\_ASBOX
13638 ## ------------------------------------------ ##
13639 ## Report this to the AC_PACKAGE_NAME lists. ##
13640 ## ------------------------------------------ ##
13641 _ASBOX
13642 ) |
13643 sed "s/^/$as_me: WARNING: /" >&2
13644 ;;
13645 esac
13646 echo "$as_me:$LINENO: checking for iconv.h" >&5
13647 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
13648 if test "${ac_cv_header_iconv_h+set}" = set; then
13649 echo $ECHO_N "(cached) $ECHO_C" >&6
13650 else
13651 ac_cv_header_iconv_h=$ac_header_preproc
13652 fi
13653 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
13654 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
13655
13656 fi
13657
13658
13659
13660 if test "X$prefix" = "XNONE"; then
13661 acl_final_prefix="$ac_default_prefix"
13662 else
13663 acl_final_prefix="$prefix"
13664 fi
13665 if test "X$exec_prefix" = "XNONE"; then
13666 acl_final_exec_prefix='${prefix}'
13667 else
13668 acl_final_exec_prefix="$exec_prefix"
13669 fi
13670 acl_save_prefix="$prefix"
13671 prefix="$acl_final_prefix"
13672 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13673 prefix="$acl_save_prefix"
13674
13675
13676 # Check whether --with-gnu-ld or --without-gnu-ld was given.
13677 if test "${with_gnu_ld+set}" = set; then
13678 withval="$with_gnu_ld"
13679 test "$withval" = no || with_gnu_ld=yes
13680 else
13681 with_gnu_ld=no
13682 fi;
13683 # Prepare PATH_SEPARATOR.
13684 # The user is always right.
13685 if test "${PATH_SEPARATOR+set}" != set; then
13686 echo "#! /bin/sh" >conf$$.sh
13687 echo "exit 0" >>conf$$.sh
13688 chmod +x conf$$.sh
13689 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13690 PATH_SEPARATOR=';'
13691 else
13692 PATH_SEPARATOR=:
13693 fi
13694 rm -f conf$$.sh
13695 fi
13696 ac_prog=ld
13697 if test "$GCC" = yes; then
13698 # Check if gcc -print-prog-name=ld gives a path.
13699 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
13700 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
13701 case $host in
13702 *-*-mingw*)
13703 # gcc leaves a trailing carriage return which upsets mingw
13704 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13705 *)
13706 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13707 esac
13708 case $ac_prog in
13709 # Accept absolute paths.
13710 [\\/]* | [A-Za-z]:[\\/]*)
13711 re_direlt='/[^/][^/]*/\.\./'
13712 # Canonicalize the path of ld
13713 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
13714 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13715 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
13716 done
13717 test -z "$LD" && LD="$ac_prog"
13718 ;;
13719 "")
13720 # If it fails, then pretend we aren't using GCC.
13721 ac_prog=ld
13722 ;;
13723 *)
13724 # If it is relative, then search for the first ld in PATH.
13725 with_gnu_ld=unknown
13726 ;;
13727 esac
13728 elif test "$with_gnu_ld" = yes; then
13729 echo "$as_me:$LINENO: checking for GNU ld" >&5
13730 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
13731 else
13732 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13733 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
13734 fi
13735 if test "${acl_cv_path_LD+set}" = set; then
13736 echo $ECHO_N "(cached) $ECHO_C" >&6
13737 else
13738 if test -z "$LD"; then
13739 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
13740 for ac_dir in $PATH; do
13741 test -z "$ac_dir" && ac_dir=.
13742 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13743 acl_cv_path_LD="$ac_dir/$ac_prog"
13744 # Check to see if the program is GNU ld. I'd rather use --version,
13745 # but apparently some GNU ld's only accept -v.
13746 # Break only if it was the GNU/non-GNU ld that we prefer.
13747 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
13748 test "$with_gnu_ld" != no && break
13749 else
13750 test "$with_gnu_ld" != yes && break
13751 fi
13752 fi
13753 done
13754 IFS="$ac_save_ifs"
13755 else
13756 acl_cv_path_LD="$LD" # Let the user override the test with a path.
13757 fi
13758 fi
13759
13760 LD="$acl_cv_path_LD"
13761 if test -n "$LD"; then
13762 echo "$as_me:$LINENO: result: $LD" >&5
13763 echo "${ECHO_T}$LD" >&6
13764 else
13765 echo "$as_me:$LINENO: result: no" >&5
13766 echo "${ECHO_T}no" >&6
13767 fi
13768 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13769 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13770 { (exit 1); exit 1; }; }
13771 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13772 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
13773 if test "${acl_cv_prog_gnu_ld+set}" = set; then
13774 echo $ECHO_N "(cached) $ECHO_C" >&6
13775 else
13776 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13777 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
13778 acl_cv_prog_gnu_ld=yes
13779 else
13780 acl_cv_prog_gnu_ld=no
13781 fi
13782 fi
13783 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
13784 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
13785 with_gnu_ld=$acl_cv_prog_gnu_ld
13786
13787
13788
13789 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
13790 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
13791 if test "${acl_cv_rpath+set}" = set; then
13792 echo $ECHO_N "(cached) $ECHO_C" >&6
13793 else
13794
13795 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
13796 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13797 . ./conftest.sh
13798 rm -f ./conftest.sh
13799 acl_cv_rpath=done
13800
13801 fi
13802 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
13803 echo "${ECHO_T}$acl_cv_rpath" >&6
13804 wl="$acl_cv_wl"
13805 libext="$acl_cv_libext"
13806 shlibext="$acl_cv_shlibext"
13807 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13808 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13809 hardcode_direct="$acl_cv_hardcode_direct"
13810 hardcode_minus_L="$acl_cv_hardcode_minus_L"
13811 # Check whether --enable-rpath or --disable-rpath was given.
13812 if test "${enable_rpath+set}" = set; then
13813 enableval="$enable_rpath"
13814 :
13815 else
13816 enable_rpath=yes
13817 fi;
13818
13819
13820
13821
13822
13823
13824
13825 use_additional=yes
13826
13827 acl_save_prefix="$prefix"
13828 prefix="$acl_final_prefix"
13829 acl_save_exec_prefix="$exec_prefix"
13830 exec_prefix="$acl_final_exec_prefix"
13831
13832 eval additional_includedir=\"$includedir\"
13833 eval additional_libdir=\"$libdir\"
13834
13835 exec_prefix="$acl_save_exec_prefix"
13836 prefix="$acl_save_prefix"
13837
13838
13839 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
13840 if test "${with_libiconv_prefix+set}" = set; then
13841 withval="$with_libiconv_prefix"
13842
13843 if test "X$withval" = "Xno"; then
13844 use_additional=no
13845 else
13846 if test "X$withval" = "X"; then
13847
13848 acl_save_prefix="$prefix"
13849 prefix="$acl_final_prefix"
13850 acl_save_exec_prefix="$exec_prefix"
13851 exec_prefix="$acl_final_exec_prefix"
13852
13853 eval additional_includedir=\"$includedir\"
13854 eval additional_libdir=\"$libdir\"
13855
13856 exec_prefix="$acl_save_exec_prefix"
13857 prefix="$acl_save_prefix"
13858
13859 else
13860 additional_includedir="$withval/include"
13861 additional_libdir="$withval/lib"
13862 fi
13863 fi
13864
13865 fi;
13866 LIBICONV=
13867 LTLIBICONV=
13868 INCICONV=
13869 rpathdirs=
13870 ltrpathdirs=
13871 names_already_handled=
13872 names_next_round='iconv '
13873 while test -n "$names_next_round"; do
13874 names_this_round="$names_next_round"
13875 names_next_round=
13876 for name in $names_this_round; do
13877 already_handled=
13878 for n in $names_already_handled; do
13879 if test "$n" = "$name"; then
13880 already_handled=yes
13881 break
13882 fi
13883 done
13884 if test -z "$already_handled"; then
13885 names_already_handled="$names_already_handled $name"
13886 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13887 eval value=\"\$HAVE_LIB$uppername\"
13888 if test -n "$value"; then
13889 if test "$value" = yes; then
13890 eval value=\"\$LIB$uppername\"
13891 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
13892 eval value=\"\$LTLIB$uppername\"
13893 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
13894 else
13895 :
13896 fi
13897 else
13898 found_dir=
13899 found_la=
13900 found_so=
13901 found_a=
13902 if test $use_additional = yes; then
13903 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
13904 found_dir="$additional_libdir"
13905 found_so="$additional_libdir/lib$name.$shlibext"
13906 if test -f "$additional_libdir/lib$name.la"; then
13907 found_la="$additional_libdir/lib$name.la"
13908 fi
13909 else
13910 if test -f "$additional_libdir/lib$name.$libext"; then
13911 found_dir="$additional_libdir"
13912 found_a="$additional_libdir/lib$name.$libext"
13913 if test -f "$additional_libdir/lib$name.la"; then
13914 found_la="$additional_libdir/lib$name.la"
13915 fi
13916 fi
13917 fi
13918 fi
13919 if test "X$found_dir" = "X"; then
13920 for x in $LDFLAGS $LTLIBICONV; do
13921
13922 acl_save_prefix="$prefix"
13923 prefix="$acl_final_prefix"
13924 acl_save_exec_prefix="$exec_prefix"
13925 exec_prefix="$acl_final_exec_prefix"
13926 eval x=\"$x\"
13927 exec_prefix="$acl_save_exec_prefix"
13928 prefix="$acl_save_prefix"
13929
13930 case "$x" in
13931 -L*)
13932 dir=`echo "X$x" | sed -e 's/^X-L//'`
13933 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
13934 found_dir="$dir"
13935 found_so="$dir/lib$name.$shlibext"
13936 if test -f "$dir/lib$name.la"; then
13937 found_la="$dir/lib$name.la"
13938 fi
13939 else
13940 if test -f "$dir/lib$name.$libext"; then
13941 found_dir="$dir"
13942 found_a="$dir/lib$name.$libext"
13943 if test -f "$dir/lib$name.la"; then
13944 found_la="$dir/lib$name.la"
13945 fi
13946 fi
13947 fi
13948 ;;
13949 esac
13950 if test "X$found_dir" != "X"; then
13951 break
13952 fi
13953 done
13954 fi
13955 if test "X$found_dir" != "X"; then
13956 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
13957 if test "X$found_so" != "X"; then
13958 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
13959 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13960 else
13961 haveit=
13962 for x in $ltrpathdirs; do
13963 if test "X$x" = "X$found_dir"; then
13964 haveit=yes
13965 break
13966 fi
13967 done
13968 if test -z "$haveit"; then
13969 ltrpathdirs="$ltrpathdirs $found_dir"
13970 fi
13971 if test "$hardcode_direct" = yes; then
13972 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13973 else
13974 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
13975 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13976 haveit=
13977 for x in $rpathdirs; do
13978 if test "X$x" = "X$found_dir"; then
13979 haveit=yes
13980 break
13981 fi
13982 done
13983 if test -z "$haveit"; then
13984 rpathdirs="$rpathdirs $found_dir"
13985 fi
13986 else
13987 haveit=
13988 for x in $LDFLAGS $LIBICONV; do
13989
13990 acl_save_prefix="$prefix"
13991 prefix="$acl_final_prefix"
13992 acl_save_exec_prefix="$exec_prefix"
13993 exec_prefix="$acl_final_exec_prefix"
13994 eval x=\"$x\"
13995 exec_prefix="$acl_save_exec_prefix"
13996 prefix="$acl_save_prefix"
13997
13998 if test "X$x" = "X-L$found_dir"; then
13999 haveit=yes
14000 break
14001 fi
14002 done
14003 if test -z "$haveit"; then
14004 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
14005 fi
14006 if test "$hardcode_minus_L" != no; then
14007 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14008 else
14009 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14010 fi
14011 fi
14012 fi
14013 fi
14014 else
14015 if test "X$found_a" != "X"; then
14016 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
14017 else
14018 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
14019 fi
14020 fi
14021 additional_includedir=
14022 case "$found_dir" in
14023 */lib | */lib/)
14024 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14025 additional_includedir="$basedir/include"
14026 ;;
14027 esac
14028 if test "X$additional_includedir" != "X"; then
14029 if test "X$additional_includedir" != "X/usr/include"; then
14030 haveit=
14031 if test "X$additional_includedir" = "X/usr/local/include"; then
14032 if test -n "$GCC"; then
14033 case $host_os in
14034 linux*) haveit=yes;;
14035 esac
14036 fi
14037 fi
14038 if test -z "$haveit"; then
14039 for x in $CPPFLAGS $INCICONV; do
14040
14041 acl_save_prefix="$prefix"
14042 prefix="$acl_final_prefix"
14043 acl_save_exec_prefix="$exec_prefix"
14044 exec_prefix="$acl_final_exec_prefix"
14045 eval x=\"$x\"
14046 exec_prefix="$acl_save_exec_prefix"
14047 prefix="$acl_save_prefix"
14048
14049 if test "X$x" = "X-I$additional_includedir"; then
14050 haveit=yes
14051 break
14052 fi
14053 done
14054 if test -z "$haveit"; then
14055 if test -d "$additional_includedir"; then
14056 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
14057 fi
14058 fi
14059 fi
14060 fi
14061 fi
14062 if test -n "$found_la"; then
14063 save_libdir="$libdir"
14064 case "$found_la" in
14065 */* | *\\*) . "$found_la" ;;
14066 *) . "./$found_la" ;;
14067 esac
14068 libdir="$save_libdir"
14069 for dep in $dependency_libs; do
14070 case "$dep" in
14071 -L*)
14072 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14073 if test "X$additional_libdir" != "X/usr/lib"; then
14074 haveit=
14075 if test "X$additional_libdir" = "X/usr/local/lib"; then
14076 if test -n "$GCC"; then
14077 case $host_os in
14078 linux*) haveit=yes;;
14079 esac
14080 fi
14081 fi
14082 if test -z "$haveit"; then
14083 haveit=
14084 for x in $LDFLAGS $LIBICONV; do
14085
14086 acl_save_prefix="$prefix"
14087 prefix="$acl_final_prefix"
14088 acl_save_exec_prefix="$exec_prefix"
14089 exec_prefix="$acl_final_exec_prefix"
14090 eval x=\"$x\"
14091 exec_prefix="$acl_save_exec_prefix"
14092 prefix="$acl_save_prefix"
14093
14094 if test "X$x" = "X-L$additional_libdir"; then
14095 haveit=yes
14096 break
14097 fi
14098 done
14099 if test -z "$haveit"; then
14100 if test -d "$additional_libdir"; then
14101 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
14102 fi
14103 fi
14104 haveit=
14105 for x in $LDFLAGS $LTLIBICONV; do
14106
14107 acl_save_prefix="$prefix"
14108 prefix="$acl_final_prefix"
14109 acl_save_exec_prefix="$exec_prefix"
14110 exec_prefix="$acl_final_exec_prefix"
14111 eval x=\"$x\"
14112 exec_prefix="$acl_save_exec_prefix"
14113 prefix="$acl_save_prefix"
14114
14115 if test "X$x" = "X-L$additional_libdir"; then
14116 haveit=yes
14117 break
14118 fi
14119 done
14120 if test -z "$haveit"; then
14121 if test -d "$additional_libdir"; then
14122 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
14123 fi
14124 fi
14125 fi
14126 fi
14127 ;;
14128 -R*)
14129 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14130 if test "$enable_rpath" != no; then
14131 haveit=
14132 for x in $rpathdirs; do
14133 if test "X$x" = "X$dir"; then
14134 haveit=yes
14135 break
14136 fi
14137 done
14138 if test -z "$haveit"; then
14139 rpathdirs="$rpathdirs $dir"
14140 fi
14141 haveit=
14142 for x in $ltrpathdirs; do
14143 if test "X$x" = "X$dir"; then
14144 haveit=yes
14145 break
14146 fi
14147 done
14148 if test -z "$haveit"; then
14149 ltrpathdirs="$ltrpathdirs $dir"
14150 fi
14151 fi
14152 ;;
14153 -l*)
14154 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14155 ;;
14156 *.la)
14157 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14158 ;;
14159 *)
14160 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
14161 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14162 ;;
14163 esac
14164 done
14165 fi
14166 else
14167 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14168 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14169 fi
14170 fi
14171 fi
14172 done
14173 done
14174 if test "X$rpathdirs" != "X"; then
14175 if test -n "$hardcode_libdir_separator"; then
14176 alldirs=
14177 for found_dir in $rpathdirs; do
14178 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14179 done
14180 acl_save_libdir="$libdir"
14181 libdir="$alldirs"
14182 eval flag=\"$hardcode_libdir_flag_spec\"
14183 libdir="$acl_save_libdir"
14184 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14185 else
14186 for found_dir in $rpathdirs; do
14187 acl_save_libdir="$libdir"
14188 libdir="$found_dir"
14189 eval flag=\"$hardcode_libdir_flag_spec\"
14190 libdir="$acl_save_libdir"
14191 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14192 done
14193 fi
14194 fi
14195 if test "X$ltrpathdirs" != "X"; then
14196 for found_dir in $ltrpathdirs; do
14197 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14198 done
14199 fi
14200
14201
14202
14203
14204
14205
14206
14207 am_save_CPPFLAGS="$CPPFLAGS"
14208
14209 for element in $INCICONV; do
14210 haveit=
14211 for x in $CPPFLAGS; do
14212
14213 acl_save_prefix="$prefix"
14214 prefix="$acl_final_prefix"
14215 acl_save_exec_prefix="$exec_prefix"
14216 exec_prefix="$acl_final_exec_prefix"
14217 eval x=\"$x\"
14218 exec_prefix="$acl_save_exec_prefix"
14219 prefix="$acl_save_prefix"
14220
14221 if test "X$x" = "X$element"; then
14222 haveit=yes
14223 break
14224 fi
14225 done
14226 if test -z "$haveit"; then
14227 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14228 fi
14229 done
14230
14231
14232 echo "$as_me:$LINENO: checking for iconv" >&5
14233 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
14234 if test "${am_cv_func_iconv+set}" = set; then
14235 echo $ECHO_N "(cached) $ECHO_C" >&6
14236 else
14237
14238 am_cv_func_iconv="no, consider installing GNU libiconv"
14239 am_cv_lib_iconv=no
14240 cat >conftest.$ac_ext <<_ACEOF
14241 /* confdefs.h. */
14242 _ACEOF
14243 cat confdefs.h >>conftest.$ac_ext
14244 cat >>conftest.$ac_ext <<_ACEOF
14245 /* end confdefs.h. */
14246 #include <stdlib.h>
14247 #include <iconv.h>
14248 int
14249 main ()
14250 {
14251 iconv_t cd = iconv_open("","");
14252 iconv(cd,NULL,NULL,NULL,NULL);
14253 iconv_close(cd);
14254 ;
14255 return 0;
14256 }
14257 _ACEOF
14258 rm -f conftest.$ac_objext conftest$ac_exeext
14259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14260 (eval $ac_link) 2>conftest.er1
14261 ac_status=$?
14262 grep -v '^ *+' conftest.er1 >conftest.err
14263 rm -f conftest.er1
14264 cat conftest.err >&5
14265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14266 (exit $ac_status); } &&
14267 { ac_try='test -z "$ac_c_werror_flag"
14268 || test ! -s conftest.err'
14269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14270 (eval $ac_try) 2>&5
14271 ac_status=$?
14272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14273 (exit $ac_status); }; } &&
14274 { ac_try='test -s conftest$ac_exeext'
14275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14276 (eval $ac_try) 2>&5
14277 ac_status=$?
14278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14279 (exit $ac_status); }; }; then
14280 am_cv_func_iconv=yes
14281 else
14282 echo "$as_me: failed program was:" >&5
14283 sed 's/^/| /' conftest.$ac_ext >&5
14284
14285 fi
14286 rm -f conftest.err conftest.$ac_objext \
14287 conftest$ac_exeext conftest.$ac_ext
14288 if test "$am_cv_func_iconv" != yes; then
14289 am_save_LIBS="$LIBS"
14290 LIBS="$LIBS $LIBICONV"
14291 cat >conftest.$ac_ext <<_ACEOF
14292 /* confdefs.h. */
14293 _ACEOF
14294 cat confdefs.h >>conftest.$ac_ext
14295 cat >>conftest.$ac_ext <<_ACEOF
14296 /* end confdefs.h. */
14297 #include <stdlib.h>
14298 #include <iconv.h>
14299 int
14300 main ()
14301 {
14302 iconv_t cd = iconv_open("","");
14303 iconv(cd,NULL,NULL,NULL,NULL);
14304 iconv_close(cd);
14305 ;
14306 return 0;
14307 }
14308 _ACEOF
14309 rm -f conftest.$ac_objext conftest$ac_exeext
14310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14311 (eval $ac_link) 2>conftest.er1
14312 ac_status=$?
14313 grep -v '^ *+' conftest.er1 >conftest.err
14314 rm -f conftest.er1
14315 cat conftest.err >&5
14316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14317 (exit $ac_status); } &&
14318 { ac_try='test -z "$ac_c_werror_flag"
14319 || test ! -s conftest.err'
14320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14321 (eval $ac_try) 2>&5
14322 ac_status=$?
14323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14324 (exit $ac_status); }; } &&
14325 { ac_try='test -s conftest$ac_exeext'
14326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14327 (eval $ac_try) 2>&5
14328 ac_status=$?
14329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14330 (exit $ac_status); }; }; then
14331 am_cv_lib_iconv=yes
14332 am_cv_func_iconv=yes
14333 else
14334 echo "$as_me: failed program was:" >&5
14335 sed 's/^/| /' conftest.$ac_ext >&5
14336
14337 fi
14338 rm -f conftest.err conftest.$ac_objext \
14339 conftest$ac_exeext conftest.$ac_ext
14340 LIBS="$am_save_LIBS"
14341 fi
14342
14343 fi
14344 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
14345 echo "${ECHO_T}$am_cv_func_iconv" >&6
14346 if test "$am_cv_func_iconv" = yes; then
14347
14348 cat >>confdefs.h <<\_ACEOF
14349 #define HAVE_ICONV 1
14350 _ACEOF
14351
14352 fi
14353 if test "$am_cv_lib_iconv" = yes; then
14354 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
14355 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
14356 echo "$as_me:$LINENO: result: $LIBICONV" >&5
14357 echo "${ECHO_T}$LIBICONV" >&6
14358 else
14359 CPPFLAGS="$am_save_CPPFLAGS"
14360 LIBICONV=
14361 LTLIBICONV=
14362 fi
14363
14364
14365
14366 if test "$am_cv_func_iconv" = yes; then
14367 echo "$as_me:$LINENO: checking for iconv declaration" >&5
14368 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
14369 if test "${am_cv_proto_iconv+set}" = set; then
14370 echo $ECHO_N "(cached) $ECHO_C" >&6
14371 else
14372
14373 cat >conftest.$ac_ext <<_ACEOF
14374 /* confdefs.h. */
14375 _ACEOF
14376 cat confdefs.h >>conftest.$ac_ext
14377 cat >>conftest.$ac_ext <<_ACEOF
14378 /* end confdefs.h. */
14379
14380 #include <stdlib.h>
14381 #include <iconv.h>
14382 extern
14383 #ifdef __cplusplus
14384 "C"
14385 #endif
14386 #if defined(__STDC__) || defined(__cplusplus)
14387 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
14388 #else
14389 size_t iconv();
14390 #endif
14391
14392 int
14393 main ()
14394 {
14395
14396 ;
14397 return 0;
14398 }
14399 _ACEOF
14400 rm -f conftest.$ac_objext
14401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14402 (eval $ac_compile) 2>conftest.er1
14403 ac_status=$?
14404 grep -v '^ *+' conftest.er1 >conftest.err
14405 rm -f conftest.er1
14406 cat conftest.err >&5
14407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408 (exit $ac_status); } &&
14409 { ac_try='test -z "$ac_c_werror_flag"
14410 || test ! -s conftest.err'
14411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14412 (eval $ac_try) 2>&5
14413 ac_status=$?
14414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14415 (exit $ac_status); }; } &&
14416 { ac_try='test -s conftest.$ac_objext'
14417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14418 (eval $ac_try) 2>&5
14419 ac_status=$?
14420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14421 (exit $ac_status); }; }; then
14422 am_cv_proto_iconv_arg1=""
14423 else
14424 echo "$as_me: failed program was:" >&5
14425 sed 's/^/| /' conftest.$ac_ext >&5
14426
14427 am_cv_proto_iconv_arg1="const"
14428 fi
14429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14430 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
14431 fi
14432
14433 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
14434 echo "$as_me:$LINENO: result: ${ac_t:-
14435 }$am_cv_proto_iconv" >&5
14436 echo "${ECHO_T}${ac_t:-
14437 }$am_cv_proto_iconv" >&6
14438
14439 cat >>confdefs.h <<_ACEOF
14440 #define ICONV_CONST $am_cv_proto_iconv_arg1
14441 _ACEOF
14442
14443 fi
14444
14445
14446 all_targets=false
14447 BUILD_NLMCONV=
14448 NLMCONV_DEFS=
14449 BUILD_SRCONV=
14450 BUILD_DLLTOOL=
14451 DLLTOOL_DEFS=
14452 DLLTOOL_DEFAULT=
14453 BUILD_WINDRES=
14454 BUILD_WINDMC=
14455 BUILD_DLLWRAP=
14456 BUILD_MISC=
14457 BUILD_INSTALL_MISC=
14458 OBJDUMP_DEFS=
14459
14460 for targ in $target $canon_targets
14461 do
14462 if test "x$targ" = "xall"; then
14463 all_targets=true
14464 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
14465 BUILD_SRCONV='$(SRCONV_PROG)'
14466 NLMCONV_DEFS="-DNLMCONV_I386 -DNLMCONV_ALPHA -DNLMCONV_POWERPC -DNLMCONV_SPARC"
14467 BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
14468 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14469 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14470 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14471 if test -z "$DLLTOOL_DEFAULT"; then
14472 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
14473 fi
14474 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
14475 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
14476 else
14477 case $targ in
14478 i[3-7]86*-*-netware*)
14479 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
14480 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_I386"
14481 ;;
14482 alpha*-*-netware*)
14483 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
14484 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_ALPHA"
14485 ;;
14486 powerpc*-*-netware*)
14487 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
14488 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_POWERPC"
14489 ;;
14490 sparc*-*-netware*)
14491 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
14492 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_SPARC"
14493 ;;
14494 esac
14495 case $targ in
14496 *-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;;
14497 esac
14498 case $targ in
14499 arm-epoc-pe*)
14500 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14501 if test -z "$DLLTOOL_DEFAULT"; then
14502 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_EPOC"
14503 fi
14504 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_EPOC -DDLLTOOL_ARM"
14505 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14506 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14507 ;;
14508 arm-wince-pe* | arm-*-wince)
14509 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14510 if test -z "$DLLTOOL_DEFAULT"; then
14511 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_WINCE"
14512 fi
14513 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_WINCE -DDLLTOOL_ARM"
14514 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14515 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14516 ;;
14517 arm-*-pe*)
14518 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14519 if test -z "$DLLTOOL_DEFAULT"; then
14520 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
14521 fi
14522 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
14523 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14524 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14525 ;;
14526 thumb-*-pe*)
14527 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14528 if test -z "$DLLTOOL_DEFAULT"; then
14529 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
14530 fi
14531 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
14532 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14533 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14534 ;;
14535 x86_64-*-mingw*)
14536 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14537 if test -z "$DLLTOOL_DEFAULT"; then
14538 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MX86_64"
14539 fi
14540 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MX86_64"
14541 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14542 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14543 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
14544 ;;
14545 i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32** | i[3-7]86-*-netbsdpe*)
14546 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14547 if test -z "$DLLTOOL_DEFAULT"; then
14548 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
14549 fi
14550 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
14551 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14552 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14553 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
14554 ;;
14555 i[3-7]86-*-interix)
14556 BUILD_DLLTOOL='$(DLLTOOL_PROG)'
14557 if test -z "$DLLTOOL_DEFAULT"; then
14558 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
14559 fi
14560 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
14561 ;;
14562 powerpc*-aix5.[01])
14563 ;;
14564 powerpc*-aix5.*)
14565 OBJDUMP_DEFS="-DAIX_WEAK_SUPPORT"
14566 ;;
14567 powerpc*-*-pe* | powerpc*-*-cygwin*)
14568 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14569 if test -z "$DLLTOOL_DEFAULT"; then
14570 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_PPC"
14571 fi
14572 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_PPC"
14573 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14574 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14575 ;;
14576 powerpc*-*-linux* | powerpc*-*-elf* | powerpc*-*-eabi*)
14577 BUILD_INSTALL_MISC="${BUILD_INSTALL_MISC} embedspu"
14578 ;;
14579 sh*-*-pe)
14580 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14581 if test -z "$DLLTOOL_DEFAULT"; then
14582 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_SH"
14583 fi
14584 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH"
14585 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14586 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14587 ;;
14588 spu-*-*)
14589 BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
14590 ;;
14591 mips*-*-pe)
14592 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14593 if test -z "$DLLTOOL_DEFAULT"; then
14594 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MIPS"
14595 fi
14596 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS"
14597 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14598 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14599 ;;
14600 mcore-*-pe)
14601 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14602 if test -z "$DLLTOOL_DEFAULT"; then
14603 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE"
14604 fi
14605 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
14606 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14607 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14608 ;;
14609 mcore-*-elf)
14610 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14611 if test -z "$DLLTOOL_DEFAULT"; then
14612 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE_ELF"
14613 fi
14614 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
14615 ;;
14616 mep-*)
14617 OBJDUMP_DEFS="-DSKIP_ZEROES=256 -DSKIP_ZEROES_AT_END=0"
14618 ;;
14619 esac
14620 fi
14621 done
14622
14623 DLLTOOL_DEFS="$DLLTOOL_DEFS $DLLTOOL_DEFAULT"
14624
14625 if test "${with_windres+set}" = set; then
14626 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14627 fi
14628
14629 if test "${with_windmc+set}" = set; then
14630 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14631 fi
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646 cat >>confdefs.h <<_ACEOF
14647 #define TARGET "${target}"
14648 _ACEOF
14649
14650
14651 targ=$target
14652 . $srcdir/../bfd/config.bfd
14653 if test "x$targ_underscore" = "xyes"; then
14654 UNDERSCORE=1
14655 else
14656 UNDERSCORE=0
14657 fi
14658
14659 cat >>confdefs.h <<_ACEOF
14660 #define TARGET_PREPENDS_UNDERSCORE $UNDERSCORE
14661 _ACEOF
14662
14663
14664 # Emulation
14665 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
14666 do
14667 # Canonicalize the secondary target names.
14668 result=`$ac_config_sub $targ_alias 2>/dev/null`
14669 if test -n "$result"; then
14670 targ=$result
14671 else
14672 targ=$targ_alias
14673 fi
14674
14675 . ${srcdir}/configure.tgt
14676
14677 EMULATION=$targ_emul
14678 EMULATION_VECTOR=$targ_emul_vector
14679 done
14680
14681
14682
14683
14684 # Required for html and install-html
14685
14686
14687
14688
14689 ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
14690 cat >confcache <<\_ACEOF
14691 # This file is a shell script that caches the results of configure
14692 # tests run on this system so they can be shared between configure
14693 # scripts and configure runs, see configure's option --config-cache.
14694 # It is not useful on other systems. If it contains results you don't
14695 # want to keep, you may remove or edit it.
14696 #
14697 # config.status only pays attention to the cache file if you give it
14698 # the --recheck option to rerun configure.
14699 #
14700 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14701 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14702 # following values.
14703
14704 _ACEOF
14705
14706 # The following way of writing the cache mishandles newlines in values,
14707 # but we know of no workaround that is simple, portable, and efficient.
14708 # So, don't put newlines in cache variables' values.
14709 # Ultrix sh set writes to stderr and can't be redirected directly,
14710 # and sets the high bit in the cache file unless we assign to the vars.
14711 {
14712 (set) 2>&1 |
14713 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14714 *ac_space=\ *)
14715 # `set' does not quote correctly, so add quotes (double-quote
14716 # substitution turns \\\\ into \\, and sed turns \\ into \).
14717 sed -n \
14718 "s/'/'\\\\''/g;
14719 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14720 ;;
14721 *)
14722 # `set' quotes correctly as required by POSIX, so do not add quotes.
14723 sed -n \
14724 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
14725 ;;
14726 esac;
14727 } |
14728 sed '
14729 t clear
14730 : clear
14731 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14732 t end
14733 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14734 : end' >>confcache
14735 if diff $cache_file confcache >/dev/null 2>&1; then :; else
14736 if test -w $cache_file; then
14737 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
14738 cat confcache >$cache_file
14739 else
14740 echo "not updating unwritable cache $cache_file"
14741 fi
14742 fi
14743 rm -f confcache
14744
14745 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14746 # Let make expand exec_prefix.
14747 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14748
14749 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14750 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14751 # trailing colons and then remove the whole line if VPATH becomes empty
14752 # (actually we leave an empty line to preserve line numbers).
14753 if test "x$srcdir" = x.; then
14754 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14755 s/:*\$(srcdir):*/:/;
14756 s/:*\${srcdir}:*/:/;
14757 s/:*@srcdir@:*/:/;
14758 s/^\([^=]*=[ ]*\):*/\1/;
14759 s/:*$//;
14760 s/^[^=]*=[ ]*$//;
14761 }'
14762 fi
14763
14764 DEFS=-DHAVE_CONFIG_H
14765
14766 ac_libobjs=
14767 ac_ltlibobjs=
14768 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14769 # 1. Remove the extension, and $U if already installed.
14770 ac_i=`echo "$ac_i" |
14771 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
14772 # 2. Add them.
14773 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
14774 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
14775 done
14776 LIBOBJS=$ac_libobjs
14777
14778 LTLIBOBJS=$ac_ltlibobjs
14779
14780
14781 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14782 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
14783 Usually this means the macro was only invoked conditionally." >&5
14784 echo "$as_me: error: conditional \"AMDEP\" was never defined.
14785 Usually this means the macro was only invoked conditionally." >&2;}
14786 { (exit 1); exit 1; }; }
14787 fi
14788 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14789 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
14790 Usually this means the macro was only invoked conditionally." >&5
14791 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
14792 Usually this means the macro was only invoked conditionally." >&2;}
14793 { (exit 1); exit 1; }; }
14794 fi
14795 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14796 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
14797 Usually this means the macro was only invoked conditionally." >&5
14798 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
14799 Usually this means the macro was only invoked conditionally." >&2;}
14800 { (exit 1); exit 1; }; }
14801 fi
14802 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
14803 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
14804 Usually this means the macro was only invoked conditionally." >&5
14805 echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
14806 Usually this means the macro was only invoked conditionally." >&2;}
14807 { (exit 1); exit 1; }; }
14808 fi
14809
14810 : ${CONFIG_STATUS=./config.status}
14811 ac_clean_files_save=$ac_clean_files
14812 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14813 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14814 echo "$as_me: creating $CONFIG_STATUS" >&6;}
14815 cat >$CONFIG_STATUS <<_ACEOF
14816 #! $SHELL
14817 # Generated by $as_me.
14818 # Run this file to recreate the current configuration.
14819 # Compiler output produced by configure, useful for debugging
14820 # configure, is in config.log if it exists.
14821
14822 debug=false
14823 ac_cs_recheck=false
14824 ac_cs_silent=false
14825 SHELL=\${CONFIG_SHELL-$SHELL}
14826 _ACEOF
14827
14828 cat >>$CONFIG_STATUS <<\_ACEOF
14829 ## --------------------- ##
14830 ## M4sh Initialization. ##
14831 ## --------------------- ##
14832
14833 # Be Bourne compatible
14834 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14835 emulate sh
14836 NULLCMD=:
14837 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14838 # is contrary to our usage. Disable this feature.
14839 alias -g '${1+"$@"}'='"$@"'
14840 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
14841 set -o posix
14842 fi
14843 DUALCASE=1; export DUALCASE # for MKS sh
14844
14845 # Support unset when possible.
14846 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14847 as_unset=unset
14848 else
14849 as_unset=false
14850 fi
14851
14852
14853 # Work around bugs in pre-3.0 UWIN ksh.
14854 $as_unset ENV MAIL MAILPATH
14855 PS1='$ '
14856 PS2='> '
14857 PS4='+ '
14858
14859 # NLS nuisances.
14860 for as_var in \
14861 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14862 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14863 LC_TELEPHONE LC_TIME
14864 do
14865 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14866 eval $as_var=C; export $as_var
14867 else
14868 $as_unset $as_var
14869 fi
14870 done
14871
14872 # Required to use basename.
14873 if expr a : '\(a\)' >/dev/null 2>&1; then
14874 as_expr=expr
14875 else
14876 as_expr=false
14877 fi
14878
14879 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
14880 as_basename=basename
14881 else
14882 as_basename=false
14883 fi
14884
14885
14886 # Name of the executable.
14887 as_me=`$as_basename "$0" ||
14888 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14889 X"$0" : 'X\(//\)$' \| \
14890 X"$0" : 'X\(/\)$' \| \
14891 . : '\(.\)' 2>/dev/null ||
14892 echo X/"$0" |
14893 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14894 /^X\/\(\/\/\)$/{ s//\1/; q; }
14895 /^X\/\(\/\).*/{ s//\1/; q; }
14896 s/.*/./; q'`
14897
14898
14899 # PATH needs CR, and LINENO needs CR and PATH.
14900 # Avoid depending upon Character Ranges.
14901 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14902 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14903 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14904 as_cr_digits='0123456789'
14905 as_cr_alnum=$as_cr_Letters$as_cr_digits
14906
14907 # The user is always right.
14908 if test "${PATH_SEPARATOR+set}" != set; then
14909 echo "#! /bin/sh" >conf$$.sh
14910 echo "exit 0" >>conf$$.sh
14911 chmod +x conf$$.sh
14912 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14913 PATH_SEPARATOR=';'
14914 else
14915 PATH_SEPARATOR=:
14916 fi
14917 rm -f conf$$.sh
14918 fi
14919
14920
14921 as_lineno_1=$LINENO
14922 as_lineno_2=$LINENO
14923 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14924 test "x$as_lineno_1" != "x$as_lineno_2" &&
14925 test "x$as_lineno_3" = "x$as_lineno_2" || {
14926 # Find who we are. Look in the path if we contain no path at all
14927 # relative or not.
14928 case $0 in
14929 *[\\/]* ) as_myself=$0 ;;
14930 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14931 for as_dir in $PATH
14932 do
14933 IFS=$as_save_IFS
14934 test -z "$as_dir" && as_dir=.
14935 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14936 done
14937
14938 ;;
14939 esac
14940 # We did not find ourselves, most probably we were run as `sh COMMAND'
14941 # in which case we are not to be found in the path.
14942 if test "x$as_myself" = x; then
14943 as_myself=$0
14944 fi
14945 if test ! -f "$as_myself"; then
14946 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
14947 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
14948 { (exit 1); exit 1; }; }
14949 fi
14950 case $CONFIG_SHELL in
14951 '')
14952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14953 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
14954 do
14955 IFS=$as_save_IFS
14956 test -z "$as_dir" && as_dir=.
14957 for as_base in sh bash ksh sh5; do
14958 case $as_dir in
14959 /*)
14960 if ("$as_dir/$as_base" -c '
14961 as_lineno_1=$LINENO
14962 as_lineno_2=$LINENO
14963 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14964 test "x$as_lineno_1" != "x$as_lineno_2" &&
14965 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
14966 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
14967 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
14968 CONFIG_SHELL=$as_dir/$as_base
14969 export CONFIG_SHELL
14970 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
14971 fi;;
14972 esac
14973 done
14974 done
14975 ;;
14976 esac
14977
14978 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14979 # uniformly replaced by the line number. The first 'sed' inserts a
14980 # line-number line before each line; the second 'sed' does the real
14981 # work. The second script uses 'N' to pair each line-number line
14982 # with the numbered line, and appends trailing '-' during
14983 # substitution so that $LINENO is not a special case at line end.
14984 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14985 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
14986 sed '=' <$as_myself |
14987 sed '
14988 N
14989 s,$,-,
14990 : loop
14991 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
14992 t loop
14993 s,-$,,
14994 s,^['$as_cr_digits']*\n,,
14995 ' >$as_me.lineno &&
14996 chmod +x $as_me.lineno ||
14997 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
14998 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
14999 { (exit 1); exit 1; }; }
15000
15001 # Don't try to exec as it changes $[0], causing all sort of problems
15002 # (the dirname of $[0] is not the place where we might find the
15003 # original and so on. Autoconf is especially sensible to this).
15004 . ./$as_me.lineno
15005 # Exit status is that of the last command.
15006 exit
15007 }
15008
15009
15010 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15011 *c*,-n*) ECHO_N= ECHO_C='
15012 ' ECHO_T=' ' ;;
15013 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15014 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
15015 esac
15016
15017 if expr a : '\(a\)' >/dev/null 2>&1; then
15018 as_expr=expr
15019 else
15020 as_expr=false
15021 fi
15022
15023 rm -f conf$$ conf$$.exe conf$$.file
15024 echo >conf$$.file
15025 if ln -s conf$$.file conf$$ 2>/dev/null; then
15026 # We could just check for DJGPP; but this test a) works b) is more generic
15027 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15028 if test -f conf$$.exe; then
15029 # Don't use ln at all; we don't have any links
15030 as_ln_s='cp -p'
15031 else
15032 as_ln_s='ln -s'
15033 fi
15034 elif ln conf$$.file conf$$ 2>/dev/null; then
15035 as_ln_s=ln
15036 else
15037 as_ln_s='cp -p'
15038 fi
15039 rm -f conf$$ conf$$.exe conf$$.file
15040
15041 if mkdir -p . 2>/dev/null; then
15042 as_mkdir_p=:
15043 else
15044 test -d ./-p && rmdir ./-p
15045 as_mkdir_p=false
15046 fi
15047
15048 as_executable_p="test -f"
15049
15050 # Sed expression to map a string onto a valid CPP name.
15051 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15052
15053 # Sed expression to map a string onto a valid variable name.
15054 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15055
15056
15057 # IFS
15058 # We need space, tab and new line, in precisely that order.
15059 as_nl='
15060 '
15061 IFS=" $as_nl"
15062
15063 # CDPATH.
15064 $as_unset CDPATH
15065
15066 exec 6>&1
15067
15068 # Open the log real soon, to keep \$[0] and so on meaningful, and to
15069 # report actual input values of CONFIG_FILES etc. instead of their
15070 # values after options handling. Logging --version etc. is OK.
15071 exec 5>>config.log
15072 {
15073 echo
15074 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15075 ## Running $as_me. ##
15076 _ASBOX
15077 } >&5
15078 cat >&5 <<_CSEOF
15079
15080 This file was extended by $as_me, which was
15081 generated by GNU Autoconf 2.59. Invocation command line was
15082
15083 CONFIG_FILES = $CONFIG_FILES
15084 CONFIG_HEADERS = $CONFIG_HEADERS
15085 CONFIG_LINKS = $CONFIG_LINKS
15086 CONFIG_COMMANDS = $CONFIG_COMMANDS
15087 $ $0 $@
15088
15089 _CSEOF
15090 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15091 echo >&5
15092 _ACEOF
15093
15094 # Files that config.status was made for.
15095 if test -n "$ac_config_files"; then
15096 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15097 fi
15098
15099 if test -n "$ac_config_headers"; then
15100 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15101 fi
15102
15103 if test -n "$ac_config_links"; then
15104 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15105 fi
15106
15107 if test -n "$ac_config_commands"; then
15108 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15109 fi
15110
15111 cat >>$CONFIG_STATUS <<\_ACEOF
15112
15113 ac_cs_usage="\
15114 \`$as_me' instantiates files from templates according to the
15115 current configuration.
15116
15117 Usage: $0 [OPTIONS] [FILE]...
15118
15119 -h, --help print this help, then exit
15120 -V, --version print version number, then exit
15121 -q, --quiet do not print progress messages
15122 -d, --debug don't remove temporary files
15123 --recheck update $as_me by reconfiguring in the same conditions
15124 --file=FILE[:TEMPLATE]
15125 instantiate the configuration file FILE
15126 --header=FILE[:TEMPLATE]
15127 instantiate the configuration header FILE
15128
15129 Configuration files:
15130 $config_files
15131
15132 Configuration headers:
15133 $config_headers
15134
15135 Configuration commands:
15136 $config_commands
15137
15138 Report bugs to <bug-autoconf@gnu.org>."
15139 _ACEOF
15140
15141 cat >>$CONFIG_STATUS <<_ACEOF
15142 ac_cs_version="\\
15143 config.status
15144 configured by $0, generated by GNU Autoconf 2.59,
15145 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15146
15147 Copyright (C) 2003 Free Software Foundation, Inc.
15148 This config.status script is free software; the Free Software Foundation
15149 gives unlimited permission to copy, distribute and modify it."
15150 srcdir=$srcdir
15151 INSTALL="$INSTALL"
15152 _ACEOF
15153
15154 cat >>$CONFIG_STATUS <<\_ACEOF
15155 # If no file are specified by the user, then we need to provide default
15156 # value. By we need to know if files were specified by the user.
15157 ac_need_defaults=:
15158 while test $# != 0
15159 do
15160 case $1 in
15161 --*=*)
15162 ac_option=`expr "x$1" : 'x\([^=]*\)='`
15163 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15164 ac_shift=:
15165 ;;
15166 -*)
15167 ac_option=$1
15168 ac_optarg=$2
15169 ac_shift=shift
15170 ;;
15171 *) # This is not an option, so the user has probably given explicit
15172 # arguments.
15173 ac_option=$1
15174 ac_need_defaults=false;;
15175 esac
15176
15177 case $ac_option in
15178 # Handling of the options.
15179 _ACEOF
15180 cat >>$CONFIG_STATUS <<\_ACEOF
15181 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15182 ac_cs_recheck=: ;;
15183 --version | --vers* | -V )
15184 echo "$ac_cs_version"; exit 0 ;;
15185 --he | --h)
15186 # Conflict between --help and --header
15187 { { echo "$as_me:$LINENO: error: ambiguous option: $1
15188 Try \`$0 --help' for more information." >&5
15189 echo "$as_me: error: ambiguous option: $1
15190 Try \`$0 --help' for more information." >&2;}
15191 { (exit 1); exit 1; }; };;
15192 --help | --hel | -h )
15193 echo "$ac_cs_usage"; exit 0 ;;
15194 --debug | --d* | -d )
15195 debug=: ;;
15196 --file | --fil | --fi | --f )
15197 $ac_shift
15198 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15199 ac_need_defaults=false;;
15200 --header | --heade | --head | --hea )
15201 $ac_shift
15202 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15203 ac_need_defaults=false;;
15204 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15205 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15206 ac_cs_silent=: ;;
15207
15208 # This is an error.
15209 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15210 Try \`$0 --help' for more information." >&5
15211 echo "$as_me: error: unrecognized option: $1
15212 Try \`$0 --help' for more information." >&2;}
15213 { (exit 1); exit 1; }; } ;;
15214
15215 *) ac_config_targets="$ac_config_targets $1" ;;
15216
15217 esac
15218 shift
15219 done
15220
15221 ac_configure_extra_args=
15222
15223 if $ac_cs_silent; then
15224 exec 6>/dev/null
15225 ac_configure_extra_args="$ac_configure_extra_args --silent"
15226 fi
15227
15228 _ACEOF
15229 cat >>$CONFIG_STATUS <<_ACEOF
15230 if \$ac_cs_recheck; then
15231 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15232 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15233 fi
15234
15235 _ACEOF
15236
15237 cat >>$CONFIG_STATUS <<_ACEOF
15238 #
15239 # INIT-COMMANDS section.
15240 #
15241
15242 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15243
15244
15245 # The HP-UX ksh and POSIX shell print the target directory to stdout
15246 # if CDPATH is set.
15247 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15248
15249 sed_quote_subst='$sed_quote_subst'
15250 double_quote_subst='$double_quote_subst'
15251 delay_variable_subst='$delay_variable_subst'
15252 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
15253 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
15254 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
15255 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
15256 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
15257 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
15258 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
15259 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
15260 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
15261 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
15262 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
15263 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
15264 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
15265 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
15266 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
15267 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
15268 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
15269 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
15270 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
15271 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
15272 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
15273 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
15274 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
15275 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
15276 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
15277 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
15278 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
15279 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15280 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
15281 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
15282 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
15283 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15284 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
15285 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
15286 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15287 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15288 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15289 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
15290 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15291 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
15292 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
15293 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
15294 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
15295 lt_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"`'
15296 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
15297 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
15298 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
15299 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
15300 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
15301 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
15302 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
15303 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
15304 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
15305 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
15306 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
15307 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15308 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15309 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
15310 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
15311 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15312 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15313 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
15314 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15315 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15316 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15317 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15318 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15319 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15320 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
15321 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15322 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15323 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15324 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
15325 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
15326 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
15327 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
15328 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
15329 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15330 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
15331 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
15332 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
15333 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
15334 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
15335 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15336 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15337 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15338 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15339 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
15340 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
15341 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15342 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
15343 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
15344 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15345 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15346 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
15347 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15348 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
15349 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15350 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15351 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15352 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15353 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
15354 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
15355 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15356 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15357 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
15358 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
15359 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
15360 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
15361 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
15362 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
15363
15364 LTCC='$LTCC'
15365 LTCFLAGS='$LTCFLAGS'
15366 compiler='$compiler_DEFAULT'
15367
15368 # Quote evaled strings.
15369 for var in SED \
15370 GREP \
15371 EGREP \
15372 FGREP \
15373 LD \
15374 NM \
15375 LN_S \
15376 lt_SP2NL \
15377 lt_NL2SP \
15378 reload_flag \
15379 deplibs_check_method \
15380 file_magic_cmd \
15381 AR \
15382 AR_FLAGS \
15383 STRIP \
15384 RANLIB \
15385 CC \
15386 CFLAGS \
15387 compiler \
15388 lt_cv_sys_global_symbol_pipe \
15389 lt_cv_sys_global_symbol_to_cdecl \
15390 lt_cv_sys_global_symbol_to_c_name_address \
15391 SHELL \
15392 ECHO \
15393 lt_prog_compiler_no_builtin_flag \
15394 lt_prog_compiler_wl \
15395 lt_prog_compiler_pic \
15396 lt_prog_compiler_static \
15397 lt_cv_prog_compiler_c_o \
15398 need_locks \
15399 shrext_cmds \
15400 export_dynamic_flag_spec \
15401 whole_archive_flag_spec \
15402 compiler_needs_object \
15403 with_gnu_ld \
15404 allow_undefined_flag \
15405 no_undefined_flag \
15406 hardcode_libdir_flag_spec \
15407 hardcode_libdir_flag_spec_ld \
15408 hardcode_libdir_separator \
15409 fix_srcfile_path \
15410 exclude_expsyms \
15411 include_expsyms \
15412 file_list_spec \
15413 variables_saved_for_relink \
15414 libname_spec \
15415 library_names_spec \
15416 soname_spec \
15417 finish_eval \
15418 old_striplib \
15419 striplib; do
15420 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15421 *[\\\\\\\`\\"\\\$]*)
15422 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15423 ;;
15424 *)
15425 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15426 ;;
15427 esac
15428 done
15429
15430 # Double-quote double-evaled strings.
15431 for var in reload_cmds \
15432 old_postinstall_cmds \
15433 old_postuninstall_cmds \
15434 old_archive_cmds \
15435 extract_expsyms_cmds \
15436 old_archive_from_new_cmds \
15437 old_archive_from_expsyms_cmds \
15438 archive_cmds \
15439 archive_expsym_cmds \
15440 module_cmds \
15441 module_expsym_cmds \
15442 export_symbols_cmds \
15443 prelink_cmds \
15444 postinstall_cmds \
15445 postuninstall_cmds \
15446 finish_cmds \
15447 sys_lib_search_path_spec \
15448 sys_lib_dlsearch_path_spec; do
15449 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15450 *[\\\\\\\`\\"\\\$]*)
15451 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15452 ;;
15453 *)
15454 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15455 ;;
15456 esac
15457 done
15458
15459 # Fix-up fallback echo if it was mangled by the above quoting rules.
15460 case \$lt_ECHO in
15461 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
15462 ;;
15463 esac
15464
15465 ac_aux_dir='$ac_aux_dir'
15466 xsi_shell='$xsi_shell'
15467 lt_shell_append='$lt_shell_append'
15468
15469 # See if we are running on zsh, and set the options which allow our
15470 # commands through without removal of \ escapes INIT.
15471 if test -n "\${ZSH_VERSION+set}" ; then
15472 setopt NO_GLOB_SUBST
15473 fi
15474
15475
15476 PACKAGE='$PACKAGE'
15477 VERSION='$VERSION'
15478 TIMESTAMP='$TIMESTAMP'
15479 RM='$RM'
15480 ofile='$ofile'
15481
15482
15483
15484 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
15485 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
15486 # from automake.
15487 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15488 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15489 LINGUAS="${LINGUAS-%UNSET%}"
15490
15491
15492 _ACEOF
15493
15494
15495
15496 cat >>$CONFIG_STATUS <<\_ACEOF
15497 for ac_config_target in $ac_config_targets
15498 do
15499 case "$ac_config_target" in
15500 # Handling of arguments.
15501 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15502 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15503 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
15504 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15505 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15506 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15507 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
15508 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15509 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15510 { (exit 1); exit 1; }; };;
15511 esac
15512 done
15513
15514 # If the user did not use the arguments to specify the items to instantiate,
15515 # then the envvar interface is used. Set only those that are not.
15516 # We use the long form for the default assignment because of an extremely
15517 # bizarre bug on SunOS 4.1.3.
15518 if $ac_need_defaults; then
15519 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15520 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15521 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15522 fi
15523
15524 # Have a temporary directory for convenience. Make it in the build tree
15525 # simply because there is no reason to put it here, and in addition,
15526 # creating and moving files from /tmp can sometimes cause problems.
15527 # Create a temporary directory, and hook for its removal unless debugging.
15528 $debug ||
15529 {
15530 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15531 trap '{ (exit 1); exit 1; }' 1 2 13 15
15532 }
15533
15534 # Create a (secure) tmp directory for tmp files.
15535
15536 {
15537 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
15538 test -n "$tmp" && test -d "$tmp"
15539 } ||
15540 {
15541 tmp=./confstat$$-$RANDOM
15542 (umask 077 && mkdir $tmp)
15543 } ||
15544 {
15545 echo "$me: cannot create a temporary directory in ." >&2
15546 { (exit 1); exit 1; }
15547 }
15548
15549 _ACEOF
15550
15551 cat >>$CONFIG_STATUS <<_ACEOF
15552
15553 #
15554 # CONFIG_FILES section.
15555 #
15556
15557 # No need to generate the scripts if there are no CONFIG_FILES.
15558 # This happens for instance when ./config.status config.h
15559 if test -n "\$CONFIG_FILES"; then
15560 # Protect against being on the right side of a sed subst in config.status.
15561 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15562 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15563 s,@SHELL@,$SHELL,;t t
15564 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15565 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15566 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15567 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15568 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15569 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15570 s,@exec_prefix@,$exec_prefix,;t t
15571 s,@prefix@,$prefix,;t t
15572 s,@program_transform_name@,$program_transform_name,;t t
15573 s,@bindir@,$bindir,;t t
15574 s,@sbindir@,$sbindir,;t t
15575 s,@libexecdir@,$libexecdir,;t t
15576 s,@datadir@,$datadir,;t t
15577 s,@sysconfdir@,$sysconfdir,;t t
15578 s,@sharedstatedir@,$sharedstatedir,;t t
15579 s,@localstatedir@,$localstatedir,;t t
15580 s,@libdir@,$libdir,;t t
15581 s,@includedir@,$includedir,;t t
15582 s,@oldincludedir@,$oldincludedir,;t t
15583 s,@infodir@,$infodir,;t t
15584 s,@mandir@,$mandir,;t t
15585 s,@build_alias@,$build_alias,;t t
15586 s,@host_alias@,$host_alias,;t t
15587 s,@target_alias@,$target_alias,;t t
15588 s,@DEFS@,$DEFS,;t t
15589 s,@ECHO_C@,$ECHO_C,;t t
15590 s,@ECHO_N@,$ECHO_N,;t t
15591 s,@ECHO_T@,$ECHO_T,;t t
15592 s,@LIBS@,$LIBS,;t t
15593 s,@build@,$build,;t t
15594 s,@build_cpu@,$build_cpu,;t t
15595 s,@build_vendor@,$build_vendor,;t t
15596 s,@build_os@,$build_os,;t t
15597 s,@host@,$host,;t t
15598 s,@host_cpu@,$host_cpu,;t t
15599 s,@host_vendor@,$host_vendor,;t t
15600 s,@host_os@,$host_os,;t t
15601 s,@target@,$target,;t t
15602 s,@target_cpu@,$target_cpu,;t t
15603 s,@target_vendor@,$target_vendor,;t t
15604 s,@target_os@,$target_os,;t t
15605 s,@CC@,$CC,;t t
15606 s,@CFLAGS@,$CFLAGS,;t t
15607 s,@LDFLAGS@,$LDFLAGS,;t t
15608 s,@CPPFLAGS@,$CPPFLAGS,;t t
15609 s,@ac_ct_CC@,$ac_ct_CC,;t t
15610 s,@EXEEXT@,$EXEEXT,;t t
15611 s,@OBJEXT@,$OBJEXT,;t t
15612 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
15613 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
15614 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
15615 s,@CYGPATH_W@,$CYGPATH_W,;t t
15616 s,@PACKAGE@,$PACKAGE,;t t
15617 s,@VERSION@,$VERSION,;t t
15618 s,@ACLOCAL@,$ACLOCAL,;t t
15619 s,@AUTOCONF@,$AUTOCONF,;t t
15620 s,@AUTOMAKE@,$AUTOMAKE,;t t
15621 s,@AUTOHEADER@,$AUTOHEADER,;t t
15622 s,@MAKEINFO@,$MAKEINFO,;t t
15623 s,@install_sh@,$install_sh,;t t
15624 s,@STRIP@,$STRIP,;t t
15625 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
15626 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
15627 s,@mkdir_p@,$mkdir_p,;t t
15628 s,@AWK@,$AWK,;t t
15629 s,@SET_MAKE@,$SET_MAKE,;t t
15630 s,@am__leading_dot@,$am__leading_dot,;t t
15631 s,@AMTAR@,$AMTAR,;t t
15632 s,@am__tar@,$am__tar,;t t
15633 s,@am__untar@,$am__untar,;t t
15634 s,@DEPDIR@,$DEPDIR,;t t
15635 s,@am__include@,$am__include,;t t
15636 s,@am__quote@,$am__quote,;t t
15637 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
15638 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
15639 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
15640 s,@CCDEPMODE@,$CCDEPMODE,;t t
15641 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
15642 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
15643 s,@LIBTOOL@,$LIBTOOL,;t t
15644 s,@SED@,$SED,;t t
15645 s,@EGREP@,$EGREP,;t t
15646 s,@FGREP@,$FGREP,;t t
15647 s,@GREP@,$GREP,;t t
15648 s,@LD@,$LD,;t t
15649 s,@DUMPBIN@,$DUMPBIN,;t t
15650 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
15651 s,@NM@,$NM,;t t
15652 s,@LN_S@,$LN_S,;t t
15653 s,@AR@,$AR,;t t
15654 s,@ac_ct_AR@,$ac_ct_AR,;t t
15655 s,@RANLIB@,$RANLIB,;t t
15656 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
15657 s,@lt_ECHO@,$lt_ECHO,;t t
15658 s,@CPP@,$CPP,;t t
15659 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
15660 s,@NO_WERROR@,$NO_WERROR,;t t
15661 s,@YACC@,$YACC,;t t
15662 s,@LEX@,$LEX,;t t
15663 s,@LEXLIB@,$LEXLIB,;t t
15664 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
15665 s,@USE_NLS@,$USE_NLS,;t t
15666 s,@LIBINTL@,$LIBINTL,;t t
15667 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
15668 s,@INCINTL@,$INCINTL,;t t
15669 s,@XGETTEXT@,$XGETTEXT,;t t
15670 s,@GMSGFMT@,$GMSGFMT,;t t
15671 s,@POSUB@,$POSUB,;t t
15672 s,@CATALOGS@,$CATALOGS,;t t
15673 s,@DATADIRNAME@,$DATADIRNAME,;t t
15674 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
15675 s,@GENCAT@,$GENCAT,;t t
15676 s,@CATOBJEXT@,$CATOBJEXT,;t t
15677 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
15678 s,@MSGFMT@,$MSGFMT,;t t
15679 s,@MSGMERGE@,$MSGMERGE,;t t
15680 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
15681 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
15682 s,@MAINT@,$MAINT,;t t
15683 s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
15684 s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
15685 s,@HDEFINES@,$HDEFINES,;t t
15686 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
15687 s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
15688 s,@DEMANGLER_NAME@,$DEMANGLER_NAME,;t t
15689 s,@ALLOCA@,$ALLOCA,;t t
15690 s,@LIBICONV@,$LIBICONV,;t t
15691 s,@LTLIBICONV@,$LTLIBICONV,;t t
15692 s,@NLMCONV_DEFS@,$NLMCONV_DEFS,;t t
15693 s,@BUILD_NLMCONV@,$BUILD_NLMCONV,;t t
15694 s,@BUILD_SRCONV@,$BUILD_SRCONV,;t t
15695 s,@BUILD_DLLTOOL@,$BUILD_DLLTOOL,;t t
15696 s,@DLLTOOL_DEFS@,$DLLTOOL_DEFS,;t t
15697 s,@BUILD_WINDRES@,$BUILD_WINDRES,;t t
15698 s,@BUILD_WINDMC@,$BUILD_WINDMC,;t t
15699 s,@BUILD_DLLWRAP@,$BUILD_DLLWRAP,;t t
15700 s,@BUILD_MISC@,$BUILD_MISC,;t t
15701 s,@BUILD_INSTALL_MISC@,$BUILD_INSTALL_MISC,;t t
15702 s,@OBJDUMP_DEFS@,$OBJDUMP_DEFS,;t t
15703 s,@EMULATION@,$EMULATION,;t t
15704 s,@EMULATION_VECTOR@,$EMULATION_VECTOR,;t t
15705 s,@datarootdir@,$datarootdir,;t t
15706 s,@docdir@,$docdir,;t t
15707 s,@htmldir@,$htmldir,;t t
15708 s,@LIBOBJS@,$LIBOBJS,;t t
15709 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
15710 CEOF
15711
15712 _ACEOF
15713
15714 cat >>$CONFIG_STATUS <<\_ACEOF
15715 # Split the substitutions into bite-sized pieces for seds with
15716 # small command number limits, like on Digital OSF/1 and HP-UX.
15717 ac_max_sed_lines=48
15718 ac_sed_frag=1 # Number of current file.
15719 ac_beg=1 # First line for current file.
15720 ac_end=$ac_max_sed_lines # Line after last line for current file.
15721 ac_more_lines=:
15722 ac_sed_cmds=
15723 while $ac_more_lines; do
15724 if test $ac_beg -gt 1; then
15725 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15726 else
15727 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15728 fi
15729 if test ! -s $tmp/subs.frag; then
15730 ac_more_lines=false
15731 else
15732 # The purpose of the label and of the branching condition is to
15733 # speed up the sed processing (if there are no `@' at all, there
15734 # is no need to browse any of the substitutions).
15735 # These are the two extra sed commands mentioned above.
15736 (echo ':t
15737 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
15738 if test -z "$ac_sed_cmds"; then
15739 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
15740 else
15741 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
15742 fi
15743 ac_sed_frag=`expr $ac_sed_frag + 1`
15744 ac_beg=$ac_end
15745 ac_end=`expr $ac_end + $ac_max_sed_lines`
15746 fi
15747 done
15748 if test -z "$ac_sed_cmds"; then
15749 ac_sed_cmds=cat
15750 fi
15751 fi # test -n "$CONFIG_FILES"
15752
15753 _ACEOF
15754 cat >>$CONFIG_STATUS <<\_ACEOF
15755 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
15756 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15757 case $ac_file in
15758 - | *:- | *:-:* ) # input from stdin
15759 cat >$tmp/stdin
15760 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15761 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15762 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15763 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15764 * ) ac_file_in=$ac_file.in ;;
15765 esac
15766
15767 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
15768 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15769 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15770 X"$ac_file" : 'X\(//\)[^/]' \| \
15771 X"$ac_file" : 'X\(//\)$' \| \
15772 X"$ac_file" : 'X\(/\)' \| \
15773 . : '\(.\)' 2>/dev/null ||
15774 echo X"$ac_file" |
15775 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15776 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15777 /^X\(\/\/\)$/{ s//\1/; q; }
15778 /^X\(\/\).*/{ s//\1/; q; }
15779 s/.*/./; q'`
15780 { if $as_mkdir_p; then
15781 mkdir -p "$ac_dir"
15782 else
15783 as_dir="$ac_dir"
15784 as_dirs=
15785 while test ! -d "$as_dir"; do
15786 as_dirs="$as_dir $as_dirs"
15787 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15788 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15789 X"$as_dir" : 'X\(//\)[^/]' \| \
15790 X"$as_dir" : 'X\(//\)$' \| \
15791 X"$as_dir" : 'X\(/\)' \| \
15792 . : '\(.\)' 2>/dev/null ||
15793 echo X"$as_dir" |
15794 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15795 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15796 /^X\(\/\/\)$/{ s//\1/; q; }
15797 /^X\(\/\).*/{ s//\1/; q; }
15798 s/.*/./; q'`
15799 done
15800 test ! -n "$as_dirs" || mkdir $as_dirs
15801 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15802 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15803 { (exit 1); exit 1; }; }; }
15804
15805 ac_builddir=.
15806
15807 if test "$ac_dir" != .; then
15808 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15809 # A "../" for each directory in $ac_dir_suffix.
15810 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15811 else
15812 ac_dir_suffix= ac_top_builddir=
15813 fi
15814
15815 case $srcdir in
15816 .) # No --srcdir option. We are building in place.
15817 ac_srcdir=.
15818 if test -z "$ac_top_builddir"; then
15819 ac_top_srcdir=.
15820 else
15821 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15822 fi ;;
15823 [\\/]* | ?:[\\/]* ) # Absolute path.
15824 ac_srcdir=$srcdir$ac_dir_suffix;
15825 ac_top_srcdir=$srcdir ;;
15826 *) # Relative path.
15827 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15828 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15829 esac
15830
15831 # Do not use `cd foo && pwd` to compute absolute paths, because
15832 # the directories may not exist.
15833 case `pwd` in
15834 .) ac_abs_builddir="$ac_dir";;
15835 *)
15836 case "$ac_dir" in
15837 .) ac_abs_builddir=`pwd`;;
15838 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15839 *) ac_abs_builddir=`pwd`/"$ac_dir";;
15840 esac;;
15841 esac
15842 case $ac_abs_builddir in
15843 .) ac_abs_top_builddir=${ac_top_builddir}.;;
15844 *)
15845 case ${ac_top_builddir}. in
15846 .) ac_abs_top_builddir=$ac_abs_builddir;;
15847 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15848 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15849 esac;;
15850 esac
15851 case $ac_abs_builddir in
15852 .) ac_abs_srcdir=$ac_srcdir;;
15853 *)
15854 case $ac_srcdir in
15855 .) ac_abs_srcdir=$ac_abs_builddir;;
15856 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15857 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15858 esac;;
15859 esac
15860 case $ac_abs_builddir in
15861 .) ac_abs_top_srcdir=$ac_top_srcdir;;
15862 *)
15863 case $ac_top_srcdir in
15864 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15865 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15866 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15867 esac;;
15868 esac
15869
15870
15871 case $INSTALL in
15872 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15873 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
15874 esac
15875
15876 if test x"$ac_file" != x-; then
15877 { echo "$as_me:$LINENO: creating $ac_file" >&5
15878 echo "$as_me: creating $ac_file" >&6;}
15879 rm -f "$ac_file"
15880 fi
15881 # Let's still pretend it is `configure' which instantiates (i.e., don't
15882 # use $as_me), people would be surprised to read:
15883 # /* config.h. Generated by config.status. */
15884 if test x"$ac_file" = x-; then
15885 configure_input=
15886 else
15887 configure_input="$ac_file. "
15888 fi
15889 configure_input=$configure_input"Generated from `echo $ac_file_in |
15890 sed 's,.*/,,'` by configure."
15891
15892 # First look for the input files in the build tree, otherwise in the
15893 # src tree.
15894 ac_file_inputs=`IFS=:
15895 for f in $ac_file_in; do
15896 case $f in
15897 -) echo $tmp/stdin ;;
15898 [\\/$]*)
15899 # Absolute (can't be DOS-style, as IFS=:)
15900 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15901 echo "$as_me: error: cannot find input file: $f" >&2;}
15902 { (exit 1); exit 1; }; }
15903 echo "$f";;
15904 *) # Relative
15905 if test -f "$f"; then
15906 # Build tree
15907 echo "$f"
15908 elif test -f "$srcdir/$f"; then
15909 # Source tree
15910 echo "$srcdir/$f"
15911 else
15912 # /dev/null tree
15913 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15914 echo "$as_me: error: cannot find input file: $f" >&2;}
15915 { (exit 1); exit 1; }; }
15916 fi;;
15917 esac
15918 done` || { (exit 1); exit 1; }
15919 _ACEOF
15920 cat >>$CONFIG_STATUS <<_ACEOF
15921 sed "$ac_vpsub
15922 $extrasub
15923 _ACEOF
15924 cat >>$CONFIG_STATUS <<\_ACEOF
15925 :t
15926 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15927 s,@configure_input@,$configure_input,;t t
15928 s,@srcdir@,$ac_srcdir,;t t
15929 s,@abs_srcdir@,$ac_abs_srcdir,;t t
15930 s,@top_srcdir@,$ac_top_srcdir,;t t
15931 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
15932 s,@builddir@,$ac_builddir,;t t
15933 s,@abs_builddir@,$ac_abs_builddir,;t t
15934 s,@top_builddir@,$ac_top_builddir,;t t
15935 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
15936 s,@INSTALL@,$ac_INSTALL,;t t
15937 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
15938 rm -f $tmp/stdin
15939 if test x"$ac_file" != x-; then
15940 mv $tmp/out $ac_file
15941 else
15942 cat $tmp/out
15943 rm -f $tmp/out
15944 fi
15945
15946 done
15947 _ACEOF
15948 cat >>$CONFIG_STATUS <<\_ACEOF
15949
15950 #
15951 # CONFIG_HEADER section.
15952 #
15953
15954 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15955 # NAME is the cpp macro being defined and VALUE is the value it is being given.
15956 #
15957 # ac_d sets the value in "#define NAME VALUE" lines.
15958 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
15959 ac_dB='[ ].*$,\1#\2'
15960 ac_dC=' '
15961 ac_dD=',;t'
15962 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15963 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15964 ac_uB='$,\1#\2define\3'
15965 ac_uC=' '
15966 ac_uD=',;t'
15967
15968 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
15969 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15970 case $ac_file in
15971 - | *:- | *:-:* ) # input from stdin
15972 cat >$tmp/stdin
15973 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15974 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15975 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15976 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15977 * ) ac_file_in=$ac_file.in ;;
15978 esac
15979
15980 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
15981 echo "$as_me: creating $ac_file" >&6;}
15982
15983 # First look for the input files in the build tree, otherwise in the
15984 # src tree.
15985 ac_file_inputs=`IFS=:
15986 for f in $ac_file_in; do
15987 case $f in
15988 -) echo $tmp/stdin ;;
15989 [\\/$]*)
15990 # Absolute (can't be DOS-style, as IFS=:)
15991 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15992 echo "$as_me: error: cannot find input file: $f" >&2;}
15993 { (exit 1); exit 1; }; }
15994 # Do quote $f, to prevent DOS paths from being IFS'd.
15995 echo "$f";;
15996 *) # Relative
15997 if test -f "$f"; then
15998 # Build tree
15999 echo "$f"
16000 elif test -f "$srcdir/$f"; then
16001 # Source tree
16002 echo "$srcdir/$f"
16003 else
16004 # /dev/null tree
16005 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16006 echo "$as_me: error: cannot find input file: $f" >&2;}
16007 { (exit 1); exit 1; }; }
16008 fi;;
16009 esac
16010 done` || { (exit 1); exit 1; }
16011 # Remove the trailing spaces.
16012 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
16013
16014 _ACEOF
16015
16016 # Transform confdefs.h into two sed scripts, `conftest.defines' and
16017 # `conftest.undefs', that substitutes the proper values into
16018 # config.h.in to produce config.h. The first handles `#define'
16019 # templates, and the second `#undef' templates.
16020 # And first: Protect against being on the right side of a sed subst in
16021 # config.status. Protect against being in an unquoted here document
16022 # in config.status.
16023 rm -f conftest.defines conftest.undefs
16024 # Using a here document instead of a string reduces the quoting nightmare.
16025 # Putting comments in sed scripts is not portable.
16026 #
16027 # `end' is used to avoid that the second main sed command (meant for
16028 # 0-ary CPP macros) applies to n-ary macro definitions.
16029 # See the Autoconf documentation for `clear'.
16030 cat >confdef2sed.sed <<\_ACEOF
16031 s/[\\&,]/\\&/g
16032 s,[\\$`],\\&,g
16033 t clear
16034 : clear
16035 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16036 t end
16037 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16038 : end
16039 _ACEOF
16040 # If some macros were called several times there might be several times
16041 # the same #defines, which is useless. Nevertheless, we may not want to
16042 # sort them, since we want the *last* AC-DEFINE to be honored.
16043 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16044 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16045 rm -f confdef2sed.sed
16046
16047 # This sed command replaces #undef with comments. This is necessary, for
16048 # example, in the case of _POSIX_SOURCE, which is predefined and required
16049 # on some systems where configure will not decide to define it.
16050 cat >>conftest.undefs <<\_ACEOF
16051 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16052 _ACEOF
16053
16054 # Break up conftest.defines because some shells have a limit on the size
16055 # of here documents, and old seds have small limits too (100 cmds).
16056 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16057 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16058 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16059 echo ' :' >>$CONFIG_STATUS
16060 rm -f conftest.tail
16061 while grep . conftest.defines >/dev/null
16062 do
16063 # Write a limited-size here document to $tmp/defines.sed.
16064 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16065 # Speed up: don't consider the non `#define' lines.
16066 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
16067 # Work around the forget-to-reset-the-flag bug.
16068 echo 't clr' >>$CONFIG_STATUS
16069 echo ': clr' >>$CONFIG_STATUS
16070 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16071 echo 'CEOF
16072 sed -f $tmp/defines.sed $tmp/in >$tmp/out
16073 rm -f $tmp/in
16074 mv $tmp/out $tmp/in
16075 ' >>$CONFIG_STATUS
16076 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16077 rm -f conftest.defines
16078 mv conftest.tail conftest.defines
16079 done
16080 rm -f conftest.defines
16081 echo ' fi # grep' >>$CONFIG_STATUS
16082 echo >>$CONFIG_STATUS
16083
16084 # Break up conftest.undefs because some shells have a limit on the size
16085 # of here documents, and old seds have small limits too (100 cmds).
16086 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
16087 rm -f conftest.tail
16088 while grep . conftest.undefs >/dev/null
16089 do
16090 # Write a limited-size here document to $tmp/undefs.sed.
16091 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16092 # Speed up: don't consider the non `#undef'
16093 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
16094 # Work around the forget-to-reset-the-flag bug.
16095 echo 't clr' >>$CONFIG_STATUS
16096 echo ': clr' >>$CONFIG_STATUS
16097 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16098 echo 'CEOF
16099 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16100 rm -f $tmp/in
16101 mv $tmp/out $tmp/in
16102 ' >>$CONFIG_STATUS
16103 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16104 rm -f conftest.undefs
16105 mv conftest.tail conftest.undefs
16106 done
16107 rm -f conftest.undefs
16108
16109 cat >>$CONFIG_STATUS <<\_ACEOF
16110 # Let's still pretend it is `configure' which instantiates (i.e., don't
16111 # use $as_me), people would be surprised to read:
16112 # /* config.h. Generated by config.status. */
16113 if test x"$ac_file" = x-; then
16114 echo "/* Generated by configure. */" >$tmp/config.h
16115 else
16116 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
16117 fi
16118 cat $tmp/in >>$tmp/config.h
16119 rm -f $tmp/in
16120 if test x"$ac_file" != x-; then
16121 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
16122 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16123 echo "$as_me: $ac_file is unchanged" >&6;}
16124 else
16125 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16126 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16127 X"$ac_file" : 'X\(//\)[^/]' \| \
16128 X"$ac_file" : 'X\(//\)$' \| \
16129 X"$ac_file" : 'X\(/\)' \| \
16130 . : '\(.\)' 2>/dev/null ||
16131 echo X"$ac_file" |
16132 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16133 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16134 /^X\(\/\/\)$/{ s//\1/; q; }
16135 /^X\(\/\).*/{ s//\1/; q; }
16136 s/.*/./; q'`
16137 { if $as_mkdir_p; then
16138 mkdir -p "$ac_dir"
16139 else
16140 as_dir="$ac_dir"
16141 as_dirs=
16142 while test ! -d "$as_dir"; do
16143 as_dirs="$as_dir $as_dirs"
16144 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16145 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16146 X"$as_dir" : 'X\(//\)[^/]' \| \
16147 X"$as_dir" : 'X\(//\)$' \| \
16148 X"$as_dir" : 'X\(/\)' \| \
16149 . : '\(.\)' 2>/dev/null ||
16150 echo X"$as_dir" |
16151 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16152 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16153 /^X\(\/\/\)$/{ s//\1/; q; }
16154 /^X\(\/\).*/{ s//\1/; q; }
16155 s/.*/./; q'`
16156 done
16157 test ! -n "$as_dirs" || mkdir $as_dirs
16158 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16159 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16160 { (exit 1); exit 1; }; }; }
16161
16162 rm -f $ac_file
16163 mv $tmp/config.h $ac_file
16164 fi
16165 else
16166 cat $tmp/config.h
16167 rm -f $tmp/config.h
16168 fi
16169 # Compute $ac_file's index in $config_headers.
16170 _am_stamp_count=1
16171 for _am_header in $config_headers :; do
16172 case $_am_header in
16173 $ac_file | $ac_file:* )
16174 break ;;
16175 * )
16176 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16177 esac
16178 done
16179 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
16180 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16181 X$ac_file : 'X\(//\)[^/]' \| \
16182 X$ac_file : 'X\(//\)$' \| \
16183 X$ac_file : 'X\(/\)' \| \
16184 . : '\(.\)' 2>/dev/null ||
16185 echo X$ac_file |
16186 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16187 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16188 /^X\(\/\/\)$/{ s//\1/; q; }
16189 /^X\(\/\).*/{ s//\1/; q; }
16190 s/.*/./; q'`/stamp-h$_am_stamp_count
16191 done
16192 _ACEOF
16193 cat >>$CONFIG_STATUS <<\_ACEOF
16194
16195 #
16196 # CONFIG_COMMANDS section.
16197 #
16198 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
16199 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
16200 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
16201 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
16202 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16203 X"$ac_dest" : 'X\(//\)[^/]' \| \
16204 X"$ac_dest" : 'X\(//\)$' \| \
16205 X"$ac_dest" : 'X\(/\)' \| \
16206 . : '\(.\)' 2>/dev/null ||
16207 echo X"$ac_dest" |
16208 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16209 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16210 /^X\(\/\/\)$/{ s//\1/; q; }
16211 /^X\(\/\).*/{ s//\1/; q; }
16212 s/.*/./; q'`
16213 { if $as_mkdir_p; then
16214 mkdir -p "$ac_dir"
16215 else
16216 as_dir="$ac_dir"
16217 as_dirs=
16218 while test ! -d "$as_dir"; do
16219 as_dirs="$as_dir $as_dirs"
16220 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16221 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16222 X"$as_dir" : 'X\(//\)[^/]' \| \
16223 X"$as_dir" : 'X\(//\)$' \| \
16224 X"$as_dir" : 'X\(/\)' \| \
16225 . : '\(.\)' 2>/dev/null ||
16226 echo X"$as_dir" |
16227 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16228 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16229 /^X\(\/\/\)$/{ s//\1/; q; }
16230 /^X\(\/\).*/{ s//\1/; q; }
16231 s/.*/./; q'`
16232 done
16233 test ! -n "$as_dirs" || mkdir $as_dirs
16234 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16235 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16236 { (exit 1); exit 1; }; }; }
16237
16238 ac_builddir=.
16239
16240 if test "$ac_dir" != .; then
16241 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16242 # A "../" for each directory in $ac_dir_suffix.
16243 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16244 else
16245 ac_dir_suffix= ac_top_builddir=
16246 fi
16247
16248 case $srcdir in
16249 .) # No --srcdir option. We are building in place.
16250 ac_srcdir=.
16251 if test -z "$ac_top_builddir"; then
16252 ac_top_srcdir=.
16253 else
16254 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16255 fi ;;
16256 [\\/]* | ?:[\\/]* ) # Absolute path.
16257 ac_srcdir=$srcdir$ac_dir_suffix;
16258 ac_top_srcdir=$srcdir ;;
16259 *) # Relative path.
16260 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16261 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16262 esac
16263
16264 # Do not use `cd foo && pwd` to compute absolute paths, because
16265 # the directories may not exist.
16266 case `pwd` in
16267 .) ac_abs_builddir="$ac_dir";;
16268 *)
16269 case "$ac_dir" in
16270 .) ac_abs_builddir=`pwd`;;
16271 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16272 *) ac_abs_builddir=`pwd`/"$ac_dir";;
16273 esac;;
16274 esac
16275 case $ac_abs_builddir in
16276 .) ac_abs_top_builddir=${ac_top_builddir}.;;
16277 *)
16278 case ${ac_top_builddir}. in
16279 .) ac_abs_top_builddir=$ac_abs_builddir;;
16280 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16281 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16282 esac;;
16283 esac
16284 case $ac_abs_builddir in
16285 .) ac_abs_srcdir=$ac_srcdir;;
16286 *)
16287 case $ac_srcdir in
16288 .) ac_abs_srcdir=$ac_abs_builddir;;
16289 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16290 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16291 esac;;
16292 esac
16293 case $ac_abs_builddir in
16294 .) ac_abs_top_srcdir=$ac_top_srcdir;;
16295 *)
16296 case $ac_top_srcdir in
16297 .) ac_abs_top_srcdir=$ac_abs_builddir;;
16298 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16299 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16300 esac;;
16301 esac
16302
16303
16304 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
16305 echo "$as_me: executing $ac_dest commands" >&6;}
16306 case $ac_dest in
16307 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
16308 # Strip MF so we end up with the name of the file.
16309 mf=`echo "$mf" | sed -e 's/:.*$//'`
16310 # Check whether this is an Automake generated Makefile or not.
16311 # We used to match only the files named `Makefile.in', but
16312 # some people rename them; so instead we look at the file content.
16313 # Grep'ing the first line is not enough: some people post-process
16314 # each Makefile.in and add a new line on top of each file to say so.
16315 # So let's grep whole file.
16316 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
16317 dirpart=`(dirname "$mf") 2>/dev/null ||
16318 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16319 X"$mf" : 'X\(//\)[^/]' \| \
16320 X"$mf" : 'X\(//\)$' \| \
16321 X"$mf" : 'X\(/\)' \| \
16322 . : '\(.\)' 2>/dev/null ||
16323 echo X"$mf" |
16324 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16325 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16326 /^X\(\/\/\)$/{ s//\1/; q; }
16327 /^X\(\/\).*/{ s//\1/; q; }
16328 s/.*/./; q'`
16329 else
16330 continue
16331 fi
16332 # Extract the definition of DEPDIR, am__include, and am__quote
16333 # from the Makefile without running `make'.
16334 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16335 test -z "$DEPDIR" && continue
16336 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16337 test -z "am__include" && continue
16338 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16339 # When using ansi2knr, U may be empty or an underscore; expand it
16340 U=`sed -n 's/^U = //p' < "$mf"`
16341 # Find all dependency output files, they are included files with
16342 # $(DEPDIR) in their names. We invoke sed twice because it is the
16343 # simplest approach to changing $(DEPDIR) to its actual value in the
16344 # expansion.
16345 for file in `sed -n "
16346 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16347 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16348 # Make sure the directory exists.
16349 test -f "$dirpart/$file" && continue
16350 fdir=`(dirname "$file") 2>/dev/null ||
16351 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16352 X"$file" : 'X\(//\)[^/]' \| \
16353 X"$file" : 'X\(//\)$' \| \
16354 X"$file" : 'X\(/\)' \| \
16355 . : '\(.\)' 2>/dev/null ||
16356 echo X"$file" |
16357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16358 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16359 /^X\(\/\/\)$/{ s//\1/; q; }
16360 /^X\(\/\).*/{ s//\1/; q; }
16361 s/.*/./; q'`
16362 { if $as_mkdir_p; then
16363 mkdir -p $dirpart/$fdir
16364 else
16365 as_dir=$dirpart/$fdir
16366 as_dirs=
16367 while test ! -d "$as_dir"; do
16368 as_dirs="$as_dir $as_dirs"
16369 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16370 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16371 X"$as_dir" : 'X\(//\)[^/]' \| \
16372 X"$as_dir" : 'X\(//\)$' \| \
16373 X"$as_dir" : 'X\(/\)' \| \
16374 . : '\(.\)' 2>/dev/null ||
16375 echo X"$as_dir" |
16376 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16377 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16378 /^X\(\/\/\)$/{ s//\1/; q; }
16379 /^X\(\/\).*/{ s//\1/; q; }
16380 s/.*/./; q'`
16381 done
16382 test ! -n "$as_dirs" || mkdir $as_dirs
16383 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
16384 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
16385 { (exit 1); exit 1; }; }; }
16386
16387 # echo "creating $dirpart/$file"
16388 echo '# dummy' > "$dirpart/$file"
16389 done
16390 done
16391 ;;
16392 libtool )
16393
16394 # See if we are running on zsh, and set the options which allow our
16395 # commands through without removal of \ escapes.
16396 if test -n "${ZSH_VERSION+set}" ; then
16397 setopt NO_GLOB_SUBST
16398 fi
16399
16400 cfgfile="${ofile}T"
16401 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16402 $RM "$cfgfile"
16403
16404 cat <<_LT_EOF >> "$cfgfile"
16405 #! $SHELL
16406
16407 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16408 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
16409 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16410 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16411 #
16412 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16413 # 2006, 2007 Free Software Foundation, Inc.
16414 #
16415 # This file is part of GNU Libtool:
16416 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
16417 #
16418 # This program is free software; you can redistribute it and/or modify
16419 # it under the terms of the GNU General Public License as published by
16420 # the Free Software Foundation; either version 2 of the License, or
16421 # (at your option) any later version.
16422 #
16423 # This program is distributed in the hope that it will be useful, but
16424 # WITHOUT ANY WARRANTY; without even the implied warranty of
16425 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16426 # General Public License for more details.
16427 #
16428 # You should have received a copy of the GNU General Public License
16429 # along with this program; if not, a copy can be downloaded from
16430 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
16431 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
16432 # MA 02110-1301, USA.
16433 #
16434 # As a special exception to the GNU General Public License, if you
16435 # distribute this file as part of a program that contains a
16436 # configuration script generated by Autoconf, you may include it under
16437 # the same distribution terms that you use for the rest of that program.
16438
16439
16440 # The names of the tagged configurations supported by this script.
16441 available_tags=""
16442
16443 # ### BEGIN LIBTOOL CONFIG
16444
16445 # Which release of libtool.m4 was used?
16446 macro_version=$macro_version
16447 macro_revision=$macro_revision
16448
16449 # Whether or not to build shared libraries.
16450 build_libtool_libs=$enable_shared
16451
16452 # Whether or not to build static libraries.
16453 build_old_libs=$enable_static
16454
16455 # What type of objects to build.
16456 pic_mode=$pic_mode
16457
16458 # Whether or not to optimize for fast installation.
16459 fast_install=$enable_fast_install
16460
16461 # The host system.
16462 host_alias=$host_alias
16463 host=$host
16464 host_os=$host_os
16465
16466 # The build system.
16467 build_alias=$build_alias
16468 build=$build
16469 build_os=$build_os
16470
16471 # A sed program that does not truncate output.
16472 SED=$lt_SED
16473
16474 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16475 Xsed="\$SED -e 1s/^X//"
16476
16477 # A grep program that handles long lines.
16478 GREP=$lt_GREP
16479
16480 # An ERE matcher.
16481 EGREP=$lt_EGREP
16482
16483 # A literal string matcher.
16484 FGREP=$lt_FGREP
16485
16486 # A BSD- or MS-compatible name lister.
16487 NM=$lt_NM
16488
16489 # Whether we need soft or hard links.
16490 LN_S=$lt_LN_S
16491
16492 # What is the maximum length of a command?
16493 max_cmd_len=$max_cmd_len
16494
16495 # Object file suffix (normally "o").
16496 objext=$ac_objext
16497
16498 # Executable file suffix (normally "").
16499 exeext=$exeext
16500
16501 # whether the shell understands "unset".
16502 lt_unset=$lt_unset
16503
16504 # turn spaces into newlines.
16505 SP2NL=$lt_lt_SP2NL
16506
16507 # turn newlines into spaces.
16508 NL2SP=$lt_lt_NL2SP
16509
16510 # How to create reloadable object files.
16511 reload_flag=$lt_reload_flag
16512 reload_cmds=$lt_reload_cmds
16513
16514 # Method to check whether dependent libraries are shared objects.
16515 deplibs_check_method=$lt_deplibs_check_method
16516
16517 # Command to use when deplibs_check_method == "file_magic".
16518 file_magic_cmd=$lt_file_magic_cmd
16519
16520 # The archiver.
16521 AR=$lt_AR
16522 AR_FLAGS=$lt_AR_FLAGS
16523
16524 # A symbol stripping program.
16525 STRIP=$lt_STRIP
16526
16527 # Commands used to install an old-style archive.
16528 RANLIB=$lt_RANLIB
16529 old_postinstall_cmds=$lt_old_postinstall_cmds
16530 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16531
16532 # A C compiler.
16533 LTCC=$lt_CC
16534
16535 # LTCC compiler flags.
16536 LTCFLAGS=$lt_CFLAGS
16537
16538 # Take the output of nm and produce a listing of raw symbols and C names.
16539 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16540
16541 # Transform the output of nm in a proper C declaration.
16542 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16543
16544 # Transform the output of nm in a C name address pair.
16545 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16546
16547 # The name of the directory that contains temporary libtool files.
16548 objdir=$objdir
16549
16550 # Shell to use when invoking shell scripts.
16551 SHELL=$lt_SHELL
16552
16553 # An echo program that does not interpret backslashes.
16554 ECHO=$lt_ECHO
16555
16556 # Used to examine libraries when file_magic_cmd begins with "file".
16557 MAGIC_CMD=$MAGIC_CMD
16558
16559 # Must we lock files when doing compilation?
16560 need_locks=$lt_need_locks
16561
16562 # Old archive suffix (normally "a").
16563 libext=$libext
16564
16565 # Shared library suffix (normally ".so").
16566 shrext_cmds=$lt_shrext_cmds
16567
16568 # The commands to extract the exported symbol list from a shared archive.
16569 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16570
16571 # Variables whose values should be saved in libtool wrapper scripts and
16572 # restored at link time.
16573 variables_saved_for_relink=$lt_variables_saved_for_relink
16574
16575 # Do we need the "lib" prefix for modules?
16576 need_lib_prefix=$need_lib_prefix
16577
16578 # Do we need a version for libraries?
16579 need_version=$need_version
16580
16581 # Library versioning type.
16582 version_type=$version_type
16583
16584 # Shared library runtime path variable.
16585 runpath_var=$runpath_var
16586
16587 # Shared library path variable.
16588 shlibpath_var=$shlibpath_var
16589
16590 # Is shlibpath searched before the hard-coded library search path?
16591 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16592
16593 # Format of library name prefix.
16594 libname_spec=$lt_libname_spec
16595
16596 # List of archive names. First name is the real one, the rest are links.
16597 # The last name is the one that the linker finds with -lNAME
16598 library_names_spec=$lt_library_names_spec
16599
16600 # The coded name of the library, if different from the real name.
16601 soname_spec=$lt_soname_spec
16602
16603 # Command to use after installation of a shared archive.
16604 postinstall_cmds=$lt_postinstall_cmds
16605
16606 # Command to use after uninstallation of a shared archive.
16607 postuninstall_cmds=$lt_postuninstall_cmds
16608
16609 # Commands used to finish a libtool library installation in a directory.
16610 finish_cmds=$lt_finish_cmds
16611
16612 # As "finish_cmds", except a single script fragment to be evaled but
16613 # not shown.
16614 finish_eval=$lt_finish_eval
16615
16616 # Whether we should hardcode library paths into libraries.
16617 hardcode_into_libs=$hardcode_into_libs
16618
16619 # Compile-time system search path for libraries.
16620 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16621
16622 # Run-time system search path for libraries.
16623 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16624
16625 # Whether dlopen is supported.
16626 dlopen_support=$enable_dlopen
16627
16628 # Whether dlopen of programs is supported.
16629 dlopen_self=$enable_dlopen_self
16630
16631 # Whether dlopen of statically linked programs is supported.
16632 dlopen_self_static=$enable_dlopen_self_static
16633
16634 # Commands to strip libraries.
16635 old_striplib=$lt_old_striplib
16636 striplib=$lt_striplib
16637
16638
16639 # The linker used to build libraries.
16640 LD=$lt_LD
16641
16642 # Commands used to build an old-style archive.
16643 old_archive_cmds=$lt_old_archive_cmds
16644
16645 # A language specific compiler.
16646 CC=$lt_compiler
16647
16648 # Is the compiler the GNU compiler?
16649 with_gcc=$GCC
16650
16651 # Compiler flag to turn off builtin functions.
16652 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16653
16654 # How to pass a linker flag through the compiler.
16655 wl=$lt_lt_prog_compiler_wl
16656
16657 # Additional compiler flags for building library objects.
16658 pic_flag=$lt_lt_prog_compiler_pic
16659
16660 # Compiler flag to prevent dynamic linking.
16661 link_static_flag=$lt_lt_prog_compiler_static
16662
16663 # Does compiler simultaneously support -c and -o options?
16664 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16665
16666 # Whether or not to add -lc for building shared libraries.
16667 build_libtool_need_lc=$archive_cmds_need_lc
16668
16669 # Whether or not to disallow shared libs when runtime libs are static.
16670 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16671
16672 # Compiler flag to allow reflexive dlopens.
16673 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16674
16675 # Compiler flag to generate shared objects directly from archives.
16676 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16677
16678 # Whether the compiler copes with passing no objects directly.
16679 compiler_needs_object=$lt_compiler_needs_object
16680
16681 # Create an old-style archive from a shared archive.
16682 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16683
16684 # Create a temporary old-style archive to link instead of a shared archive.
16685 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16686
16687 # Commands used to build a shared archive.
16688 archive_cmds=$lt_archive_cmds
16689 archive_expsym_cmds=$lt_archive_expsym_cmds
16690
16691 # Commands used to build a loadable module if different from building
16692 # a shared archive.
16693 module_cmds=$lt_module_cmds
16694 module_expsym_cmds=$lt_module_expsym_cmds
16695
16696 # Whether we are building with GNU ld or not.
16697 with_gnu_ld=$lt_with_gnu_ld
16698
16699 # Flag that allows shared libraries with undefined symbols to be built.
16700 allow_undefined_flag=$lt_allow_undefined_flag
16701
16702 # Flag that enforces no undefined symbols.
16703 no_undefined_flag=$lt_no_undefined_flag
16704
16705 # Flag to hardcode \$libdir into a binary during linking.
16706 # This must work even if \$libdir does not exist
16707 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16708
16709 # If ld is used when linking, flag to hardcode \$libdir into a binary
16710 # during linking. This must work even if \$libdir does not exist.
16711 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16712
16713 # Whether we need a single "-rpath" flag with a separated argument.
16714 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16715
16716 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16717 # DIR into the resulting binary.
16718 hardcode_direct=$hardcode_direct
16719
16720 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16721 # DIR into the resulting binary and the resulting library dependency is
16722 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16723 # library is relocated.
16724 hardcode_direct_absolute=$hardcode_direct_absolute
16725
16726 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16727 # into the resulting binary.
16728 hardcode_minus_L=$hardcode_minus_L
16729
16730 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16731 # into the resulting binary.
16732 hardcode_shlibpath_var=$hardcode_shlibpath_var
16733
16734 # Set to "yes" if building a shared library automatically hardcodes DIR
16735 # into the library and all subsequent libraries and executables linked
16736 # against it.
16737 hardcode_automatic=$hardcode_automatic
16738
16739 # Set to yes if linker adds runtime paths of dependent libraries
16740 # to runtime path list.
16741 inherit_rpath=$inherit_rpath
16742
16743 # Whether libtool must link a program against all its dependency libraries.
16744 link_all_deplibs=$link_all_deplibs
16745
16746 # Fix the shell variable \$srcfile for the compiler.
16747 fix_srcfile_path=$lt_fix_srcfile_path
16748
16749 # Set to "yes" if exported symbols are required.
16750 always_export_symbols=$always_export_symbols
16751
16752 # The commands to list exported symbols.
16753 export_symbols_cmds=$lt_export_symbols_cmds
16754
16755 # Symbols that should not be listed in the preloaded symbols.
16756 exclude_expsyms=$lt_exclude_expsyms
16757
16758 # Symbols that must always be exported.
16759 include_expsyms=$lt_include_expsyms
16760
16761 # Commands necessary for linking programs (against libraries) with templates.
16762 prelink_cmds=$lt_prelink_cmds
16763
16764 # Specify filename containing input files.
16765 file_list_spec=$lt_file_list_spec
16766
16767 # How to hardcode a shared library path into an executable.
16768 hardcode_action=$hardcode_action
16769
16770 # ### END LIBTOOL CONFIG
16771
16772 _LT_EOF
16773
16774 case $host_os in
16775 aix3*)
16776 cat <<\_LT_EOF >> "$cfgfile"
16777 # AIX sometimes has problems with the GCC collect2 program. For some
16778 # reason, if we set the COLLECT_NAMES environment variable, the problems
16779 # vanish in a puff of smoke.
16780 if test "X${COLLECT_NAMES+set}" != Xset; then
16781 COLLECT_NAMES=
16782 export COLLECT_NAMES
16783 fi
16784 _LT_EOF
16785 ;;
16786 esac
16787
16788
16789 ltmain="$ac_aux_dir/ltmain.sh"
16790
16791
16792 # We use sed instead of cat because bash on DJGPP gets confused if
16793 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16794 # text mode, it properly converts lines to CR/LF. This bash problem
16795 # is reportedly fixed, but why not run on old versions too?
16796 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16797 || (rm -f "$cfgfile"; exit 1)
16798
16799 case $xsi_shell in
16800 yes)
16801 cat << \_LT_EOF >> "$cfgfile"
16802 # func_dirname file append nondir_replacement
16803 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16804 # otherwise set result to NONDIR_REPLACEMENT.
16805 func_dirname ()
16806 {
16807 case ${1} in
16808 */*) func_dirname_result="${1%/*}${2}" ;;
16809 * ) func_dirname_result="${3}" ;;
16810 esac
16811 }
16812
16813 # func_basename file
16814 func_basename ()
16815 {
16816 func_basename_result="${1##*/}"
16817 }
16818
16819 # func_stripname prefix suffix name
16820 # strip PREFIX and SUFFIX off of NAME.
16821 # PREFIX and SUFFIX must not contain globbing or regex special
16822 # characters, hashes, percent signs, but SUFFIX may contain a leading
16823 # dot (in which case that matches only a dot).
16824 func_stripname ()
16825 {
16826 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16827 # positional parameters, so assign one to ordinary parameter first.
16828 func_stripname_result=${3}
16829 func_stripname_result=${func_stripname_result#"${1}"}
16830 func_stripname_result=${func_stripname_result%"${2}"}
16831 }
16832
16833 # func_opt_split
16834 func_opt_split ()
16835 {
16836 func_opt_split_opt=${1%%=*}
16837 func_opt_split_arg=${1#*=}
16838 }
16839
16840 # func_lo2o object
16841 func_lo2o ()
16842 {
16843 case ${1} in
16844 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16845 *) func_lo2o_result=${1} ;;
16846 esac
16847 }
16848 _LT_EOF
16849 ;;
16850 *) # Bourne compatible functions.
16851 cat << \_LT_EOF >> "$cfgfile"
16852 # func_dirname file append nondir_replacement
16853 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16854 # otherwise set result to NONDIR_REPLACEMENT.
16855 func_dirname ()
16856 {
16857 # Extract subdirectory from the argument.
16858 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
16859 if test "X$func_dirname_result" = "X${1}"; then
16860 func_dirname_result="${3}"
16861 else
16862 func_dirname_result="$func_dirname_result${2}"
16863 fi
16864 }
16865
16866 # func_basename file
16867 func_basename ()
16868 {
16869 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
16870 }
16871
16872 # func_stripname prefix suffix name
16873 # strip PREFIX and SUFFIX off of NAME.
16874 # PREFIX and SUFFIX must not contain globbing or regex special
16875 # characters, hashes, percent signs, but SUFFIX may contain a leading
16876 # dot (in which case that matches only a dot).
16877 # func_strip_suffix prefix name
16878 func_stripname ()
16879 {
16880 case ${2} in
16881 .*) func_stripname_result=`$ECHO "X${3}" \
16882 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
16883 *) func_stripname_result=`$ECHO "X${3}" \
16884 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
16885 esac
16886 }
16887
16888 # sed scripts:
16889 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16890 my_sed_long_arg='1s/^-[^=]*=//'
16891
16892 # func_opt_split
16893 func_opt_split ()
16894 {
16895 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
16896 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
16897 }
16898
16899 # func_lo2o object
16900 func_lo2o ()
16901 {
16902 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
16903 }
16904 _LT_EOF
16905 esac
16906
16907 case $lt_shell_append in
16908 yes)
16909 cat << \_LT_EOF >> "$cfgfile"
16910
16911 # func_append var value
16912 # Append VALUE to the end of shell variable VAR.
16913 func_append ()
16914 {
16915 eval "$1+=\$2"
16916 }
16917 _LT_EOF
16918 ;;
16919 *)
16920 cat << \_LT_EOF >> "$cfgfile"
16921
16922 # func_append var value
16923 # Append VALUE to the end of shell variable VAR.
16924 func_append ()
16925 {
16926 eval "$1=\$$1\$2"
16927 }
16928 _LT_EOF
16929 ;;
16930 esac
16931
16932
16933 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16934 || (rm -f "$cfgfile"; exit 1)
16935
16936 mv -f "$cfgfile" "$ofile" ||
16937 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16938 chmod +x "$ofile"
16939
16940 ;;
16941 default-1 )
16942 for ac_file in $CONFIG_FILES; do
16943 # Support "outfile[:infile[:infile...]]"
16944 case "$ac_file" in
16945 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16946 esac
16947 # PO directories have a Makefile.in generated from Makefile.in.in.
16948 case "$ac_file" in */Makefile.in)
16949 # Adjust a relative srcdir.
16950 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16951 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16952 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16953 # In autoconf-2.13 it is called $ac_given_srcdir.
16954 # In autoconf-2.50 it is called $srcdir.
16955 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16956 case "$ac_given_srcdir" in
16957 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16958 /*) top_srcdir="$ac_given_srcdir" ;;
16959 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16960 esac
16961 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16962 rm -f "$ac_dir/POTFILES"
16963 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16964 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16965 POMAKEFILEDEPS="POTFILES.in"
16966 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
16967 # on $ac_dir but don't depend on user-specified configuration
16968 # parameters.
16969 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16970 # The LINGUAS file contains the set of available languages.
16971 if test -n "$OBSOLETE_ALL_LINGUAS"; then
16972 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16973 fi
16974 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16975 # Hide the ALL_LINGUAS assigment from automake.
16976 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16977 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16978 else
16979 # The set of available languages was given in configure.in.
16980 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16981 fi
16982 case "$ac_given_srcdir" in
16983 .) srcdirpre= ;;
16984 *) srcdirpre='$(srcdir)/' ;;
16985 esac
16986 POFILES=
16987 GMOFILES=
16988 UPDATEPOFILES=
16989 DUMMYPOFILES=
16990 for lang in $ALL_LINGUAS; do
16991 POFILES="$POFILES $srcdirpre$lang.po"
16992 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16993 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16994 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16995 done
16996 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16997 # environment variable.
16998 INST_LINGUAS=
16999 if test -n "$ALL_LINGUAS"; then
17000 for presentlang in $ALL_LINGUAS; do
17001 useit=no
17002 if test "%UNSET%" != "$LINGUAS"; then
17003 desiredlanguages="$LINGUAS"
17004 else
17005 desiredlanguages="$ALL_LINGUAS"
17006 fi
17007 for desiredlang in $desiredlanguages; do
17008 # Use the presentlang catalog if desiredlang is
17009 # a. equal to presentlang, or
17010 # b. a variant of presentlang (because in this case,
17011 # presentlang can be used as a fallback for messages
17012 # which are not translated in the desiredlang catalog).
17013 case "$desiredlang" in
17014 "$presentlang"*) useit=yes;;
17015 esac
17016 done
17017 if test $useit = yes; then
17018 INST_LINGUAS="$INST_LINGUAS $presentlang"
17019 fi
17020 done
17021 fi
17022 CATALOGS=
17023 if test -n "$INST_LINGUAS"; then
17024 for lang in $INST_LINGUAS; do
17025 CATALOGS="$CATALOGS $lang.gmo"
17026 done
17027 fi
17028 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17029 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"
17030 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17031 if test -f "$f"; then
17032 case "$f" in
17033 *.orig | *.bak | *~) ;;
17034 *) cat "$f" >> "$ac_dir/Makefile" ;;
17035 esac
17036 fi
17037 done
17038 fi
17039 ;;
17040 esac
17041 done ;;
17042 esac
17043 done
17044 _ACEOF
17045
17046 cat >>$CONFIG_STATUS <<\_ACEOF
17047
17048 { (exit 0); exit 0; }
17049 _ACEOF
17050 chmod +x $CONFIG_STATUS
17051 ac_clean_files=$ac_clean_files_save
17052
17053
17054 # configure is writing to config.log, and then calls config.status.
17055 # config.status does its own redirection, appending to config.log.
17056 # Unfortunately, on DOS this fails, as config.log is still kept open
17057 # by configure, so config.status won't be able to write to it; its
17058 # output is simply discarded. So we exec the FD to /dev/null,
17059 # effectively closing config.log, so it can be properly (re)opened and
17060 # appended to by config.status. When coming back to configure, we
17061 # need to make the FD available again.
17062 if test "$no_create" != yes; then
17063 ac_cs_success=:
17064 ac_config_status_args=
17065 test "$silent" = yes &&
17066 ac_config_status_args="$ac_config_status_args --quiet"
17067 exec 5>/dev/null
17068 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17069 exec 5>>config.log
17070 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17071 # would make configure fail if this is the last instruction.
17072 $ac_cs_success || { (exit 1); exit 1; }
17073 fi
17074